:root {
  color-scheme: dark;
  --bg: #0b0e14;
  --surface: #10131a;
  --surface-2: #191c22;
  --surface-3: #252a31;
  --text: #eef4f5;
  --muted: #a9b7ba;
  --quiet: #728084;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --accent: #00e5ff;
  --lime: #aeea01;
  --amber: #ffab00;
  --violet: #fbbbff;
  --font-header: "Space Grotesk", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100%;
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Oscilloscope graticule — faint graph-paper texture behind the page body. The
   opaque hero image sits above it, so it only reads in the sections below. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.35;
}

main { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--amber);
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 72px;
  padding: 0 clamp(18px, 4vw, 64px);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  height: 28px;
  width: min(250px, 42vw);
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.brand-logo-light { display: none; }

[data-theme="light"] .brand-logo-dark { display: none; }
[data-theme="light"] .brand-logo-light { display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}

.site-nav a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.site-nav a:hover { color: var(--text); background: var(--surface-3); }

.header-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.locale-select {
  min-height: 36px;
  padding: 0 30px 0 11px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  font: 700 13px var(--font-sans);
}

/* ── Sign-in dropdown ───────────────────────────────────────────────────── */
.signin-menu { position: relative; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, white);
  border-radius: 6px;
  color: #061015;
  background: var(--accent);
  font: 700 13px var(--font-sans);
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.header-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

.header-cta .caret { transition: transform 0.2s ease; }
.signin-menu.open .caret { transform: rotate(180deg); }

.signin-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 2px;
  min-width: 232px;
  padding: 6px;
  background: color-mix(in srgb, var(--surface-2) 96%, transparent);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.signin-menu.open .signin-dropdown {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.signin-option {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.signin-option svg { flex: none; color: var(--muted); }
.signin-option:hover { background: var(--surface-3); }
.signin-option:hover svg { color: var(--accent); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(11, 14, 20, 0.98) 0%, rgba(11, 14, 20, 0.92) 28%, rgba(11, 14, 20, 0.46) 56%, rgba(11, 14, 20, 0.1) 100%),
    linear-gradient(180deg, rgba(11, 14, 20, 0.18) 0%, rgba(11, 14, 20, 0.1) 50%, rgba(11, 14, 20, 0.84) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  padding: 128px 0 72px;
  margin-left: clamp(18px, 7vw, 104px);
}

.eyebrow,
.section-kicker,
.feature-tag {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--lime), transparent);
}

h1, h2, h3, p { margin: 0; }

h1, h2 {
  font-family: var(--font-header);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

h1 {
  max-width: 760px;
  margin-top: 18px;
  font-size: clamp(46px, 7vw, 92px);
}

h2 { font-size: clamp(32px, 4.7vw, 60px); }

h3 {
  font-family: var(--font-header);
  font-size: 22px;
  line-height: 1.08;
}

.hero-copy {
  max-width: 640px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 14px;
  transition: filter 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.btn.primary {
  color: #061015;
  background: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 76%, white);
}

.btn.secondary {
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.secondary:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }

/* Non-interactive "coming soon" pill (e.g. Enterprise plan). */
.btn-soon {
  color: var(--quiet);
  background: transparent;
  cursor: default;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}
.btn-soon:hover { filter: none; transform: none; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 620px;
  margin: 42px 0 0;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
}

.hero-metrics div {
  padding: 16px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}

.hero-metrics dt {
  font-family: var(--font-mono);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: var(--quiet);
  font-size: 13px;
}

/* ── Shared section width ───────────────────────────────────────────────── */
.section,
.feature-grid {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin-top: 28px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
}

.proof-strip span {
  flex: 1 1 200px;
  padding: 15px 18px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-align: center;
}

.intro { padding: 104px 0 40px; }
.intro h2, .intro p { max-width: 820px; }
.intro h2 { margin-top: 14px; }
.intro p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
}

/* ── Bento feature grid ─────────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.fit-list article,
.outcomes-grid figure,
.plan {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--surface);
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 232px;
  padding: 24px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
}

.feature-card:hover::after { opacity: 0.7; }

.feature-wide { grid-column: span 2; }

.feature-card h3 { margin-top: 14px; }

.feature-card p,
.fit-list p,
.pricing-head p,
.plan li,
.outcomes-grid p {
  color: var(--muted);
}

.feature-card p {
  margin-top: 12px;
  font-size: 14px;
  max-width: 52ch;
}

.feature-card:nth-child(2) .feature-tag { color: var(--accent); }
.feature-card:nth-child(3) .feature-tag { color: var(--amber); }
.feature-card:nth-child(5) .feature-tag { color: var(--violet); }
.feature-card:nth-child(6) .feature-tag { color: var(--accent); }

/* ── Split / use cases ──────────────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 56px;
  padding: 112px 0 24px;
}

.split-head h2 { margin-top: 14px; }

.fit-list { display: grid; gap: 12px; }

.fit-list article {
  padding: 22px;
  transition: border-color 0.2s ease;
}
.fit-list article:hover { border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); }
.fit-list p { margin-top: 10px; font-size: 15px; }

/* ── Outcomes ───────────────────────────────────────────────────────────── */
.outcomes { padding: 100px 0 24px; }
.outcomes h2 { max-width: 760px; margin-top: 14px; }

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.outcomes-grid figure {
  margin: 0;
  padding: 26px;
  border-left: 2px solid color-mix(in srgb, var(--accent) 55%, var(--line));
}

.outcomes-grid h3 { font-size: 20px; }
.outcomes-grid p { margin-top: 12px; font-size: 14.5px; }

/* ── Pricing ────────────────────────────────────────────────────────────── */
.pricing { padding: 104px 0 96px; }

.pricing-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 32px;
  align-items: end;
}

.pricing-head h2 { margin-top: 14px; }
.pricing-head p { font-size: 16px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 392px;
  padding: 28px;
}

.plan.featured {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent),
              0 24px 60px rgba(0, 0, 0, 0.4);
}

.plan-flag {
  position: absolute;
  top: -10px;
  left: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #061015;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price {
  margin-top: 14px;
  font-family: var(--font-header);
  font-size: 34px;
  line-height: 1;
}

.plan ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.plan li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--accent) 70%, transparent);
}

.plan .btn { margin-top: auto; }

/* ── Final CTA ──────────────────────────────────────────────────────────── */
.final-cta {
  width: min(1180px, calc(100% - 36px));
  margin: 16px auto 80px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(120% 160% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface-2) 92%, black), color-mix(in srgb, var(--surface) 88%, transparent));
}

.final-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.final-cta h2 {
  max-width: 720px;
  margin-top: 12px;
  font-size: clamp(30px, 4vw, 52px);
}

.final-cta .btn { min-height: 50px; padding: 0 26px; font-size: 15px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 80px;
  padding: 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--quiet);
  font-size: 13px;
}

.site-footer span:first-child {
  color: var(--text);
  font-family: var(--font-header);
  font-weight: 700;
}

.site-footer > * + *::before {
  content: "·";
  margin-right: 14px;
  color: var(--line);
}

/* ── Scroll reveal ──────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* Stagger the hero's stacked elements on first paint. */
.hero-content .reveal { transition-delay: 0.04s; }
.hero-content .reveal:nth-child(2) { transition-delay: 0.12s; }
.hero-content .reveal:nth-child(3) { transition-delay: 0.20s; }
.hero-content .reveal:nth-child(4) { transition-delay: 0.28s; }
.hero-content .reveal:nth-child(5) { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Light theme ────────────────────────────────────────────────────────── */
[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --surface-3: #e2e8ef;
  --text: #172027;
  --muted: #4e5b64;
  --quiet: #7b8790;
  --line: rgba(18, 28, 34, 0.16);
  --line-soft: rgba(18, 28, 34, 0.09);
  --accent: #007c91;
  --lime: #4d7c0f;
}

[data-theme="light"] .hero-shade {
  background:
    linear-gradient(90deg, rgba(247, 248, 251, 0.98) 0%, rgba(247, 248, 251, 0.86) 32%, rgba(247, 248, 251, 0.32) 66%, rgba(247, 248, 251, 0.02) 100%),
    linear-gradient(180deg, rgba(247, 248, 251, 0.2) 0%, rgba(247, 248, 251, 0.08) 48%, rgba(247, 248, 251, 0.94) 100%);
}

[data-theme="light"] .btn.primary,
[data-theme="light"] .header-cta { color: #ffffff; }
[data-theme="light"] .plan-flag,
[data-theme="light"] .header-cta { color: #ffffff; }
[data-theme="light"] .plan.featured .plan-flag { color: #ffffff; }
[data-theme="light"] .btn.primary { color: #ffffff; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .hero { min-height: 92svh; }
  .hero-media { object-position: 64% center; }
  .hero-content {
    width: min(680px, calc(100% - 32px));
    margin-left: 16px;
    padding-bottom: 48px;
  }
  .feature-grid,
  .split,
  .outcomes-grid,
  .pricing-head,
  .pricing-grid,
  .final-cta-grid {
    grid-template-columns: 1fr;
  }
  .feature-wide { grid-column: span 1; }
  .feature-card { min-height: 0; }
  .split { gap: 32px; }
}

@media (max-width: 620px) {
  .site-header { height: 64px; padding: 0 14px; }
  .brand-mark { max-width: 180px; }
  .header-cta { padding: 8px 11px; }
  .hero-content { padding-top: 104px; }
  h1 { font-size: clamp(40px, 13vw, 56px); }
  .hero-actions, .hero-metrics { width: 100%; }
  .hero-actions .btn { flex: 1 1 180px; }
  .hero-metrics { grid-template-columns: 1fr; }
  .intro, .split, .outcomes, .pricing { padding-top: 64px; }
  .final-cta { padding: 28px; }
  .final-cta .btn { width: 100%; }
}
