:root {
  /* ── DESIGN TOKENS ─────────────────────────────────────────────────────
     Centralised scales — the "Tailwind feel" without the build step.
     Add new tokens before you reach for an inline magic number. */

  /* Color (semantic) */
  --bg:         #0a0d14;
  --bg-deep:    #06080f;
  --bg-card:    rgba(18,23,36,0.7);
  --bg-code:    #0f1220;
  --border:     rgba(148,163,184,0.14);
  --border-2:   rgba(148,163,184,0.22);
  --text:       #e6ecf5;
  --text-muted: #8a94a6;
  --text-faint: #5d6778;
  --accent:     #a78bfa;
  --accent-d:   #8b5cf6;
  --accent-2:   #10b981;
  --astro:      #38bdf8;
  --pink:       #f472b6;

  /* Spacing scale (4px base) — use var(--s-N) instead of hard-coding px */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;
  --s-10: 128px;

  /* Section rhythm — fluid by viewport, capped */
  --section-y: clamp(48px, 8vw, 96px);

  /* Radius */
  --r-1: 6px;
  --r-2: 10px;
  --r-3: 14px;
  --r-pill: 999px;

  /* Easing + duration */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:    0.15s;
  --dur-base:    0.25s;
  --dur-slow:    0.5s;

  /* Typography */
  --font-body:  -apple-system, 'Inter', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background:
    radial-gradient(1400px 700px at 80% -10%, #1c1845 0%, transparent 60%),
    radial-gradient(900px 500px at 10% 30%, #0e2233 0%, transparent 60%),
    linear-gradient(180deg, #0a0d14, #06080f);
  min-height: 100vh; color: var(--text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: var(--font-mono); }
pre {
  background: var(--bg-code); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.7;
  color: #a5b4fc;
}
p code, li code { background: rgba(148,163,184,0.12); padding: 2px 6px; border-radius: 4px; font-size: 0.92em; color: #ddd6fe; }
pre code { background: none; padding: 0; color: inherit; }

.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 32px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; backdrop-filter: blur(12px);
  background: rgba(10,13,20,0.85); z-index: 10;
}
.brand { font-weight: 700; font-size: 17px; color: var(--accent); }
.nav-links { display: flex; gap: 28px; font-size: 14px; }
.nav-links a { color: var(--text-muted); }
.nav-links a:hover, .nav-links .current { color: var(--text); text-decoration: none; }

.hero-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* HERO */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); padding: 5px 14px;
  border: 1px solid var(--border-2); border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 60px); line-height: 1.05;
  letter-spacing: -0.025em; margin: 0 0 18px;
  font-weight: 700;
}
.grad {
  background: linear-gradient(90deg, #a78bfa, #38bdf8 60%, #10b981);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead {
  font-size: 17px; color: var(--text-muted);
  max-width: 640px; margin: 0 auto 32px;
  line-height: 1.65;
}
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; transition: all 0.15s;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(180deg, #a78bfa, #8b5cf6);
  color: #0a0d14;
}
.btn-primary:hover { transform: translateY(-1px); text-decoration: none; box-shadow: 0 8px 24px rgba(167,139,250,0.25); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-block { display: block; text-align: center; margin-top: 18px; }

.hero-snippet {
  max-width: 720px; margin: 0 auto;
  text-align: left;
}

/* FEATURES */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin: 24px 0 72px;
}
.feature {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px;
  backdrop-filter: blur(8px);
}
.feature-icon {
  font-size: 26px; color: var(--accent);
  margin-bottom: 10px; line-height: 1;
}
.feature h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* HOW */
.how { padding: 48px 0 72px; }
.how h2 {
  font-size: 28px; letter-spacing: -0.02em;
  margin: 0 0 28px; text-align: center;
}
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step {
  position: relative; padding: 28px 22px 22px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px;
}
.step-num {
  position: absolute; top: -14px; left: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #0a0d14;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
}
.step h4 { margin: 0 0 8px; font-size: 16px; }
.step p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* PRICING */
.pricing { padding: 48px 0 72px; }
.pricing h2 {
  font-size: 28px; letter-spacing: -0.02em;
  margin: 0 0 8px; text-align: center;
}
.pricing .lead { text-align: center; margin-bottom: 36px; }
.plans {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-bottom: 24px;
}
.plan {
  position: relative;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px 24px;
  display: flex; flex-direction: column;
}
.plan-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(167,139,250,0.25), 0 12px 40px -12px rgba(167,139,250,0.35);
}
.plan-tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #0a0d14;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
}
.plan-name {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.18em;
  font-weight: 700; color: var(--text-muted); margin-bottom: 10px;
}
.plan-price {
  font-size: 38px; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.plan-price span {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  margin-left: 4px;
}
.plan-features { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan-features li {
  position: relative; padding: 6px 0 6px 22px;
  color: var(--text-muted); font-size: 14px;
  border-bottom: 1px dashed var(--border);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before {
  content: '◦'; position: absolute; left: 0; top: 6px;
  color: var(--accent); font-size: 14px;
}

.pricing-note {
  text-align: center; color: var(--text-muted);
  font-size: 13.5px; max-width: 600px; margin: 0 auto;
}

/* FINAL CTA */
.cta-final {
  text-align: center; padding: 64px 0 80px;
  border-top: 1px solid var(--border);
}
.cta-final h2 {
  font-size: 32px; letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.cta-final .lead { margin-bottom: 28px; }

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  background: rgba(6,8,15,0.6);
}
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: 13px;
}
.footer-brand { color: var(--accent); font-weight: 700; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-meta { color: var(--text-faint); font-size: 12px; }

@media (max-width: 820px) {
  .features, .how-grid, .plans { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .nav { padding: 16px 20px; }
  .nav-links { gap: 18px; font-size: 13px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ── BURGER MENU (universal — works the same on every screen size) ─────── */
.burger {
  position: relative;
  display: inline-flex;
  width: 40px; height: 40px;
  background: rgba(167,139,250,0.06);
  border: 1px solid rgba(167,139,250,0.3);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  isolation: isolate;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.burger:hover { background: rgba(167,139,250,0.12); border-color: var(--accent); box-shadow: 0 0 14px rgba(167,139,250,0.25); }
.burger span {
  position: absolute;
  left: 10px; right: 10px; height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.28s ease, opacity 0.2s ease, top 0.28s ease;
}
.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 25px; }
.burger.open { background: rgba(167,139,250,0.18); border-color: var(--accent); }
.burger.open span:nth-child(1) { top: 19px; transform: rotate(45deg);  }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.nav-version {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid rgba(167,139,250,0.35);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(167,139,250,0.06);
  white-space: nowrap;
}
.nav-version[data-loading]::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  margin-right: 6px;
  animation: navPulse 1.4s ease-in-out infinite;
}
@keyframes navPulse { 50% { opacity: 0.3; transform: scale(0.7); } }

/* Drop-down panel — always overlay, never inline. Anchors to the right
   under the nav and slides in from the top on every viewport. */
.nav-menu {
  position: fixed;
  top: 64px;
  right: clamp(12px, 3vw, 24px);
  width: min(320px, calc(100vw - 24px));
  display: flex; flex-direction: column;
  gap: 2px;
  padding: 14px;
  background: rgba(10, 13, 20, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(167,139,250,0.1);
  transform-origin: top right;
  transform: translateY(-12px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s cubic-bezier(0.16,1,0.3,1), opacity 0.2s ease;
  z-index: 11;
}
.nav-menu.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.nav-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-menu a:hover, .nav-menu .current {
  background: rgba(167,139,250,0.08);
  color: var(--text);
}
.nav-menu .nav-version {
  margin-top: 10px;
  align-self: flex-start;
  margin-left: 6px;
}

/* Collapsible sections inside the burger panel. Each <details class="nav-group">
   wraps a <summary class="nav-section"> header + the items beneath it; the
   user clicks the header to expand/collapse. Showcase opens by default;
   Resources expands automatically when the active page is in that group. */
.nav-menu .nav-group {
  border-top: 1px solid rgba(167, 139, 250, 0.10);
  margin-top: 6px;
  padding-top: 4px;
}
.nav-menu .nav-group:first-of-type { border-top: 0; margin-top: 4px; padding-top: 0; }
.nav-menu .nav-group > summary {
  cursor: pointer;
  list-style: none;             /* hide default disclosure marker */
  user-select: none;
}
.nav-menu .nav-group > summary::-webkit-details-marker { display: none; }
.nav-menu .nav-section {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(167, 139, 250, 0.75);
  padding: 12px 14px 6px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-menu .nav-section::after {
  content: '+';
  font-size: 14px;
  color: rgba(167, 139, 250, 0.55);
  transition: transform 0.18s ease, color 0.18s;
}
.nav-menu .nav-group[open] > summary .nav-section::after { transform: rotate(45deg); color: var(--accent); }
.nav-menu .nav-group > summary:hover .nav-section { color: var(--text); }
.nav-menu a.nav-app {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(167, 139, 250, 0.04);
  border: 1px solid rgba(167, 139, 250, 0.10);
  margin: 4px 0;
  line-height: 1.3;
}
.nav-menu a.nav-app:hover {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.32);
}
.nav-menu .nav-app-name {
  display: block;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.nav-menu .nav-app-tag {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.nav-menu .nav-app .nav-app-emoji { margin-right: 6px; }
.nav-menu .nav-app[data-status="live"] .nav-app-name::after {
  content: '·';
  margin-left: 8px;
  color: #69e2c4;
}

/* Mobile — span the full width minus margins instead of a fixed-width
   floating panel; touch targets get a bit larger. */
@media (max-width: 520px) {
  .nav-menu {
    left: 12px; right: 12px;
    width: auto;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .nav-menu a { padding: 14px; font-size: 15px; }
}

/* ── NEON HOVER ON FEATURE + HOW-IT-WORKS CARDS ──────────────────────── */
.feature, .step {
  position: relative;
  isolation: isolate;
  transition: transform 0.2s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.feature::before, .step::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    rgba(167,139,250,0.55), rgba(56,189,248,0.45), rgba(16,185,129,0.45),
    rgba(244,114,182,0.45), rgba(167,139,250,0.55)
  );
  opacity: 0;
  filter: blur(10px);
  z-index: -1;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.feature:hover, .step:hover {
  transform: translateY(-2px);
  border-color: rgba(167,139,250,0.55);
  background: rgba(20, 24, 38, 0.78);
  box-shadow:
    0 0 0 1px rgba(167,139,250,0.35),
    0 0 28px rgba(167,139,250,0.20);
}
.feature:hover::before, .step:hover::before { opacity: 0.45; }

/* ── CTA BUTTONS — neon hover for ghost variant ──────────────────── */
.btn-ghost { isolation: isolate; transition: all 0.2s ease; position: relative; }
.btn-ghost::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from 0deg,
    rgba(167,139,250,0.6), rgba(56,189,248,0.5), rgba(167,139,250,0.6));
  opacity: 0;
  filter: blur(8px);
  z-index: -1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.btn-ghost:hover::before { opacity: 0.45; }

/* ── ACCESSIBILITY ───────────────────────────────────────────────────────── */

/* Skip link — visually hidden until focused. Uses the bulletproof
   clip-path / 0-size pattern so it can NEVER leak into the layout
   regardless of scroll position or ancestor positioning quirks. */
.skip-link {
  position: absolute;
  top: 0; left: 0;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  background: var(--accent);
  color: #0a0d14;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus,
.skip-link:focus-visible {
  position: fixed;
  top: 12px; left: 12px;
  width: auto; height: auto;
  margin: 0;
  padding: 10px 16px;
  border-radius: 8px;
  clip: auto;
  clip-path: none;
  z-index: 9999;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Screen-reader-only utility (visually hidden, still announced) */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Strong, consistent focus-visible across all interactive elements.
   The default browser ring is too subtle on the dark palette. */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
button:focus-visible, a:focus-visible, [role="button"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.25);
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}

/* Higher-contrast mode (Windows High Contrast / forced-colors / browser
   preference). Strip glows and gradients in favour of solid borders. */
@media (forced-colors: active) {
  .feature, .step, .plan, .lock-card, .ask-card,
  .skill-panel-body, .ar-stage, .mini-galaxy-frame, .ar-pill {
    border: 2px solid CanvasText !important;
    background: Canvas !important;
  }
  .btn, .btn-primary, .btn-ghost, .ar-pill {
    border: 2px solid ButtonText !important;
    background: ButtonFace !important;
    color: ButtonText !important;
  }
  .feature::before, .step::before, .ar-pill::before, .btn-primary::before, .btn-ghost::before {
    display: none !important;
  }
  .grad { color: LinkText !important; -webkit-text-fill-color: LinkText !important; background: none !important; }
}

@media (prefers-contrast: more) {
  :root {
    --text-muted: #c4ccda;     /* lifted from #8a94a6 */
    --text-faint: #94a0b3;     /* lifted from #5d6778 — passes AA on small text */
    --border:    rgba(148,163,184,0.35);
  }
}

/* ── NEON RING SYSTEM (universal, not just on hover) ─────────────────── */
@property --neon-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@keyframes neonRotate { to { --neon-angle: 360deg; } }
@keyframes neonPulse  { 50% { opacity: 0.4; transform: scale(0.7); } }

/* HERO eyebrow (the version pill) — soft halo + always-on rotating ring */
.eyebrow {
  position: relative;
  isolation: isolate;
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.18);
}
.eyebrow::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from var(--neon-angle),
    rgba(167,139,250,0.7), rgba(56,189,248,0.6), rgba(16,185,129,0.5),
    rgba(167,139,250,0.7));
  opacity: 0.35;
  filter: blur(6px);
  z-index: -1;
  animation: neonRotate 12s linear infinite;
  pointer-events: none;
}

/* HERO snippet (the install code block) — animated neon border ring */
.hero-snippet {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(167,139,250,0.35) !important;
}
.hero-snippet::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--neon-angle),
    transparent 0%, rgba(167,139,250,0.6) 25%, rgba(56,189,248,0.5) 50%,
    rgba(16,185,129,0.5) 65%, transparent 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.55;
  animation: neonRotate 10s linear infinite;
  pointer-events: none;
}

/* PRIMARY button — always-on rotating conic halo */
.btn-primary {
  position: relative;
  isolation: isolate;
  box-shadow:
    0 0 0 1px rgba(167,139,250,0.45),
    0 0 18px rgba(167,139,250,0.30),
    inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary::before {
  content: '';
  position: absolute; inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from var(--neon-angle),
    var(--neon-violet, #a78bfa), var(--neon-cyan, #38bdf8),
    var(--neon-mint, #10b981), #f472b6, var(--neon-violet, #a78bfa));
  opacity: 0.35;
  filter: blur(8px);
  z-index: -1;
  animation: neonRotate 6s linear infinite;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.btn-primary:hover::before { opacity: 0.65; animation-duration: 4s; }

/* FEATURED plan card (Pro) — always-on conic ring border */
.plan-featured {
  position: relative;
  isolation: isolate;
}
.plan-featured::before {
  content: '';
  position: absolute; inset: -1.5px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--neon-angle),
    rgba(167,139,250,0.85), rgba(56,189,248,0.65), rgba(16,185,129,0.55),
    rgba(244,114,182,0.65), rgba(167,139,250,0.85));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.85;
  animation: neonRotate 9s linear infinite;
  pointer-events: none;
}

/* FEATURE + STEP cards — subtle resting glow that intensifies on hover */
.feature, .step {
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.05);
}
.feature::before, .step::before {
  /* Override the earlier hover-only opacity:0 — start at 0.18 resting. */
  opacity: 0.18 !important;
  animation: neonRotate 14s linear infinite;
}
.feature:hover::before, .step:hover::before { opacity: 0.55 !important; animation-duration: 6s; }

/* FEATURE icon — gets its own halo so the glyph reads against the card */
.feature-icon {
  position: relative;
  display: inline-block;
  font-size: 28px;
  color: var(--accent);
  text-shadow:
    0 0 12px rgba(167, 139, 250, 0.6),
    0 0 22px rgba(167, 139, 250, 0.3);
  margin-bottom: 12px;
}

/* PLAN price — gradient text */
.plan-price {
  background: linear-gradient(180deg, #ddd6fe, #a78bfa 70%, #8b5cf6);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 24px rgba(167, 139, 250, 0.18);
}
.plan-price span {
  -webkit-text-fill-color: var(--text-faint);
  background: none;
}

/* SECTION headings — subtle violet underline */
.how h2, .pricing h2, .cta-final h2 {
  position: relative;
  display: inline-block;
}
.how h2::after, .pricing h2::after, .cta-final h2::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -10px;
  transform: translateX(-50%);
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.5);
}

/* CTA-final — moody violet wash + soft outer glow on the section itself */
.cta-final {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(167,139,250,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(56,189,248,0.10) 0%, transparent 50%);
}

/* BURGER button — pulse a subtle violet glow when closed (drawing attention) */
.burger {
  box-shadow: 0 0 0 0 rgba(167, 139, 250, 0);
  animation: navPulse 4s ease-in-out infinite;
}
.burger.open { animation: none; }

/* GHOST button — keep the existing hover halo but also resting hint */
.btn-ghost {
  box-shadow: inset 0 0 18px rgba(167, 139, 250, 0.04);
}

/* GRAD text — animated background-position so the gradient slowly shifts */
@keyframes gradShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.grad {
  background-size: 200% 100%;
  animation: gradShift 8s ease-in-out infinite;
}

/* ════════════════════════════════════════════════════════════════════════
   2026 POLISH LAYER
   Modern CSS primitives that punch above their weight — no JS framework,
   no build step. Each block is self-contained and can be removed without
   breaking the baseline above.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Typography: native text balancing for headings + paragraphs ────────── */
h1, h2, h3, h4 { text-wrap: balance; }
.lead, .feature p, .step p, .pricing-note { text-wrap: pretty; }

/* ── Cross-document view transitions ─────────────────────────────────────
   Native, navigation-driven page morphs. The brand wordmark and primary
   CTA carry stable view-transition-name attrs so they animate through
   navigations to /miniapp/, /docs, etc. instead of hard-cutting. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.32s;
  animation-timing-function: var(--ease-out);
}

/* ── Hero: orbital decoration + cursor-aware halo ────────────────────────
   The SVG sits behind the headline and bleeds beyond the section edges.
   The cursor halo is a radial gradient anchored to --cursor-x/y, which
   landing.js drives in rAF. Falls back to a static centred glow when the
   pointer hasn't entered (or reduced-motion is on). */
.hero { position: relative; isolation: isolate; }
.hero-orbits {
  position: absolute;
  top: 50%; left: 50%;
  width: min(960px, 110vw);
  aspect-ratio: 1;
  translate: -50% -50%;
  pointer-events: none;
  z-index: -2;
  opacity: 0.55;
  filter: blur(0.3px);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: -10% -10% -10% -10%;
  z-index: -1;
  background: radial-gradient(
    400px 300px at var(--cursor-x, 50%) var(--cursor-y, 35%),
    rgba(167, 139, 250, 0.18),
    rgba(56, 189, 248, 0.08) 35%,
    transparent 70%
  );
  pointer-events: none;
  transition: background 0.4s var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .hero-orbits { animation: none; }
}

/* Hero entrance — staggered reveal on first paint. Uses pure `animation`
   with `both` so the keyframe `from` state holds before the delay fires. */
@keyframes heroIn {
  from { opacity: 0; translate: 0 18px; filter: blur(6px); }
  to   { opacity: 1; translate: 0 0;    filter: blur(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow      { animation: heroIn 0.7s var(--ease-out) both; }
  .hero .hero-title   { animation: heroIn 0.7s var(--ease-out) 0.08s both; }
  .hero .hero-lead    { animation: heroIn 0.7s var(--ease-out) 0.16s both; }
  .hero .hero-cta     { animation: heroIn 0.7s var(--ease-out) 0.24s both; }
  .hero .hero-snippet { animation: heroIn 0.7s var(--ease-out) 0.32s both; }
}

/* ── Scroll-driven section reveals ────────────────────────────────────────
   `animation-timeline: view()` ties the keyframe progress to where the
   element sits in the viewport. Gated behind @supports so non-Chromium
   browsers see a fully visible card instead of a stuck `from` state. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    @keyframes reveal-up {
      from { opacity: 0; translate: 0 28px; }
      to   { opacity: 1; translate: 0 0; }
    }
    .feature, .step, .plan, .stat, .cta-final {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 28%;
    }
  }
}

/* ── Container queries for cards ──────────────────────────────────────────
   Cards adapt to their *grid column width*, not the viewport. Same card
   reads well in a 3-col landing grid or a 1-col mobile stack without a
   media query. */
.features, .how-grid, .plans, .stats { container-type: inline-size; }
@container (max-width: 320px) {
  .feature, .step, .plan, .stat { padding: 18px 16px; }
  .feature h3, .step h4 { font-size: 15px; }
}

/* ── Stats strip ─────────────────────────────────────────────────────────
   Sits between hero and features, gives the page a numerical anchor. */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  margin: var(--s-7) 0 var(--s-7);
  padding: var(--s-5) var(--s-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(167,139,250,0.04), transparent 60%);
}
.stat {
  text-align: center;
  padding: var(--s-3) var(--s-2);
  border-right: 1px dashed var(--border);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ddd6fe, var(--accent) 70%, var(--accent-d));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.05;
}
.stat-unit {
  font-size: 0.55em;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  margin-left: 1px;
  letter-spacing: 0;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: var(--s-2);
  text-wrap: balance;
  line-height: 1.45;
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px dashed var(--border); padding-bottom: var(--s-4); }
}

/* ── Click-to-copy on hero snippet ───────────────────────────────────── */
.hero-snippet { position: relative; padding-right: 78px; }
.snippet-copy {
  position: absolute;
  top: 10px; right: 10px;
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(167, 139, 250, 0.08);
  color: var(--accent);
  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: var(--r-1);
  cursor: pointer;
  opacity: 0;
  translate: 0 -4px;
  transition: opacity var(--dur-base), translate var(--dur-base),
              background var(--dur-base), border-color var(--dur-base),
              color var(--dur-base);
}
.hero-snippet:hover .snippet-copy,
.hero-snippet:focus-within .snippet-copy,
.snippet-copy:focus-visible {
  opacity: 1;
  translate: 0 0;
}
.snippet-copy:hover {
  background: rgba(167, 139, 250, 0.16);
  border-color: rgba(167, 139, 250, 0.55);
}
.snippet-copy.copied {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.45);
  color: var(--accent-2);
  opacity: 1;
}
.snippet-copy.failed {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.45);
  color: #fca5a5;
  opacity: 1;
}

/* ── :has()-driven plan dim ──────────────────────────────────────────────
   When the user is hovering one plan card, fade the siblings to draw
   focus. Pure CSS, no JS state to keep in sync. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .plans:has(.plan:hover) .plan:not(:hover) {
    opacity: 0.55;
    transition: opacity var(--dur-base);
  }
  .plans .plan { transition: opacity var(--dur-base), transform var(--dur-base), border-color var(--dur-base); }
  .plans .plan:hover { transform: translateY(-3px); }
}

/* ── Featured plan: orbiting accent dots ────────────────────────────── */
.plan-featured { overflow: hidden; }
.plan-featured::after {
  content: '';
  position: absolute;
  top: 18px; right: 18px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.7);
  animation: featuredPulse 2.4s ease-in-out infinite;
}
@keyframes featuredPulse {
  0%, 100% { opacity: 0.6; transform: scale(0.85); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

/* ── Section heading rhythm tightening ─────────────────────────────── */
section.how, section.pricing, section.cta-final {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

/* ── Hero responsive adjustments for orbits ──────────────────────────── */
@media (max-width: 640px) {
  .hero-orbits { width: 130vw; opacity: 0.4; }
  .hero { padding-top: var(--s-7); }
}

/* ── Shared routing-progress indicator ────────────────────────────────────
   Used by anything calling mcp.ask-meridian.uk/v1/route — same affordance
   on both the main miniapp and the vision lab so users see one unified
   "the router is working" surface during the 5-15 s LLM call. */
.routing-progress {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  font-weight: 500;
}
.routing-progress::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: routingProgressPulse 1.2s ease-in-out infinite;
}
@keyframes routingProgressPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.6); }
  50%      { opacity: 1;    transform: scale(1.1); }
}
.routing-progress.is-done::before { animation: none; opacity: 0.5; }
@media (prefers-reduced-motion: reduce) {
  .routing-progress::before { animation: none; }
}

/* ── Top promo strip ──────────────────────────────────────────────────── */
.promo-strip {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: #f3eafc;
  background: linear-gradient(90deg, #4c1d95 0%, #6d28d9 50%, #4c1d95 100%);
  background-size: 200% 100%;
  animation: promoSlide 18s ease-in-out infinite;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(167, 139, 250, 0.4);
  text-decoration: none;
  position: sticky; top: 0; z-index: 12;
  transition: background 0.3s;
}
.promo-strip:hover { color: #fff; text-decoration: none; }
.promo-strip strong { color: #fff; font-weight: 600; }
.promo-strip-cta {
  background: rgba(255,255,255,0.18);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
  margin-left: 6px;
  white-space: nowrap;
}
@keyframes promoSlide {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@media (max-width: 640px) {
  .promo-strip { font-size: 11px; padding: 7px 10px; }
}

/* ── Products section ────────────────────────────────────────────────── */
.products {
  padding: var(--section-y) 0;
  text-align: center;
}
.products h2 {
  font-size: 32px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.products .lead {
  margin-bottom: 36px;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  text-align: left;
  margin-bottom: 24px;
}
.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 14px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base);
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.06);
  overflow: hidden;
  isolation: isolate;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--card-bg-image);
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  filter: blur(2px) saturate(1.1);
  z-index: -1;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  pointer-events: none;
}
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,17,22,0.55) 0%, rgba(15,17,22,0.85) 60%, rgba(15,17,22,0.95) 100%);
  z-index: -1;
  pointer-events: none;
}
.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.6);
  box-shadow: 0 8px 32px rgba(167, 139, 250, 0.18);
}
.product-card:hover::before {
  opacity: 0.28;
  transform: scale(1.03);
}
.product-emoji {
  font-size: 32px;
  margin-bottom: 8px;
  line-height: 1;
}
.product-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.product-card h3 a {
  color: inherit;
  text-decoration: none;
}
.product-card h3 a:hover {
  color: var(--accent);
}
.product-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px;
  font-style: italic;
}
.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex: 1;
  font-size: 13.5px;
  color: var(--text-muted);
}
.product-features li {
  position: relative;
  padding: 4px 0 4px 18px;
}
.product-features li::before {
  content: '◦';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.product-features code {
  background: rgba(167,139,250,0.10);
  color: #ddd6fe;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11.5px;
}
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.product-price {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(180deg, #ddd6fe, var(--accent) 70%, var(--accent-d));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.product-buy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.product-buy-direct {
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}
.product-buy-gumroad {
  font-size: 12.5px !important;
  padding: 7px 12px !important;
  opacity: 0.85;
}
.product-buy-gumroad:hover { opacity: 1; }
.products-foot {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 12px;
}
@media (max-width: 760px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* ── Print: strip animation, neon, shadows ──────────────────────────── */
@media print {
  .hero-orbits, .burger, .nav-version, .snippet-copy, .calendly-badge-widget { display: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; box-shadow: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .grad, .plan-price { -webkit-text-fill-color: #000 !important; background: none !important; }
}
