/* ==========================================================================
   EdgeSight NVR — marketing site
   Design system: deep navy / slate, teal + amber accents.
   ========================================================================== */

:root {
  /* Palette */
  --navy-950: #080d16;
  --navy-900: #0b1220;
  --navy-850: #0f1829;
  --navy-800: #142033;
  --navy-700: #1d2c44;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-300: #5eead4;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --white: #ffffff;

  /* Semantics */
  --bg-page: var(--white);
  --bg-alt: var(--slate-50);
  --text-strong: var(--slate-900);
  --text-body: var(--slate-600);
  --border: var(--slate-200);

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;

  /* Layout */
  --container: 1160px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(8, 13, 22, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--text-strong);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.015em;
}

p { margin: 0 0 1em; }

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

img, svg { max-width: 100%; height: auto; }

code, .mono { font-family: var(--font-mono); font-size: 0.92em; }

/* ---------- layout primitives ---------- */

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

.section {
  padding: 96px 0;
}

.section--alt { background: var(--bg-alt); }

.section--dark {
  background: var(--navy-900);
  color: var(--slate-400);
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--teal-400); }

.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 16px;
}

.section-head .lede {
  font-size: 18px;
  color: var(--text-body);
}
.section--dark .lede { color: var(--slate-400); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: linear-gradient(180deg, var(--teal-500), var(--teal-600));
  color: var(--white);
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn--primary:hover {
  background: linear-gradient(180deg, var(--teal-400), var(--teal-500));
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn:focus-visible {
  outline: 2px solid var(--teal-400);
  outline-offset: 2px;
}

.btn--ghost {
  background: transparent;
  color: var(--slate-300);
  border-color: var(--navy-700);
}
.btn--ghost:hover { border-color: var(--slate-500); color: var(--white); }

.btn--outline {
  background: var(--white);
  color: var(--slate-700);
  border-color: var(--border);
}
.btn--outline:hover { border-color: var(--slate-400); }

.btn--lg { padding: 16px 32px; font-size: 16.5px; }

/* ---------- announcement topbar ---------- */
/* Establishment signal: mature products surface their release cadence. */

.topbar {
  background: var(--navy-850);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: var(--slate-400);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 24px;
  flex-wrap: wrap;
  text-align: center;
}
.topbar .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-400);
  margin-right: 8px;
  vertical-align: 1px;
}
.topbar a { color: var(--teal-400); font-weight: 600; white-space: nowrap; }

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 13, 22, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.25s ease;
}
/* Elevation appears only once the page scrolls — quiet depth cue. */
.site-header.scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45); }

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  letter-spacing: -0.01em;
  text-decoration: none !important;
}
.brand .brand-mark { flex: 0 0 auto; display: block; }
.brand span.tag {
  font-weight: 500;
  color: var(--slate-500);
  font-size: 13px;
  border-left: 1px solid var(--navy-700);
  padding-left: 10px;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--slate-300);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--white); }
/* Scroll-spy: the section you're reading is reflected in the nav. */
.nav-links a.active { color: var(--white); border-bottom-color: var(--teal-500); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 9px 18px; font-size: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--slate-300);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(20, 184, 166, 0.13), transparent 60%),
    radial-gradient(800px 400px at 12% 110%, rgba(217, 119, 6, 0.07), transparent 55%),
    var(--navy-950);
  color: var(--slate-400);
  padding: 116px 0 108px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

/* Two-line lockup: each sentence is its own block, sized so neither wraps
   mid-thought at desktop widths. */
.hero h1 {
  color: var(--white);
  font-size: clamp(31px, 3.9vw, 42px);
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--teal-400); }

.hero .sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--slate-400);
  margin-bottom: 34px;
  max-width: 34em;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 14px;
  color: var(--slate-500);
}
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof svg { color: var(--teal-500); flex: 0 0 auto; }

.hero-visual {
  position: relative;
  min-width: 0;
}
/* Soft ambient glow grounds the console without adding elements. */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -8% -6%;
  background: radial-gradient(60% 55% at 50% 55%, rgba(20, 184, 166, 0.14), transparent 70%);
  pointer-events: none;
}
.hero-visual .console {
  position: relative;
  background: var(--navy-850);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

/* ---------- trust band (below hero) ---------- */
/* Institutional strip: anchors the fold with the four load-bearing claims. */

.trust-band {
  background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 26px 0;
}
.trust-band-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px 32px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--slate-400);
}
.trust-item svg { color: var(--teal-500); flex: 0 0 auto; }
.trust-item strong { color: var(--slate-300); font-weight: 600; display: block; font-size: 14px; }
.trust-item span { display: block; font-size: 12.5px; color: var(--slate-500); }

/* ---------- product screens showcase ---------- */
/* Product presence: show the apps, don't just claim them. */

.screens-band { overflow: hidden; }
.screens-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.5fr 1.1fr;
  gap: 32px;
  align-items: end;
}
.screen-frame {
  background: var(--navy-850);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.screen-caption {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--slate-500);
  text-align: center;
}
.screen-caption strong { color: var(--slate-300); display: block; font-size: 14px; margin-bottom: 2px; }

/* ---------- reveal on scroll ---------- */
/* Subtle rise-in; disabled automatically for reduced-motion users. */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- problem strip ---------- */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.problem-card {
  background: var(--navy-850);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.problem-card h3 { font-size: 16.5px; color: var(--white); margin-bottom: 8px; }
.problem-card p { font-size: 14.5px; margin: 0; color: var(--slate-400); }
.problem-card .x {
  color: var(--amber-500);
  font-weight: 700;
  margin-right: 6px;
}

/* ---------- value props (why) ---------- */

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.value-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.value-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 148, 136, 0.1);
  color: var(--teal-600);
  margin-bottom: 18px;
}
.value-card h3 { font-size: 18px; }
.value-card p { font-size: 15px; margin: 0; }

/* ---------- features ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: 0; }
.feature-row.rev .feature-copy { order: 2; }
.feature-row.rev .feature-visual { order: 1; }

.feature-copy h3 { font-size: 26px; margin-bottom: 14px; }
.feature-copy p { font-size: 16px; }

.feature-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.feature-list li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  align-items: flex-start;
}
.feature-list svg { color: var(--teal-600); flex: 0 0 auto; margin-top: 4px; }

.feature-visual {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--slate-50);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  min-width: 0;
}

/* ---------- card grids (integrations, faq, etc.) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.plain-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.plain-card h3 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.plain-card h3 svg { color: var(--teal-600); }
.plain-card p { font-size: 14.5px; margin: 0; }
.plain-card .pill-row { margin-top: 14px; }

.pill {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate-600);
  background: var(--slate-100);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  margin: 0 6px 6px 0;
}

/* ---------- how it works ---------- */

.arch-diagram {
  background: var(--navy-850);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-lg);
  padding: 8px;
  margin-bottom: 48px;
  overflow-x: auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  background: var(--navy-850);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.step .n {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  background: rgba(20, 184, 166, 0.14);
  color: var(--teal-400);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}
.step h3 { font-size: 16.5px; color: var(--white); }
.step p { font-size: 14.5px; margin: 0; color: var(--slate-400); }

/* ---------- technology ---------- */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.tech-card {
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal-600);
  border-radius: var(--radius);
  background: var(--white);
  padding: 24px 24px;
  box-shadow: var(--shadow-sm);
}
.tech-card h3 { font-size: 16.5px; }
.tech-card p { font-size: 14.5px; margin: 0; }
.tech-card code {
  font-size: 12.5px;
  color: var(--teal-600);
  background: var(--slate-50);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
}

/* ---------- testimonials ---------- */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.quote {
  background: var(--navy-850);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
/* Oversized quote glyph anchors each card without adding noise. */
.quote::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  right: 20px;
  font-size: 64px;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--navy-700);
  pointer-events: none;
}
.quote blockquote {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--slate-300);
}
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-700);
  color: var(--teal-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex: 0 0 auto;
}
.quote .who strong { display: block; color: var(--white); font-size: 14.5px; }
.quote .who span { font-size: 13px; color: var(--slate-500); }

/* ---------- pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.price-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.price-card--featured {
  border-color: var(--teal-600);
  box-shadow: var(--shadow-md);
}
.price-card .flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal-600);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { font-size: 19px; margin-bottom: 4px; }
.price-card .for { font-size: 14px; color: var(--slate-500); margin-bottom: 20px; }
.price-card .price { font-size: 40px; font-weight: 700; color: var(--text-strong); letter-spacing: -0.02em; }
.price-card .price small { font-size: 15px; font-weight: 500; color: var(--slate-500); letter-spacing: 0; }
.price-card .per { font-size: 13.5px; color: var(--slate-500); margin-bottom: 22px; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
}
.price-card li { display: flex; gap: 10px; font-size: 14.5px; align-items: flex-start; }
.price-card li svg { color: var(--teal-600); flex: 0 0 auto; margin-top: 4px; }
.price-card .btn { margin-top: auto; justify-content: center; }

.pricing-note {
  text-align: center;
  font-size: 14px;
  color: var(--slate-500);
  margin-top: 34px;
}

/* ---------- FAQ ---------- */

.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text-strong);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform 0.2s ease; color: var(--slate-400); flex: 0 0 auto; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 22px 20px; font-size: 15px; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: start;
}
.about-copy p { font-size: 16.5px; }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stat {
  border: 1px solid var(--navy-700);
  background: var(--navy-850);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.stat .big { font-size: 28px; font-weight: 700; color: var(--teal-400); letter-spacing: -0.02em; }
.stat .label { font-size: 13.5px; color: var(--slate-500); margin-top: 4px; }

/* ---------- company timeline (about) ---------- */
/* Operating history rendered as a ledger, not a brag wall. */

.milestones {
  margin-top: 44px;
  border-top: 1px solid var(--navy-700);
  padding-top: 8px;
}
.milestone {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14.5px;
}
.milestone:last-child { border-bottom: 0; }
.milestone .yr {
  font-family: var(--font-mono);
  color: var(--teal-400);
  font-size: 13.5px;
  padding-top: 1px;
}
.milestone p { margin: 0; color: var(--slate-400); }
.milestone p strong { color: var(--slate-300); font-weight: 600; }

/* ---------- form microcopy ---------- */

.form-note {
  font-size: 12.5px;
  color: var(--slate-500);
  text-align: center;
  margin: 12px 0 0;
}

/* ---------- video placeholder (2-minute tour) ---------- */

.video-shell {
  aspect-ratio: 16 / 9;
  background: var(--navy-900);
  border-radius: var(--radius);
  border: 1px solid var(--navy-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  color: var(--slate-500);
  font-size: 13.5px;
}
.video-shell .play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.14);
  border: 1px solid var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-400);
}
.modal--wide { max-width: 720px; }

/* ---------- resources ---------- */

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.resource-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  text-decoration: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.resource-card:hover { border-color: var(--teal-600); box-shadow: var(--shadow-md); }
.resource-card h3 { font-size: 16px; color: var(--text-strong); }
.resource-card p { font-size: 14px; margin: 0; color: var(--text-body); }
.resource-card .go { font-size: 13.5px; font-weight: 600; color: var(--teal-600); margin-top: 12px; display: inline-block; }

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

.cta-band {
  background:
    radial-gradient(900px 400px at 50% -20%, rgba(20, 184, 166, 0.16), transparent 60%),
    var(--navy-950);
  text-align: center;
  padding: 96px 0;
}
.cta-band h2 { color: var(--white); font-size: clamp(28px, 4vw, 40px); }
.cta-band p { color: var(--slate-400); font-size: 18px; max-width: 36em; margin: 0 auto 34px; }
.cta-band .hero-ctas { justify-content: center; margin-bottom: 0; }

/* ---------- forms / modal ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 13, 22, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.modal-backdrop.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal h3 { font-size: 22px; margin-bottom: 6px; }
.modal .modal-sub { font-size: 14.5px; color: var(--slate-500); margin-bottom: 24px; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--slate-400);
  cursor: pointer;
  padding: 6px;
}
.modal-close:hover { color: var(--slate-700); }

.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-strong);
  background: var(--white);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(13, 148, 136, 0.35);
  border-color: var(--teal-600);
}

.form-success {
  display: none;
  text-align: center;
  padding: 28px 0 12px;
}
.form-success svg { color: var(--teal-600); margin-bottom: 14px; }
.form-success h4 { font-size: 19px; }
.form-success p { font-size: 14.5px; color: var(--slate-500); margin: 0; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy-950);
  color: var(--slate-500);
  padding: 72px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand p { max-width: 30em; margin-top: 14px; }
.site-footer h4 {
  color: var(--slate-300);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--slate-500); }
.site-footer ul a:hover { color: var(--slate-300); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.footer-bottom a { color: var(--slate-500); margin-left: 20px; }

/* ---------- docs & legal pages ---------- */

.page-hero {
  background: var(--navy-950);
  padding: 72px 0 56px;
}
.page-hero h1 { color: var(--white); font-size: clamp(30px, 4vw, 42px); margin-bottom: 10px; }
.page-hero p { color: var(--slate-400); font-size: 17px; max-width: 44em; margin: 0; }

.docs-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  padding: 64px 0 96px;
}
.docs-nav {
  position: sticky;
  top: 96px;
  align-self: start;
  border-left: 2px solid var(--border);
}
.docs-nav a {
  display: block;
  padding: 7px 0 7px 18px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--slate-500);
  font-size: 14px;
  font-weight: 500;
}
.docs-nav a:hover { color: var(--teal-600); text-decoration: none; }
.docs-nav a.active { color: var(--teal-600); border-left-color: var(--teal-600); }

.docs-body h2 {
  font-size: 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.docs-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.docs-body h3 { font-size: 18px; margin-top: 32px; }
.docs-body p, .docs-body li { font-size: 15.5px; }
.docs-body pre {
  background: var(--navy-900);
  color: var(--slate-300);
  border-radius: var(--radius);
  padding: 18px 22px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
}
.docs-body pre .c { color: var(--slate-500); }
.docs-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 20px 0;
}
.docs-body th, .docs-body td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--border);
}
.docs-body th { background: var(--slate-50); color: var(--text-strong); font-size: 13.5px; }

.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber-500);
  background: var(--slate-50);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14.5px;
  margin: 20px 0;
}

.legal-body { max-width: 780px; padding: 64px 0 96px; }
.legal-body h2 { font-size: 20px; margin-top: 40px; }
.legal-body p, .legal-body li { font-size: 15px; }
.legal-body .updated { color: var(--slate-500); font-size: 14px; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 640px; }
  .screens-grid { grid-template-columns: 1fr; align-items: stretch; max-width: 560px; margin: 0 auto; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .feature-row.rev .feature-copy { order: 1; }
  .feature-row.rev .feature-visual { order: 2; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .docs-layout { grid-template-columns: 1fr; gap: 32px; }
  .docs-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px 18px; border-left: 0; }
  .docs-nav a { border-left: 0; padding: 4px 0; }
}

@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .topbar-detail { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy-950);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--navy-700);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-cta .btn--ghost { display: none; }
  .brand span.tag { display: none; }
  .footer-bottom { flex-direction: column; }
  .footer-bottom a { margin-left: 0; margin-right: 20px; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .quote::before { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* ---------- utilities ---------- */

.mt-0 { margin-top: 0; }
.center { text-align: center; }
