/* JubaLens — Fisheries Intelligence Landing Page */

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 5vw;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ocean-layer {
  position: absolute;
  inset: 0;
}

.layer-1 {
  background: linear-gradient(180deg,
    #060f14 0%,
    #061820 20%,
    #081e28 40%,
    #0a2a2a 60%,
    #0d3535 80%,
    #061418 100%
  );
}

.layer-2 {
  background:
    radial-gradient(ellipse 80% 50% at 20% 80%, rgba(26, 90, 74, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 70% 90%, rgba(13, 53, 53, 0.4) 0%, transparent 50%);
}

.layer-3 {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(201, 169, 110, 0.04) 50%,
    transparent 100%
  );
}

.coastline-shape {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(13, 53, 53, 0.5) 30%,
    rgba(10, 42, 42, 0.8) 70%,
    #0a2a2a 100%
  );
  clip-path: polygon(0 100%, 5% 60%, 15% 75%, 25% 55%, 38% 70%, 50% 50%, 62% 65%, 75% 45%, 88% 60%, 100% 55%, 100% 100%);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 90, 74, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 90, 74, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  padding: 120px 0 80px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sand);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.eyebrow-text {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand-muted);
}

.hero-headline {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.hero-headline em {
  font-style: italic;
  color: var(--sand-light);
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 0;
  margin-bottom: 48px;
  border: 1px solid rgba(26, 90, 74, 0.4);
  border-radius: 4px;
  overflow: hidden;
  width: fit-content;
}

.stat {
  padding: 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--sand);
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  background: rgba(26, 90, 74, 0.4);
}

.hero-data-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.data-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 10px 16px;
  background: rgba(13, 53, 53, 0.3);
  border: 1px solid rgba(26, 90, 74, 0.2);
  border-radius: 3px;
  width: fit-content;
}

.data-tag span:first-of-type { color: var(--text-secondary); flex: 1; }

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tag-dot.coral { background: var(--coral); }
.tag-dot.sand { background: var(--sand); }
.tag-dot.teal { background: var(--teal-light); }

.tag-val {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 13px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 5vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--teal-light), transparent);
  animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

.scroll-indicator span {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-lr;
}

/* SHARED SECTION STYLES */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sand-muted);
  margin-bottom: 48px;
}

.section-headline {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 48px;
  letter-spacing: -0.01em;
}

/* PROBLEM */
.problem {
  padding: 120px 0;
  background: var(--bg-deep);
  position: relative;
}

.problem::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26, 90, 74, 0.4), transparent);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}

.problem-headline {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 300;
  line-height: 1.25;
  color: var(--text-primary);
  position: sticky;
  top: 80px;
}

.problem-points {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.problem-point {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
}

.problem-icon {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  color: var(--sand-muted);
  line-height: 1.4;
  font-style: italic;
}

.problem-point p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.contrast-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border: 1px solid rgba(26, 90, 74, 0.3);
  border-radius: 4px;
  overflow: hidden;
}

.contrast-stat {
  padding: 32px 40px;
  background: rgba(10, 42, 42, 0.3);
}

.contrast-num {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 56px;
  font-weight: 300;
  color: var(--coral);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.contrast-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* APPROACH */
.approach {
  padding: 120px 0;
  background: var(--bg-dark);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.approach-card {
  background: rgba(13, 53, 53, 0.3);
  border: 1px solid rgba(26, 90, 74, 0.25);
  border-radius: 6px;
  padding: 40px 32px;
  position: relative;
  transition: border-color 0.3s ease;
}

.approach-card:hover {
  border-color: rgba(201, 169, 110, 0.3);
}

.card-number {
  font-family: 'Fraunces', serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--sand-muted);
  margin-bottom: 24px;
}

.card-title {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.card-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.card-data-sample {
  border-top: 1px solid rgba(26, 90, 74, 0.3);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sample-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  font-size: 12px;
  gap: 8px;
  align-items: center;
}

.sample-row span:first-child { color: var(--text-secondary); }
.sample-row span:nth-child(2) { color: var(--text-muted); }
.sample-row span:last-child { font-weight: 600; }

.up { color: #4caf7a; }
.neutral { color: var(--text-muted); }
.down { color: var(--coral); }

/* COVERAGE */
.coverage {
  padding: 120px 0;
  background: var(--bg-deep);
}

.coverage-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.map-visual {
  position: relative;
}

.map-horn {
  background: rgba(10, 42, 42, 0.4);
  border: 1px solid rgba(26, 90, 74, 0.3);
  border-radius: 6px;
  padding: 32px;
  margin-bottom: 20px;
}

.map-horn svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-legend {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.active {
  background: var(--sand);
  box-shadow: 0 0 6px var(--sand);
}

.legend-dot.expanding {
  background: transparent;
  border: 1px solid var(--sand-muted);
}

.measure-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.measure-item {
  padding: 24px 0;
  border-bottom: 1px solid rgba(26, 90, 74, 0.2);
}

.measure-item:last-child { border-bottom: none; }

.measure-item h4 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.measure-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* TIMING */
.timing {
  padding: 120px 0;
  background: var(--bg-dark);
}

.timing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}

.timing-body {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
}

.timing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: start;
}

.timing-card {
  background: rgba(10, 42, 42, 0.3);
  border: 1px solid rgba(26, 90, 74, 0.2);
  border-radius: 4px;
  padding: 24px;
}

.timing-icon {
  font-family: 'Fraunces', serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--sand);
  margin-bottom: 12px;
  background: rgba(201, 169, 110, 0.1);
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 3px;
  padding: 4px 8px;
  display: inline-block;
}

.timing-card h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.timing-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.quote-block {
  border-left: 2px solid var(--sand-muted);
  padding-left: 32px;
  max-width: 680px;
}

.quote-block blockquote {
  font-family: 'Fraunces', serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 300;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.quote-block cite {
  font-size: 13px;
  color: var(--text-muted);
  font-style: normal;
}

/* CLOSING */
.closing {
  position: relative;
  padding: 160px 0 120px;
  overflow: hidden;
  background: var(--bg-deep);
}

.closing-bg {
  position: absolute;
  inset: 0;
}

.closing-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
}

.wave-1 {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(10, 42, 42, 0.5) 50%,
    rgba(13, 53, 53, 0.8) 100%
  );
  clip-path: polygon(0 100%, 0 70%, 10% 75%, 20% 65%, 35% 75%, 50% 60%, 65% 70%, 78% 55%, 90% 68%, 100% 60%, 100% 100%);
}

.wave-2 {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(201, 169, 110, 0.06) 50%,
    rgba(201, 169, 110, 0.1) 100%
  );
  height: 100px;
  clip-path: polygon(0 100%, 0 50%, 15% 60%, 30% 45%, 45% 55%, 60% 40%, 75% 52%, 90% 45%, 100% 55%, 100% 100%);
}

.closing-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.closing-headline {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.closing-sub {
  max-width: 560px;
  margin: 0 auto 48px;
}

.closing-sub p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.closing-sub p:last-child { margin-bottom: 0; }

.closing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand-muted);
  padding: 8px 16px;
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 2px;
}

/* FOOTER */
footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(26, 90, 74, 0.2);
  padding: 80px 0 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 60px;
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-name {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-link {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--sand-light); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 5vw 0;
  border-top: 1px solid rgba(26, 90, 74, 0.15);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-coords { font-family: 'DM Sans', monospace; letter-spacing: 0.05em; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .problem-grid,
  .coverage-layout,
  .timing-grid,
  .approach-grid { grid-template-columns: 1fr; gap: 48px; }

  .approach-grid { grid-template-columns: 1fr; }

  .hero-stats {
    flex-wrap: wrap;
    gap: 0;
  }

  .stat { padding: 16px 24px; }

  .contrast-bar { grid-template-columns: 1fr; }

  .timing-cards { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 40px; }

  .footer-links { grid-template-columns: 1fr 1fr; }

  .footer-bottom { flex-direction: column; gap: 8px; }

  .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
  .hero-stats { display: none; }

  .footer-links { grid-template-columns: 1fr; }
}