/* ============================================================
   GoldenInbox.io — Design System
   Editorial dark · gold signature · data-forward
   ============================================================ */

:root {
  /* Surface — deep ink, cool-warm neutral */
  --ink-000: oklch(8% 0.005 80);
  --ink-050: oklch(11% 0.006 80);
  --ink-100: oklch(14% 0.008 80);
  --ink-200: oklch(18% 0.009 80);
  --ink-300: oklch(24% 0.010 80);
  --ink-400: oklch(34% 0.011 80);

  /* Foreground — bone whites */
  --bone-100: oklch(96% 0.008 85);
  --bone-200: oklch(88% 0.010 85);
  --bone-300: oklch(72% 0.010 85);
  --bone-400: oklch(56% 0.010 85);
  --bone-500: oklch(42% 0.010 85);

  /* Signature — gold */
  --gold-100: oklch(92% 0.090 88);
  --gold-300: oklch(82% 0.130 85);
  --gold-500: oklch(74% 0.150 82);
  --gold-700: oklch(58% 0.130 75);

  /* Cool data accent (used sparingly) */
  --azure-500: oklch(70% 0.130 235);

  /* Semantic */
  --bg: var(--ink-000);
  --bg-raised: var(--ink-050);
  --bg-card: var(--ink-100);
  --bg-card-hover: var(--ink-200);
  --line: oklch(28% 0.011 80 / 0.6);
  --line-strong: oklch(38% 0.012 80 / 0.7);
  --fg: var(--bone-100);
  --fg-muted: var(--bone-300);
  --fg-dim: var(--bone-400);
  --accent: var(--gold-500);
  --accent-soft: oklch(74% 0.150 82 / 0.12);
  --accent-line: oklch(74% 0.150 82 / 0.32);

  /* Type */
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Menlo", monospace;

  /* Scale */
  --step-1: clamp(0.78rem, 0.76rem + 0.10vw, 0.85rem);
  --step-0: clamp(0.92rem, 0.89rem + 0.15vw, 1.00rem);
  --step-2: clamp(1.05rem, 1.00rem + 0.25vw, 1.20rem);
  --step-3: clamp(1.30rem, 1.20rem + 0.50vw, 1.62rem);
  --step-4: clamp(1.70rem, 1.50rem + 1.00vw, 2.40rem);
  --step-5: clamp(2.40rem, 2.00rem + 2.00vw, 3.80rem);
  --step-6: clamp(3.20rem, 2.50rem + 3.50vw, 5.80rem);
  --step-7: clamp(4.20rem, 3.00rem + 6.00vw, 8.40rem);

  /* Spacing rhythm */
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 3rem);
  --section: clamp(5rem, 3rem + 6vw, 9rem);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Tweak hooks (overridden via JS) */
:root {
  --tw-gold-mult: 1;       /* 0..1.4 */
  --tw-density: 1;          /* 0.8..1.2 */
  --tw-motion: 1;           /* 0..1 */
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--accent-soft); color: var(--gold-100); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-050); }
::-webkit-scrollbar-thumb { background: var(--ink-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-400); }

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 380;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
  color: var(--bone-100);
  font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 144;
}

/* Light hyperreal gold-leaf finish on display headings — satin sheen + relief.
   Subtle enough to keep type readable; rich enough to read as gold. */
h1, h2, h3 {
  /* Wider gradient with a bright "shine" band that travels across the text.
     The travel is animated via background-position to create a subtle
     gold shimmer — the headlines feel like polished metal catching light. */
  background-image: linear-gradient(
    100deg,
    #d6a44a 0%,
    #e8c46a 18%,
    #fbe49a 32%,
    #fff7d6 42%,
    #ffffff 48%,
    #fff7d6 54%,
    #fbe49a 64%,
    #e8c46a 78%,
    #d6a44a 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  /* Soft engraved relief — keep crisp; no permanent blur halo */
  text-shadow:
    0 1px 0 rgba(255, 250, 220, 0.16),
    0 -1px 0 rgba(120, 70, 10, 0.18);
  animation: gold-shimmer 9s ease-in-out infinite;
  animation-duration: calc(9s / var(--tw-motion, 1));
}
@keyframes gold-shimmer {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  h1, h2, h3 { animation: none; }
}
/* Preserve the existing italic accent override in the hero — keep it readable */
.hero h1 .accent {
  background-image: none;
  -webkit-text-fill-color: var(--gold-300);
          color: var(--gold-300);
  text-shadow: 0 0 14px rgba(220, 170, 70, 0.18);
  filter: none;
}
h1 { font-size: var(--step-7); font-weight: 340; }
h2 { font-size: var(--step-6); font-weight: 360; }
h3 { font-size: var(--step-4); font-weight: 400; }
/* h4 = card titles. Use Inter for legibility at small sizes. */
h4 {
  font-family: var(--font-sans);
  font-size: var(--step-3);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.25;
}

p { margin: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-400);
  font-weight: 500;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  margin-right: 0.6em;
  vertical-align: 0.15em;
  box-shadow: 0 0 12px var(--accent);
}

.serif { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); }
.gold { color: var(--gold-300); }
.tabular { font-variant-numeric: tabular-nums; }

.italic-gold {
  font-style: italic;
  color: var(--gold-300);
  font-variation-settings: "SOFT" 100, "opsz" 144;
}

/* ----- Layout primitives ----- */
.container {
  width: min(100% - var(--gutter) * 2, 1440px);
  margin-inline: auto;
}
.container-tight { width: min(100% - var(--gutter) * 2, 1100px); margin-inline: auto; }

.section {
  padding-block: var(--section);
  position: relative;
}
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: clamp(1.5rem, 2vw, 3rem);
  align-items: end;
  padding-bottom: clamp(2rem, 4vw, 4rem);
}
.section-head .section-num {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: var(--bone-500);
  letter-spacing: 0.12em;
  border-top: 1px solid var(--line-strong);
  padding-top: 0.6rem;
}
.section-head .section-title {
  max-width: 100%;
}
.section-head .section-title h2 {
  text-wrap: balance;
  max-width: 22ch;
}
.section-head .section-title .lede {
  margin-top: 1.2rem;
  color: var(--fg-muted);
  font-size: var(--step-2);
  max-width: 50ch;
  text-wrap: pretty;
}

@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; gap: 1rem; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.4rem;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: all 250ms var(--ease-out);
  cursor: pointer;
  position: relative;
}
.btn .arrow {
  display: inline-block;
  transition: transform 320ms var(--ease-out);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--gold-500);
  color: var(--ink-000);
  border-color: var(--gold-500);
}
.btn-primary:hover {
  background: var(--gold-300);
  border-color: var(--gold-300);
  box-shadow: 0 0 0 1px var(--gold-500), 0 8px 30px -8px var(--gold-700);
}
.btn-ghost {
  background: transparent;
  color: var(--bone-100);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--gold-500);
  color: var(--gold-300);
}

/* ----- Hairline / divider ----- */
.hairline { height: 1px; background: var(--line); width: 100%; }
.hairline-strong { height: 1px; background: var(--line-strong); width: 100%; }

/* ----- Navbar ----- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  background: oklch(8% 0.005 80 / 0.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: all 280ms var(--ease-out);
}
.nav.scrolled {
  background: oklch(8% 0.005 80 / 0.85);
  border-bottom-color: var(--line);
  padding: 0.8rem 0;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 420;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: var(--bone-100);
}
.brand .mark {
  width: 28px; height: 28px;
  position: relative;
  perspective: 120px;
  transform-style: preserve-3d;
}
.brand .mark::before,
.brand .mark::after { content: none; }

/* The rotating gold cube */
.brand .mark .cube {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  top: 6px; left: 6px;
  transform-style: preserve-3d;
  animation: cube-spin 9s linear infinite;
  filter: drop-shadow(0 0 6px rgba(220, 170, 70, 0.45));
}
.brand .mark .cube .face {
  position: absolute;
  width: 16px; height: 16px;
  background: linear-gradient(
    135deg,
    #fff5cc 0%,
    #f3d07a 30%,
    #d8a548 60%,
    #b9852e 100%
  );
  border: 1px solid rgba(255, 230, 160, 0.55);
  box-shadow:
    inset 0 0 6px rgba(255, 240, 200, 0.35),
    inset 0 -3px 4px rgba(120, 70, 10, 0.35);
}
.brand .mark .cube .f-front  { transform: translateZ(8px); }
.brand .mark .cube .f-back   { transform: rotateY(180deg) translateZ(8px); filter: brightness(0.78); }
.brand .mark .cube .f-right  { transform: rotateY(90deg)  translateZ(8px); filter: brightness(0.92); }
.brand .mark .cube .f-left   { transform: rotateY(-90deg) translateZ(8px); filter: brightness(0.85); }
.brand .mark .cube .f-top    { transform: rotateX(90deg)  translateZ(8px); filter: brightness(1.18); }
.brand .mark .cube .f-bottom { transform: rotateX(-90deg) translateZ(8px); filter: brightness(0.7); }

@keyframes cube-spin {
  0%   { transform: rotateX(-18deg) rotateY(0deg); }
  100% { transform: rotateX(-18deg) rotateY(360deg); }
}

/* Discrete gold dust drifting up from the cube */
.brand .mark .dust {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff4cc 0%, #f3c870 50%, rgba(220,170,70,0) 100%);
  box-shadow: 0 0 4px rgba(240, 200, 110, 0.7);
  opacity: 0;
  pointer-events: none;
}
.brand .mark .dust.d1 { left: 10px; bottom: 8px;  animation: dust-rise 3.4s ease-in 0s    infinite; }
.brand .mark .dust.d2 { left: 16px; bottom: 10px; animation: dust-rise 3.8s ease-in 0.7s  infinite; }
.brand .mark .dust.d3 { left: 13px; bottom: 6px;  animation: dust-rise 4.2s ease-in 1.4s  infinite; }
.brand .mark .dust.d4 { left: 19px; bottom: 9px;  animation: dust-rise 3.6s ease-in 2.1s  infinite; }
.brand .mark .dust.d5 { left: 8px;  bottom: 11px; animation: dust-rise 4.0s ease-in 2.7s  infinite; }

@keyframes dust-rise {
  0%   { transform: translate(0, 0) scale(0.6);  opacity: 0; }
  15%  { opacity: 0.9; }
  60%  { opacity: 0.7; }
  100% { transform: translate(var(--drift, 4px), -22px) scale(0.3); opacity: 0; }
}
.brand .mark .dust.d2 { --drift: -3px; }
.brand .mark .dust.d3 { --drift:  6px; }
.brand .mark .dust.d4 { --drift: -5px; }
.brand .mark .dust.d5 { --drift:  2px; }

@media (prefers-reduced-motion: reduce) {
  .brand .mark .cube { animation: none; transform: rotateX(-18deg) rotateY(-25deg); }
  .brand .mark .dust { animation: none; opacity: 0; }
}
.brand .domain {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--bone-400);
  margin-left: 0.1rem;
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
  font-size: var(--step-1);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.nav-links a {
  color: var(--bone-300);
  transition: color 200ms;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}
.nav-links a:hover { color: var(--gold-300); }

.nav-cta {
  display: flex; gap: 0.7rem; align-items: center;
}
.nav-cta .btn { padding: 0.55rem 1rem; font-size: var(--step-1); }

@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ----- HERO ----- */
.hero {
  position: relative;
  padding-top: clamp(8rem, 12vw, 12rem);
  padding-bottom: clamp(4rem, 6vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 30%, transparent 75%);
  opacity: 0.4;
  z-index: -1;
}
.hero-glow {
  position: absolute;
  width: 60vw; height: 60vw;
  top: -20vw; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, oklch(74% 0.150 82 / calc(0.10 * var(--tw-gold-mult))) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: var(--bone-400);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-top: 1px solid var(--line-strong);
  padding-top: 0.8rem;
  margin-bottom: clamp(2rem, 4vw, 4rem);
}
.hero-meta .meta-cluster { display: flex; gap: 2rem; }
.hero-meta .meta-cluster span:first-child { color: var(--bone-500); }

.hero h1 {
  text-wrap: balance;
  max-width: 18ch;
  margin-bottom: 2rem;
}
.hero h1 .accent { color: var(--gold-300); font-style: italic; font-weight: 320; }
.hero h1 .underline {
  position: relative;
  /* Inherit gold gradient text fill from parent — no new stacking context */
  background-image: inherit;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  border-bottom: 1px solid var(--gold-500);
  padding-bottom: 0.04em;
}
.hero h1 .underline::after { content: none; }

.hero-bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: end;
  padding-top: clamp(2rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  margin-top: clamp(2.5rem, 5vw, 5rem);
}
.hero-lede {
  font-size: var(--step-2);
  color: var(--fg-muted);
  max-width: 56ch;
  text-wrap: pretty;
}
.hero-lede strong { color: var(--bone-100); font-weight: 500; }

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.hero-cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-cta-meta {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: var(--bone-500);
  letter-spacing: 0.06em;
}

@media (max-width: 880px) {
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-meta .meta-cluster:nth-child(2) { display: none; }
}

/* ----- Hero workflow diagram ----- */
.workflow {
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0;
  position: relative;
  height: clamp(280px, 32vw, 420px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, var(--accent-soft), transparent 60%),
    var(--ink-000);
}
.workflow-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: absolute;
  inset: 0;
  align-items: end;
  padding: 1.4rem 0 1.4rem 8%;
  z-index: 3;
  pointer-events: none;
}
.workflow-node { pointer-events: auto; }
.workflow-node {
  text-align: center;
  padding: 0.6rem 0.5rem;
  position: relative;
  z-index: 2;
}
.workflow-node .node-label {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: var(--bone-200);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.workflow-node .node-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold-500);
  letter-spacing: 0.16em;
  margin-bottom: 0.3rem;
}
.workflow-node .node-glyph {
  display: none;
}
.workflow-node .node-glyph-stub {
  display: none;
}
.workflow-node .node-desc {
  font-size: 0.74rem;
  color: var(--bone-500);
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.workflow-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  width: 100%;
  height: 100%;
}
.workflow-baseline {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(56px, 7vw, 84px);
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    var(--line-strong) 8%,
    var(--line-strong) 92%,
    transparent 100%);
  z-index: 2;
}
.workflow-baseline::before {
  content: "";
  position: absolute;
  left: 8%; right: 8%;
  top: 0;
  height: 1px;
  background-image: linear-gradient(to right, var(--gold-500) 50%, transparent 50%);
  background-size: 8px 1px;
  opacity: 0.5;
}

@media (max-width: 880px) {
  .workflow-track {
    /* keep horizontal flow so the particle stream stays meaningful */
    padding-left: 0.6rem !important;
    padding-right: 0.6rem !important;
  }
  .workflow-node { padding: 0.4rem 0.15rem; }
  .workflow-node .node-label { font-size: 0.62rem; letter-spacing: 0.06em; }
  .workflow-node .node-num { font-size: 0.55rem; }
  .workflow-node .node-desc { display: none; }
}

/* ----- Mobile: maximize workflow real-estate -----
   Break out of the page gutter so emails get more horizontal travel,
   and grow vertically so € / $ explosions have headroom and don't clip. */
@media (max-width: 640px) {
  .workflow {
    /* Break out of the parent gutter — use full viewport width */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    height: 460px;                 /* taller — explosions need vertical room */
    border-left: none;
    border-right: none;
  }
  .workflow-track {
    /* Push nodes to the bottom third so explosions have a tall ceiling */
    padding: 2rem 0.4rem 1rem !important;
    align-items: end;
  }
  .workflow-node { padding: 0.25rem 0.1rem; }
  .workflow-node .node-label { font-size: 0.56rem; letter-spacing: 0.04em; }
  .workflow-node .node-num { font-size: 0.5rem; }
}

/* ----- Marquee ticker ----- */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-050);
  overflow: hidden;
  padding: 1rem 0;
}
.ticker-track {
  display: flex;
  gap: 4rem;
  /* Duration is set responsively via media queries below and refined by JS
     based on measured track width to keep px/s perceived speed consistent.
     The --tw-motion var is honoured as a multiplier so the Tweaks panel
     can still scale speed live. */
  /* 6× slower than original — extremely calm, premium reading pace.
     Browsers clamp absurdly large durations, so we keep this in a sane range.
     ~12000s = ~3h 20min full cycle (10× slower per request). */
  --ticker-duration: 12000s;
  animation: ticker-scroll var(--ticker-duration) linear infinite;
  animation-duration: calc(var(--ticker-duration) / var(--tw-motion, 1));
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: var(--bone-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 1rem; transition: transform 600ms cubic-bezier(.22,.61,.36,1), color 600ms ease; }
.ticker-track .sep { color: var(--gold-500); }
.ticker-track .num { color: var(--bone-100); font-weight: 500; transition: color 600ms ease, text-shadow 600ms ease; }

/* === Center highlight: when an item crosses the viewport's horizontal middle,
   it lifts subtly, turns premium gold, and emits soft golden dust.
   JS adds .is-center on the active span as it passes through.
   Effect must remain minimal, elegant, non-intrusive. === */
.ticker-track span.is-center {
  transform: scale(1.07);
  color: var(--gold-300, #f3d488);
}
.ticker-track span.is-center .num {
  color: var(--gold-200, #ffe5a8);
  text-shadow:
    0 0 12px rgba(230, 185, 90, 0.55),
    0 0 26px rgba(230, 185, 90, 0.20);
}
.ticker-track span.is-center .sep {
  color: var(--gold-300, #f3d488);
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ----- Problem section (split layout) ----- */
.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: start;
}
@media (max-width: 880px) { .split-2 { grid-template-columns: 1fr; } }

.problem-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.problem-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: padding 250ms var(--ease-out);
}
.problem-row:hover { padding-left: 1rem; }
.problem-row .num {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: var(--bone-500);
}
.problem-row .text {
  font-size: var(--step-2);
  color: var(--bone-100);
  text-wrap: balance;
  font-family: var(--font-display);
  font-weight: 380;
  letter-spacing: -0.01em;
}
.problem-row .stat {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: var(--gold-300);
  letter-spacing: 0.06em;
}

.problem-pull {
  position: sticky;
  top: 100px;
  padding: 2rem;
  background: var(--ink-050);
  border: 1px solid var(--line);
}
.problem-pull .quote {
  font-family: var(--font-sans);
  font-size: var(--step-2);
  font-weight: 400;
  font-style: normal;
  line-height: 1.55;
  color: var(--bone-100);
  font-weight: 360;
  text-wrap: balance;
}
.problem-pull .quote::before { content: "“"; color: var(--gold-500); font-size: 2em; line-height: 0; vertical-align: -0.4em; margin-right: 0.05em; }
.problem-pull .attrib {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: var(--bone-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ----- Solution / Capability cards ----- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.cap-card {
  padding: 2.2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-000);
  position: relative;
  transition: background 300ms var(--ease-out);
  min-height: 280px;
  display: flex; flex-direction: column;
  isolation: isolate;
  overflow: hidden;
}
.cap-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 60%);
  opacity: 0;
  transition: opacity 350ms;
  z-index: -1;
}
.cap-card:hover::before { opacity: 1; }
.cap-card:hover { background: var(--ink-050); }
.cap-card .cap-num {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: var(--gold-500);
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
}
.cap-card h4 {
  margin-bottom: 0.8rem;
  text-wrap: balance;
}
.cap-card .cap-body {
  color: var(--bone-300);
  font-size: var(--step-0);
  line-height: 1.6;
  text-wrap: pretty;
}
.cap-card .cap-foot {
  margin-top: auto;
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: var(--bone-500);
  letter-spacing: 0.06em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cap-card .cap-foot .tag {
  border: 1px solid var(--line);
  padding: 0.2em 0.6em;
  color: var(--bone-300);
}

@media (max-width: 980px) { .cap-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cap-grid { grid-template-columns: 1fr; } }

/* ----- Tech stack ----- */
.tech-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-top: 1px solid var(--line);
}
.tech-row {
  display: contents;
}
.tech-row > * {
  padding: 1.6rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.tech-row .layer {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: var(--bone-400);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-right: 1px solid var(--line);
}
.tech-row .stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.tech-pill {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: var(--bone-200);
  border: 1px solid var(--line-strong);
  padding: 0.45em 0.9em;
  letter-spacing: 0.04em;
  transition: all 200ms;
}
.tech-pill:hover {
  border-color: var(--gold-500);
  color: var(--gold-300);
  background: var(--accent-soft);
}
.tech-pill .v {
  color: var(--bone-500);
  margin-left: 0.5em;
}

@media (max-width: 720px) {
  .tech-grid { grid-template-columns: 1fr; }
  .tech-row .layer { border-right: none; padding-bottom: 0; }
}

/* ----- Business value / metrics ----- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.metric {
  padding: 2.2rem 1.8rem;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.8rem;
}
.metric:last-child { border-right: none; }
.metric .m-label {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: var(--bone-400);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.metric .m-value {
  font-family: var(--font-display);
  font-size: var(--step-6);
  font-weight: 340;
  color: var(--bone-100);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.metric .m-value .unit { font-size: 0.5em; color: var(--gold-500); margin-left: 0.1em; vertical-align: 0.6em; font-family: var(--font-mono); letter-spacing: 0; white-space: nowrap; }
.metric .m-foot {
  font-size: var(--step-1);
  color: var(--bone-400);
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
  margin-top: 0.4rem;
}

@media (max-width: 880px) {
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2n) { border-right: none; }
  .metric { border-bottom: 1px solid var(--line); }
}

/* ----- Use cases ----- */
.usecase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.usecase {
  background: var(--ink-000);
  padding: 2rem;
  display: flex; flex-direction: column;
  min-height: 320px;
  position: relative;
  transition: background 250ms;
}
.usecase:hover { background: var(--ink-050); }
.usecase .uc-sector {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: var(--gold-500);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
}
.usecase h4 {
  font-size: var(--step-3);
  margin-bottom: 0.8rem;
  text-wrap: balance;
}
.usecase .uc-body {
  color: var(--bone-300);
  font-size: var(--step-0);
}
.usecase .uc-stat {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
}
.usecase .uc-stat .v { font-family: var(--font-display); font-size: var(--step-4); color: var(--gold-300); }
.usecase .uc-stat .l { font-family: var(--font-mono); font-size: var(--step-1); color: var(--bone-500); text-transform: uppercase; letter-spacing: 0.1em; }

@media (max-width: 880px) {
  .usecase-grid { grid-template-columns: 1fr; }
}

/* ----- Dashboard preview ----- */
.dashboard {
  border: 1px solid var(--line-strong);
  background: var(--ink-050);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.dashboard::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 0%, var(--accent-soft), transparent 50%);
  z-index: -1;
}
.dashboard-chrome {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: var(--ink-000);
}
.dashboard-chrome .dots { display: flex; gap: 0.4rem; }
.dashboard-chrome .dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink-400);
}
.dashboard-chrome .url {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: var(--bone-400);
  margin-left: 0.5rem;
}
.dashboard-chrome .url .gold { color: var(--gold-300); }
.dashboard-chrome .live {
  margin-left: auto;
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: var(--bone-300);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.dashboard-chrome .live .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: oklch(72% 0.180 145);
  box-shadow: 0 0 8px oklch(72% 0.180 145);
  animation: pulse 1.6s ease-in-out infinite;
}

.dashboard-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 520px;
}
.dashboard-side {
  border-right: 1px solid var(--line);
  padding: 1.4rem 1rem;
  background: var(--ink-000);
}
.dashboard-side .side-section {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--bone-500);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 1.5rem 0 0.6rem;
  padding-left: 0.6rem;
}
.dashboard-side .side-section:first-child { margin-top: 0; }
.dashboard-side .side-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.6rem;
  font-size: var(--step-1);
  color: var(--bone-300);
  border-left: 2px solid transparent;
}
.dashboard-side .side-item.active {
  color: var(--gold-300);
  border-left-color: var(--gold-500);
  background: var(--accent-soft);
}
.dashboard-side .side-item .ic { width: 14px; height: 14px; opacity: 0.7; }
.dashboard-side .side-item .count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--bone-500);
}

.dashboard-main {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.dash-header h5 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 380;
  color: var(--bone-100);
  margin: 0;
}
.dash-header .time {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: var(--bone-400);
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.dash-stat {
  background: var(--ink-050);
  padding: 1rem;
}
.dash-stat .l { font-family: var(--font-mono); font-size: 0.68rem; color: var(--bone-500); text-transform: uppercase; letter-spacing: 0.12em; }
.dash-stat .v { font-family: var(--font-display); font-size: 1.7rem; color: var(--bone-100); margin-top: 0.3rem; font-variant-numeric: tabular-nums; }
.dash-stat .d { font-family: var(--font-mono); font-size: 0.7rem; color: oklch(72% 0.180 145); margin-top: 0.2rem; }
.dash-stat .d.down { color: oklch(70% 0.180 25); }

.dash-chart {
  background: var(--ink-050);
  border: 1px solid var(--line);
  padding: 1rem;
  height: 180px;
  position: relative;
}
.dash-chart .ct {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 0.5rem;
}
.dash-chart .ct h6 { font-family: var(--font-mono); font-size: 0.74rem; color: var(--bone-300); margin: 0; text-transform: uppercase; letter-spacing: 0.12em; }
.dash-chart .ct .legend { font-family: var(--font-mono); font-size: 0.7rem; color: var(--bone-500); display: flex; gap: 1rem; }
.dash-chart .ct .legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 0.4em; vertical-align: 0.05em; }
.dash-chart .ct .legend .gold::before { background: var(--gold-500); }
.dash-chart .ct .legend .blue::before { background: var(--azure-500); }
.dash-chart svg { width: 100%; height: calc(100% - 30px); }

.dash-feed {
  background: var(--ink-050);
  border: 1px solid var(--line);
}
.feed-row {
  display: grid;
  grid-template-columns: 90px 1fr 100px 100px;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-size: var(--step-1);
  transition: background 200ms;
}
.feed-row:last-child { border-bottom: none; }
.feed-row:hover { background: var(--ink-100); }
.feed-row .time { font-family: var(--font-mono); color: var(--bone-500); font-size: 0.72rem; }
.feed-row .from { color: var(--bone-100); }
.feed-row .from small { display: block; color: var(--bone-500); font-size: 0.72rem; margin-top: 0.15rem; }
.feed-row .intent {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2em 0.55em;
  border: 1px solid var(--line-strong);
  text-align: center;
  justify-self: start;
}
.feed-row .intent.hot { color: var(--gold-300); border-color: var(--gold-700); background: var(--accent-soft); }
.feed-row .intent.warm { color: var(--bone-200); }
.feed-row .intent.info { color: var(--bone-400); }
.feed-row .score {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--bone-200);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.feed-row .score b { color: var(--gold-300); font-weight: 500; }

@media (max-width: 880px) {
  .dashboard-body { grid-template-columns: 1fr; }
  .dashboard-side { display: none; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .feed-row { grid-template-columns: 1fr 1fr; gap: 0.4rem; }
  .feed-row .time, .feed-row .score { display: none; }
}

/* ----- Roadmap timeline ----- */
.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  border-top: 1px solid var(--line);
}
.roadmap::before {
  content: "";
  position: absolute;
  top: 38px; left: 0; right: 0;
  height: 1px;
  background: var(--line-strong);
}
.rm-step {
  padding: 1.2rem 1.5rem 0;
  position: relative;
  border-right: 1px solid var(--line);
}
.rm-step:last-child { border-right: none; }
.rm-step .rm-q {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: var(--bone-500);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.rm-step .rm-dot {
  position: absolute;
  top: 32px;
  left: 1.5rem;
  width: 13px; height: 13px;
  background: var(--ink-000);
  border: 1px solid var(--line-strong);
  z-index: 2;
}
.rm-step.live .rm-dot {
  background: var(--gold-500);
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px var(--ink-000), 0 0 16px var(--gold-700);
}
.rm-step.next .rm-dot {
  background: var(--ink-000);
  border-color: var(--gold-500);
}
.rm-step .rm-content {
  padding-top: 2.5rem;
}
.rm-step h5 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--bone-100);
  margin: 0 0 0.5rem;
  font-weight: 400;
}
.rm-step.live h5 { color: var(--gold-300); }
.rm-step ul { list-style: none; padding: 0; margin: 0; }
.rm-step li {
  font-size: var(--step-1);
  color: var(--bone-300);
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--line);
}
.rm-step li:before { content: "—"; margin-right: 0.5em; color: var(--bone-500); }

@media (max-width: 880px) { .roadmap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .roadmap { grid-template-columns: 1fr; } }

/* ----- Investor section ----- */
.investor {
  background: var(--ink-050);
  border: 1px solid var(--line-strong);
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.investor::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 60%, var(--accent-soft));
  z-index: -1;
}
.investor h3 { text-wrap: balance; max-width: 18ch; }
.investor .inv-lede { color: var(--fg-muted); margin-top: 1.2rem; font-size: var(--step-2); max-width: 50ch; text-wrap: pretty; }
.investor .inv-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.investor .inv-stat {
  background: var(--ink-100);
  padding: 1.2rem;
}
.investor .inv-stat .l { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--bone-500); }
.investor .inv-stat .v { font-family: var(--font-display); font-size: var(--step-4); color: var(--gold-300); margin-top: 0.3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.investor .inv-stat .v small { font-size: 0.5em; color: var(--bone-400); margin-left: 0.2em; }
.investor .inv-cta { margin-top: 1.8rem; }

@media (max-width: 880px) { .investor { grid-template-columns: 1fr; } }

/* ----- Security ----- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.sec-item {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.6rem;
}
.sec-item .sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.sec-item .sec-head h5 {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: var(--bone-200);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}
.sec-item .sec-head .badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--gold-300);
  letter-spacing: 0.1em;
  border: 1px solid var(--gold-700);
  padding: 0.2em 0.5em;
}
.sec-item .sec-body {
  font-size: var(--step-1);
  color: var(--bone-400);
  line-height: 1.6;
}

@media (max-width: 880px) { .security-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .security-grid { grid-template-columns: 1fr; } }

/* ----- Final CTA ----- */
.final-cta {
  text-align: center;
  padding-block: clamp(6rem, 10vw, 12rem);
  background:
    radial-gradient(ellipse at 50% 50%, var(--accent-soft), transparent 60%),
    var(--ink-000);
  border-top: 1px solid var(--line);
}
.final-cta h2 {
  font-size: var(--step-7);
  font-weight: 320;
  text-wrap: balance;
  max-width: 20ch;
  margin: 0 auto 1.5rem;
}
.final-cta .lede { font-size: var(--step-2); color: var(--bone-300); max-width: 50ch; margin: 0 auto 2.5rem; }
.final-cta .cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ----- Footer ----- */
footer {
  background: var(--ink-000);
  padding: clamp(3rem, 5vw, 5rem) 0 2rem;
  border-top: 1px solid var(--line-strong);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.foot-brand .foot-tag {
  margin-top: 1rem;
  color: var(--bone-400);
  font-size: var(--step-1);
  max-width: 32ch;
}
.foot-col h6 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--bone-500);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { padding: 0.35rem 0; }
.foot-col a { color: var(--bone-300); font-size: var(--step-1); }
.foot-col a:hover { color: var(--gold-300); }

.foot-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: var(--bone-500);
  letter-spacing: 0.06em;
}

@media (max-width: 880px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-bottom { flex-direction: column; gap: 1rem; }
}

/* ----- Reveal-on-scroll ----- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ============================================================
   Mobile optimization (≤ 640px)
   Tighten paddings, sizes, and layout for phones
   ============================================================ */
@media (max-width: 640px) {
  /* "engine" — strip the gold underline box that looked like a chip on small screens.
     The parent h1 has background-image + background-clip:text + transparent fill;
     we DON'T want to break that for the rest of the heading, so on mobile we keep
     the span participating in the parent's gradient clip (background-image: inherit)
     and just remove the chip-like border + padding. */
  .hero h1 .underline {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
    background-image: inherit;
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
            color: transparent;
  }

  :root {
    --gutter: 1.1rem;
    --section: 3.4rem;
    /* tame the largest type steps so headlines never overflow */
    --step-7: clamp(2.6rem, 11vw, 3.6rem);
    --step-6: clamp(2.1rem, 9vw, 3rem);
    --step-5: clamp(1.7rem, 7vw, 2.4rem);
    --step-4: clamp(1.4rem, 6vw, 1.9rem);
  }

  body { font-size: 0.95rem; line-height: 1.55; }

  /* Universal safety: never force horizontal overflow */
  h1, h2, h3, h4, p { word-wrap: break-word; overflow-wrap: anywhere; hyphens: auto; }

  /* Container paddings */
  .container, .wrap, main > section, header, footer {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  /* Nav */
  .nav { padding: 0.7rem var(--gutter); }
  .nav-cta .btn { padding: 0.45rem 0.8rem; font-size: 0.78rem; }
  .brand .domain { display: none; }

  /* Hero */
  .hero { padding-top: 4.2rem; padding-bottom: 2rem; }
  .hero h1 { font-size: var(--step-6); line-height: 1.04; max-width: 100%; }
  .hero p, .hero .lede { font-size: 0.95rem; line-height: 1.5; max-width: 100%; }
  .hero .badges, .hero-meta { gap: 0.6rem; }
  .hero-meta .meta-cluster { font-size: 0.78rem; }

  /* Buttons stack full-width on phones */
  .hero-cta, .final-cta .ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .btn, .final-cta .btn { width: 100%; justify-content: center; }

  /* Workflow: expanded edge-to-edge with vertical room for explosions */
  .workflow { margin-top: 2rem; }
  .workflow-node .node-label { font-size: 0.56rem; }
  .workflow-node .node-num { font-size: 0.5rem; }

  /* Section headers */
  .section-head h2 { font-size: var(--step-5); max-width: 100%; }
  .section-head .lede { font-size: 0.95rem; line-height: 1.55; max-width: 100%; }
  .section-head .eyebrow { font-size: 0.7rem; letter-spacing: 0.08em; }
  .section-head { gap: 0.8rem; margin-bottom: 1.6rem; }

  /* Universal eyebrow shrink + widen body copy */
  .eyebrow { font-size: 0.7rem; letter-spacing: 0.08em; }
  p { font-size: 0.95rem; line-height: 1.55; }

  /* Ticker: extremely calm, readable speed on phones (10× slower per request) */
  .ticker-track { --ticker-duration: 6600s; gap: 2rem; }

  /* Cleaner, more legible gold finish on mobile headings */
  h1, h2, h3 {
    background-image: linear-gradient(
      170deg,
      #fff4c2 0%,
      #f6d472 30%,
      #e3b04a 55%,
      #f4d780 80%,
      #fff0bd 100%
    ) !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow:
      0 1px 0 rgba(255, 248, 220, 0.18) !important;
    filter: none !important;
  }

  /* Mobile content cut: keep only money / time / IA / conversion sections */
  #technology,
  #use-cases,
  #dashboard,
  #roadmap,
  #investors,
  #security {
    display: none !important;
  }
  /* Tighten remaining sections vertically — half the desktop length */
  .section { padding-top: 2.4rem; padding-bottom: 2.4rem; }

  /* Card titles inside generic blocks */
  .cap-card h3, .uc-card h3, .tech-row h3, .investor h3,
  .feed-row h3, .rm-step h3, .security-grid h3 {
    font-size: 1.15rem;
    line-height: 1.2;
    max-width: 100%;
  }
  .cap-card p, .uc-card p, .tech-row p, .investor p,
  .feed-row p, .rm-step p, .security-grid p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* Generic cards: less padding */
  .cap-card, .tech-row, .metric, .uc-card,
  .feed-row, .rm-step, .security-grid > *, .investor > * {
    padding: 1rem !important;
  }

  /* Roadmap → 1 col */
  .roadmap { grid-template-columns: 1fr !important; }

  /* Metrics → 1 col */
  .metrics-grid { grid-template-columns: 1fr !important; }
  .metric { border-right: none !important; border-bottom: 1px solid var(--line); }

  /* Use cases */
  .usecase-grid { gap: 1rem; }

  /* Tech stack */
  .tech-grid { grid-template-columns: 1fr !important; }
  .tech-row .layer { border-right: none !important; padding-bottom: 0.6rem; }

  /* Security */
  .security-grid { grid-template-columns: 1fr !important; }

  /* Footer */
  .foot-grid { grid-template-columns: 1fr !important; gap: 1.2rem; }

  /* Investor */
  .investor { grid-template-columns: 1fr !important; gap: 1.4rem; }
  .investor h3 { font-size: var(--step-4); max-width: 100%; }
  .investor .inv-lede { font-size: 0.95rem; line-height: 1.55; max-width: 100%; }

  /* Final CTA */
  .final-cta h2 { font-size: var(--step-5); max-width: 100%; }
  .final-cta .lede { font-size: 0.95rem; line-height: 1.55; max-width: 100%; }

  /* Dashboard preview: hide sidebar handled at 880, ensure compact */
  .dashboard-body { padding: 0.8rem !important; }

  /* Dust canvas can clip outside viewport — keep contained */
  .nebula-dust { display: none; }
}

/* Tablet ≤ 880 finer touches not yet covered */
@media (max-width: 880px) {
  .hero-meta { flex-wrap: wrap; }
}

/* Ticker: tablet band 641–880px sits between desktop (1200s) and mobile (660s).
   Scoped with min-width so the mobile rule above (≤640) keeps winning on phones. */
@media (min-width: 641px) and (max-width: 880px) {
  .ticker-track { --ticker-duration: 9000s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  /* The .reveal system relies on a CSS transition from opacity:0 → opacity:1.
     Under reduced motion, the transition collapses to ~0ms but the start
     state can stick — show all reveal content immediately, no animation. */
  .reveal { opacity: 1 !important; transform: none !important; }
}
