/* stratex-marketing-and-planning/landing-stratex-core/styles.css — Stratex Labs landing page styles (Offering 1) */

/* ============================================================================
   DESIGN SYSTEM
   - Brand tokens per LANDING_PAGE_BUILD_PROMPT §7.
   - Premium dark theme; lime accent used sparingly for emphasis + CTAs.
   - Type scale uses clamp() for fluid hero/section sizing.
   ========================================================================== */
:root {
  /* Brand tokens (§7) */
  --bg: #072E3E;
  --surface: #083345;
  --accent: #7BFF00;
  --text: #ffffff;
  --muted: #AEAEC9;
  --border: rgba(174, 174, 201, 0.12);

  /* Derived tones */
  --bg-deep: #052532;
  --surface-2: #0a3c52;
  --surface-hi: #0d465f;
  --accent-soft: rgba(123, 255, 0, 0.12);
  --accent-line: rgba(123, 255, 0, 0.35);
  --text-dim: rgba(255, 255, 255, 0.72);

  /* Type */
  --font-display: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Noto Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 16px;
  --radius-sm: 10px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* When Lenis JS drives scrolling we disable native smooth to avoid fighting it */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
code, pre { font-family: 'SF Mono', 'JetBrains Mono', ui-monospace, 'Consolas', monospace; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--accent); color: #06202b; padding: 0.6rem 1rem; border-radius: 8px;
  font-weight: 700; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ============================================================================
   REVEAL ANIMATION BASE STATES (progressive enhancement)
   - Only hidden when JS is present (html.js). GSAP/IntersectionObserver reveals them.
   - prefers-reduced-motion users always see content (override at the bottom).
   ========================================================================== */
.js [data-reveal],
.js [data-reveal-line] { opacity: 0; }
.js [data-reveal] { transform: translate3d(0, 14px, 0); }
.js [data-reveal].is-in,
.js [data-reveal-line].is-in { opacity: 1; transform: none; }

/* ============================================================================
   BUTTONS
   ========================================================================== */
.btn {
  --btn-pad-y: 0.85rem; --btn-pad-x: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}
.btn svg { transition: transform 0.4s var(--ease); }
.btn--primary {
  background: var(--accent); color: #06222d;
  box-shadow: 0 8px 30px -10px rgba(123, 255, 0, 0.5);
}
.btn--primary:hover { box-shadow: 0 14px 40px -10px rgba(123, 255, 0, 0.6); transform: translateY(-2px); }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost {
  background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--border);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--accent-line); background: rgba(123,255,0,0.06); }
.btn--text { background: transparent; color: var(--text); padding-inline: 0.5rem; position: relative; }
.btn--text::before {
  content: ""; position: absolute; left: 0.5rem; right: 0.5rem; bottom: 0.45rem; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
.btn--text:hover::before { transform: scaleX(1); }
.btn--lg { --btn-pad-y: 1.05rem; --btn-pad-x: 2rem; font-size: 1.05rem; }

/* ============================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(6, 33, 44, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; perspective: 700px; }
.brand__labs { color: var(--accent); }

/* Canonical Stratex logo mark (referenced via <use href="#stratex-logo">) */
.logo { display: block; width: 100%; height: 100%; }
.brand__logo {
  display: inline-flex; width: 26px; height: 26px; color: #C8C8CD; /* light grey on dark chrome, per STRATEX_LOGO.md */
  transform-style: preserve-3d; backface-visibility: visible; transform-origin: center center;
  transition: color 0.4s var(--ease);
}
.brand:hover .brand__logo { color: var(--accent); }
.brand__logo--footer { width: 30px; height: 30px; color: var(--accent); }

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav__link {
  position: relative; padding: 0.5rem 0.85rem; font-size: 0.92rem; color: var(--text-dim); border-radius: 8px;
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.3rem; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: center; transition: transform 0.4s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link--agent { color: var(--text); display: inline-flex; align-items: center; gap: 0.45rem; }
.nav__link--agent .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(123,255,0,0.5); animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(123,255,0,0.45); } 70% { box-shadow: 0 0 0 7px rgba(123,255,0,0); } 100% { box-shadow: 0 0 0 0 rgba(123,255,0,0); } }

.header__cta { display: flex; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; gap: 0.25rem; padding: 1rem var(--gutter) 1.75rem; background: rgba(6,33,44,0.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.mobile-nav__link { padding: 0.85rem 0.5rem; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
.mobile-nav__cta { margin-top: 1rem; }

/* ============================================================================
   HERO
   ========================================================================== */
.hero { position: relative; display: flex; align-items: flex-start; overflow: hidden; padding-top: 76px; padding-bottom: clamp(2rem, 4vh, 3rem); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(123,255,0,0.10), transparent 55%),
    linear-gradient(180deg, rgba(7,46,62,0.35) 0%, rgba(7,46,62,0.55) 45%, var(--bg) 100%);
}
/* Inner spans the full header container width so the card edges line up with the nav. */
.hero__inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(1.5rem, 4vh, 3rem); }

/* Hero card — mirrors the closing CTA band (gradient surface, accent hairline, logo watermark),
   but sits on the LEFT and stays narrow so the animated WebGL background reads to its right. */
.hero__card {
  position: relative; overflow: hidden; isolation: isolate; text-align: left;
  max-width: 580px;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--accent-line); border-radius: calc(var(--radius) * 1.5);
  padding: clamp(2rem, 4vw, 3.25rem);
  box-shadow: 0 50px 120px -50px rgba(123,255,0,0.3);
}
.hero__card > *:not(.hero__watermark) { position: relative; z-index: 1; }
.hero__watermark {
  position: absolute; z-index: 0; right: -58px; bottom: -76px;
  width: clamp(200px, 30vw, 320px); height: clamp(200px, 30vw, 320px);
  color: var(--accent); opacity: 0.07; pointer-events: none;
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.5rem;
}
.hero__eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero__eyebrow-beta {
  color: var(--accent);
  background: rgba(123, 255, 0, 0.14);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  letter-spacing: 0.14em;
}

.hero__title {
  font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: -0.025em;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: 1.1rem;
}
.hero__title .dotmark { color: var(--accent); }

.hero__sub { max-width: 44ch; margin: 0 0 2rem; font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--text-dim); }

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 1rem; }

.hero__discovery {
  position: relative; display: inline-flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
  background: rgba(8, 51, 69, 0.55); border: 1px solid var(--border); border-radius: 999px;
  padding: 0.55rem 1.1rem 0.55rem 0.6rem; cursor: pointer; color: var(--text);
  font-size: 0.9rem; backdrop-filter: blur(8px);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.hero__discovery:hover { border-color: var(--accent-line); background: rgba(123,255,0,0.06); }
.hero__discovery-method { background: var(--accent); color: #06222d; font-weight: 700; font-size: 0.72rem; padding: 0.25rem 0.55rem; border-radius: 999px; letter-spacing: 0.06em; }
.hero__discovery code { color: var(--text); font-size: 0.92rem; }
.hero__discovery-hint { color: var(--muted); font-size: 0.78rem; }
.copy-icon { color: var(--muted); display: inline-flex; }
.hero__discovery.is-copied { border-color: var(--accent); }
.hero__discovery.is-copied .hero__discovery-hint { color: var(--accent); }

/* ============================================================================
   SECTION PRIMITIVES
   ========================================================================== */
.section { padding-block: clamp(3.25rem, 7.5vh, 6rem); position: relative; }
/* First section after hero: tighter top gap — hero already carries bottom padding. */
.hero + .section { padding-top: clamp(2rem, 4vh, 3rem); }
.section__eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.6rem;
}
.section__eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent-line); }
.section__title {
  font-family: var(--font-display); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem); max-width: 18ch; margin-bottom: 1rem;
}
.section__title .muted { display: block; }
.section__title .dotmark { color: var(--accent); }

/* ============================================================================
   STATS STRIP
   ========================================================================== */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-deep), var(--bg)); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); padding-block: clamp(2rem, 5vh, 3.5rem); border-radius: 0; }
.stat { background: transparent; padding: 0.5rem clamp(0.75rem, 3vw, 2rem); text-align: left; }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; letter-spacing: -0.03em; color: var(--text); display: inline-flex; align-items: baseline; gap: 0.2rem; }
.stat__unit { font-size: 0.42em; color: var(--accent); font-weight: 700; letter-spacing: 0; }
.stat__label { display: block; margin-top: 0.75rem; color: var(--muted); font-size: 0.92rem; max-width: 18ch; }

/* ============================================================================
   PROBLEM → SOLUTION
   ========================================================================== */
.problem__grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); margin-top: 3rem; }
.problem__card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); }
.problem__card h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 1.25rem; font-weight: 700; }
.problem__card--solve { background: linear-gradient(165deg, var(--surface-2), var(--surface)); border-color: var(--accent-line); box-shadow: 0 30px 80px -40px rgba(123,255,0,0.25); }
.problem__arrow { color: var(--accent); display: flex; justify-content: center; }
.problem__keep { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); color: var(--accent); font-weight: 600; font-size: 0.95rem; }

.ticklist { list-style: none; display: grid; gap: 0.85rem; }
.ticklist li { position: relative; padding-left: 1.85rem; color: var(--text-dim); font-size: 0.97rem; }
.ticklist li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237BFF00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 12px;
}
.ticklist li em { color: var(--text); font-style: normal; font-weight: 600; }
.ticklist--neg li::before {
  background: rgba(174,174,201,0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23AEAEC9' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  background-size: 11px;
}
.ticklist--neg li em { color: var(--muted); }

/* ============================================================================
   HOW IT WORKS (pinned horizontal track on desktop)
   ========================================================================== */
/* Full-viewport pin stage (needed so start: top top clears the fixed header).
   Content is top-aligned under the header. Gap before FAQ is tightened via
   .how + .faq margin — do not shrink this stage or the pin slides under the nav. */
.how.section { padding-block: 0; }
.how__pin {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(1.5rem, 3vh, 2.25rem);
  padding: 6.25rem 0 2.5rem;
  box-sizing: border-box;
  overflow: hidden;
}
/* Use full .container width (1200px site rail), not the global 18ch title clamp */
.how__intro .section__title { margin-bottom: 0; max-width: none; }
.how__viewport { margin-top: 0; width: 100%; }
/* Match .container content inset so step 01 lines up with the heading */
.how__track {
  --how-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  display: flex;
  gap: 1.5rem;
  padding-inline: var(--how-inline);
  width: max-content;
  will-change: transform;
}
.step {
  flex: 0 0 clamp(260px, 30vw, 360px); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(1.75rem, 2.5vw, 2.5rem); min-height: 280px;
  display: flex; flex-direction: column;
}
.step__index { font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; color: var(--surface-hi); -webkit-text-stroke: 1px var(--accent-line); margin-bottom: auto; }
.step__title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin: 1.5rem 0 0.75rem; }
.step p { color: var(--text-dim); font-size: 0.97rem; }
.step code { color: var(--accent); font-size: 0.85em; background: var(--accent-soft); padding: 0.1em 0.4em; border-radius: 5px; }
.step--accent { background: linear-gradient(165deg, var(--surface-2), var(--surface)); border-color: var(--accent-line); }
.step--accent .step__index { color: var(--accent); -webkit-text-stroke: 0; }

/* ============================================================================
   FEATURES GRID
   ========================================================================== */
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2.25rem); transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.feature:hover { transform: translateY(-4px); border-color: var(--accent-line); background: var(--surface-2); }
.feature__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 1.25rem;
}
.feature h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.6rem; }
.feature p { color: var(--text-dim); font-size: 0.95rem; }
.feature code { color: var(--accent); font-size: 0.85em; }
.feature--accent { background: linear-gradient(165deg, var(--surface-2), var(--surface)); border-color: var(--accent-line); }

.features__indicators { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2.5rem; color: var(--muted); font-size: 0.9rem; }
.chiprow { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { font-family: var(--font-display); font-size: 0.82rem; font-weight: 600; color: var(--text); background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 999px; padding: 0.35rem 0.85rem; }

.features__beta {
  margin-top: 2.75rem;
  max-width: 52rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.features__beta-copy {
  margin: 0;
  color: var(--text-dim);
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  line-height: 1.65;
}
.features__beta-copy strong { color: var(--text); font-weight: 600; }
.features__beta-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  max-width: 32rem;
}
.features__beta-input {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.85rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.features__beta-input::placeholder { color: var(--muted); }
.features__beta-input:focus { border-color: var(--accent-line); background: rgba(123, 255, 0, 0.04); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ============================================================================
   API SURFACE
   ========================================================================== */
.api__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.api__lead { color: var(--text-dim); margin: 1rem 0 2rem; max-width: 48ch; }
.api__lead code { color: var(--accent); }

.endpoints { list-style: none; display: grid; gap: 0.5rem; }
.endpoints li { display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); flex-wrap: wrap; }
.endpoints code { font-size: 0.92rem; color: var(--text); }
.endpoint__desc { color: var(--muted); font-size: 0.82rem; margin-left: auto; }
.method { font-family: var(--font-display); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.05em; padding: 0.25rem 0.55rem; border-radius: 6px; }
.method--get { background: rgba(123,255,0,0.14); color: var(--accent); }
.method--post { background: rgba(120,180,255,0.16); color: #8fc0ff; }

.api__code { display: grid; gap: 1.25rem; }
.codecard { background: var(--bg-deep); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 70px -40px rgba(0,0,0,0.7); }
.codecard__bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1rem; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border); }
.codecard__dots { display: inline-flex; gap: 0.4rem; }
.codecard__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.codecard__title { font-size: 0.82rem; color: var(--muted); font-family: var(--font-display); }
.codecard__copy { margin-left: auto; background: transparent; border: 1px solid var(--border); color: var(--muted); border-radius: 7px; padding: 0.3rem 0.7rem; font-size: 0.78rem; cursor: pointer; transition: all 0.3s var(--ease); font-family: var(--font-display); }
.codecard__copy:hover { color: var(--accent); border-color: var(--accent-line); }
.codecard__copy.is-copied { color: #06222d; background: var(--accent); border-color: var(--accent); }
.codecard__body { padding: 1.25rem 1.4rem; overflow-x: auto; font-size: 0.85rem; line-height: 1.7; color: #cfe9d6; }
.codecard--payload .codecard__body { color: #bcd6e8; }

/* ============================================================================
   DIFFERENTIATION
   ========================================================================== */
.diff__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.diff__card { padding: clamp(1.5rem, 2.5vw, 2.25rem); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); position: relative; }
.diff__card::before { content: ""; position: absolute; left: 0; top: 1.75rem; width: 3px; height: 32px; background: var(--accent); border-radius: 3px; }
.diff__card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; padding-left: 1rem; }
.diff__card p { color: var(--text-dim); padding-left: 1rem; font-size: 0.97rem; }
.diff__card strong { color: var(--text); }
.diff__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.diff__intro .section__title { max-width: none; margin-bottom: 0; }
.diff__lead {
  margin-top: 1.25rem;
  max-width: 42ch;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.65;
}
.diff__limit {
  margin: 0;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 36rem;
  height: fit-content;
  align-self: start;
}
.diff__limit strong { color: var(--text); }

/* ============================================================================
   PRICING
   ========================================================================== */
.pricing__toggle { display: inline-flex; align-items: center; gap: 1rem; margin: 2rem 0 3rem; }
.pricing__toggle-label { color: var(--muted); font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; transition: color 0.3s var(--ease); }
.pricing__toggle-label.is-active { color: var(--text); }
.pricing__save { color: var(--accent); font-size: 0.78rem; margin-left: 0.3rem; }
.switch { width: 52px; height: 28px; border-radius: 999px; background: var(--surface-hi); border: 1px solid var(--border); cursor: pointer; position: relative; transition: background 0.3s var(--ease); }
.switch__thumb { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--text); transition: transform 0.35s var(--ease), background 0.3s var(--ease); }
.switch[aria-checked="true"] { background: var(--accent-soft); border-color: var(--accent-line); }
.switch[aria-checked="true"] .switch__thumb { transform: translateX(24px); background: var(--accent); }

/* Beta offer: title left, single card right (stacks on mobile) */
.pricing__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.pricing__intro {
  max-width: none;
}
.pricing__intro .section__title {
  max-width: none;
  margin-bottom: 0;
}
.pricing__grid {
  display: flex;
  justify-content: stretch;
  width: 100%;
  margin-top: 0;
}
.tier {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--accent-line);
  border-radius: calc(var(--radius) * 1.25);
  padding: clamp(1.75rem, 3vw, 2.35rem);
  position: relative;
  box-shadow: 0 40px 90px -45px rgba(123, 255, 0, 0.3);
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
}
.tier:hover { transform: translateY(-4px); }
.tier--featured { background: linear-gradient(170deg, var(--surface-2), var(--surface)); border-color: var(--accent-line); box-shadow: 0 40px 90px -45px rgba(123,255,0,0.3); }
.tier--muted { background: rgba(255,255,255,0.02); }
.pricing__grid .tier--muted {
  /* Solo offer should read as the main card, not a de-emphasised upsell */
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
}
.tier__badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #06222d; font-family: var(--font-display); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.85rem; border-radius: 999px; white-space: nowrap; }
.tier__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 0.25rem;
}
.tier__head-copy { min-width: 0; flex: 1 1 auto; }
.tier__name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.tier__tagline { color: var(--muted); font-size: 0.9rem; margin-top: 0.3rem; }
.tier__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.3rem;
  margin: 0;
  flex: 0 0 auto;
  text-align: right;
  line-height: 1;
}
.tier__amount { font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; letter-spacing: -0.02em; }
.tier__period { color: var(--muted); font-size: 0.9rem; }
.tier__annual-note {
  flex-basis: 100%;
  color: var(--accent);
  font-size: 0.78rem;
  min-height: 0;
  margin: 0.2rem 0 0;
  text-align: right;
}
.tier__desc { color: var(--text-dim); font-size: 0.92rem; margin: 0.9rem 0 1.25rem; }
.tier__cta { margin-bottom: 0; }
.tier__cta .btn { width: 100%; }
.tier__features {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.tier__features li { position: relative; padding-left: 1.6rem; font-size: 0.9rem; color: var(--text-dim); }
.tier__features li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 15px; height: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237BFF00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: contain;
}
.tier__features li strong { color: var(--text); }
.pricing__addons { margin-top: 2rem; color: var(--muted); font-size: 0.92rem; max-width: 70ch; }
.pricing__addons strong { color: var(--text); }
.pricing__noscript { color: var(--muted); }

/* ============================================================================
   DOCS
   ========================================================================== */
.docs__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.docs__lead { color: var(--text-dim); margin: 1rem 0 2rem; max-width: 42ch; }
.docs__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.doccard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; position: relative; overflow: hidden; transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease); }
.doccard:hover { transform: translateY(-4px); border-color: var(--accent-line); background: var(--surface-2); }
.doccard h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.doccard p { color: var(--muted); font-size: 0.9rem; }
.doccard__go { position: absolute; top: 1.5rem; right: 1.5rem; color: var(--accent); font-size: 1.2rem; transition: transform 0.4s var(--ease); }
.doccard:hover .doccard__go { transform: translate(3px, -3px); }
.doccard--agent { border-color: var(--accent-line); }
.doccard .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ============================================================================
   FAQ
   ========================================================================== */
/* Pull FAQ up into the unused lower half of the how pin stage (desktop pin only). */
.how + .faq {
  margin-top: clamp(-10rem, -18vh, -5rem);
}
.faq__inner { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq__list { display: grid; gap: 0.75rem; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq__item summary { list-style: none; cursor: pointer; padding: 1.25rem 1.5rem; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; font-weight: 400; transition: transform 0.35s var(--ease); flex: 0 0 auto; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 1.5rem 1.4rem; color: var(--text-dim); font-size: 0.97rem; }
.faq__a code { color: var(--accent); font-size: 0.88em; }
.faq__a a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================================
   CLOSING CTA BAND
   ========================================================================== */
.cta-band { text-align: center; }
.cta-band__inner { position: relative; overflow: hidden; isolation: isolate; max-width: 760px; margin-inline: auto; background: linear-gradient(165deg, var(--surface-2), var(--surface)); border: 1px solid var(--accent-line); border-radius: calc(var(--radius) * 1.5); padding: clamp(2.5rem, 6vw, 4.5rem); box-shadow: 0 50px 120px -50px rgba(123,255,0,0.3); }
.cta-band__inner > *:not(.cta-band__watermark) { position: relative; z-index: 1; }
.cta-band__watermark { position: absolute; z-index: 0; right: -70px; bottom: -90px; width: clamp(220px, 36vw, 360px); height: clamp(220px, 36vw, 360px); color: var(--accent); opacity: 0.07; pointer-events: none; }
.cta-band__eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem;
}
.cta-band__title.brand {
  justify-content: center;
  flex-wrap: wrap;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  gap: 0.45em 0.55em;
}
.brand__logo--cta {
  width: 0.9em;
  height: 0.9em;
  color: #C8C8CD;
}
/* Same BETA chip as the hero eyebrow — keep badge-sized next to the large title */
.cta-band__beta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  align-self: center;
}

/* Kinetic three-word close — stacked lines, each fades/rises in on scroll (standard data-reveal). */
.cta-band__title--stack { font-weight: 900; font-size: clamp(2.6rem, 7.5vw, 5rem); letter-spacing: -0.03em; line-height: 1.04; }
.cta-band__title--stack .line { display: block; }
.cta-band__title--stack .line--accent { color: var(--accent); }
.cta-band__title .dotmark { color: var(--accent); }
.cta-band__title--stack .line--accent .dotmark { color: var(--text); }

.cta-band__sub { color: var(--text-dim); margin: 1.5rem auto 2rem; max-width: 48ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center; }

/* ============================================================================
   FOOTER
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-deep); padding-block: 1.5rem; }
.footer__base {
  display: flex;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ============================================================================
   HOVER MICRO-INTERACTIONS — deliberately varied per section
   Each section gets a different idea so the page never repeats the same gesture:
   stats = number ignites; problem = per-item slide; how = number fills;
   API = row slides with an accent edge; diff = accent bar grows; faq = inset edge;
   tiers = accent glow; chips = light up.
   ========================================================================== */

/* Stats — the big number ignites to accent and a short underline grows in
   (no lift, to avoid clipping against the 1px grid dividers) */
.stat { transition: transform 0.4s var(--ease); }
.stat__num { transition: color 0.4s var(--ease); }
.stat::after { content: ""; display: block; width: 0; height: 2px; margin-top: 0.85rem; background: var(--accent); transition: width 0.55s var(--ease); }
.stat:hover .stat__num { color: var(--accent); }
.stat:hover::after { width: 46px; }

/* Problem / solution — card lifts; then each checklist item responds INDIVIDUALLY
   (a granular gesture used nowhere else on the page) */
.problem__card { transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.problem__card:hover { transform: translateY(-5px); border-color: var(--accent-line); }
.ticklist li { transition: transform 0.35s var(--ease), color 0.35s var(--ease); }
.ticklist li::before { transition: transform 0.35s var(--ease); }
.ticklist li:hover { transform: translateX(7px); color: var(--text); }
.ticklist li:hover::before { transform: scale(1.18); }

/* How it works — the outlined step number FILLS solid accent on hover (signature treatment) */
.step { transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease); }
.step:hover { transform: translateY(-6px); border-color: var(--accent-line); background: var(--surface-2); }
.step__index { transition: color 0.45s var(--ease), -webkit-text-stroke-color 0.45s var(--ease); }
.step:hover .step__index { color: var(--accent); -webkit-text-stroke-color: transparent; }

/* API surface — endpoint rows slide right and grow a left accent edge (row gesture, unique) */
.endpoints li { transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.endpoints li:hover { transform: translateX(8px); border-color: var(--accent-line); box-shadow: -3px 0 0 0 var(--accent); }
.endpoints code, .endpoint__desc { transition: color 0.3s var(--ease); }
.endpoints li:hover .endpoint__desc { color: var(--text); }
.codecard { transition: border-color 0.4s var(--ease), box-shadow 0.5s var(--ease); }
.codecard:hover { border-color: var(--accent-line); box-shadow: 0 30px 70px -40px rgba(123,255,0,0.22); }

/* Differentiation — the short accent bar grows to full card height; text nudges (growing-bar gesture) */
.diff__card { transition: background 0.4s var(--ease), transform 0.5s var(--ease); }
.diff__card::before { transition: height 0.5s var(--ease); }
.diff__card h3, .diff__card p { transition: transform 0.4s var(--ease); }
.diff__card:hover { transform: translateY(-4px); background: var(--surface-2); }
.diff__card:hover::before { height: calc(100% - 3.5rem); }
.diff__card:hover h3, .diff__card:hover p { transform: translateX(5px); }

/* Pricing — augment the existing lift with an accent border + soft glow */
.tier { transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), box-shadow 0.5s var(--ease); }
.tier:hover { border-color: var(--accent-line); box-shadow: 0 34px 80px -45px rgba(123,255,0,0.35); }

/* FAQ — a left accent edge slides in and the question nudges right (no conflict with the +/× marker) */
.faq__item { transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.faq__item:hover { border-color: var(--accent-line); box-shadow: inset 3px 0 0 0 var(--accent); }
.faq__item summary { transition: padding-left 0.35s var(--ease), color 0.3s var(--ease); }
.faq__item:hover summary { padding-left: 1.9rem; }

/* Indicator chips — light up on hover */
.chip { transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease); }
.chip:hover { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); transform: translateY(-2px); }

/* ============================================================================
   CUSTOM CURSOR (desktop, fine pointer only — restrained accent dot)
   ========================================================================== */
.cursor-dot { position: fixed; top: 0; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); mix-blend-mode: difference; opacity: 0; transition: opacity 0.3s ease, width 0.25s var(--ease), height 0.25s var(--ease); }
.cursor-ring { position: fixed; top: 0; left: 0; width: 38px; height: 38px; border: 1px solid var(--accent-line); border-radius: 50%; pointer-events: none; z-index: 9998; transform: translate(-50%, -50%); opacity: 0; transition: opacity 0.3s ease, width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s var(--ease); }
.cursor-active .cursor-dot, .cursor-active .cursor-ring { opacity: 1; }
.cursor-ring.is-hover { width: 58px; height: 58px; border-color: var(--accent); }

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .nav { display: none; }
  .header__cta { display: none; }
  .nav-toggle { display: flex; }
  .api__inner, .docs__inner, .faq__inner, .pricing__row, .diff__row { grid-template-columns: 1fr; }
  .pricing__intro { max-width: none; }
  .features__grid, .diff__grid { grid-template-columns: repeat(2, 1fr); }
  .docs__cards { grid-template-columns: 1fr 1fr; }
}

/* Match JS pin breakpoint (900px): stack steps, drop full-viewport stage */
@media (max-width: 899px) {
  .how.section { padding-block: clamp(3.25rem, 7.5vh, 6rem); }
  .how__pin {
    min-height: 0;
    display: block;
    padding: 0;
    overflow: visible;
  }
  .how__track {
    flex-direction: column;
    width: auto;
    will-change: auto;
  }
  .step { flex-basis: auto; min-height: 0; }
  .how + .faq { margin-top: 0; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .problem__grid { grid-template-columns: 1fr; }
  .problem__arrow { transform: rotate(90deg); }
  .features__grid, .diff__grid, .docs__cards { grid-template-columns: 1fr; }
  .endpoint__desc { margin-left: 0; flex-basis: 100%; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================================================
   REDUCED MOTION — always show content, kill non-essential animation
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-reveal-line] { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .cursor-dot, .cursor-ring { display: none; }
}
