:root {
  --bg: #000000;
  --bg-1: #050607;
  --bg-2: #0a0c0e;
  --line: oklch(0.28 0.005 240 / 0.55);
  --line-soft: oklch(0.28 0.005 240 / 0.25);
  --fg: oklch(0.985 0.003 240);
  --fg-2: oklch(0.78 0.008 240);
  --fg-3: oklch(0.58 0.01 240);
  --fg-4: oklch(0.42 0.012 240);

  --accent: oklch(0.82 0.16 215);            /* electric cyan */
  --accent-soft: oklch(0.82 0.16 215 / 0.12);
  --accent-line: oklch(0.82 0.16 215 / 0.35);

  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-sans: "Geist", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  --container: 1240px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(1200px 600px at 50% -200px, oklch(0.82 0.16 215 / 0.10), transparent 70%),
    radial-gradient(900px 500px at 100% 10%, oklch(0.82 0.16 215 / 0.04), transparent 60%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ─────────────────────────  layout  ───────────────────────── */

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

section { position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* ─────────────────────────  nav  ───────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: oklch(0 0 0 / 0.55);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 14px;
  color: var(--fg-2);
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg);
  transition: border-color .2s, background .2s;
}
.nav-cta:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

/* ─────────────────────────  wordmark  ───────────────────────── */

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.wordmark-logo {
  display: block;
  flex: none;
}
.wordmark-text {
  font-size: 18px;
  font-weight: 500;
  color: var(--fg);
}
.wordmark-text em {
  font-style: normal;
  color: var(--fg-3);
  font-weight: 400;
}

/* ─────────────────────────  hero  ───────────────────────── */

.hero {
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: clamp(80px, 10vw, 140px);
  text-align: center;
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 36px;
}
.hero-tag .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 9.5vw, 148px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: 0 auto;
  max-width: 14ch;
  color: var(--fg);
}
.hero h1 .accent {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  margin: 32px auto 0;
  max-width: 56ch;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.55;
  color: var(--fg-2);
}

.hero-actions {
  margin-top: 44px;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform .15s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--fg);
  color: #000;
}
.btn-primary:hover { background: var(--accent); }
.btn-ghost {
  border-color: var(--line);
  color: var(--fg);
}
.btn-ghost:hover { border-color: var(--fg-3); background: oklch(1 0 0 / 0.03); }
.btn-arrow { transition: transform .2s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ─────────────────────────  schema  ───────────────────────── */

.schema-wrap {
  margin: 56px auto 0;
  max-width: 1080px;
  position: relative;
}
.schema-scroll {
  position: relative;
}
.schema {
  width: 100%;
  height: auto;
  display: block;
}

/* custom scrollbar — hidden on desktop, shown on mobile via media query */
.schema-scrollbar {
  display: none;
}
.schema-scrollbar-thumb {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent), 0 0 14px oklch(0.82 0.16 215 / 0.5);
  transition: left 0.06s linear;
  will-change: left, width;
}

/* ─────────────────────────  logos strip  ───────────────────────── */

.logos {
  padding: 60px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.logos-grid {
  display: grid;
  grid-template-columns: 220px repeat(5, 1fr);
  align-items: center;
  gap: 24px;
}
.logos-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-4);
  border-right: 1px solid var(--line-soft);
  padding-right: 24px;
}
.logos-grid > .logo {
  font-size: 16px;
  font-weight: 500;
  color: var(--fg-3);
  text-align: center;
  letter-spacing: -0.01em;
  font-family: var(--font-display);
  font-style: italic;
}

/* ─────────────────────────  section heads  ───────────────────────── */

.sec {
  padding-block: clamp(100px, 12vw, 160px);
}
.sec-head {
  text-align: center;
  margin-bottom: clamp(60px, 7vw, 100px);
}
.sec-head .eyebrow { display: inline-block; margin-bottom: 18px; color: var(--accent); }
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 auto;
  max-width: 18ch;
}
.sec-head h2 em {
  font-style: italic;
  color: var(--accent);
}
.sec-head p {
  margin: 24px auto 0;
  max-width: 52ch;
  color: var(--fg-2);
  font-size: 17px;
  line-height: 1.55;
}

/* ─────────────────────────  features  ───────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
}
.feat {
  background: var(--bg);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 280px;
  position: relative;
  transition: background .25s;
}
.feat:hover { background: oklch(0.18 0.008 240 / 0.25); }
.feat-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--fg-4);
}
.feat h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg);
}
.feat p {
  margin: 0;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.55;
  max-width: 38ch;
}
.feat-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: 12px;
}

.feat.span-7 { grid-column: span 7; }
.feat.span-5 { grid-column: span 5; }

/* ─────────────────────────  metrics  ───────────────────────── */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.metric {
  background: var(--bg);
  padding: 56px 32px;
  text-align: center;
}
.metric-value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 5vw, 76px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.metric-label {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* ─────────────────────────  pricing  ───────────────────────── */

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
}
.plan {
  padding: 48px 40px 40px;
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  background: var(--bg);
}
.plan:last-child { border-right: 0; }
.plan.featured {
  background:
    radial-gradient(420px 200px at 50% 0%, var(--accent-soft), transparent 70%),
    var(--bg);
}
.plan-head { display: flex; flex-direction: column; gap: 10px; }
.plan-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.plan.featured .plan-name { color: var(--accent); }
.plan-tag {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 400;
  margin-top: 4px;
}
.plan-price .amount {
  font-size: 76px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--fg);
}
.plan-price .per {
  color: var(--fg-3);
  font-family: var(--font-sans);
  font-size: 14px;
  font-style: normal;
}
.plan-tagline {
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  min-height: 42px;
}
.plan-cta {
  width: 100%;
  padding: 14px 18px;
  border-radius: 6px;
  border: 1px solid var(--line);
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg);
  transition: background .2s, border-color .2s, color .2s;
  cursor: pointer;
}
.plan-cta:hover { background: oklch(1 0 0 / 0.04); border-color: var(--fg-3); }
.plan.featured .plan-cta {
  background: var(--accent);
  border-color: var(--accent);
  color: #001218;
}
.plan.featured .plan-cta:hover { background: oklch(0.88 0.14 215); }

.plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}
.plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 13.5px;
  color: var(--fg-2);
}
.plan-row .k { color: var(--fg-3); }
.plan-row .v { color: var(--fg); font-variant-numeric: tabular-nums; }
.plan-row.dim .v { color: var(--fg-4); }
.plan-row .check { width: 14px; height: 14px; color: var(--accent); }
.plan-row .dash { color: var(--fg-4); font-family: var(--font-mono); }

/* ─────────────────────────  end cta  ───────────────────────── */

.endcta {
  padding: clamp(120px, 14vw, 200px) 0 clamp(80px, 10vw, 140px);
  text-align: center;
}
.endcta h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 auto;
  max-width: 14ch;
}
.endcta h2 em { font-style: italic; color: var(--accent); }
.endcta p {
  margin: 28px auto 0;
  max-width: 50ch;
  color: var(--fg-2);
  font-size: 17px;
  line-height: 1.55;
}
.endcta .hero-actions { margin-top: 44px; }

/* ─────────────────────────  footer  ───────────────────────── */

.foot {
  padding: 60px 0 40px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.foot h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin: 0 0 16px;
  font-weight: 500;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot a { color: var(--fg-2); font-size: 14px; }
.foot a:hover { color: var(--fg); }
.foot-bottom {
  border-top: 1px solid var(--line-soft);
  margin-top: 40px;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-4);
  text-transform: uppercase;
}

/* ─────────────────────────  responsive  ───────────────────────── */

@media (max-width: 980px) {
  .features { grid-template-columns: repeat(6, 1fr); }
  .feat.span-7, .feat.span-5 { grid-column: span 6; }
  .pricing { grid-template-columns: 1fr; }
  .plan { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .logos-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .logos-label { border-right: 0; padding-right: 0; }
  .foot { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

/* ─────────────────────────  schema motion  ───────────────────────── */

@keyframes dash-flow {
  to { stroke-dashoffset: -200; }
}
@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 0px transparent); }
  50% { filter: drop-shadow(0 0 14px var(--accent)); }
}
@keyframes packet {
  0% { offset-distance: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.fade-in {
  animation: fade-in-up .8s cubic-bezier(.2,.7,.2,1) both;
}

@media (max-width: 720px) {
  .schema-wrap {
    margin-top: 42px;
    margin-inline: calc(var(--pad) * -1);
  }
  .schema-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .schema-scroll::-webkit-scrollbar { display: none; }
  .schema {
    min-width: 720px;
    padding-inline: var(--pad);
  }
  /* custom scrollbar track */
  .schema-scrollbar {
    display: block;
    position: relative;
    height: 2px;
    margin: 10px var(--pad) 0;
    background: oklch(0.28 0.005 240 / 0.4);
    border-radius: 999px;
    overflow: hidden;
  }

  /* left/right fade hints */
  .schema-wrap::before,
  .schema-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    pointer-events: none;
    z-index: 2;
  }
  /* right fade — always visible, hints at scrollable content */
  .schema-wrap::after {
    right: 0;
    background: linear-gradient(to right, transparent, var(--bg) 85%);
  }
  /* left fade — shown once user has scrolled */
  .schema-wrap::before {
    left: 0;
    background: linear-gradient(to left, transparent, var(--bg) 85%);
    opacity: 0;
    transition: opacity .2s;
  }
  .schema-wrap.is-scrolled::before {
    opacity: 1;
  }
}

/* cookie banner */

.cookie-banner {
  position: fixed;
  left: max(18px, env(safe-area-inset-left));
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  max-width: 920px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: oklch(0.08 0.005 240 / 0.96);
  box-shadow: 0 24px 80px oklch(0 0 0 / 0.45);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.cookie-copy {
  display: grid;
  gap: 5px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg-2);
}
.cookie-copy strong {
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
}
.cookie-copy a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-copy a:hover {
  color: var(--fg);
}
.cookie-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}
.cookie-btn {
  min-width: 92px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
}
.cookie-btn.ghost {
  color: var(--fg-2);
}
.cookie-btn.ghost:hover {
  color: var(--fg);
  border-color: var(--fg-4);
}
.cookie-btn.primary {
  color: #001114;
  border-color: transparent;
  background: var(--accent);
}
.cookie-btn.primary:hover {
  filter: brightness(1.08);
}

@media (max-width: 680px) {
  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
  }
  .cookie-actions {
    width: 100%;
  }
  .cookie-btn {
    flex: 1 1 0;
  }
}
