/* =====================================================================
   Radial Analytics — styles.css
   Palette: deep pine-teal + warm paper + single water-aqua accent
   Type: Space Grotesk (display) · Space Mono (labels) · Inter (body)
   ===================================================================== */

:root {
  /* Brand — Deep Water */
  --abyss:      #062A34;   /* deepest dark, hero base */
  --pine:       #0E3A46;   /* dark surfaces / dark sections */
  --pine-2:     #0A2E38;   /* gradient stop */
  --aqua:       #58C6D6;   /* accent: water cyan (dark bg / graphics) */
  --aqua-deep:  #196B78;   /* accent usable as text/label on light (AA) */
  --sage:       #9FC2C6;   /* muted secondary on dark */

  /* Ground */
  --paper:      #F2F4EF;   /* page background */
  --limestone:  #E2E7DF;   /* alternating section bg */
  --line:       #D3D8CF;   /* hairlines on light */

  /* Text */
  --ink:        #0B2A33;   /* headings on light */
  --body:       #46514F;   /* body on light */
  --body-dim:   #657069;   /* captions on light */
  --paper-dim:  rgba(242,244,239,0.80); /* body on dark */

  /* Layout */
  --container: 1200px;
  --pad-x: 40px;
  --radius: 14px;

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--aqua); color: var(--abyss); }

/* Accessibility: skip link + focus */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--pine); color: var(--paper);
  padding: 12px 18px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--aqua-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }

/* Section rhythm */
.section { padding: 120px 0; position: relative; }
.section--tight { padding: 88px 0; }
.bg-limestone { background: var(--limestone); }
.bg-pine { background: var(--pine); color: var(--paper); }

/* Eyebrow — telemetry-style label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--aqua-deep);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--aqua-deep); flex: none;
}
.on-dark .eyebrow, .bg-pine .eyebrow { color: var(--aqua); }
.on-dark .eyebrow::before, .bg-pine .eyebrow::before {
  background: var(--aqua); box-shadow: 0 0 12px rgba(111,199,186,0.7);
}

/* Headings */
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; }
.bg-pine h2, .bg-pine h3, .on-dark h1, .on-dark h2, .on-dark h3 { color: var(--paper); }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 400; }
h3 { font-size: 21px; letter-spacing: -0.01em; }
.section-lead { font-size: 19px; color: var(--body); max-width: 60ch; margin-top: 20px; }
.bg-pine .section-lead { color: var(--paper-dim); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--pine); color: var(--paper); }
.btn-primary:hover { background: var(--abyss); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--pine); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--pine); }
.on-dark .btn-primary, .bg-pine .btn-primary { background: var(--paper); color: var(--pine); }
.on-dark .btn-primary:hover, .bg-pine .btn-primary:hover { background: #fff; }
.on-dark .btn-ghost, .bg-pine .btn-ghost { color: var(--paper); border-color: rgba(245,241,232,0.3); }
.on-dark .btn-ghost:hover, .bg-pine .btn-ghost:hover { border-color: var(--aqua); color: var(--aqua); }

/* =========================== NAV =========================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad-x);
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.nav.scrolled {
  background: rgba(245,241,232,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark { width: 34px; height: 34px; }
.brand .name {
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
  letter-spacing: -0.01em; color: var(--paper);
}
.nav.scrolled .brand .name { color: var(--ink); }
.nav.scrolled .brand .mark .rs-ring { stroke: var(--pine); }
.nav.scrolled .brand .mark .rs-core { fill: var(--pine); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; color: var(--paper-dim); transition: color .2s ease;
}
.nav-links a:hover { color: var(--paper); }
.nav.scrolled .nav-links a { color: var(--body); }
.nav.scrolled .nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: var(--pine); }
.nav-links .btn { background: var(--aqua); }
.nav-links .btn:hover { background: #fff; transform: translateY(-1px); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; position: relative;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--paper);
  transition: transform .3s ease, opacity .3s ease, background .3s ease;
}
.nav.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu drawer */
.mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 99;
  background: var(--abyss);
  flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 8px; padding: 0 var(--pad-x);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 30px; font-weight: 400;
  color: var(--paper); text-decoration: none; padding: 8px 0;
}
.mobile-menu a:hover { color: var(--aqua); }
.mobile-menu .btn { margin-top: 20px; }

/* =========================== HERO =========================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background:
    radial-gradient(ellipse at 78% 32%, rgba(111,199,186,0.16) 0%, transparent 52%),
    radial-gradient(ellipse at 20% 80%, rgba(46,125,110,0.28) 0%, transparent 55%),
    linear-gradient(180deg, var(--abyss) 0%, var(--pine-2) 100%);
  color: var(--paper);
  overflow: hidden;
}
.hero .container { position: relative; z-index: 3; padding-top: 110px; padding-bottom: 60px; }
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(169,195,180,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169,195,180,0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 82%);
}
.hero-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero h1 {
  font-size: clamp(42px, 6.2vw, 82px);
  font-weight: 400; line-height: 1.0; letter-spacing: -0.03em;
  max-width: 15ch; margin-bottom: 26px; color: var(--paper);
}
.hero h1 em { font-style: normal; color: var(--aqua); }
.hero p.lead {
  font-size: clamp(17px, 2vw, 20px); color: var(--paper-dim);
  max-width: 52ch; margin-bottom: 36px; line-height: 1.6;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Signature radial-scan visual */
.radial-scan { position: relative; width: 100%; max-width: 460px; margin-left: auto; aspect-ratio: 1; }
.radial-scan svg { width: 100%; height: 100%; overflow: visible; }
.rs-sweep { transform-origin: 250px 250px; animation: rs-rotate 7s linear infinite; }
.rs-ping { transform-origin: 250px 250px; animation: rs-ping 4.5s ease-out infinite; }
.rs-ping.d2 { animation-delay: 1.5s; }
.rs-ping.d3 { animation-delay: 3s; }
@keyframes rs-rotate { to { transform: rotate(360deg); } }
@keyframes rs-ping {
  0%   { r: 40px; opacity: 0.9; }
  100% { r: 235px; opacity: 0; }
}
.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sage); display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue .line { width: 1px; height: 30px; background: var(--sage); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0%,100% { opacity: .25; } 50% { opacity: 1; } }

/* =========================== STAT / PROOF BAR =========================== */
.statbar { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stat .num { font-family: var(--font-display); font-size: 40px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; }
.stat .num .unit { color: var(--aqua-deep); }
.stat .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--body-dim); margin-top: 8px; }
.stat .sub { font-size: 13px; color: var(--body-dim); margin-top: 6px; }

/* =========================== GENERIC GRID CARDS =========================== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.bg-limestone .card { background: #fff; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(18,60,52,0.4); border-color: var(--aqua-deep); }
.card .ic { width: 46px; height: 46px; margin-bottom: 18px; color: var(--aqua-deep); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--body); }

/* Problem list */
.problem-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 44px; margin-top: 12px; }
.problem-item { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid rgba(245,241,232,0.16); }
.problem-item .k { font-family: var(--font-mono); font-size: 13px; color: var(--aqua); flex: none; padding-top: 3px; }
.problem-item h3 { font-size: 18px; margin-bottom: 6px; }
.problem-item p { font-size: 15px; color: var(--paper-dim); }

/* How it works — numbered steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 16px; }
.step { position: relative; padding-top: 30px; }
.step .n {
  font-family: var(--font-mono); font-size: 12px; color: var(--aqua-deep);
  position: absolute; top: 0; left: 0; letter-spacing: 0.1em;
}
.step .ic { width: 40px; height: 40px; color: var(--aqua-deep); margin-bottom: 16px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15px; }
.steps.connected .step::after {
  content: ''; position: absolute; top: 6px; left: 46px; right: -12px; height: 1px;
  background: var(--line);
}
.steps.connected .step:last-child::after { display: none; }

/* Technology split */
.tech-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.tech-points { list-style: none; margin-top: 8px; }
.tech-points li { padding: 20px 0; border-top: 1px solid var(--line); }
.tech-points li:last-child { border-bottom: 1px solid var(--line); }
.tech-points h3 { font-size: 18px; margin-bottom: 6px; }
.tech-points p { font-size: 15px; color: var(--body); }
.tech-visual {
  background: linear-gradient(160deg, var(--pine) 0%, var(--abyss) 100%);
  border-radius: var(--radius); aspect-ratio: 4/3; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.tech-visual svg { width: 82%; height: 82%; }

/* Benefits — targets flagged */
.benefit-cards { margin-top: 16px; }
.benefit .metric { font-family: var(--font-display); font-size: 34px; color: var(--ink); font-weight: 500; }
.benefit .metric .unit { color: var(--aqua-deep); font-size: 22px; }
.benefit .tag {
  display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--aqua-deep); background: rgba(46,125,110,0.1);
  border: 1px solid rgba(46,125,110,0.25); border-radius: 999px; padding: 4px 10px; margin-bottom: 14px;
}
.benefit h3 { margin: 6px 0 8px; }
.disclaimer {
  margin-top: 30px; font-size: 13.5px; color: var(--body-dim);
  border-left: 2px solid var(--aqua-deep); padding: 6px 0 6px 16px; max-width: 76ch;
}

/* Sectors */
.sector-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 16px; }
.sector { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.sector .stage { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--aqua-deep); margin-bottom: 14px; display: block; }
.sector.future { background: transparent; border-style: dashed; }
.sector h3 { font-size: 19px; margin-bottom: 8px; }
.sector p { font-size: 15px; }

/* Trials */
.trials-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.trials-facts { list-style: none; margin-top: 8px; }
.trials-facts li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(245,241,232,0.16); font-size: 15.5px; color: var(--paper-dim); }
.trials-facts li::before { content: '›'; color: var(--aqua); font-weight: 700; }
.trials-note { font-size: 13px; color: var(--sage); margin-top: 22px; }

/* About */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.about-wrap p { font-size: 16.5px; margin-bottom: 18px; }
.about-meta { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 8px; }
.about-meta dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--body-dim); }
.about-meta dd { font-size: 16px; color: var(--ink); margin: 4px 0 18px; }

/* Contact */
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.contact-side p { color: var(--paper-dim); font-size: 16px; margin-bottom: 24px; max-width: 42ch; }
.contact-side a.email { font-family: var(--font-mono); color: var(--aqua); text-decoration: none; font-size: 15px; }
.contact-side a.email:hover { text-decoration: underline; }
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--paper-dim); margin-bottom: 8px;
}
.form-field input, .form-field textarea {
  width: 100%; background: rgba(245,241,232,0.06); border: 1px solid rgba(245,241,232,0.22);
  border-radius: 10px; padding: 14px 16px; color: var(--paper); font-family: var(--font-body); font-size: 15px;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(245,241,232,0.4); }
.form-field input:focus, .form-field textarea:focus { border-color: var(--aqua); background: rgba(245,241,232,0.1); outline: none; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 12.5px; color: var(--sage); margin-top: 10px; }

/* =========================== FOOTER =========================== */
.footer { background: var(--abyss); color: var(--paper-dim); padding: 72px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(245,241,232,0.12); }
.footer .brand .name { color: var(--paper); }
.footer-blurb { margin-top: 18px; font-size: 14.5px; max-width: 38ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); margin-bottom: 16px; }
.footer-col a { display: block; text-decoration: none; color: var(--paper-dim); font-size: 14.5px; padding: 6px 0; }
.footer-col a:hover { color: var(--aqua); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; font-size: 13px; color: var(--sage); font-family: var(--font-mono); }

/* =========================== REVEAL ANIMATION =========================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================== RESPONSIVE =========================== */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero-layout { grid-template-columns: 1fr; gap: 20px; }
  .radial-scan { max-width: 340px; margin: 0 auto; order: -1; }
  .tech-split, .trials-wrap, .about-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  .steps, .grid-4, .stat-grid { grid-template-columns: 1fr 1fr; }
  .steps.connected .step::after { display: none; }
  .grid-3, .sector-row, .grid-2 { grid-template-columns: 1fr; }
  .problem-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --pad-x: 22px; }
  .section { padding: 80px 0; }
  .steps, .grid-4, .stat-grid, .benefit-cards.grid-3 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero .container { padding-top: 96px; }
}

/* =========================== REDUCED MOTION =========================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .rs-sweep, .rs-ping { animation: none !important; }
  .rs-ping { opacity: 0.35 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* =====================================================================
   HERO VIDEO (Deep Water) — added for landing background
   Video sits dimmed behind content; strong overlay keeps text AA-legible.
   ===================================================================== */
.hero--video { position: relative; overflow: hidden; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.70; z-index: 1; pointer-events: none;
}
.hero-video-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(105deg, rgba(6,42,52,0.90) 0%, rgba(6,42,52,0.80) 45%, rgba(6,42,52,0.55) 60%, rgba(6,42,52,0.15) 72%, rgba(6,42,52,0) 100%),
    linear-gradient(180deg, rgba(6,42,52,0.30) 0%, transparent 22%, transparent 60%, rgba(6,42,52,0.50) 100%),
    linear-gradient(0deg, rgba(14,58,70,0.12), rgba(14,58,70,0.12));
}
.hero--video .hero-content h1,
.hero--video .hero-content p.lead { text-shadow: 0 2px 16px rgba(0,16,22,0.45); }
.hero--video .container { position: relative; z-index: 3; padding-left: 56px; padding-right: 56px; }
.hero-content { max-width: 72ch; }
.hero--video .hero-content h1 { max-width: 52ch; font-size: clamp(38px, 4.8vw, 56px); text-wrap: balance; }
.hero--video .hero-content p.lead { max-width: 58ch; }

/* square dark box for the relocated radial scan */
.tech-visual--scan { aspect-ratio: 1 / 1; }
.tech-visual--scan svg { width: 90%; height: 90%; }

/* Reduced motion: no autoplay video; show a still water poster instead */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero--video {
    background-image:
      linear-gradient(105deg, rgba(6,42,52,0.90) 0%, rgba(6,42,52,0.45) 60%, rgba(6,42,52,0.25) 100%),
      url('../assets/hero-irrigation-poster.jpg');
    background-size: cover; background-position: center;
  }
}

/* keep hero side padding sensible on small screens */
@media (max-width: 700px) {
  .hero--video .container { padding-left: 22px; padding-right: 22px; }
  .hero--video .hero-content h1 { max-width: 20ch; font-size: clamp(34px, 8.5vw, 46px); }
}
