/* The webfonts are vendored (website/vendor/fonts/) and loaded ONCE per page
   via <link href="css/fonts.css">. They used to be pulled from
   fonts.googleapis.com, which sent every visitor's IP address to a third
   party on every page view - a poor fit for a product whose own site says
   "no telemetry" - and left an offline visitor with no typography at all.
   Do not add an @import here: fonts.css is already linked by every page,
   and a second @import would fetch the same files twice. */

/* ═══════════════════════════════════════════════════════════════════
   DataAgent Website — MetaMask-Caliber Design Layer  (v3)
   "Alternative" identity: ink-violet hero · cream body · full-bleed
   color bands · solid bento tiles · blocky display type · pill UI
   Motion: organic easings (verify_website_ui.py asserts these tokens)
   Loads AFTER style.css — token + component overrides.
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. Tokens ──────────────────────────────────────────────────── */

/* ── 2. Base recolor ────────────────────────────────────────────── */
body {
  background: var(--surface);
  color: var(--text);
  line-height: 1.65;
}

::selection { background: var(--primary); color: var(--text-inverse); }


html { scrollbar-color: var(--primary) var(--surface-2); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb { background: #c3c3c3; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-hi); }

/* Ambient background: the lattice + the ambient orbs are painted by
   premium.css from the shared --grad-grid / --grad-orb tokens, so they
   cannot drift away from the palette. */

/* Grain to kill banding */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/'%3E%3C/svg%3E");
}

/* ── 3. Bands (full-bleed MetaMask-style color sections) ────────── */
.band { position: relative; z-index: 2; }
.band-ink   { background: var(--surface-deep); color: var(--text); }
.band-navy  { background: var(--surface-deep); color: var(--text); }
.band-cream { background: var(--surface); color: var(--text); }
.band-cream2{ background: var(--surface-2); color: var(--text); }
.band-violet{ background: var(--surface-violet); color: var(--text); }
.band-mint  { background: var(--surface-mint); color: var(--text); }
.band-peach { background: var(--surface-peach); color: var(--text); }

.band-ink .section-subtitle,
.band-navy .section-subtitle,
.band-ink .section-title,
.band-navy .section-title { color: var(--text); }

.band .section-badge {
  background: rgba(81, 81, 81, 0.1);
  border-color: rgba(85, 85, 85, 0.28);
  color: var(--primary-hi);
}
.band-ink .section-badge,
.band-navy .section-badge {
  background: rgba(236, 236, 236, 0.1);
  border-color: rgba(236, 236, 236, 0.3);
  color: var(--text);
}

/* ── 4. Display typography (blocky MM-style) ────────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.94;
  color: inherit;
}
.display-xl { font-size: clamp(2.6rem, 8vw, 6.5rem); }
.display-lg { font-size: clamp(2.2rem, 6vw, 4.6rem); }
.display-ink { color: var(--text); }
.display-pale { color: var(--text); }
.display-violet { color: var(--primary-hi); }
.display-orange { color: var(--emphasis); }

/* word-split reveal scaffolding (motion.js) */
.reveal-words .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.reveal-words .wi { display: inline-block; }

.section-title,
.page-header h1,
.hero-title,
.download-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.section-title { line-height: 1.05; }
.section-title .gradient-text,
.gradient-text {
  color: var(--primary-hi);
}

.section-badge {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: rgba(81, 81, 81, 0.08);
  border: 1px solid rgba(84, 84, 84, 0.22);
  color: var(--primary-hi);
  border-radius: 100px;
}
.section-badge .dot { background: var(--primary-hi); }

/* ── 5. Navbar ──────────────────────────────────────────────────── */
.navbar {
  background: rgba(14, 14, 14, 0.78);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  border-bottom: 1px solid rgba(236, 236, 236, 0.12);
  box-shadow: 0 8px 32px -20px rgba(0, 0, 0, 0.7);
  transition: background var(--dur-med) var(--ease-out-organic),
              border-color var(--dur-med) var(--ease-out-organic),
              box-shadow var(--dur-med) var(--ease-out-organic);
}
.navbar.scrolled {
  background: rgba(10, 10, 10, 0.94);
  border-bottom-color: rgba(236, 236, 236, 0.18);
  box-shadow: 0 14px 44px -20px rgba(0, 0, 0, 0.75);
}
.nav-logo { color: var(--text); }
.nav-logo-icon {
  background: var(--grad-brand) !important;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(86, 86, 86, 0.45);
}
.nav-links a:not(.nav-cta) {
  position: relative;
  color: rgba(236, 236, 236, 0.72);
  font-weight: 600;
  transition: color var(--dur-fast) var(--ease-out-organic);
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary-hi);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-spring);
}
.nav-links a:not(.nav-cta):hover { color: var(--text) !important; }
.nav-links a:not(.nav-cta):hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text) !important; background: transparent !important; }
.nav-links a.active::after { content: none; }
.nav-links a:not(.nav-cta).active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--primary-deep) !important;
  border: 1px solid var(--primary-hi) !important;
  color: var(--text-inverse) !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 24px -8px rgba(102, 102, 102, 0.8) !important;
  transition: transform 120ms var(--ease-spring),
              background var(--dur-fast) var(--ease-out-organic) !important;
}
.nav-cta:hover {
  background: var(--primary-deep) !important;
  border-color: var(--text-inverse) !important;
  transform: translateY(-1px);
  color: var(--text-inverse) !important;
}
.nav-mobile-toggle span { background: var(--text); }

/* ── 6. Buttons ──────────────────────────────────────────────────
   The button system (the single .btn base rule and every modifier)
   lives in style.css. This layer only adds the spring motion.        */
.btn-primary .btn-icon { transition: transform var(--dur-med) var(--ease-spring); }
.btn-primary:hover .btn-icon { transform: translateY(3px); }

/* ── 7. Hero (index) — editorial two-column (v3.1) ─────────────── */
.hero {
  min-height: auto;
  background: var(--surface-deep);
  color: var(--text);
  overflow: hidden;
  padding: clamp(88px, 12vh, 128px) clamp(1.25rem, 4vw, 3rem) clamp(72px, 10vh, 112px);
}
.hero::before {
  width: 1400px; height: 1400px;
  background: var(--grad-aurora);
  animation: hero-aurora 28s var(--ease-out-organic) infinite alternate;
}
@keyframes hero-aurora {
  0%   { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  50%  { transform: translate(-47%, -53%) rotate(7deg) scale(1.08); }
  100% { transform: translate(-53%, -47%) rotate(-5deg) scale(0.96); }
}
.hero-grid {
  position: relative;
  z-index: 2;
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-content { max-width: 640px; }
.hero-title {
  font-size: clamp(3rem, 6.4vw, 5.75rem);
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line-inner { display: block; will-change: transform; }

.hero-desc {
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  color: rgba(236, 236, 236, 0.72);
  max-width: 540px;
  margin: 0 0 32px;
}
.hero-badge {
  background: rgba(236, 236, 236, 0.08) !important;
  border: 1px solid rgba(236, 236, 236, 0.22) !important;
  color: var(--text) !important;
  font-weight: 600;
}
.hero-badge .dot {
  background: var(--success) !important;
  animation: dot-breathe 2.6s var(--ease-out-organic) infinite !important;
}
@keyframes dot-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(160, 160, 160, 0.5); }
  50%      { transform: scale(1.25); box-shadow: 0 0 0 7px rgba(0, 0, 0, 0); }
}
.hero-actions { justify-content: flex-start; }
.hero-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
}
.hero-pills li {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid rgba(236, 236, 236, 0.16);
  background: rgba(236, 236, 236, 0.05);
  color: rgba(236, 236, 236, 0.7);
}
.hero-stats {
  justify-content: flex-start;
  gap: 56px;
  margin-top: 48px;
  padding-bottom: 0;
}
.hero-stat-value {
  background: none !important;
  -webkit-text-fill-color: var(--text) !important;
  font-family: var(--font-display);
  font-size: 2.4rem !important;
}
.hero-stat-label { color: rgba(236, 236, 236, 0.55); }
.hero-stat-divider { background: rgba(236, 236, 236, 0.18); }

/* Hero stage — floating product composition */
.hero-stage {
  position: relative;
  min-height: clamp(360px, 48vw, 520px);
  display: grid;
  place-items: center;
  perspective: 1200px;
}
.hero-stage-glow {
  position: absolute;
  inset: 8% 4%;
  --orb-tint: rgba(123, 123, 123, 0.42);
  background: var(--grad-orb);
  filter: blur(40px);
  pointer-events: none;
}
.hero-stack {
  position: relative;
  width: min(440px, 100%);
  z-index: 2;
}
.hero-panel {
  position: relative;
  z-index: 2;
  border-radius: 22px;
  background: rgba(13, 13, 13, 0.92);
  border: 1px solid rgba(236, 236, 236, 0.14);
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(83, 83, 83, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transform: rotateY(-8deg) rotateX(4deg) translateZ(0);
}
.hp-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 16px;
  background: rgba(237, 237, 237, 0.04);
  border-bottom: 1px solid rgba(236, 236, 236, 0.08);
}
.hp-bar span {
  width: 10px; height: 10px; border-radius: 50%;
}
.hp-bar span:nth-child(1) { background: #bc8888; }
.hp-bar span:nth-child(2) { background: #d7c5a3; }
.hp-bar span:nth-child(3) { background: #8fb796; }
.hp-bar em {
  margin-left: 8px;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(236, 236, 236, 0.55);
  letter-spacing: 0.04em;
}
.hp-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 16px 20px;
}
.hp-bubble {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(236, 236, 236, 0.88);
}
.hp-bubble.user {
  align-self: flex-end;
  background: var(--primary-deep);
  border-bottom-right-radius: 6px;
  color: var(--text-inverse);
  font-weight: 600;
}
.hp-bubble.ai {
  align-self: flex-start;
  background: rgba(236, 236, 236, 0.08);
  border: 1px solid rgba(236, 236, 236, 0.1);
  border-bottom-left-radius: 6px;
}
.hp-bubble.ai strong { color: var(--emphasis); }
.hp-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 88px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(9, 9, 9, 0.55);
  border: 1px solid rgba(236, 236, 236, 0.08);
}
.hp-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 3px 3px;
  background: var(--primary);
  transform-origin: bottom;
  animation: bar-rise 1.2s var(--ease-out-organic) both;
}
.hp-chart span:nth-child(2) { background: var(--primary-hi); animation-delay: 0.08s; }
.hp-chart span:nth-child(4) { background: var(--accent-soft); animation-delay: 0.2s; }
.hp-chart span:nth-child(6) { background: var(--primary); animation-delay: 0.32s; }
@keyframes bar-rise {
  from { transform: scaleY(0.15); opacity: 0.4; }
  to   { transform: scaleY(1); opacity: 1; }
}

.hero-float {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(18, 18, 18, 0.88);
  border: 1px solid rgba(236, 236, 236, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.65);
  animation: float-y 4.5s var(--ease-out-organic) infinite alternate;
  pointer-events: none;
}
.hero-float .hf-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(236, 236, 236, 0.5);
}
.hero-float .hf-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero-float-a { top: 4%; right: -16%; animation-delay: 0.2s; }
.hero-float-b { bottom: 14%; left: -16%; animation-delay: 1.1s; }
.hero-float-c {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  top: auto;
  bottom: -4%;
  right: 8%;
  animation-delay: 0.7s;
}
.hero-float-c .hf-label { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: none; color: rgba(236, 236, 236, 0.8); }
.hero-float .hf-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(160, 194, 166, 0.55);
  animation: dot-breathe 2.2s var(--ease-out-organic) infinite;
}
@keyframes float-y {
  from { transform: translateY(0); }
  to   { transform: translateY(-14px); }
}
.hero-mark {
  position: absolute;
  z-index: 4;
  width: 72px; height: 72px;
  right: -4%;
  bottom: -2%;
  filter: drop-shadow(0 16px 32px rgba(87, 87, 87, 0.55));
  animation: float-y 5.2s var(--ease-out-organic) infinite alternate-reverse;
}

/* Legacy art slot (inner pages may still reference) */
.hero-art {
  position: relative;
  z-index: 2;
  width: min(1100px, 100%);
  margin: 0 auto;
  pointer-events: none;
  line-height: 0;
}
.hero-art svg { width: 100%; height: auto; display: block; }

/* CTA band polish */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  --orb-tint: rgba(123, 123, 123, 0.38);
  background: var(--grad-orb);
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 2; text-align: center; }
.cta-sub {
  color: rgba(236, 236, 236, 0.68);
  max-width: 480px;
  margin: 12px auto 32px;
  font-size: 1.05rem;
}
.section-badge.light {
  background: rgba(236, 236, 236, 0.1) !important;
  border-color: rgba(236, 236, 236, 0.28) !important;
  color: var(--text) !important;
  margin-bottom: 20px;
}

/* ── 8. Cards → solid bento tiles ───────────────────────────────── */
.card {
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-fast) var(--ease-out-organic),
              box-shadow var(--dur-med) var(--ease-out-organic),
              border-color var(--dur-med) var(--ease-out-organic) !important;
}
.card:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow-lift) !important;
  border-color: var(--line-glow) !important;
  background: var(--surface-4) !important;
}
.card::before { display: none; }
.card-icon { border-radius: 16px; }

/* Tile helpers — solid MetaMask-style color cards */
.card.tile-violet, .card.tile-ink, .card.tile-orange,
.card.tile-cyan, .card.tile-mint, .card.tile-peach, .card.tile-pink,
.card.tile-navy {
  border: none;
  padding: 34px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.card.tile-violet { --tint: rgba(123, 123, 123, 0.22); color: var(--text); }
.card.tile-ink, .card.tile-navy { --tint: rgba(255, 255, 255, 0.075); color: var(--text); }
.card.tile-orange { --tint: rgba(164, 164, 164, 0.20); color: var(--text); }
.card.tile-cyan { --tint: rgba(188, 188, 188, 0.18); color: var(--text); }
.card.tile-mint { --tint: rgba(156, 191, 162, 0.18); color: var(--text); }
.card.tile-peach { --tint: rgba(164, 164, 164, 0.18); color: var(--text); }
.card.tile-pink { --tint: rgba(156, 156, 156, 0.20); color: var(--text); }

.card.tile-violet:hover, .card.tile-ink:hover, .card.tile-orange:hover,
.card.tile-cyan:hover, .card.tile-mint:hover, .card.tile-peach:hover,
.card.tile-pink:hover, .card.tile-navy:hover {
  background: inherit;
}
/* Every tile — explicit class or auto-tiled from the icon — is the
   SAME dark glass card with one accent tint. The icon chip and the tag
   chip are frosted glass, so the copy on every card stays legible. */
.card .card-title,
.card:has(.card-icon) .card-title,
.card.tile-violet .card-title, .card.tile-ink .card-title,
.card.tile-navy .card-title, .card.tile-pink .card-title,
.card.tile-orange .card-title, .card.tile-cyan .card-title,
.card.tile-mint .card-title, .card.tile-peach .card-title {
  color: var(--text) !important;
}

.card .card-text,
.card:has(.card-icon) .card-text,
.card.tile-violet .card-text, .card.tile-ink .card-text,
.card.tile-navy .card-text, .card.tile-pink .card-text,
.card.tile-orange .card-text, .card.tile-cyan .card-text,
.card.tile-mint .card-text, .card.tile-peach .card-text {
  color: var(--text-2) !important;
  opacity: 1 !important;
}

.card .card-icon,
.card:has(.card-icon) .card-icon,
.card.tile-violet .card-icon, .card.tile-ink .card-icon,
.card.tile-navy .card-icon, .card.tile-pink .card-icon,
.card.tile-orange .card-icon, .card.tile-cyan .card-icon,
.card.tile-mint .card-icon, .card.tile-peach .card-icon {
  background: var(--glass-3) !important;
  border: 1px solid var(--line-2) !important;
  color: var(--text) !important;
}
.card:hover .card-icon { transform: translateY(-3px) scale(1.06); }

/* Auto-tile from existing card-icon color classes (zero HTML churn) */
.card:has(.card-icon.purple) {
  background: var(--grad-surface) !important;
  border-color: transparent !important;
  color: var(--text);
}
.card:has(.card-icon.blue) {
  background: var(--grad-surface) !important;
  border-color: transparent !important;
  color: var(--text);
}
.card:has(.card-icon.green) {
  background: var(--grad-surface) !important;
  border-color: transparent !important;
  color: var(--text);
}
.card:has(.card-icon.pink) {
  background: var(--grad-surface) !important;
  border-color: transparent !important;
  color: var(--text);
}
.card:has(.card-icon.amber) {
  background: var(--grad-surface) !important;
  border-color: transparent !important;
  color: var(--text);
}

/* Feature tags on tiles → frosted chips */
.feature-tag { border: 1px solid transparent; }
.card:has(.card-icon) .feature-tag,
.card.tile-violet .feature-tag, .card.tile-ink .feature-tag,
.card.tile-pink .feature-tag, .card.tile-navy .feature-tag,
.card.tile-orange .feature-tag, .card.tile-cyan .feature-tag,
.card.tile-mint .feature-tag, .card.tile-peach .feature-tag {
  background: var(--glass-3) !important;
  border-color: var(--line-2) !important;
  color: var(--text) !important;
}

/* ── 9. Showcase (sticky center mock + flanking bento) ──────────── */
.showcase {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 420px) 1fr;
  gap: 28px;
  align-items: start;
}
.showcase-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.showcase-col .card { min-height: 340px; }
.showcase-center {
  position: sticky;
  top: 96px;
  z-index: 3;
}
.showcase-center .da-mark {
  position: absolute;
  left: 50%;
  bottom: -34px;
  transform: translateX(-50%);
  z-index: 4;
  width: 84px;
  height: 84px;
  filter: drop-shadow(0 14px 30px rgba(17, 17, 17, 0.45));
  pointer-events: none;
}

/* tile art (bottom-right illustration slot) */
.tile-art {
  margin-top: auto;
  align-self: flex-end;
  line-height: 0;
  opacity: 0.95;
  transform: translateY(6px);
}
.tile-art svg { width: clamp(96px, 30%, 150px); height: auto; }

/* ── 10. App window mock (pure HTML/CSS) ────────────────────────── */
.app-mock {
  background: var(--surface-2);
  border: 1px solid rgba(236, 236, 236, 0.14);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(18, 18, 18, 0.7);
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.app-mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(236, 236, 236, 0.06);
  border-bottom: 1px solid rgba(236, 236, 236, 0.1);
}
.app-mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.app-mock-dot:nth-child(1) { background: #bc8888; }
.app-mock-dot:nth-child(2) { background: #d7c5a3; }
.app-mock-dot:nth-child(3) { background: #8fb796; }
.app-mock-title {
  margin-left: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(236, 236, 236, 0.55);
}
.app-mock-body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.mock-bubble {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.86rem;
  line-height: 1.55;
}
.mock-bubble.user {
  align-self: flex-end;
  background: var(--primary);
  color: var(--text-inverse);
  border-bottom-right-radius: 6px;
}
.mock-bubble.ai {
  align-self: flex-start;
  background: rgba(236, 236, 236, 0.1);
  color: rgba(236, 236, 236, 0.9);
  border: 1px solid rgba(236, 236, 236, 0.14);
  border-bottom-left-radius: 6px;
}
.mock-sql {
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(9, 9, 9, 0.65);
  border-radius: 10px;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  color: var(--accent);
  white-space: pre-wrap;
}
.mock-chart {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 130px;
  padding: 14px;
  background: rgba(236, 236, 236, 0.06);
  border: 1px solid rgba(236, 236, 236, 0.1);
  border-radius: 16px;
}
.mock-bar {
  flex: 1;
  border-radius: 6px 6px 3px 3px;
  background: var(--primary);
  transform-origin: bottom;
  min-height: 8%;
}
.mock-bar:nth-child(even) {
  background: var(--primary);
}
.mock-bar:nth-child(3n) {
  background: var(--accent-soft);
}

/* ── 11. Privacy section (sticky device outline) ────────────────── */
.privacy { overflow: visible; }
.privacy-frame {
  position: sticky;
  top: 14vh;
  width: min(380px, 68vw);
  height: 62vh;
  margin: 0 auto -62vh;
  border: 2.5px solid var(--line-2);
  border-radius: 44px;
  z-index: 0;
  pointer-events: none;
}
.privacy-content { position: relative; z-index: 1; }
.privacy-content .display {
  text-align: center;
  margin: 8vh auto 10vh;
  max-width: 12ch;
}
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding-bottom: 40px;
}
.privacy-grid .card { min-height: 250px; }

/* ── 12. Stats strip ────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.stat-panel {
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-fast) var(--ease-out-organic),
              box-shadow var(--dur-med) var(--ease-out-organic);
}
.stat-panel:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}
.stat-panel .hero-stat-value,
.stat-panel [data-count] {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--primary-hi);
}
.stat-panel .stat-label {
  display: block;
  margin-top: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* ── 13. Get-started CTA band ───────────────────────────────────── */
.cta-band {
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 130px 0;
}
.cta-band .display {
  color: var(--text);
  font-size: clamp(3rem, 10vw, 8rem);
  margin-bottom: 36px;
}
.cta-art {
  position: absolute;
  top: 50%;
  width: clamp(140px, 22vw, 300px);
  line-height: 0;
  opacity: 0.9;
  pointer-events: none;
}
.cta-art.left { left: 3vw; transform: translateY(-50%); }
.cta-art.right { right: 3vw; transform: translateY(-46%); }

/* ── 14. Learn panel ────────────────────────────────────────────── */
.learn-panel {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: var(--grad-surface);
  border: 1px solid rgba(83, 83, 83, 0.16);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
}
.learn-panel .display {
  color: var(--text);
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 18px;
}
.learn-panel p {
  max-width: 560px;
  margin: 0 auto 30px;
  color: var(--text-2);
  font-size: 1.05rem;
}
.learn-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  line-height: 0;
}
.learn-shapes svg { position: absolute; opacity: 0.5; }
.learn-shapes svg:nth-child(1) { top: 14px; left: 24px; width: 70px; }
.learn-shapes svg:nth-child(2) { bottom: 18px; right: 30px; width: 86px; }

/* ── 15. Toast (dismissible announcement) ───────────────────────── */
.toast {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(380px, calc(100vw - 44px));
  padding: 13px 14px 13px 18px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 50px -18px rgba(17, 17, 17, 0.35);
  font-size: 0.86rem;
  color: var(--text);
  animation: toast-in 600ms 1.2s var(--ease-out-organic) both;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.toast.hide {
  animation: toast-out 300ms var(--ease-out-organic) both;
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(16px); }
}
.toast-tag {
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--emphasis);
}
.toast-text { font-weight: 600; flex: 1; }
.toast-close {
  width: 30px; height: 30px;
  border: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out-organic),
              transform var(--dur-fast) var(--ease-spring);
  flex-shrink: 0;
}
.toast-close:hover { background: var(--surface-violet); transform: scale(1.08); }

/* ── 16. Footer (navy) ──────────────────────────────────────────── */
.footer {
  background: var(--surface-deep) !important;
  border-top: none !important;
  color: rgba(236, 236, 236, 0.75);
  position: relative;
  z-index: 2;
}
.footer .nav-logo { color: var(--text); }
.footer-brand p { color: rgba(236, 236, 236, 0.55); }
.footer-col h2 { color: rgba(236, 236, 236, 0.45); }
.footer-col a { color: rgba(236, 236, 236, 0.75); }
.footer-col a:hover { color: var(--link-hover); transform: translateX(3px); }
.footer-bottom {
  border-top: 1px solid rgba(236, 236, 236, 0.12);
  color: rgba(236, 236, 236, 0.45);
}

/* ── 17. Inner-page components ──────────────────────────────────── */
.page-header {
  padding: 96px 0 56px;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  text-transform: none;
  line-height: 1.04;
  color: var(--text);
}
.page-header p {
  color: var(--text-2);
  font-size: 1.1rem;
}

/* Comparison table */
.comparison-wrapper {
  background: var(--surface-3);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.comparison-table thead { background: var(--surface-2); border-bottom-color: var(--line); }
.comparison-table th { color: var(--text-2); }
.comparison-table th.highlight {
  color: var(--primary-hi);
  background: var(--surface-violet);
  border-top-color: var(--primary);
}
.comparison-table th.highlight::after { color: var(--primary-hi); }
.comparison-table td { border-bottom-color: rgba(230, 220, 199, 0.7); color: var(--text-2); }
.comparison-table td:first-child { color: var(--text); }
.comparison-table td.highlight { background: rgba(78, 78, 78, 0.05); }
.comparison-table tbody tr:hover { background: rgba(76, 76, 76, 0.03); }
.comparison-table tbody tr:hover td.highlight { background: rgba(81, 81, 81, 0.08); }
.price-tag { color: var(--text-muted); }

/* Highlight box / callouts */
.highlight-box {
  background: var(--grad-surface);
  border: 1px solid rgba(83, 83, 83, 0.18) !important;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}
.highlight-box h3 { color: var(--primary-hi); }
.highlight-box p { color: var(--text-2); }

/* Code blocks */
.code-block {
  background: var(--surface-deep);
  border-color: rgba(236, 236, 236, 0.12);
  color: rgba(236, 236, 236, 0.82);
}
.code-block .comment { color: rgba(236, 236, 236, 0.4); }
.code-block .keyword { color: var(--pink); }
.code-block .string { color: var(--success); }
.code-block .command { color: var(--emphasis-hi); }
.code-inline {
  background: rgba(81, 81, 81, 0.1);
  border-color: rgba(84, 84, 84, 0.2);
  color: var(--primary-hi);
}

/* Docs */
.docs-sidebar {
  background: var(--surface-3);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.docs-nav li a:hover, .docs-nav li a.active {
  background: var(--surface-violet);
  color: var(--primary-hi);
}
.docs-content h2 { color: var(--text); scroll-margin-top: 100px; }
.docs-content p, .docs-content li { color: var(--text-2); }
.docs-content li strong { color: var(--text); }

/* Download */
.download-card {
  background: var(--surface-3);
  border: 1px solid rgba(84, 84, 84, 0.25);
  box-shadow: 0 40px 90px -40px rgba(86, 86, 86, 0.45);
}
.download-version {
  background: rgba(82, 82, 82, 0.12);
  color: var(--primary-hi);
}
.download-hero { padding-top: 64px; }

/* Forms */
.form-input, .form-textarea {
  background: var(--surface-3);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  color: var(--text);
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(82, 82, 82, 0.14);
}
.form-label { color: var(--text); }

/* Contact link cards stay white surfaces */
.contact-link-card { background: var(--surface-3); }
.contact-link-card:hover { border-color: rgba(86, 86, 86, 0.4); }

/* Billing plan cards */
.plan-card { background: var(--surface-3); }
.plan-card.recommended {
  border-color: var(--primary) !important;
  box-shadow: 0 20px 50px -20px rgba(86, 86, 86, 0.45) !important;
}
.plan-badge { background: var(--primary) !important; }
.plan-price, .plan-name { color: var(--text); }
.key-input {
  background: var(--surface-3);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  color: var(--text);
}

/* Tech badges / pill tabs */
.tech-badge {
  background: var(--surface-3);
  border-color: var(--line);
  color: var(--text-2);
}
.tech-badge:hover { border-color: var(--primary); color: var(--primary-hi); transform: translateY(-2px); }
.pill-tabs { background: var(--surface-3); border-color: var(--line); }
.pill-tab.active { background: var(--primary); box-shadow: 0 6px 18px -6px rgba(87, 87, 87, 0.6); }

/* Scroll-top */
.scroll-top {
  background: var(--surface-deep) !important;
  color: var(--text) !important;
  border-radius: 100px !important;
}
.scroll-top:hover { background: var(--primary) !important; transform: translateY(-2px); }

/* Section rhythm */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-header { margin-bottom: clamp(40px, 5vw, 64px); }

/* ── 18. Scroll reveals (organic, works without GSAP too) ───────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity var(--dur-slow) var(--ease-out-organic),
              transform var(--dur-slow) var(--ease-out-organic);
  will-change: transform, opacity;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.animate-delay-1 { transition-delay: 70ms; }
.animate-delay-2 { transition-delay: 140ms; }
.animate-delay-3 { transition-delay: 210ms; }
.animate-delay-4 { transition-delay: 280ms; }

/* ── 18b. Motion extras (progress, marquee, sheen, glow) ───────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1300;
  background: var(--grad-accent);
  background-size: 300% 100%;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  animation: progress-hue 8s linear infinite;
}
@keyframes progress-hue {
  to { background-position: 300% 0; }
}

.hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  --orb-tint: rgba(123, 123, 123, 0.30);
  background: var(--grad-orb);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 0;
  animation: glow-in 1.4s 0.9s var(--ease-out-organic) forwards;
}
@keyframes glow-in { to { opacity: 1; } }

.marquee {
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  position: relative;
  z-index: 2;
  user-select: none;
}
.marquee.band-ink,
.marquee.band-navy {
  border-color: rgba(236, 236, 236, 0.1);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  will-change: transform;
}
.marquee-group {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding-right: 2.2rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.4vw, 1.65rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: inherit;
}
.marquee-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-hi);
  flex-shrink: 0;
}
.marquee-group .alt { color: var(--emphasis); }
.marquee-group .vio { color: var(--primary-hi); }
.marquee.band-ink .marquee-group .vio,
.marquee.band-navy .marquee-group .vio { color: var(--accent); }

/* Pointer sheen on cards */
.card.has-sheen,
.stat-panel.has-sheen,
.learn-panel.has-sheen,
.download-card.has-sheen {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.card.has-sheen::after,
.stat-panel.has-sheen::after,
.learn-panel.has-sheen::after,
.download-card.has-sheen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  --spot-size: 420px;
  --spot-alpha: 0.28;
  background: var(--grad-spot);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-out-organic);
}
.card.has-sheen:hover::after,
.stat-panel.has-sheen:hover::after,
.learn-panel.has-sheen:hover::after,
.download-card.has-sheen:hover::after {
  opacity: 1;
}
/* Keep children above the sheen */
.card.has-sheen > *,
.stat-panel.has-sheen > *,
.learn-panel.has-sheen > *,
.download-card.has-sheen > * {
  position: relative;
  z-index: 1;
}

/* Tile hover: lift + icon pop already; add soft inner glow */
.card.tile-violet:hover,
.card.tile-ink:hover,
.card.tile-navy:hover,
.card.tile-pink:hover,
.card:has(.card-icon.purple):hover,
.card:has(.card-icon.pink):hover {
  box-shadow: 0 24px 50px -18px rgba(87, 87, 87, 0.55) !important;
}
.card.tile-orange:hover,
.card.tile-cyan:hover,
.card.tile-mint:hover,
.card.tile-peach:hover,
.card:has(.card-icon.blue):hover,
.card:has(.card-icon.green):hover,
.card:has(.card-icon.amber):hover {
  box-shadow: 0 24px 50px -18px rgba(17, 17, 17, 0.35) !important;
}

/* Buttons: icon nudge + ring on hover */
.btn .btn-icon {
  display: inline-block;
  transition: transform var(--dur-med) var(--ease-spring);
}
.btn:hover .btn-icon { transform: translateY(3px); }
.btn-on-dark:hover .btn-icon,
.btn-ghost:hover .btn-icon { transform: translateY(3px) rotate(-6deg); }

/* Nav CTA tiny pop */
.nav-cta { will-change: transform; }

/* App mock entrance polish */
.app-mock { will-change: transform; }
.mock-bar { transform-origin: bottom; }

/* ── 19. Focus & selection ────────────────────────────────────────
   The focus ring lives in style.css (one place, one colour).        */

/* ── 20. Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .showcase { grid-template-columns: 1fr 1fr; }
  .showcase-center { grid-column: 1 / -1; grid-row: 1; position: static; max-width: 480px; margin: 0 auto 12px; width: 100%; }
  .privacy-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding-top: 56px; }
  .hero-title { font-size: clamp(2.9rem, 15vw, 4.4rem); }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; gap: 28px; }
  .showcase { grid-template-columns: 1fr; }
  .showcase-col .card { min-height: 280px; }
  .privacy-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cta-art { display: none; }
  .cta-band { padding: 90px 0; }
  .privacy-frame { height: 46vh; margin-bottom: -46vh; }
  .toast { left: 12px; bottom: 12px; }
  .card.tile-violet, .card.tile-ink, .card.tile-orange,
  .card.tile-cyan, .card.tile-mint, .card.tile-peach,
  .card.tile-pink, .card.tile-navy { min-height: 260px; padding: 28px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-stat-value { font-size: 1.6rem !important; }
}

/* ── 21. Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .bg-orbs::before, .bg-orbs::after,
  .hero::before,
  .hero-badge .dot,
  .toast,
  .scroll-progress,
  .hero-glow {
    animation: none !important;
  }
  .toast { opacity: 1; transform: none; }
  .hero-glow { display: none; }
  .scroll-progress { transform: scaleX(1); opacity: 0.35; }
  .animate-on-scroll { transition: none; opacity: 1; transform: none; }
  .card:hover, .btn:active, .btn-primary:hover, .nav-cta:hover { transform: none !important; }
  .card.has-sheen::after { display: none; }
  html { scroll-behavior: auto; }
}

/* ── 22. Print ──────────────────────────────────────────────────── */
@media print {
  .navbar, .scroll-top, .bg-grid, .bg-orbs, .toast, .scroll-progress, .marquee { display: none !important; }
  body { background: Canvas; color: CanvasText; }
  body::after { display: none; }
}

/* ════════════════════════════════════════════════════════════════
   23. Motion pass 2 — scrollytelling, rails, page transitions
   ════════════════════════════════════════════════════════════════ */

/* word-split masking for every split target (fallback path + SplitText lines) */
.display .w, .section-title .w, .page-header h1 .w, .hero-title .w,
.reveal-words .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.display .wi, .section-title .wi, .page-header h1 .wi, .hero-title .wi { display: inline-block; }
.st-line { overflow: clip; }

/* navbar hide-on-scroll */
.navbar {
  transition: background var(--dur-med) var(--ease-out-organic),
              border-color var(--dur-med) var(--ease-out-organic),
              box-shadow var(--dur-med) var(--ease-out-organic),
              transform 320ms var(--ease-out-organic);
}
.navbar.nav-hidden { transform: translateY(-110%); }

/* full-page wipe (motion.js initPageTransition) */
.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: var(--surface-deep);
  transform: scaleY(0);
  transform-origin: top;
  pointer-events: none;
}
.page-wipe.is-covering { transform: scaleY(1); }

/* docs reading progress */
.docs-layout { position: relative; }
.read-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 3px;
  z-index: 6;
}

/* ── Scrollytelling showcase ──────────────────────────────────── */
.showcase { position: relative; }
.showcase-col-offset { margin-top: 180px; }

.app-mock-body { position: relative; }
.mock-panels {
  position: relative;
  flex: 1;
  min-height: 430px;
}
.mock-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.985);
  transition: opacity var(--dur-med) var(--ease-out-organic),
              transform var(--dur-slow) var(--ease-out-organic),
              visibility 0s linear var(--dur-med);
}
.mock-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--dur-med) var(--ease-out-organic),
              transform var(--dur-slow) var(--ease-out-organic),
              visibility 0s linear 0s;
}
.mock-panel.is-active .mock-chart { margin-top: auto; }

/* KPI row (Power BI panel) */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.kpi-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: rgba(236, 236, 236, 0.07);
  border: 1px solid rgba(236, 236, 236, 0.13);
  border-radius: 14px;
}
.kpi-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(236, 236, 236, 0.5);
}
.kpi-value {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 800;
  color: var(--text);
}
.kpi-delta { font-size: 0.72rem; font-weight: 700; }
/* The arrow is the second cue: the colour never carries the meaning
   on its own. */
.kpi-delta.up { color: var(--success); }
.kpi-delta.up::before { content: "\2191\00a0"; }
.kpi-delta.down { color: var(--emphasis); }
.kpi-delta.down::before { content: "\2193\00a0"; }

/* SQL / sheet tables */
.mock-table, .mock-sheet {
  background: rgba(236, 236, 236, 0.06);
  border: 1px solid rgba(236, 236, 236, 0.13);
  border-radius: 14px;
  overflow: hidden;
}
.mock-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 9px 14px;
  font-family: var(--font-mono, monospace);
  font-size: 0.76rem;
  color: rgba(236, 236, 236, 0.85);
  border-top: 1px solid rgba(236, 236, 236, 0.08);
}
.mock-sheet .mock-row { grid-template-columns: 1fr 1fr 1fr; }
.mock-row.head {
  border-top: 0;
  background: rgba(236, 236, 236, 0.09);
  color: rgba(236, 236, 236, 0.55);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.mock-row.formula span:nth-child(2) { color: var(--accent); }
.mock-row.formula span:nth-child(3) { color: var(--success); font-weight: 700; }
.mock-sql-lg { font-size: 0.74rem; line-height: 1.75; margin-top: 0; }
.mock-sql .kw { color: var(--pink); font-weight: 700; }
.mock-sql .fn { color: var(--accent); font-weight: 700; }
.mock-sql .str { color: var(--emphasis-hi); }
.mock-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 0.72rem;
  color: rgba(236, 236, 236, 0.55);
}
.mock-status .hf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(155, 191, 161, 0.16);
}

/* step dots + vertical progress */
.scrolly-dots {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 5;
}
.scrolly-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-2);
  transition: transform var(--dur-med) var(--ease-spring),
              background var(--dur-med) var(--ease-out-organic);
}
.scrolly-dots span.is-active {
  background: var(--primary-hi);
  transform: scale(1.55);
}
.scrolly-progress {
  position: absolute;
  left: -16px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--line);
  border-radius: 3px;
}
.scrolly-progress span {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: var(--grad-brand);
  transform: scaleY(0);
  transform-origin: top;
}

/* step cards get a subtle active state */
[data-step].is-active { box-shadow: 0 22px 50px -22px rgba(18, 18, 18, 0.55); }
[data-step] { transition: box-shadow var(--dur-med) var(--ease-out-organic); }

/* ── Horizontal rail (pinned scroller) ────────────────────────── */
.rail-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rail {
  overflow: hidden;
  margin-top: 36px;
}
.rail-track {
  display: flex;
  gap: 24px;
  padding: 4px max(24px, calc((100vw - 1200px) / 2));
  will-change: transform;
}
.rail-card {
  position: relative;
  flex: 0 0 clamp(250px, 25vw, 330px);
  min-height: 280px;
  padding: 30px 26px;
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 24px;
  box-shadow: 0 24px 60px -34px rgba(17, 17, 17, 0.5);
  scroll-snap-align: center;
}
.rail-card .card-text { color: var(--text-2); }
.rail-card .code-inline {
  font-family: var(--font-mono, monospace);
  font-size: 0.78em;
  background: rgba(81, 81, 81, 0.1);
  color: var(--primary-hi);
  padding: 1px 6px;
  border-radius: 6px;
}
.rail-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.12);
}
.rail-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.rail-hint span { display: inline-block; animation: rail-hint-slide 1.6s var(--ease-out-organic) infinite; }
@keyframes rail-hint-slide {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

/* ── Responsive (pass 2) ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .showcase-col-offset { margin-top: 0; }
  .scrolly-progress, .scrolly-dots { display: none; }
  .rail-section { min-height: 0; padding-top: 72px; padding-bottom: 72px; }
}
@media (max-width: 899px), (pointer: coarse) {
  .rail { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .rail-track { transform: none !important; padding: 4px 20px 12px; }
  .rail-card { flex-basis: min(78vw, 300px); scroll-snap-align: start; }
  .rail-hint { position: static; transform: none; justify-content: center; margin-top: 18px; }
}
@media (max-width: 768px) {
  .mock-panels { min-height: 380px; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .kpi-row .kpi-card:last-child { grid-column: 1 / -1; }
}

/* ── 24. Reduced motion (pass 2) ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .page-wipe { display: none !important; }
  .navbar, .navbar.nav-hidden { transform: none; }
  .read-progress { transform: scaleX(1); opacity: 0.4; }
  .mock-panel { transition: none !important; transform: none !important; }
  .mock-panel:not(.is-active) { display: none; }
  .scrolly-dots span { transition: none; }
  .scrolly-progress span { transform: scaleY(1); }
  [data-step] { transition: none; }
  .rail-section { min-height: 0; }
  .rail { overflow-x: auto; scroll-snap-type: x mandatory; }
  .rail-track { transform: none !important; }
  .rail-hint span { animation: none; }
}

@media print {
  .page-wipe, .read-progress, .scrolly-dots, .scrolly-progress { display: none !important; }
}

/* ════════════════════════════════════════════════════════════════
   25. New pages — timeline, FAQ, blog, security, about
   ════════════════════════════════════════════════════════════════ */

/* shared: pill chips + check lists */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(81, 81, 81, 0.1);
  color: var(--primary-hi);
  border: 1px solid rgba(84, 84, 84, 0.25);
}
.chip-green { background: var(--success-bg); color: var(--success); border-color: rgba(159, 194, 165, 0.4); }
.chip-orange { background: var(--warning-bg); color: var(--warning); border-color: rgba(197, 172, 121, 0.35); }
.chip-ink { background: rgba(17, 17, 17, 0.08); color: var(--text); border-color: rgba(17, 17, 17, 0.2); }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-2);
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  font-size: 0.7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.check-list.ink li { color: rgba(236, 236, 236, 0.8); }
.check-list.ink li::before { background: rgba(156, 192, 162, 0.2); color: #a2c3a8; }

/* ── Changelog timeline ─────────────────────────────────────────── */
.timeline { position: relative; max-width: 780px; margin: 0 auto; padding-left: 36px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--grad-brand);
  opacity: 0.4;
}
.timeline-item { position: relative; padding-bottom: 42px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 5px solid var(--primary);
  box-shadow: 0 0 0 5px rgba(123, 123, 123, 0.16);
}
.timeline-item.release-latest::before { border-color: var(--emphasis); box-shadow: 0 0 0 5px rgba(155, 155, 155, 0.16); }
.timeline-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 6px; }
.timeline-version { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: var(--text); }
.timeline-date { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
.timeline-summary { color: var(--text-2); font-size: 0.96rem; line-height: 1.65; margin-bottom: 14px; }
.change-group { margin-bottom: 10px; }
.change-group h2 { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.change-group.added h2 { color: var(--success); }
.change-group.changed h2 { color: var(--emphasis); }
.change-group.fixed h2 { color: var(--primary-hi); }
.change-group ul { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.change-group li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.55;
}
.change-group li::before { content: "\2022"; position: absolute; left: 2px; color: var(--text-muted); }

/* ── FAQ accordion (native details, no-JS) ───────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 820px; margin: 0 auto; }
.faq-group + .faq-group { margin-top: 52px; }
.faq-group-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 18px;
  text-align: center;
}
.faq-item {
  background: var(--surface-3);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px -30px rgba(18, 18, 18, 0.6);
  transition: border-color var(--dur-med) var(--ease-out-organic),
              box-shadow var(--dur-med) var(--ease-out-organic);
}
.faq-item[open] {
  border-color: rgba(86, 86, 86, 0.4);
  box-shadow: 0 22px 44px -30px rgba(86, 86, 86, 0.5);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  position: relative;
  transition: background var(--dur-fast) var(--ease-out-organic);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: rgba(78, 78, 78, 0.05); }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--primary-hi);
  transition: transform var(--dur-med) var(--ease-spring);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-a {
  padding: 0 24px 22px;
  color: var(--text-2);
  line-height: 1.7;
  font-size: 0.96rem;
}
.faq-item[open] .faq-a { animation: faq-in var(--dur-med) var(--ease-out-organic); }
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ── Blog cards ─────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 24px;
  box-shadow: 0 20px 48px -38px rgba(18, 18, 18, 0.6);
  transition: transform var(--dur-med) var(--ease-spring),
              box-shadow var(--dur-med) var(--ease-out-organic);
}
a.blog-card:hover { transform: translateY(-6px); box-shadow: 0 34px 64px -38px rgba(18, 18, 18, 0.65); }
.blog-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }
.blog-card h2 { font-size: 1.18rem; font-weight: 800; line-height: 1.3; color: var(--text); }
.blog-excerpt { color: var(--text-2); font-size: 0.94rem; line-height: 1.65; flex: 1; }
.blog-more { font-size: 0.86rem; font-weight: 700; color: var(--primary-hi); }
a.blog-card:hover .blog-more { text-decoration: underline; }
.blog-featured {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
  margin-bottom: 26px;
}
.blog-featured-body { padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.blog-featured-body h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.1; }
.blog-featured-art {
  min-height: 240px;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
}
.blog-featured-art .da-glyph {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800;
  color: rgba(236, 236, 236, 0.92);
  letter-spacing: -0.04em;
}

/* ── Security flow diagram ──────────────────────────────────────── */
.flow { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; justify-content: center; }
.flow-node {
  flex: 1 1 160px;
  max-width: 230px;
  padding: 16px 18px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  box-shadow: 0 16px 34px -30px rgba(18, 18, 18, 0.7);
}
.flow-node small { display: block; margin-top: 5px; font-weight: 500; font-size: 0.76rem; color: var(--text-2); line-height: 1.45; }
/* The locked node carries a glyph as well as the green tint, so the
   state survives a colour-blind reader. */
.flow-node.locked { border-color: rgba(160, 194, 166, 0.55); background: rgba(152, 189, 158, 0.09); }
.flow-node.locked::before {
  content: "\2713";
  display: block;
  margin-bottom: 4px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--success);
}
.flow-sep { display: grid; place-items: center; color: var(--primary-hi); font-weight: 800; font-size: 1.1rem; }

/* ── About: principles + quote ──────────────────────────────────── */
.about-quote {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}
.about-quote cite { display: block; margin-top: 16px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.9rem; font-weight: 600; color: var(--text-muted); font-style: normal; }

/* ── Contextual inline CTA ──────────────────────────────────────── */
.inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 44px;
  padding: 26px;
  border-radius: 22px;
  background: rgba(79, 79, 79, 0.06);
  border: 1px dashed rgba(85, 85, 85, 0.35);
}
.inline-cta p { font-weight: 600; color: var(--text); margin: 0; }

/* ── Responsive (pass 2b) ───────────────────────────────────────── */
@media (max-width: 768px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-art { min-height: 170px; order: -1; }
  .timeline { padding-left: 30px; }
  .timeline-item::before { left: -30px; width: 17px; height: 17px; }
  .timeline::before { left: 7px; }
  .flow-sep { transform: rotate(90deg); }
  .flow-node { max-width: none; }
}
