/* =============================================================================
 * GhostCrawl — landing page design tokens + components.
 * Bluescale + grayscale only. Ghostly, technical, no reds/oranges.
 * ============================================================================= */

@font-face {
  font-family: "GeistMono";
  src: url("../assets/fonts/GeistMono-Variable.woff2") format("woff2-variations"),
       url("../assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Bind the browser's color-scheme to the ACTIVE (toggled) theme — not the OS.
     This is what makes the UA-painted surfaces (iOS status-bar / Dynamic Island
     band, overscroll/canvas, scrollbars, form controls) follow the in-page
     light/dark toggle. Without it the top chrome stays in the OS scheme and
     ignores html.dark. See html.dark for the dark override. */
  color-scheme: light;

  /* Surface — strictly white scale. */
  --gc-bg:           #ffffff;
  --gc-surface:      #ffffff;
  --gc-elevated:     #ffffff;
  --gc-soft:         #f5f5f5;
  --gc-soft-2:       #ebebeb;

  /* Text — near-black with a faint accent tint (~5%). Reads as black, picks
     up the ion-blue under inspection. Muted/faint scale stays neutral so body
     copy doesn't get blue-cast at low contrast. */
  --gc-fg:           #060912;
  --gc-fg-muted:     #555555;
  --gc-fg-faint:     #888888;

  /* Accent — electric ghost-ion blue. The ONLY hue on the site. */
  --gc-accent:       #1c63ff;
  --gc-accent-2:     #5b9bff;
  --gc-accent-hover: #0a4adb;
  --gc-accent-tint:  #d6e3ff;
  --gc-accent-wash:  rgba(28, 99, 255, 0.08);
  --gc-accent-glow:  rgba(28, 99, 255, 0.38);
  --gc-accent-90:    rgba(28, 99, 255, 0.90);
  --gc-accent-72:    rgba(28, 99, 255, 0.72);
  --gc-accent-56:    rgba(28, 99, 255, 0.56);
  --gc-accent-40:    rgba(28, 99, 255, 0.40);
  --gc-accent-24:    rgba(28, 99, 255, 0.24);
  --gc-accent-12:    rgba(28, 99, 255, 0.12);
  --gc-accent-06:    rgba(28, 99, 255, 0.06);

  /* Lines */
  --gc-border:       #e6e6e6;
  --gc-border-soft:  #f0f0f0;

  /* Code — near-black with subtle ion tint, blue for keywords. */
  --gc-code-bg:      #f5f5f5;
  --gc-code-fg:      #060912;
  --gc-code-key:     #1c63ff;
  --gc-code-str:     #555555;
  --gc-code-num:     #1f2330;
  --gc-code-cmt:     #888888;

  /* Motion */
  --gc-ease:         cubic-bezier(0.16, 0.84, 0.32, 1);
  --gc-ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --gc-fast:         140ms;
  --gc-med:          280ms;

  /* Effects */
  --gc-shadow-sm:    0 1px 2px rgba(12, 18, 24, .04), 0 1px 3px rgba(12, 18, 24, .06);
  --gc-shadow-md:    0 4px 12px rgba(12, 18, 24, .06), 0 2px 4px rgba(12, 18, 24, .04);
  --gc-shadow-lg:    0 16px 40px rgba(12, 18, 24, .08), 0 4px 12px rgba(12, 18, 24, .04);

  /* Liquid glass — translucent frosted card surfaces (Apple idiom):
     a semi-transparent pane, a bright top rim highlight, soft drop shadow. */
  --gc-glass-bg:     color-mix(in srgb, var(--gc-surface) 62%, transparent);
  --gc-glass-border: rgba(15, 20, 30, 0.10);
  --gc-glass-hi:     rgba(255, 255, 255, 0.75);
  --gc-glass-shadow: 0 8px 32px rgba(12, 18, 24, .10), 0 2px 8px rgba(12, 18, 24, .06);
  --gc-glass-blur:   18px;

  /* Geometry */
  --gc-radius-sm:    8px;
  --gc-radius:       12px;
  --gc-radius-lg:    18px;
  --gc-max:          1200px;

  --gc-font-sans:    -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
  --gc-font-mono:    "GeistMono", ui-monospace, "Menlo", "Consolas", monospace;
}

html.dark {
  /* Active theme is dark → tell the UA so the iOS status-bar / Dynamic Island
     band, overscroll/canvas and scrollbars paint dark, matching the toggle. */
  color-scheme: dark;

  /* Page chrome — near-black layered with a hint of accent so the surface
     doesn't read as flat dead black. Mix climbs slightly with elevation. */
  --gc-bg:           #04060d;
  --gc-surface:      #070a14;
  --gc-elevated:     #0c1020;
  --gc-soft:         #080b15;
  --gc-soft-2:       #141828;

  --gc-fg:           #ffffff;
  --gc-fg-muted:     #aaaaaa;
  --gc-fg-faint:     #666666;

  --gc-accent:       #7aa4ff;
  --gc-accent-2:     #b3cdff;
  --gc-accent-hover: #a8c4ff;
  --gc-accent-tint:  #0f1d3a;
  --gc-accent-wash:  rgba(122, 164, 255, 0.10);
  --gc-accent-glow:  rgba(122, 164, 255, 0.55);
  --gc-accent-90:    rgba(122, 164, 255, 0.90);
  --gc-accent-72:    rgba(122, 164, 255, 0.72);
  --gc-accent-56:    rgba(122, 164, 255, 0.56);
  --gc-accent-40:    rgba(122, 164, 255, 0.40);
  --gc-accent-24:    rgba(122, 164, 255, 0.24);
  --gc-accent-12:    rgba(122, 164, 255, 0.12);
  --gc-accent-06:    rgba(122, 164, 255, 0.06);

  --gc-border:       #1a1a1a;
  --gc-border-soft:  #0e0e0e;

  --gc-code-bg:      #070a14;
  --gc-code-fg:      #ffffff;
  --gc-code-key:     #7aa4ff;
  --gc-code-str:     #aaaaaa;
  --gc-code-num:     #dddddd;
  --gc-code-cmt:     #666666;

  --gc-shadow-sm:    0 1px 2px rgba(0, 0, 0, .3), 0 1px 3px rgba(0, 0, 0, .4);
  --gc-shadow-md:    0 4px 12px rgba(0, 0, 0, .4), 0 2px 4px rgba(0, 0, 0, .3);
  --gc-shadow-lg:    0 16px 40px rgba(0, 0, 0, .5), 0 4px 12px rgba(0, 0, 0, .3);

  /* Liquid glass — dark frosted panes: the rim highlight reads as a faint
     light edge instead of a bright one, the drop shadow goes deeper. */
  --gc-glass-bg:     color-mix(in srgb, var(--gc-surface) 56%, transparent);
  --gc-glass-border: rgba(255, 255, 255, 0.09);
  --gc-glass-hi:     rgba(255, 255, 255, 0.14);
  --gc-glass-shadow: 0 8px 32px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .35);
}

/* ---------- Reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--gc-bg);
  color: var(--gc-fg);
  font-family: var(--gc-font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

/* ---------- Layout helpers ---------- */
.gc-container {
  width: 100%;
  max-width: var(--gc-max);
  margin: 0 auto;
  padding: 0 24px;
}
.gc-section { padding: 96px 0; position: relative; }
.gc-section--tight { padding: 56px 0; }
.gc-section + .gc-section { border-top: 1px solid var(--gc-border-soft); }
@media (max-width: 720px) {
  .gc-section { padding: 64px 0; }
}

.gc-section__head { text-align: center; margin: 0 auto 56px; max-width: 720px; }
.gc-section__eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gc-accent-wash);
  color: var(--gc-accent);
  border: 1px solid var(--gc-accent-tint);
  border-radius: 999px;
  font-family: var(--gc-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.gc-section__title { font-size: clamp(28px, 4vw, 42px); font-weight: 700; margin: 0 0 12px; letter-spacing: -0.02em; }
.gc-section__sub { color: var(--gc-fg-muted); font-size: 17px; margin: 0; }

/* ---------- Header — sticky, with a stronger "scrolled" state once the
   user has moved past the hero. Toggled by JS via .is-scrolled. ---------- */
.gc-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  background: color-mix(in srgb, var(--gc-bg) 60%, transparent);
  border-bottom: 1px solid transparent;
  transition: background var(--gc-fast) var(--gc-ease),
              border-color var(--gc-fast) var(--gc-ease),
              box-shadow var(--gc-fast) var(--gc-ease);
}
.gc-header.is-scrolled {
  background: color-mix(in srgb, var(--gc-bg) 88%, transparent);
  border-bottom-color: var(--gc-border-soft);
  box-shadow: 0 4px 24px color-mix(in srgb, var(--gc-fg) 6%, transparent);
}

/* ---------- iOS safe areas (viewport-fit=cover) ----------
   The page paints edge-to-edge under the notch / Dynamic Island / home
   indicator. iOS's translucent top & bottom system bars then tint with the
   page background — so they track light/dark automatically instead of staying
   a fixed colour. The sticky header's background fills the top inset; its
   content is pushed below the island. */
.gc-header { padding-top: env(safe-area-inset-top, 0px); }
.gc-container {
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}
.gc-footer { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
.gc-mobile-menu { padding-bottom: max(18px, env(safe-area-inset-bottom)); }

/* iOS 26 (Liquid Glass) Safari ignores theme-color and instead SAMPLES the
   background-color of the sticky/fixed element nearest the top edge (≈4px in,
   ≥80% wide) to tint the top toolbar / Dynamic Island band — falling back to
   <body>. Our desktop header is intentionally frosted (translucent color-mix +
   backdrop-filter), which samples as a washed-out colour, so the top bar didn't
   track the theme (the bottom did, because it samples the opaque footer).
   On mobile, give the header a SOLID, theme-tracking background-color (and drop
   the blur) so Safari samples a clean --gc-bg and the top toolbar matches the
   active theme exactly on light/dark toggle. Desktop keeps the frosted look. */
html { background: var(--gc-bg); }
@media (max-width: 720px) {
  .gc-header,
  .gc-header.is-scrolled {
    background: var(--gc-bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Header ghost — hidden until the hero ghost leaves the viewport, then
   materializes (fade + scale + bob settle) into the brand spot. */
.gc-brand__ghost {
  opacity: 0;
  transform: scale(0.6) translateY(-6px);
  filter: blur(2px);
  transform-origin: center bottom;
  transition:
    opacity .55s var(--gc-ease-out),
    transform .55s var(--gc-ease-out),
    filter .55s var(--gc-ease-out);
  pointer-events: none;
}
.gc-brand__ghost.is-materialized {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  .gc-brand__ghost {
    transition: opacity .2s ease;
    transform: none;
    filter: none;
  }
}
.gc-header__row {
  display: flex; align-items: center; gap: 24px;
  /* 76px instead of 64px — gives the bobbing ghost (49px tall + ±5px
     bob amplitude on a 40px-wide stage) room to breathe without the
     dome clipping at the top of the header. */
  height: 76px;
}
.gc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Two-tone wordmark — GHOST in fg, CRAWL with sweeping accent → white
   shimmer. All caps, single continuous word; color separation + the
   moving highlight do the visual split. */
.gc-brand .gc-wm,                  /* extra specificity to override `.gc-brand span` font-size */
.gc-wm {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--gc-font-mono);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.gc-brand .gc-wm__ghost,
.gc-wm__ghost {
  color: var(--gc-fg);
  font-size: inherit;
}
.gc-brand .gc-wm__crawl,
.gc-wm__crawl {
  font-size: inherit;
  /* Gradient is 3× the element width, with pure-accent baselines at both
     ends (stops 0–35% and 65–100%) and a pure-white peak at 50%. With
     this size, animating background-position from 100% → 0% sweeps the
     highlight cleanly from "fully off-LEFT" to "fully off-RIGHT" through
     the visible area — meaning every loop the highlight ENTERS at the
     C of CRAWL, crosses the word, and exits past the L. No mid-word
     starts, no in-between flashes. */
  background: linear-gradient(
    90deg,
    var(--gc-accent) 0%,
    var(--gc-accent) 35%,
    #ffffff 50%,
    var(--gc-accent) 65%,
    var(--gc-accent) 100%
  );
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  animation: gcWmShimmer 3.2s linear infinite;
}
@keyframes gcWmShimmer {
  0%   { background-position: 100% 0; }   /* highlight off LEFT  → invisible */
  100% { background-position: 0% 0; }     /* highlight off RIGHT → invisible */
}
@media (prefers-reduced-motion: reduce) {
  .gc-wm__crawl { animation: none; background-position: 100% 0; }
}
.gc-nav { display: flex; gap: 22px; margin-left: auto; }
.gc-nav a { color: var(--gc-fg-muted); font-size: 14px; transition: color .15s; }
.gc-nav a:hover { color: var(--gc-fg); }
.gc-header__cta { display: flex; gap: 8px; align-items: center; }

/* ---------- Mobile nav — hamburger + slide-down panel ----------
   Below 720px the primary nav and the inline CTA buttons collapse into a
   burger-triggered panel. Desktop never renders any of this. */
.gc-burger {
  display: none;            /* shown only in the ≤720px block below */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius-sm);
  background: transparent;
  cursor: pointer;
}
.gc-burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--gc-fg);
  transition: transform .25s var(--gc-ease), opacity .2s var(--gc-ease);
}
.gc-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gc-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.gc-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.gc-mobile-menu {
  display: none;            /* shown only in the ≤720px block below */
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  padding: 12px 20px 22px;
  /* Opaque on purpose — nav links must stay legible over the bright hero
     ghost. The glass idiom lives on the cards, not behind navigation. */
  background: var(--gc-bg);
  border-bottom: 1px solid var(--gc-border-soft);
  box-shadow: var(--gc-glass-shadow);
  /* Closed state — absolutely positioned so it never shifts page layout. */
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity .22s var(--gc-ease), transform .22s var(--gc-ease);
}
.gc-mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.gc-mobile-menu__nav { display: flex; flex-direction: column; }
.gc-mobile-menu__nav a {
  padding: 13px 6px;
  color: var(--gc-fg);
  font-size: 16px;
  border-bottom: 1px solid var(--gc-border-soft);
  transition: color .15s;
}
.gc-mobile-menu__nav a:hover { color: var(--gc-accent); }
.gc-mobile-menu__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.gc-mobile-menu__cta .gc-btn { width: 100%; justify-content: center; }

@media (max-width: 720px) {
  .gc-nav { display: none; }
  .gc-burger { display: flex; }
  .gc-mobile-menu { display: flex; }
  /* Inline CTA links move into the panel; only Theme + burger stay inline. */
  .gc-header__cta .gc-btn { display: none; }
}

/* ---------- Buttons ---------- */
.gc-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  font-size: 14px; font-weight: 600;
  border-radius: var(--gc-radius-sm);
  white-space: nowrap;
  isolation: isolate;
  transition:
    background var(--gc-fast) var(--gc-ease),
    color      var(--gc-fast) var(--gc-ease),
    box-shadow var(--gc-fast) var(--gc-ease),
    transform  var(--gc-fast) var(--gc-ease),
    border-color var(--gc-fast) var(--gc-ease);
}
.gc-btn:hover  { transform: translateY(-1px); }
.gc-btn:active { transform: translateY(0); transition-duration: 60ms; }

/* Primary: solid fg, lifts and gains an accent ring on hover. */
.gc-btn--primary {
  background: var(--gc-fg);
  color: var(--gc-bg);
}
.gc-btn--primary:hover {
  background: var(--gc-accent);
  color: #fff;
  box-shadow: 0 0 0 4px var(--gc-accent-wash), 0 8px 22px var(--gc-accent-glow);
}

/* Ghost: outlined, fills softly + accent border on hover. */
.gc-btn--ghost {
  background: transparent;
  color: var(--gc-fg);
  border: 1px solid var(--gc-border);
}
.gc-btn--ghost:hover {
  background: var(--gc-soft);
  border-color: var(--gc-accent);
  color: var(--gc-accent);
}

/* Accent: solid blue with glow on hover. */
.gc-btn--accent {
  background: var(--gc-accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--gc-accent-wash), 0 2px 6px rgba(0,0,0,.08);
}
.gc-btn--accent:hover {
  background: var(--gc-accent-hover);
  box-shadow: 0 0 0 4px var(--gc-accent-wash), 0 10px 24px var(--gc-accent-glow);
}

.gc-btn--lg   { padding: 14px 22px; font-size: 15px; }
.gc-btn--icon { padding: 8px; }

/* Theme toggle: monospace pill that picks up an accent ring on hover. */
.gc-toggle {
  padding: 6px 12px;
  font-size: 12px;
  font-family: var(--gc-font-mono);
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius-sm);
  color: var(--gc-fg-muted);
  transition:
    color        var(--gc-fast) var(--gc-ease),
    border-color var(--gc-fast) var(--gc-ease),
    box-shadow   var(--gc-fast) var(--gc-ease);
}
.gc-toggle:hover {
  color: var(--gc-fg);
  border-color: var(--gc-accent);
  box-shadow: 0 0 0 3px var(--gc-accent-wash);
}

/* ---------- Hero ---------- */
.gc-hero {
  position: relative;
  padding: 96px 0 80px;
}
.gc-hero__title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 20px;
}
.gc-hero__title em {
  font-style: normal;
  background: linear-gradient(180deg, var(--gc-accent) 0%, var(--gc-fg) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.gc-hero__sub {
  font-size: 18px;
  color: var(--gc-fg-muted);
  max-width: 560px;
  margin: 0 auto 32px;
}
.gc-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.gc-hero__visual {
  display: grid; place-items: center;
  margin-bottom: 12px;
}
.gc-hero__ghost {
  width: min(220px, 60vw);
  display: block;
  /* aspect-ratio comes from .gc-ghost (intrinsic ghost shape). */
}

/* Animated ghost component — fixed intrinsic aspect that includes body +
   shadow space, so the ghost never overlaps surrounding content even when
   bobbing. Hosts only need to set width. */
.gc-ghost {
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  aspect-ratio: 160 / 230;       /* 196 body + ~34 shadow gap */
  --u: calc(100cqi / 160);
}
.gc-ghost__bob {
  position: absolute;
  top: 0; left: 0;
  width: 100cqi;
  height: calc(196 * var(--u));
  animation: gcGhostBob 2.35s ease-in-out infinite;
  will-change: transform;
}
.gc-ghost__body {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: calc(108 * var(--u)) calc(108 * var(--u)) 0 0;
  background: #fff;
  border: calc(2.5 * var(--u)) solid #dbdbdb;
  box-shadow:
    calc(-18 * var(--u)) 0 0 #dbdbdb inset,
    0 0 0 calc(2 * var(--u)) rgba(200,200,200,.16),
    0 0 calc(12 * var(--u)) rgba(190,190,190,.26),
    0 0 calc(32 * var(--u)) rgba(170,170,170,.14),
    0 0 calc(64 * var(--u)) rgba(255,255,255,.08);
  -webkit-mask-image: linear-gradient(180deg,#000 0%,#000 44%,rgba(0,0,0,.96) 56%,rgba(0,0,0,.68) 70%,rgba(0,0,0,.22) 84%,transparent 100%);
          mask-image: linear-gradient(180deg,#000 0%,#000 44%,rgba(0,0,0,.96) 56%,rgba(0,0,0,.68) 70%,rgba(0,0,0,.22) 84%,transparent 100%);
}
.gc-ghost__eyes {
  display: flex;
  justify-content: space-between;
  width: calc(74 * var(--u));
  margin: 0 auto;
  padding-top: calc(72 * var(--u));
  min-height: calc(97 * var(--u));
  box-sizing: content-box;
}
.gc-ghost__eyes::before,
.gc-ghost__eyes::after {
  content: "";
  width: calc(15 * var(--u));
  height: calc(25 * var(--u));
  border-radius: 50%;
  /* Near-black with ~6% accent tint — reads black, hints ion-blue. */
  background: color-mix(in srgb, var(--gc-accent, #1c63ff) 6%, #000);
}
html.dark .gc-ghost__eyes::before,
html.dark .gc-ghost__eyes::after {
  background: color-mix(in srgb, var(--gc-accent, #7aa4ff) 9%, #000);
}
.gc-ghost__veil {
  position: absolute;
  top: calc(112 * var(--u));
  left: 0;
  width: 100cqi;
  height: calc(126 * var(--u));
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(180deg,#000 0%,#000 18%,rgba(0,0,0,.92) 42%,rgba(0,0,0,.62) 64%,rgba(0,0,0,.28) 82%,rgba(0,0,0,.08) 94%,transparent 100%);
          mask-image: linear-gradient(180deg,#000 0%,#000 18%,rgba(0,0,0,.92) 42%,rgba(0,0,0,.62) 64%,rgba(0,0,0,.28) 82%,rgba(0,0,0,.08) 94%,transparent 100%);
}
html.dark .gc-ghost__veil { mix-blend-mode: screen; }
.gc-ghost__shadow {
  position: absolute;
  left: 50%;
  bottom: calc(5 * var(--u));
  width: calc(124 * var(--u));
  height: calc(24 * var(--u));
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(31,35,41,.36) 0%, rgba(31,35,41,.22) 48%, rgba(31,35,41,.08) 76%, rgba(31,35,41,0) 100%);
  filter: blur(calc(3.1 * var(--u)));
  animation: gcGhostShadow 2.35s ease-in-out infinite;
  z-index: 0;
}
html.dark .gc-ghost__shadow {
  background: radial-gradient(ellipse at center, rgba(0,0,0,.6) 0%, rgba(0,0,0,.38) 48%, rgba(0,0,0,.14) 76%, rgba(0,0,0,0) 100%);
}
@keyframes gcGhostBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9.4%); }
}
@keyframes gcGhostShadow {
  0%, 100% {
    width: calc(124 * var(--u));
    height: calc(24 * var(--u));
    opacity: .82;
  }
  50% {
    width: calc(111.6 * var(--u));
    height: calc(21.6 * var(--u));
    opacity: .56;
  }
}

/* ---------- Playground ---------- */
.gc-playground {
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius-lg);
  padding: 24px;
  box-shadow: var(--gc-shadow-md);
  position: relative;
  overflow: hidden;
}
.gc-playground__tabs { display: flex; gap: 4px; margin-bottom: 16px; }
.gc-playground__tab {
  padding: 8px 14px;
  font-family: var(--gc-font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--gc-fg-muted);
  border-radius: var(--gc-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: color var(--gc-fast) var(--gc-ease),
              background var(--gc-fast) var(--gc-ease),
              border-color var(--gc-fast) var(--gc-ease);
}
.gc-playground__tab:hover { color: var(--gc-fg); }
.gc-playground__tab.is-active {
  background: var(--gc-accent-wash);
  color: var(--gc-accent);
  border-color: var(--gc-accent-tint);
}

.gc-playground__row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
@media (max-width: 700px) { .gc-playground__row { grid-template-columns: 1fr; } }

.gc-playground__url {
  display: flex; align-items: center;
  background: var(--gc-bg);
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius-sm);
  padding: 0 12px;
  gap: 8px;
  font-family: var(--gc-font-mono);
  font-size: 14px;
}
.gc-playground__prefix { color: var(--gc-fg-faint); }
.gc-playground__input {
  flex: 1;
  border: 0; outline: 0; background: transparent;
  color: var(--gc-fg);
  padding: 12px 0;
  font: inherit;
}
.gc-playground__input::placeholder { color: var(--gc-fg-faint); }
.gc-playground__select {
  background: var(--gc-bg);
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius-sm);
  padding: 0 12px;
  font: inherit;
  color: var(--gc-fg);
  font-size: 14px;
}

/* ---------- Code preview ---------- */
.gc-code {
  background: var(--gc-code-bg);
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius);
  overflow: hidden;
  font-family: var(--gc-font-mono);
  position: relative;
}
.gc-code__tabs {
  display: flex; gap: 0;
  background: var(--gc-soft);
  border-bottom: 1px solid var(--gc-border);
  padding: 4px 4px 0;
  /* 8 language tabs — scroll horizontally rather than wrap/overflow on narrow
     viewports. Scrollbar hidden; tabs keep their intrinsic width. */
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.gc-code__tabs::-webkit-scrollbar { display: none; }
.gc-code__tab { flex: 0 0 auto; white-space: nowrap; }
.gc-code__tab {
  padding: 8px 14px;
  font-size: 12px;
  color: var(--gc-fg-muted);
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  position: relative; top: 1px;
  cursor: pointer;
  transition: color var(--gc-fast) var(--gc-ease),
              background var(--gc-fast) var(--gc-ease),
              border-color var(--gc-fast) var(--gc-ease);
}
.gc-code__tab:hover { color: var(--gc-fg); }
.gc-code__tab.is-active {
  background: var(--gc-code-bg);
  color: var(--gc-fg);
  border-color: var(--gc-border);
  box-shadow: inset 0 2px 0 var(--gc-accent);
}
.gc-code__body {
  padding: 16px 20px;
  color: var(--gc-code-fg);
  font-size: 13.5px;
  line-height: 1.7;
  overflow-x: auto;
  /* Thin, theme-aware scrollbar — long sample lines overflow on mobile and
     the default OS bar reads as a harsh white slab over the dark code pane. */
  scrollbar-width: thin;
  scrollbar-color: var(--gc-fg-faint) transparent;
}
.gc-code__body::-webkit-scrollbar { height: 8px; }
.gc-code__body::-webkit-scrollbar-track { background: transparent; }
.gc-code__body::-webkit-scrollbar-thumb {
  background: var(--gc-fg-faint);
  border-radius: 999px;
}
.gc-code__body .k { color: var(--gc-code-key); }
.gc-code__body .s { color: var(--gc-code-str); }
.gc-code__body .n { color: var(--gc-code-num); }
.gc-code__body .c { color: var(--gc-code-cmt); }

/* ---------- Trusted strip ---------- */
.gc-trusted__title {
  text-align: center;
  font-family: var(--gc-font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gc-fg-faint);
  margin: 0 0 24px;
}
.gc-trusted__viewport { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.gc-trusted__track {
  display: flex; gap: 56px;
  animation: gcMarquee 40s linear infinite;
  width: max-content;
}
.gc-trusted__logo {
  font-family: var(--gc-font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--gc-fg-faint);
  white-space: nowrap;
  transition: color .2s;
}
.gc-trusted__logo:hover { color: var(--gc-fg); }
@keyframes gcMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Features grid — 4-col on wide, 2-col mid, 1-col mobile ---------- */
.gc-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) { .gc-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .gc-features { grid-template-columns: 1fr; } }

.gc-feature {
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition:
    transform    var(--gc-med) var(--gc-ease-out),
    box-shadow   var(--gc-med) var(--gc-ease-out),
    border-color var(--gc-med) var(--gc-ease-out);
}
.gc-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px var(--gc-accent-wash), var(--gc-shadow-md);
  border-color: var(--gc-accent-tint);
}
.gc-feature:hover .gc-feature__icon {
  background: var(--gc-accent);
  color: #fff;
  border-color: var(--gc-accent);
  box-shadow: 0 0 0 4px var(--gc-accent-wash);
}
.gc-feature__icon {
  transition: background var(--gc-med) var(--gc-ease-out),
              color      var(--gc-med) var(--gc-ease-out),
              border-color var(--gc-med) var(--gc-ease-out),
              box-shadow var(--gc-med) var(--gc-ease-out);
}
/* Lane label (was a 40×40 numeric square; now an auto-sized API-route chip
   so /v1/<name> labels actually fit). */
.gc-feature__icon {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--gc-accent-wash);
  border: 1px solid var(--gc-accent-tint);
  color: var(--gc-accent);
  font-family: var(--gc-font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gc-feature__title { margin: 0 0 8px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.gc-feature__body { margin: 0; color: var(--gc-fg-muted); font-size: 14.5px; }

.gc-feature__bg {
  position: absolute; right: -20%; bottom: -30%;
  width: 60%; aspect-ratio: 1;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}
.gc-feature > * { position: relative; z-index: 1; }

/* ---------- Stats ---------- */
.gc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; text-align: center; }
@media (max-width: 700px) { .gc-stats { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
.gc-stat { padding: 0 16px; }
.gc-stat__num { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.02em; line-height: 1; margin: 0 0 6px; font-family: var(--gc-font-mono); color: var(--gc-fg); }
.gc-stat__label { color: var(--gc-fg-muted); font-size: 13px; margin: 0; }

/* ---------- FAQ ---------- */
.gc-faq { max-width: 760px; margin: 0 auto; }
.gc-faq__item {
  position: relative;
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius);
  background: var(--gc-surface);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .25s var(--gc-ease), box-shadow .25s var(--gc-ease);
}
/* Left accent rail draws in on hover/open. */
.gc-faq__item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--gc-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s var(--gc-ease-out);
}
.gc-faq__item:hover,
.gc-faq__item[open] {
  border-color: var(--gc-accent-tint);
  box-shadow: 0 6px 24px var(--gc-accent-wash);
}
.gc-faq__item:hover::before,
.gc-faq__item[open]::before { transform: scaleY(1); }

.gc-faq__summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  transition: color .15s;
}
.gc-faq__summary::-webkit-details-marker { display: none; }
.gc-faq__item[open] .gc-faq__summary { color: var(--gc-accent); }

.gc-faq__chevron {
  color: var(--gc-fg-faint);
  transition: transform .35s var(--gc-ease-out), color .25s;
  flex-shrink: 0;
}
.gc-faq__item:hover .gc-faq__chevron,
.gc-faq__item[open] .gc-faq__chevron { color: var(--gc-accent); }
.gc-faq__item[open] .gc-faq__chevron { transform: rotate(180deg); }

.gc-faq__body {
  padding: 0 22px 20px;
  color: var(--gc-fg-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- Footer ---------- */
.gc-footer { border-top: 1px solid var(--gc-border-soft); padding: 64px 0 32px; }
.gc-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 720px) { .gc-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.gc-footer__col h4 { font-size: 12px; font-family: var(--gc-font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--gc-fg-faint); margin: 0 0 16px; }
.gc-footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.gc-footer__col a { color: var(--gc-fg-muted); font-size: 14px; }
.gc-footer__col a:hover { color: var(--gc-fg); }
.gc-footer__brand { font-size: 14px; color: var(--gc-fg-muted); max-width: 280px; margin-top: 12px; }
.gc-footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--gc-border-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  color: var(--gc-fg-faint);
  font-size: 13px;
  font-family: var(--gc-font-mono);
}

/* ---------- Ghost spectres (page-fixed canvas) ---------- */
/* Pixelated, ghost-shaped clusters of 1s and 0s that materialise and
   dematerialise at random viewport positions. Single full-viewport canvas,
   pinned with `position: fixed` so it stays put on scroll while the
   population continuously cycles through new positions. */
.gc-spectres {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
/* Page content sits above the spectre layer. The header is intentionally
   excluded here — it owns its own position: sticky declaration earlier in
   the file, and listing it in this compound selector silently overrode it
   to position: relative (same specificity, source-order tie). */
.gc-hero, .gc-section, .gc-divider, .gc-footer { position: relative; z-index: 1; }
body { position: relative; }

/* ---------- Section separator ---------- */
.gc-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  padding: 12px 0;
  position: relative;
  z-index: 1;
}
.gc-divider::before, .gc-divider::after {
  content: ""; flex: 0 1 240px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gc-border), transparent);
}
.gc-divider__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gc-accent);
  box-shadow: 0 0 0 4px var(--gc-accent-wash);
}

/* =============================================================================
 * Hi-tech additions — hero plate, grid backdrop, eyebrow pulse, marquee
 * polish, stats count-up, detector dashboard, engine matrix, pricing.
 * ============================================================================= */

/* ---------- Global page backdrop ----------
 *  .gc-bg-grid — document-anchored: position absolute on a body that's
 *      relative, so the grid spans the full page and scrolls with content
 *      (same anchoring model as the document-space spectres).
 * ----------------------------------------------------------------------- */
.gc-bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--gc-accent-12) 1px, transparent 1px),
    linear-gradient(90deg, var(--gc-accent-12) 1px, transparent 1px);
  background-size: 56px 56px;
  /* Side-fade only — keeps the grid visible top-to-bottom of the document
     so it reads through every section, but the page edges still breathe. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  opacity: .55;
}
/* ---------- Hero plate ---------- */
.gc-hero__inner {
  position: relative;
  z-index: 1;
  text-align: left;
}
.gc-hero__plate .gc-hero__copy { text-align: left; }
.gc-hero__plate .gc-hero__sub  { margin-left: 0; max-width: 540px; }
.gc-hero__plate .gc-hero__cta  { justify-content: flex-start; }
.gc-hero__plate .gc-hero__title { margin: 0 0 16px; }
.gc-hero__plate {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
  padding: 56px;
  border-radius: var(--gc-radius-lg);
  background: color-mix(in srgb, var(--gc-surface) 88%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--gc-border);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 12px 40px rgba(12, 18, 24, .04),
    0 0 80px var(--gc-accent-12);
}
html.dark .gc-hero__plate {
  background: color-mix(in srgb, var(--gc-surface) 78%, transparent);
  box-shadow:
    0 1px 0 rgba(122, 164, 255, .12) inset,
    0 12px 40px rgba(0,0,0,.5),
    0 0 80px var(--gc-accent-24);
}
@media (max-width: 880px) {
  .gc-hero__plate { grid-template-columns: 1fr; padding: 40px 24px; gap: 32px; }
}
/* Four corner brackets — the "instrument panel" feel. */
.gc-hero__plate::before,
.gc-hero__plate::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--gc-accent);
  pointer-events: none;
}
.gc-hero__plate::before { top: -1px; left: -1px;
  border-right: 0; border-bottom: 0; border-top-left-radius: 4px; }
.gc-hero__plate::after  { bottom: -1px; right: -1px;
  border-left: 0; border-top: 0; border-bottom-right-radius: 4px; }
/* Twin badges (top-right + bottom-left) for the other corners. */
.gc-hero__corner {
  position: absolute;
  width: 18px; height: 18px;
  border: 1.5px solid var(--gc-accent);
  pointer-events: none;
}
.gc-hero__corner--tr { top: -1px; right: -1px;
  border-left: 0; border-bottom: 0; border-top-right-radius: 4px; }
.gc-hero__corner--bl { bottom: -1px; left: -1px;
  border-right: 0; border-top: 0; border-bottom-left-radius: 4px; }
/* Live indicator badge above the plate. */
.gc-hero__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gc-accent-wash);
  border: 1px solid var(--gc-accent-tint);
  color: var(--gc-accent);
  font-family: var(--gc-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.gc-hero__live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gc-accent);
  box-shadow: 0 0 0 0 var(--gc-accent-glow);
  animation: gcPulse 1.6s ease-out infinite;
}
@keyframes gcPulse {
  0%   { box-shadow: 0 0 0 0 var(--gc-accent-glow); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---------- Section eyebrow gets a pulsing accent dot ---------- */
.gc-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.gc-section__eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gc-accent);
  box-shadow: 0 0 0 0 var(--gc-accent-glow);
  animation: gcPulse 2s ease-out infinite;
}

/* ---------- Marquee polish ---------- */
.gc-trusted__title {
  text-align: center;
  font-family: var(--gc-font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gc-fg-faint);
  margin: 0 0 28px;
}
.gc-trusted__viewport {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.gc-trusted__track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: gcMarquee 38s linear infinite;
  will-change: transform;
}
.gc-trusted__viewport:hover .gc-trusted__track {
  animation-play-state: paused;
}
.gc-trusted__logo {
  font-family: var(--gc-font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--gc-fg-faint);
  white-space: nowrap;
  position: relative;
  transition: color var(--gc-fast);
}
.gc-trusted__logo + .gc-trusted__logo::before {
  content: "·";
  position: absolute;
  left: -34px;
  color: var(--gc-fg-faint);
  opacity: 0.5;
}
.gc-trusted__logo:hover { color: var(--gc-accent); }
@keyframes gcMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Stats — count-up reveal ---------- */
.gc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 720px) { .gc-stats { grid-template-columns: repeat(2, 1fr); } }
.gc-stat {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--gc-radius);
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  text-align: center;
  transition: border-color var(--gc-fast), box-shadow var(--gc-fast), transform var(--gc-fast);
  overflow: hidden;
}
/* (.gc-stat::before is intentionally NOT defined here — the unified
   pulse-border block at the bottom of this file owns it now.) */
.gc-stat:hover {
  border-color: var(--gc-accent-tint);
  box-shadow: 0 8px 28px var(--gc-accent-glow);
  transform: translateY(-2px);
}
/* .gc-stat:hover::before opacity is set by the unified pulse block below. */
.gc-stat__num {
  font-family: var(--gc-font-mono);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--gc-fg);
  font-variant-numeric: tabular-nums;
}
.gc-stat__label {
  font-size: 13px;
  color: var(--gc-fg-muted);
  margin: 0;
}

/* ---------- Detector verdicts dashboard ---------- */
.gc-verdicts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .gc-verdicts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .gc-verdicts { grid-template-columns: 1fr; } }
.gc-verdict {
  position: relative;
  padding: 20px;
  border-radius: var(--gc-radius);
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color var(--gc-fast), box-shadow var(--gc-fast);
}
.gc-verdict:hover {
  border-color: var(--gc-accent-tint);
  box-shadow: 0 0 0 4px var(--gc-accent-wash);
}
.gc-verdict__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gc-verdict__name {
  font-family: var(--gc-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gc-fg-muted);
}
.gc-verdict__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--gc-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gc-accent-wash);
  color: var(--gc-accent);
  border: 1px solid var(--gc-accent-tint);
}
.gc-verdict__pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gc-accent);
  box-shadow: 0 0 8px var(--gc-accent);
}
.gc-verdict__metric {
  font-family: var(--gc-font-mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--gc-fg);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.gc-verdict__sub {
  font-size: 13px;
  color: var(--gc-fg-muted);
  margin: 0;
}
/* Mini bar showing the score visually. */
.gc-verdict__bar {
  height: 4px;
  width: 100%;
  background: var(--gc-soft);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.gc-verdict__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--gc-bar, 100%);
  background: linear-gradient(90deg, var(--gc-accent), var(--gc-accent-2, var(--gc-accent)));
  border-radius: inherit;
  box-shadow: 0 0 12px var(--gc-accent-glow);
  transition: width 1.2s var(--gc-ease-out, ease-out);
}

/* ---------- Engine matrix ---------- */
.gc-engines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 880px) { .gc-engines { grid-template-columns: 1fr; } }
.gc-engine {
  position: relative;
  padding: 24px;
  border-radius: var(--gc-radius);
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  transition: transform var(--gc-fast), border-color var(--gc-fast), box-shadow var(--gc-fast);
}
.gc-engine:hover {
  transform: translateY(-3px);
  border-color: var(--gc-accent-tint);
  box-shadow: 0 18px 40px var(--gc-accent-glow);
}
.gc-engine__chip {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--gc-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gc-accent);
  background: var(--gc-accent-wash);
  border: 1px solid var(--gc-accent-tint);
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
}
.gc-engine__name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.gc-engine__sub {
  color: var(--gc-fg-muted);
  font-size: 14px;
  margin: 0;
}
.gc-engine__identities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.gc-engine__identity {
  font-family: var(--gc-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gc-soft);
  color: var(--gc-fg-muted);
  border: 1px solid var(--gc-border);
}
.gc-engine__identity--hot {
  background: var(--gc-accent-wash);
  color: var(--gc-accent);
  border-color: var(--gc-accent-tint);
}

/* ---------- Pricing ---------- */
.gc-prices {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 1180px) { .gc-prices { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .gc-prices { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gc-prices { grid-template-columns: 1fr; } }
.gc-price {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--gc-radius);
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  transition: border-color var(--gc-fast), transform var(--gc-fast), box-shadow var(--gc-fast);
}

/* ---------- Liquid-glass card surfaces ----------
 * Frosts every repeating card into a translucent backdrop-blurred pane over
 * the page grid + spectres. Placed after each card's own rule so the glass
 * fill overrides the opaque --gc-surface in one shared block. Hover states
 * (defined per-card above) keep their own border/shadow treatment. */
.gc-feature,
.gc-engine,
.gc-verdict,
.gc-price,
.gc-stat,
.gc-faq__item {
  background: var(--gc-glass-bg);
  border-color: var(--gc-glass-border);
  -webkit-backdrop-filter: blur(var(--gc-glass-blur)) saturate(180%);
          backdrop-filter: blur(var(--gc-glass-blur)) saturate(180%);
  box-shadow:
    inset 0 1px 0 var(--gc-glass-hi),
    var(--gc-glass-shadow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  /* No backdrop-filter: fall back to the opaque surface so cards stay legible. */
  .gc-feature,
  .gc-engine,
  .gc-verdict,
  .gc-price,
  .gc-stat,
  .gc-faq__item { background: var(--gc-surface); }
}

/* =========================================================================
 * Animated gradient border — mask-trick implementation.
 *
 * The well-known cross-browser pattern:
 *   1. ::before fills the element with the gradient (single layer).
 *   2. CSS mask subtracts the inner content-box from the outer border-box,
 *      leaving the gradient visible only as a 2px ring.
 *   3. Animate the gradient's background-position; the ring inherits.
 *
 * This works because we're animating ONE simple background, not a
 * multi-layer comma-list (where browsers handle position interpolation
 * inconsistently). The result is a true animated border that shows the
 * gradient flowing continuously around the element.
 * ========================================================================= */

@keyframes gcBorderPulse {
  0%   { background-position: 0%   50%; }
  100% { background-position: 200% 50%; }
}

/* Featured pricing tier — always-on bright pulse. */
.gc-price--feat {
  position: relative;
  isolation: isolate;
  box-shadow: 0 18px 50px var(--gc-accent-glow);
  transform: translateY(-6px);
}
.gc-price--feat::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    var(--gc-accent),
    var(--gc-accent-2, #5b9bff),
    color-mix(in srgb, var(--gc-accent) 30%, #ffffff),
    var(--gc-accent),
    var(--gc-accent-2, #5b9bff)
  );
  background-size: 320% 100%;
  background-position: 0% 50%;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
          mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  animation: gcBorderPulse 2.8s linear infinite;
  z-index: 0;
}
@media (prefers-reduced-motion: reduce) {
  .gc-price--feat::before { animation: none; }
}

/* Reusable utility — drop `gc-pulse-frame` on any element. */
.gc-pulse-frame {
  position: relative;
  isolation: isolate;
}
.gc-pulse-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    var(--gc-accent),
    var(--gc-accent-2, #5b9bff),
    color-mix(in srgb, var(--gc-accent) 30%, #ffffff),
    var(--gc-accent),
    var(--gc-accent-2, #5b9bff)
  );
  background-size: 320% 100%;
  background-position: 0% 50%;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
          mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  animation: gcBorderPulse 2.8s linear infinite;
  z-index: 0;
}
@media (prefers-reduced-motion: reduce) {
  .gc-pulse-frame::before { animation: none; }
}
.gc-price--feat::after {
  content: "Most popular";
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  padding: 3px 10px;
  background: var(--gc-accent);
  color: #fff;
  font-family: var(--gc-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 4px 14px var(--gc-accent-glow);
}
.gc-price__tier {
  font-family: var(--gc-font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gc-fg-muted);
  margin: 0 0 8px;
}
.gc-price__amount {
  font-family: var(--gc-font-mono);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--gc-fg);
}
.gc-price__amount small {
  font-size: 14px;
  font-weight: 500;
  color: var(--gc-fg-muted);
  letter-spacing: 0;
}
.gc-price__desc {
  color: var(--gc-fg-muted);
  font-size: 14px;
  margin: 8px 0 20px;
}
.gc-price__list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.gc-price__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--gc-fg);
}
.gc-price__list li::before {
  content: "›";
  color: var(--gc-accent);
  font-family: var(--gc-font-mono);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.4;
}
.gc-price .gc-btn { margin-top: auto; justify-content: center; }

/* ---------- Contact form ---------- */
.gc-form { max-width: 640px; display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
.gc-form__row { display: flex; flex-direction: column; gap: 7px; }
.gc-form__label {
  font-family: var(--gc-font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--gc-fg-muted);
}
.gc-form__hint { font-size: 12px; color: var(--gc-fg-faint); }
.gc-form select,
.gc-form input,
.gc-form textarea {
  width: 100%; padding: 12px 14px;
  font-family: inherit; font-size: 14px; color: var(--gc-fg);
  background: var(--gc-surface); border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius-sm);
  transition: border-color var(--gc-fast) var(--gc-ease),
              box-shadow var(--gc-fast) var(--gc-ease);
}
.gc-form select:focus,
.gc-form input:focus,
.gc-form textarea:focus {
  outline: none; border-color: var(--gc-accent);
  box-shadow: 0 0 0 3px var(--gc-accent-wash);
}
.gc-form input[readonly] { color: var(--gc-fg-muted); background: var(--gc-soft); cursor: default; }
.gc-form textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.gc-form__recipient { font-family: var(--gc-font-mono); font-size: 12px; color: var(--gc-fg-muted); margin: 0; }
.gc-form__recipient strong { color: var(--gc-accent); font-weight: 600; }
.gc-form__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.gc-form__note { font-size: 12px; color: var(--gc-fg-faint); }

/* ---------- Reveal-on-scroll utility ---------- */
.gc-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--gc-ease-out, ease-out), transform .7s var(--gc-ease-out, ease-out);
  will-change: opacity, transform;
}
.gc-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =============================================================================
 * Tier-2 polish: terminal, sparklines, button binary-flash, hero plate
 * restructure (top row 2-col + terminal underneath).
 * ============================================================================= */

/* ---------- Hero plate becomes vertical flex (top row + terminal) ---------- */
.gc-hero__plate {
  display: flex;
  flex-direction: column;
  align-items: stretch;            /* override the grid-era `center` */
  grid-template-columns: none;
  gap: 32px;
}
.gc-hero__plate-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) {
  .gc-hero__plate-top { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Live terminal ---------- */
.gc-terminal {
  font-family: var(--gc-font-mono);
  font-size: 13px;
  line-height: 1.55;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--gc-bg) 92%, transparent) 0%,
                            color-mix(in srgb, var(--gc-bg) 88%, transparent) 100%);
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius);
  overflow: hidden;
  box-shadow: 0 8px 30px var(--gc-accent-wash);
  position: relative;
}
.gc-terminal__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--gc-soft) 88%, transparent);
  border-bottom: 1px solid var(--gc-border);
}
.gc-terminal__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gc-fg-faint);
  opacity: .55;
}
.gc-terminal__dot:nth-child(1) { background: #ff6259; opacity: .85; }
.gc-terminal__dot:nth-child(2) { background: #f5bf3b; opacity: .85; }
.gc-terminal__dot:nth-child(3) { background: #5cd065; opacity: .85; }
.gc-terminal__title {
  margin-left: 8px;
  color: var(--gc-fg-faint);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* Lane chip — shows the current API lane being demoed; updated by JS. */
.gc-terminal__lane {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gc-accent-wash);
  border: 1px solid var(--gc-accent-tint);
  color: var(--gc-accent);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
}
.gc-terminal__lane::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gc-accent);
  box-shadow: 0 0 6px var(--gc-accent);
  margin-right: 6px;
  vertical-align: 1px;
  animation: gcPulse 1.6s ease-out infinite;
}
.gc-terminal__body {
  /* Fixed height so the terminal never grows as new lines stream in.
     Internal auto-scroll + top/bottom fade so newest is in view, oldest
     fades out — never a hard edge or visible scrollbar. */
  padding: 16px 18px;
  height: 240px;
  overflow-y: auto;
  scrollbar-width: none;
  color: var(--gc-fg);
  position: relative;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
}
.gc-terminal__body::-webkit-scrollbar { display: none; }
.gc-terminal__line {
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
}
.gc-terminal__line + .gc-terminal__line { margin-top: 4px; }
.gc-term-prompt { color: var(--gc-accent); }
.gc-term-key    { color: var(--gc-accent); }
.gc-term-ok     { color: #5cd065; }
.gc-term-warn   { color: #f5bf3b; }
.gc-term-muted  { color: var(--gc-fg-faint); }
.gc-term-num    { color: var(--gc-fg); font-weight: 600; }
.gc-term-caret {
  display: inline-block;
  width: 8px;
  height: 14px;
  vertical-align: -2px;
  background: var(--gc-accent);
  margin-left: 2px;
  animation: gcCaret 1.05s steps(2) infinite;
}
@keyframes gcCaret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* ---------- Verdict sparkline ---------- */
.gc-verdict__spark {
  display: block;
  width: 100%;
  height: 28px;
  overflow: visible;
}
.gc-verdict__spark path {
  fill: none;
  stroke: var(--gc-accent);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px var(--gc-accent-glow));
  /* Drawn-in animation triggered by .is-visible on the card. */
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  transition: stroke-dashoffset 1.4s var(--gc-ease-out);
}
.gc-verdict.is-visible .gc-verdict__spark path { stroke-dashoffset: 0; }
.gc-verdict__spark circle {
  fill: var(--gc-accent);
  filter: drop-shadow(0 0 6px var(--gc-accent));
  animation: gcPulse 1.8s ease-out infinite;
  transform-origin: center;
}

/* ---------- Button binary-flash signature interaction ---------- */
/* JS swaps text into data-flash and runs the cycle; we just style the result.
   Adds a soft accent halo bloom on hover that pairs with the text scramble. */
.gc-btn[data-flash] { position: relative; }
.gc-btn[data-flash]:hover { letter-spacing: 0.02em; }
.gc-btn[data-flash]::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(120% 120% at 50% 50%, var(--gc-accent-glow), transparent 70%);
  opacity: 0;
  transition: opacity .35s var(--gc-ease-out);
  pointer-events: none;
  z-index: -1;
}
.gc-btn[data-flash]:hover::after { opacity: 1; }

/* =============================================================================
 * Interactive playground — lane tabs, two-pane layout (code + response),
 * feature-card "Try it" links, copy-to-clipboard.
 * ============================================================================= */

/* Lane tabs (the pill row at top of playground). */
.gc-playground__lanes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.gc-lane {
  padding: 7px 14px;
  font-family: var(--gc-font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gc-fg-muted);
  background: transparent;
  border: 1px solid var(--gc-border);
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--gc-fast) var(--gc-ease),
              background var(--gc-fast) var(--gc-ease),
              border-color var(--gc-fast) var(--gc-ease),
              box-shadow var(--gc-fast) var(--gc-ease);
}
.gc-lane:hover { color: var(--gc-fg); border-color: var(--gc-fg-faint); }
.gc-lane.is-active {
  color: var(--gc-accent);
  background: var(--gc-accent-wash);
  border-color: var(--gc-accent-tint);
  box-shadow: 0 0 0 3px var(--gc-accent-wash), 0 4px 12px var(--gc-accent-glow);
}

/* Two-pane code + response layout. Stacks on mobile. */
.gc-playground__panes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 20px;
}
@media (max-width: 880px) {
  .gc-playground__panes { grid-template-columns: 1fr; }
}

/* Example-showcase footnote — clarifies the panes are illustrative examples,
   not a live, executable widget. */
.gc-playground__note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--gc-fg-faint);
}
.gc-playground__note code {
  font-family: var(--gc-font-mono);
  color: var(--gc-fg-muted);
}

/* Playground response terminal — fixed height (so the card never grows on
   stream). Internal auto-scroll keeps newest content in view; scrollbar is
   hidden so the fade mask reads cleanly. */
.gc-playground__out .gc-terminal__body {
  height: 380px;
  overflow-y: auto;
  scrollbar-width: none;            /* firefox */
}
.gc-playground__out .gc-terminal__body::-webkit-scrollbar {
  display: none;                    /* chromium / safari */
}

/* Copy button on the code pane. */
.gc-code { position: relative; }
.gc-code__copy {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 5px 10px;
  font-family: var(--gc-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gc-fg-muted);
  background: var(--gc-soft);
  border: 1px solid var(--gc-border);
  border-radius: 999px;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--gc-fast), color var(--gc-fast), background var(--gc-fast), border-color var(--gc-fast);
  z-index: 1;
}
.gc-code:hover .gc-code__copy,
.gc-code__copy:focus { opacity: 1; }
.gc-code__copy:hover {
  color: var(--gc-accent);
  border-color: var(--gc-accent-tint);
}
.gc-code__copy.is-copied {
  opacity: 1;
  color: var(--gc-accent);
  background: var(--gc-accent-wash);
  border-color: var(--gc-accent-tint);
}

/* Feature-card "Try it ▸" link — sits at the bottom of each card. The
   body uses flex:1 so the try button always lands flush at the bottom
   regardless of how much text the body has. */
.gc-feature {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gc-feature__body { flex: 1; }
.gc-feature__try {
  margin-top: 16px;
  align-self: flex-start;
  padding: 6px 12px;
  font-family: var(--gc-font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gc-accent);
  background: var(--gc-accent-wash);
  border: 1px solid var(--gc-accent-tint);
  border-radius: 999px;
  text-decoration: none;
  transition: background var(--gc-fast), color var(--gc-fast), transform var(--gc-fast), box-shadow var(--gc-fast);
}
.gc-feature__try:hover {
  background: var(--gc-accent);
  color: #fff;
  transform: translateX(2px);
  box-shadow: 0 4px 14px var(--gc-accent-glow);
}

/* =============================================================================
 * Lane-specific previews — what the user would see when wired to live fleet:
 * a screenshot mockup, a PDF page, a session-state card, a live event feed.
 * Sized to fit inside the fixed-height terminal body without scroll growth.
 * ============================================================================= */

/* Wrapper for any preview element appended to the terminal body. */
.gc-terminal__preview {
  margin: 8px 0 4px;
  opacity: 1;
  transform: none;
  transition: opacity .45s var(--gc-ease-out), transform .45s var(--gc-ease-out);
}
.gc-terminal__preview.is-revealing { opacity: 0; transform: translateY(8px); }

.gc-prev { font-family: var(--gc-font-sans); }
.gc-prev__cap {
  margin-top: 6px;
  font-family: var(--gc-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--gc-fg-faint);
  text-transform: uppercase;
}

/* ---------- Screenshot mockup — tiny faux browser window ---------- */
.gc-prev--shot {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gc-border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--gc-surface);
  box-shadow: 0 8px 24px var(--gc-accent-wash);
}
.gc-prev__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--gc-soft);
  border-bottom: 1px solid var(--gc-border);
}
.gc-prev__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gc-fg-faint);
  opacity: .6;
}
.gc-prev__dot:nth-child(1) { background: #ff6259; opacity: .85; }
.gc-prev__dot:nth-child(2) { background: #f5bf3b; opacity: .85; }
.gc-prev__dot:nth-child(3) { background: #5cd065; opacity: .85; }
.gc-prev__addr {
  margin-left: 8px;
  font-family: var(--gc-font-mono);
  font-size: 10.5px;
  color: var(--gc-fg-muted);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Page viewport — used by both screenshot and navigate. Holds a mini
   high-fidelity render of the actual ghostcrawl hero. */
.gc-prev__page {
  padding: 14px 16px;
  background: var(--gc-bg);
  position: relative;
  min-height: 140px;
}
.gc-prev__page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--gc-accent-12) 1px, transparent 1px),
    linear-gradient(90deg, var(--gc-accent-12) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at top left, #000, transparent 80%);
          mask-image: radial-gradient(ellipse at top left, #000, transparent 80%);
  pointer-events: none;
  opacity: .45;
}

/* Hero block: mini ghost on the left, real hero copy on the right. */
.gc-prev__hero-block {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}
.gc-prev__ghost {
  flex: 0 0 auto;
  width: 38px;
  height: 50px;
  position: relative;
}
.gc-prev__ghost-body {
  position: absolute;
  inset: 0;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, #fff 0%, #d8e3ff 100%);
  border: 1px solid var(--gc-accent-24, rgba(28,99,255,0.24));
  box-shadow:
    inset 0 -8px 8px rgba(28,99,255,0.10),
    0 4px 14px var(--gc-accent-wash);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  padding-top: 14px;
}
.gc-prev__ghost-eye {
  width: 4px; height: 6px;
  border-radius: 50%;
  background: #060912;
}
.gc-prev__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gc-prev__pill {
  font-family: var(--gc-font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gc-accent);
  background: var(--gc-accent-wash);
  border: 1px solid var(--gc-accent-tint);
  border-radius: 999px;
  padding: 1px 7px;
  align-self: flex-start;
}
.gc-prev__h1 {
  font-family: var(--gc-font-sans);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--gc-fg);
  line-height: 1.1;
}
.gc-prev__h1 em {
  font-style: normal;
  background: linear-gradient(180deg, var(--gc-accent), var(--gc-fg));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.gc-prev__sub {
  font-family: var(--gc-font-sans);
  font-size: 9.5px;
  color: var(--gc-fg-muted);
  line-height: 1.3;
}
.gc-prev__ctas { display: flex; gap: 6px; margin-top: 3px; }
.gc-prev__cta {
  font-family: var(--gc-font-sans);
  font-size: 8.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid var(--gc-border);
  color: var(--gc-fg);
  background: var(--gc-surface);
}
.gc-prev__cta--primary {
  background: var(--gc-fg);
  color: var(--gc-bg);
  border-color: var(--gc-fg);
}

/* Capability strip across the bottom of the screenshot mockup. */
.gc-prev__cap-strip {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  position: relative;
}
.gc-prev__cap-strip span {
  font-family: var(--gc-font-mono);
  font-size: 8.5px;
  color: var(--gc-accent);
  background: var(--gc-accent-wash);
  border: 1px solid var(--gc-accent-tint);
  border-radius: 999px;
  padding: 2px 7px;
}

/* ---------- PDF mockup — A4 paper with text lines ---------- */
.gc-prev--pdf {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gc-prev__paper {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 210 / 297;
  background: #fff;
  color: #060912;
  border: 1px solid var(--gc-border);
  border-radius: 3px;
  padding: 16px 18px;
  box-shadow: 0 12px 32px rgba(12, 18, 24, .12), 0 2px 8px rgba(12, 18, 24, .06);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
/* PDF document with real text content — looks like an actual generated
   API reference document, not bars. */
.gc-prev__pdf-brand {
  font-family: var(--gc-font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: #1c63ff;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(28,99,255,0.18);
  padding-bottom: 6px;
}
.gc-prev__pdf-h1 {
  font-family: var(--gc-font-sans);
  font-size: 14px;
  font-weight: 800;
  color: #060912;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.gc-prev__pdf-h2 {
  font-family: var(--gc-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #1c63ff;
  margin: 8px 0 2px;
}
.gc-prev__pdf-body {
  font-family: var(--gc-font-sans);
  font-size: 8.5px;
  line-height: 1.5;
  color: #2a2f3a;
}
.gc-prev__pdf-pgnum {
  position: absolute;
  bottom: 6px; right: 10px;
  font-family: var(--gc-font-mono);
  font-size: 8px;
  color: #888;
}

/* ---------- Navigate preview — browser controls + live status ---------- */
.gc-prev--nav {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gc-accent-tint);
  border-radius: 6px;
  overflow: hidden;
  background: var(--gc-surface);
  box-shadow: 0 8px 28px var(--gc-accent-wash);
}
.gc-prev__navbtn {
  background: transparent;
  border: 1px solid var(--gc-border);
  color: var(--gc-fg-muted);
  width: 18px; height: 18px;
  border-radius: 3px;
  font-size: 11px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  font-family: var(--gc-font-mono);
}
.gc-prev__page--nav { padding-bottom: 8px; }
.gc-prev__nav-foot {
  position: relative;
  margin-top: 10px;
  padding: 6px 10px;
  background: var(--gc-soft);
  border-top: 1px solid var(--gc-border);
  border-radius: 4px;
}
.gc-prev__nav-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--gc-font-mono);
  font-size: 9.5px;
  color: var(--gc-fg-muted);
}
.gc-prev__nav-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gc-accent);
  box-shadow: 0 0 6px var(--gc-accent);
  animation: gcPulse 1.6s ease-out infinite;
}
.gc-prev__nav-id {
  margin-left: 6px;
  color: var(--gc-accent);
  font-weight: 600;
}

/* ---------- Session state card ---------- */
.gc-prev--session {
  border: 1px solid var(--gc-border);
  border-radius: 6px;
  background: var(--gc-surface);
  padding: 12px 14px;
  box-shadow: 0 4px 14px var(--gc-accent-wash);
}
.gc-prev__session-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gc-border-soft);
}
.gc-prev__session-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--gc-accent-wash);
  color: var(--gc-accent);
  border: 1px solid var(--gc-accent-tint);
  font-family: var(--gc-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gc-prev__session-pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gc-accent);
  box-shadow: 0 0 8px var(--gc-accent);
  animation: gcPulse 1.6s ease-out infinite;
}
.gc-prev__session-id {
  font-family: var(--gc-font-mono);
  font-size: 11px;
  color: var(--gc-fg-muted);
}
.gc-prev__session-list {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  font-family: var(--gc-font-mono);
  font-size: 11.5px;
}
.gc-prev__session-list > div { display: flex; gap: 8px; }
.gc-prev__session-list dt { color: var(--gc-fg-faint); margin: 0; min-width: 56px; }
.gc-prev__session-list dd { color: var(--gc-fg); margin: 0; }

/* ---------- Live event-stream feed ---------- */
.gc-prev--stream {
  border: 1px solid var(--gc-border);
  border-radius: 6px;
  background: var(--gc-surface);
  padding: 8px 10px;
  font-family: var(--gc-font-mono);
  font-size: 11.5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gc-prev__stream-row {
  display: flex; align-items: center; gap: 8px;
  padding: 3px 0;
  color: var(--gc-fg-muted);
  border-bottom: 1px dashed var(--gc-border-soft);
}
.gc-prev__stream-row:last-child { border-bottom: 0; }
.gc-prev__stream-row--live { color: var(--gc-fg); }
.gc-prev__stream-tag {
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gc-prev__stream-tag.net { background: var(--gc-accent-wash); color: var(--gc-accent); border: 1px solid var(--gc-accent-tint); }
.gc-prev__stream-tag.dom { background: rgba(92,208,101,0.10); color: #4a9f54; border: 1px solid rgba(92,208,101,0.25); }
.gc-prev__stream-tag.con { background: rgba(245,191,59,0.10); color: #b08018; border: 1px solid rgba(245,191,59,0.30); }
.gc-prev__stream-tag.lif { background: var(--gc-soft); color: var(--gc-fg-muted); border: 1px solid var(--gc-border); }

/* =============================================================================
 * Unified card pulse-border system (mask-trick implementation).
 *
 * Every card gets a ::before that paints a 2px gradient ring via mask
 * subtraction. At rest: subtle ambient pulse, low alpha. On hover:
 * vivid pulse (full accent gradient), the card lifts and glows.
 *
 * The .gc-price--feat tier is excluded — it has its own always-on bright
 * version above.
 * ============================================================================= */

.gc-feature,
.gc-engine,
.gc-verdict,
.gc-stat,
.gc-price:not(.gc-price--feat) {
  position: relative;
  isolation: isolate;
  transition:
    transform   var(--gc-fast) var(--gc-ease),
    box-shadow  var(--gc-fast) var(--gc-ease);
}

.gc-feature::before,
.gc-engine::before,
.gc-verdict::before,
.gc-stat::before,
.gc-price:not(.gc-price--feat)::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    var(--gc-accent),
    var(--gc-accent-2, #5b9bff),
    color-mix(in srgb, var(--gc-accent) 30%, #ffffff),
    var(--gc-accent),
    var(--gc-accent-2, #5b9bff)
  );
  background-size: 320% 100%;
  background-position: 0% 50%;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
          mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
  /* Ambient: full gradient is there but dialled down via opacity, slow. */
  opacity: 0.45;
  animation: gcBorderPulse 7s linear infinite;
  transition: opacity var(--gc-fast) var(--gc-ease);
}

/* On hover: the same ring goes full opacity + faster animation,
   lift + halo on the card itself. */
.gc-feature:hover::before,
.gc-engine:hover::before,
.gc-verdict:hover::before,
.gc-stat:hover::before,
.gc-price:not(.gc-price--feat):hover::before {
  opacity: 1;
  animation-duration: 2.8s;
}
.gc-feature:hover,
.gc-engine:hover,
.gc-verdict:hover,
.gc-stat:hover,
.gc-price:not(.gc-price--feat):hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px var(--gc-accent-glow);
}

/* Stagger ambient start phase per-card-type so rows don't pulse in
   lockstep. Achieved with negative animation-delay on ::before. */
.gc-engine::before  { animation-delay: -1s;   }
.gc-verdict::before { animation-delay: -2.4s; }
.gc-stat::before    { animation-delay: -3.6s; }
.gc-price:not(.gc-price--feat)::before { animation-delay: -4.8s; }

@media (prefers-reduced-motion: reduce) {
  .gc-feature::before, .gc-engine::before, .gc-verdict::before,
  .gc-stat::before, .gc-price:not(.gc-price--feat)::before,
  .gc-feature:hover::before, .gc-engine:hover::before,
  .gc-verdict:hover::before, .gc-stat:hover::before,
  .gc-price:not(.gc-price--feat):hover::before {
    animation: none;
  }
}

/* =============================================================================
 * Interactive playground — site selector + Run button (real cached replay)
 * ============================================================================= */
.gc-playground__run-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 14px 0 16px;
}
@media (max-width: 560px) { .gc-playground__run-row { grid-template-columns: 1fr; } }

.gc-playground__site {
  flex: 1;
  border: 0; outline: 0; background: transparent;
  color: var(--gc-fg);
  font-family: var(--gc-font-mono);
  font-size: 14px;
  padding: 12px 0;
  cursor: pointer;
}
.gc-playground__site option { background: var(--gc-surface); color: var(--gc-fg); }

.gc-playground__run {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border-radius: var(--gc-radius-sm);
  border: 1px solid var(--gc-accent);
  background: var(--gc-accent);
  color: #fff;
  font-family: var(--gc-font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: filter var(--gc-fast) var(--gc-ease), opacity var(--gc-fast) var(--gc-ease);
}
.gc-playground__run:hover { filter: brightness(1.08); }
.gc-playground__run:disabled { cursor: progress; opacity: .75; }
.gc-playground__run-arrow { transition: transform var(--gc-fast) var(--gc-ease); }
.gc-playground__run:hover .gc-playground__run-arrow { transform: translateX(2px); }
.gc-playground__run.is-running .gc-playground__run-arrow {
  animation: gc-run-pulse 0.7s var(--gc-ease) infinite;
}
@keyframes gc-run-pulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

.gc-terminal__hint { color: var(--gc-fg-muted); }
.gc-terminal__hint strong { color: var(--gc-accent); }

/* ---------- Real captured images inside the preview cards ---------- */
.gc-prev__shot-img {
  background: var(--gc-bg);
  max-height: 230px;
  overflow: hidden;
  display: flex;
}
.gc-prev__shot-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top center;
}
.gc-prev__shot-img--nav { max-height: 200px; }

.gc-prev__pdf-img {
  width: 100%;
  max-width: 230px;
  aspect-ratio: 210 / 297;
  overflow: hidden;
  border: 1px solid var(--gc-border);
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(12, 18, 24, .12), 0 2px 8px rgba(12, 18, 24, .06);
}
.gc-prev__pdf-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top center;
}

/* Fallback when a capture image is unavailable. */
.gc-prev__page--fallback {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gc-fg-faint);
}
.gc-prev__fallback-mark { font-size: 28px; color: var(--gc-accent); opacity: .6; }
.gc-prev__fallback-url { font-family: var(--gc-font-mono); font-size: 11px; }
