/* ==========================================================================
   SeaVRO — corporate site stylesheet
   ========================================================================== */

:root {
  --navy-950: #06121f;
  --navy-900: #0a1a2b;
  --navy-800: #10263c;
  --navy-700: #1a3450;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --cyan-300: #67e8f9;
  --ink: #14212e;
  --ink-soft: #46586a;
  --paper: #f7fafc;
  --paper-2: #eef3f7;
  --line: #dbe4ec;
  --line-dark: rgba(255, 255, 255, 0.10);
  --white: #ffffff;
  --max: 1120px;
  --radius: 14px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 18, 31, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand .vro { color: var(--teal-400); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--white); text-decoration: none; }
.nav-links a.active { color: var(--teal-400); }
.nav-links a.btn { color: var(--navy-950); }
.nav-links a.btn:hover { color: var(--navy-950); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--teal-400);
  color: var(--navy-950);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--cyan-300); text-decoration: none; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }

.btn-dark {
  background: var(--navy-900);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-700); color: var(--white); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 75% -10%, rgba(20, 184, 166, 0.18), transparent 60%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 70%, var(--navy-800) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-inner {
  padding: 96px 0 72px;
  max-width: 720px;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero p.lede {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 32px;
  max-width: 58ch;
}

.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-wave {
  display: block;
  width: 100%;
  height: 70px;
  margin-top: -1px;
}

/* ---------- Sections ---------- */

section { padding: 72px 0; }
section.tight { padding: 56px 0; }
section.alt { background: var(--paper-2); }
section.dark { background: var(--navy-900); color: var(--white); }
section.dark h2 { color: var(--white); }
section.dark p { color: rgba(255, 255, 255, 0.75); }

.kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 10px;
}
section.dark .kicker { color: var(--teal-400); }

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

h3 { font-size: 1.15rem; margin-bottom: 8px; }

.section-intro { max-width: 62ch; color: var(--ink-soft); font-size: 1.05rem; }
section.dark .section-intro { color: rgba(255, 255, 255, 0.75); }

/* ---------- Cards & grids ---------- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card p { color: var(--ink-soft); font-size: 0.97rem; }

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(20, 184, 166, 0.12);
  color: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }

.card.product {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card.product .tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-600);
  background: rgba(20, 184, 166, 0.12);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.card.product h3 { font-size: 1.4rem; }
.card.product .more { margin-top: auto; padding-top: 18px; font-weight: 600; }

section.dark .card {
  background: var(--navy-800);
  border-color: var(--line-dark);
}
section.dark .card p { color: rgba(255, 255, 255, 0.72); }
section.dark .card h3 { color: var(--white); }

/* ---------- Steps ---------- */

.steps { counter-reset: step; margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding: 28px 24px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--teal-600);
  margin-bottom: 10px;
}
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Feature list ---------- */

.feature-list { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.feature-list li strong { color: var(--ink); }
section.dark .feature-list li { color: rgba(255, 255, 255, 0.75); }
section.dark .feature-list li strong { color: var(--white); }
.feature-list .tick {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.15);
  color: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- Split layout ---------- */

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; margin-top: 8px; }
.split .visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
section.dark .split .visual { border-color: var(--line-dark); }

/* ---------- Stat band ---------- */

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; text-align: center; }
.stat .num { font-size: 2.2rem; font-weight: 800; color: var(--teal-400); letter-spacing: -0.02em; }
.stat .label { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); margin-top: 4px; }

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  background:
    radial-gradient(900px 400px at 80% -20%, rgba(20, 184, 166, 0.16), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
  color: var(--white);
  padding: 72px 0 56px;
}
.page-hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: 14px;
}
.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 20ch;
}
.page-hero p { color: rgba(255, 255, 255, 0.78); max-width: 60ch; font-size: 1.1rem; }

/* ---------- Notice / callout ---------- */

.callout {
  margin-top: 40px;
  border-left: 4px solid var(--teal-500);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
  color: var(--ink-soft);
}
.callout strong { color: var(--ink); }
section.dark .callout { background: var(--navy-800); color: rgba(255, 255, 255, 0.75); }
section.dark .callout strong { color: var(--white); }

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(800px 300px at 20% 120%, rgba(20, 184, 166, 0.2), transparent 60%),
    var(--navy-950);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, 0.72); max-width: 55ch; margin: 0 auto 28px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.6);
  padding: 56px 0 32px;
  font-size: 0.92rem;
  border-top: 1px solid var(--line-dark);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: rgba(255, 255, 255, 0.6); }
.site-footer a:hover { color: var(--white); text-decoration: none; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 700; font-size: 1.15rem; margin-bottom: 12px; }
.footer-brand .mark { width: 26px; height: 26px; }
.footer-brand .vro { color: var(--teal-400); }
.footer-legal {
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .grid-3, .steps { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: 1fr; gap: 28px; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-950);
    border-bottom: 1px solid var(--line-dark);
    padding: 8px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 10px 24px; }
  .nav-links a.btn { display: inline-block; margin-top: 6px; }
}

@media (max-width: 560px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero-inner { padding: 72px 0 56px; }
}

/* ==========================================================================
   Visuals & motion (added)
   ========================================================================== */

/* ---------- Hero split layout ---------- */

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 80px 0 64px;
}
.hero-grid .hero-inner { padding: 0; max-width: none; }

.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  background: #071626;
}
.hero-visual svg { display: block; width: 100%; height: auto; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 64px 0 56px; }
}

/* ---------- Detection scene animation ---------- */

@keyframes wave-drift-a { from { transform: translateX(0); } to { transform: translateX(-80px); } }
@keyframes wave-drift-b { from { transform: translateX(-60px); } to { transform: translateX(0); } }
@keyframes log-bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(3.5px) rotate(1deg); }
}
@keyframes scan-sweep {
  0%   { transform: translateX(-60px); opacity: 0; }
  8%   { opacity: 0.9; }
  46%  { opacity: 0.9; }
  54%  { transform: translateX(560px); opacity: 0; }
  100% { transform: translateX(560px); opacity: 0; }
}
@keyframes box-pulse {
  0%, 100% { opacity: 0.95; }
  50%      { opacity: 0.55; }
}
@keyframes blip {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}
@keyframes ping {
  0%   { transform: scale(0.4); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.scene .wave-a { animation: wave-drift-a 9s linear infinite; }
.scene .wave-b { animation: wave-drift-b 13s linear infinite; }
.scene .log-group { animation: log-bob 5.5s ease-in-out infinite; transform-origin: center; }
.scene .scanline { animation: scan-sweep 7s ease-in-out infinite; }
.scene .det-box { animation: box-pulse 2.4s ease-in-out infinite; }
.scene .rec-dot { animation: blip 1.6s ease-in-out infinite; }
.scene .ping-ring { animation: ping 2.4s ease-out infinite; transform-origin: center; transform-box: fill-box; }

/* ---------- Diagram panels ---------- */

.diagram {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}
section.dark .diagram { background: var(--navy-800); border-color: var(--line-dark); }
section.dark .diagram figcaption { color: rgba(255, 255, 255, 0.6); }

/* ---------- Hover micro-interactions ---------- */

.card, .step {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover, .step:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(10, 26, 43, 0.10);
  border-color: rgba(20, 184, 166, 0.45);
}
section.dark .card:hover, section.dark .step:hover {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

/* ---------- Scroll reveal (classes applied by js/site.js) ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0s);
}
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .scene .wave-a, .scene .wave-b, .scene .log-group, .scene .scanline,
  .scene .det-box, .scene .rec-dot, .scene .ping-ring { animation: none; }
  .scene .scanline { opacity: 0; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .step { transition: none; }
  .card:hover, .step:hover { transform: none; }
  html { scroll-behavior: auto; }
}
