/* ============ FlashRouter — institutional DeFi infrastructure ============ */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.25vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --text-3xl: clamp(2.6rem, 1.4rem + 4.5vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem;  --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;     --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;   --space-24: 6rem; --space-32: 8rem;

  /* Color — deep near-black + electric cyan */
  --bg: #0a0a0b;
  --bg-2: #0e0f11;
  --surface: #111316;
  --surface-2: #15181c;
  --surface-3: #1a1e23;
  --border: #23272e;
  --border-2: #2c323b;
  --text: #e8ecf1;
  --text-muted: #8b94a3;
  --text-faint: #5a626f;
  --accent: #00d4ff;
  --accent-dim: #0093b3;
  --accent-glow: rgba(0, 212, 255, 0.14);
  --accent-soft: rgba(0, 212, 255, 0.08);
  --green: #4ade80;
  --amber: #fbbf24;
  --red: #f87171;
  --gold: #d4af37;
  --gold2: #e8c84a;
  --band: #060810;
  --band-ink: rgba(232, 234, 240, 0.88);
  --band-ink-muted: rgba(232, 234, 240, 0.52);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --content: 1180px;
  --content-narrow: 760px;

  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --t: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Troptions fleet bands */
.troptions-top,
.troptions-powered {
  position: relative;
  z-index: 100;
  padding: 0 48px;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.troptions-top {
  background: linear-gradient(180deg, var(--band) 0%, color-mix(in srgb, var(--band) 90%, #000) 100%);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.troptions-top::after,
.troptions-powered::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--gold) 25%, var(--gold2) 50%, var(--gold) 75%, transparent 95%);
  opacity: 0.95;
}
.troptions-top::after { bottom: 0; }
.troptions-powered {
  background: linear-gradient(0deg, var(--band) 0%, color-mix(in srgb, var(--band) 90%, #000) 100%);
  box-shadow: 0 -4px 28px rgba(0, 0, 0, 0.18), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}
.troptions-powered::before { top: 0; }
.troptions-top a,
.troptions-powered a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: clamp(10px, 2.4vw, 12px);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--band-ink);
  transition: color 0.2s, filter 0.2s;
}
.troptions-top a:hover,
.troptions-powered a:hover {
  color: var(--gold2);
  filter: brightness(1.08);
}
.troptions-mark {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--gold2), var(--gold));
  clip-path: polygon(50% 4%, 92% 96%, 8% 96%);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}
.tp-muted {
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--band-ink-muted);
}
.tp-brand {
  color: var(--gold2);
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.4);
}
@media (max-width: 768px) {
  .troptions-top,
  .troptions-powered {
    padding: 0 16px;
    min-height: 42px;
  }
  .troptions-mark {
    width: 16px;
    height: 16px;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; height: auto; }
ul[role='list'] { list-style: none; }
button { cursor: pointer; background: none; border: none; color: inherit; font: inherit; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { text-wrap: balance; line-height: 1.1; letter-spacing: -0.02em; }
p { text-wrap: pretty; }

::selection { background: var(--accent-glow); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ============ Layout ============ */
.wrap { width: min(100% - 2.5rem, var(--content)); margin-inline: auto; }
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--accent); opacity: 0.6; }
.section-head { max-width: 640px; margin-bottom: var(--space-12); }
.section-head h2 { font-size: var(--text-2xl); margin: var(--space-4) 0 var(--space-4); font-weight: 600; }
.section-head p { color: var(--text-muted); font-size: var(--text-lg); line-height: 1.5; }

.mono { font-family: var(--font-mono); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 500;
  padding: 0.7rem 1.3rem; border-radius: var(--radius-sm);
  transition: all var(--t); white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #03171c; font-weight: 600;
  box-shadow: 0 0 0 1px var(--accent), 0 6px 24px -8px var(--accent);
}
.btn-primary:hover { background: #2ddfff; box-shadow: 0 0 0 1px #2ddfff, 0 10px 32px -8px var(--accent); transform: translateY(-1px); }
.btn-secondary { color: var(--text); border: 1px solid var(--border-2); background: var(--surface); }
.btn-secondary:hover { border-color: var(--accent-dim); background: var(--surface-2); color: #fff; }
.btn-ghost { color: var(--text-muted); padding: 0.5rem 0.75rem; }
.btn-ghost:hover { color: var(--text); }

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.header.scrolled { border-bottom-color: var(--border); background: rgba(10, 10, 11, 0.9); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: var(--space-3); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand .logo { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: var(--space-1); }
.nav-links a { font-size: var(--text-sm); color: var(--text-muted); padding: 0.5rem 0.85rem; border-radius: var(--radius-sm); transition: color var(--t); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: var(--space-3); }
.menu-btn { display: none; color: var(--text); padding: 0.5rem; }

@media (max-width: 900px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .menu-btn { display: inline-flex; }
}

/* mobile menu */
.mobile-menu { display: none; border-bottom: 1px solid var(--border); background: var(--bg-2); padding: var(--space-4) 0 var(--space-6); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 0.8rem 0; color: var(--text-muted); font-size: var(--text-base); border-bottom: 1px solid var(--border); }
.mobile-menu a:hover { color: var(--text); }
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: var(--space-4); }

/* ============ Hero ============ */
.hero { position: relative; padding-top: clamp(var(--space-16), 8vw, var(--space-24)); padding-bottom: var(--space-16); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('assets/hero-bg.webp') no-repeat center right / cover;
  opacity: 0.55; mask-image: linear-gradient(to bottom, #000 40%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 95%);
}
.hero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(120% 80% at 30% 0%, transparent, var(--bg) 78%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-12); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted);
  border: 1px solid var(--border-2); background: var(--surface);
  padding: 0.35rem 0.75rem; border-radius: var(--radius-full); margin-bottom: var(--space-6);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.hero h1 { font-size: var(--text-3xl); font-weight: 650; line-height: 1.03; margin-bottom: var(--space-6); }
.hero h1 .accent { color: var(--accent); }
.hero-sub { font-size: var(--text-lg); color: var(--text-muted); max-width: 38ch; line-height: 1.5; margin-bottom: var(--space-8); }
.hero-ctas { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.hero-meta { margin-top: var(--space-8); display: flex; gap: var(--space-6); flex-wrap: wrap; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-faint); }
.hero-meta span { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero-meta span::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .hero-bg { opacity: 0.35; }
}

/* ============ Code window ============ */
.code-window {
  border: 1px solid var(--border-2); border-radius: var(--radius-lg); overflow: hidden; min-width: 0; max-width: 100%;
  background: linear-gradient(180deg, #0d0f12, #0a0b0d);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(0,212,255,0.04);
}
.code-titlebar { display: flex; align-items: center; gap: var(--space-2); padding: 0.7rem var(--space-4); border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.015); }
.code-titlebar .dots { display: flex; gap: 6px; }
.code-titlebar .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; background: var(--border-2); }
.code-titlebar .fname { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-faint); margin-left: var(--space-3); }
.code-body { padding: var(--space-5); font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.85; overflow-x: auto; }
.code-body .ln { display: block; white-space: pre; }
.code-body .gutter { color: var(--text-faint); user-select: none; display: inline-block; width: 1.8em; text-align: right; margin-right: 1.2em; opacity: 0.5; }

/* syntax tokens */
.tok-key { color: #ff7eb6; }
.tok-fn  { color: var(--accent); }
.tok-str { color: #9ece6a; }
.tok-num { color: #ff9e64; }
.tok-com { color: var(--text-faint); font-style: italic; }
.tok-var { color: #e8ecf1; }
.tok-prop{ color: #7dcfff; }
.tok-type{ color: #2ac3de; }
.tok-punc{ color: #8b94a3; }

.typewriter-cursor { display: inline-block; width: 8px; height: 1.05em; background: var(--accent); vertical-align: text-bottom; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ============ Metrics bar ============ */
.metrics { border-block: 1px solid var(--border); background: var(--bg-2); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { padding: var(--space-8) var(--space-6); text-align: left; border-right: 1px solid var(--border); }
.metric:last-child { border-right: none; }
.metric .num { font-family: var(--font-mono); font-size: clamp(1.8rem, 1rem + 2.5vw, 2.8rem); font-weight: 600; color: #fff; letter-spacing: -0.02em; line-height: 1; }
.metric .num .accent { color: var(--accent); }
.metric .label { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--text-muted); }
@media (max-width: 720px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: none; }
  .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid var(--border); }
}

/* ============ Problem / code compare ============ */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: stretch; }
.compare > div { min-width: 0; }
.compare .code-window { height: 100%; }
.compare .code-body { font-size: 0.76rem; line-height: 1.7; min-height: 320px; }
.compare-label { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-mono); font-size: var(--text-xs); margin-bottom: var(--space-3); text-transform: uppercase; letter-spacing: 0.1em; }
.compare-label.bad { color: var(--red); }
.compare-label.good { color: var(--green); }
.compare-label .tag { padding: 0.15rem 0.5rem; border-radius: var(--radius-sm); border: 1px solid currentColor; opacity: 0.7; }
@media (max-width: 820px) { .compare { grid-template-columns: 1fr; } .compare .code-body { min-height: 0; } }

/* ============ How it works diagram ============ */
.diagram-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: clamp(var(--space-6), 4vw, var(--space-12)); overflow-x: auto; }
.diagram { width: 100%; min-width: 680px; height: auto; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-5); margin-top: var(--space-10); }
.step .n { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent); }
.step h4 { font-size: var(--text-base); margin: var(--space-2) 0; font-weight: 600; }
.step p { font-size: var(--text-sm); color: var(--text-muted); }
@media (max-width: 820px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ============ Providers ============ */
.prov-block { margin-bottom: var(--space-10); }
.prov-block h3 { font-size: var(--text-sm); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); margin-bottom: var(--space-5); }
.logo-wall { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.logo-chip {
  display: inline-flex; align-items: center; gap: var(--space-3);
  border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-md);
  padding: 0.9rem 1.3rem; transition: all var(--t);
}
.logo-chip:hover { border-color: var(--accent-dim); background: var(--surface-2); transform: translateY(-2px); }
.logo-chip .mark { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.logo-chip .name { font-weight: 600; font-size: var(--text-sm); }
.logo-chip .sub { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-faint); }

/* ============ Cards (products) ============ */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.pcard {
  border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-lg);
  padding: var(--space-8); display: flex; flex-direction: column; transition: all var(--t); position: relative; overflow: hidden;
}
.pcard::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; transition: opacity var(--t); }
.pcard:hover { border-color: var(--border-2); transform: translateY(-3px); box-shadow: 0 20px 50px -25px rgba(0,0,0,0.7); }
.pcard:hover::before { opacity: 0.5; }
.pcard .icon { width: 44px; height: 44px; border-radius: var(--radius-md); border: 1px solid var(--border-2); display: grid; place-items: center; color: var(--accent); margin-bottom: var(--space-5); background: var(--accent-soft); }
.pcard .icon svg { width: 22px; height: 22px; }
.pcard h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); font-weight: 600; }
.pcard .tier-tag { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-faint); margin-bottom: var(--space-4); }
.pcard p { color: var(--text-muted); font-size: var(--text-sm); line-height: 1.6; margin-bottom: var(--space-5); }
.pcard ul { list-style: none; margin-top: auto; display: flex; flex-direction: column; gap: var(--space-2); }
.pcard ul li { font-size: var(--text-sm); color: var(--text-muted); display: flex; gap: var(--space-2); }
.pcard ul li::before { content: '→'; color: var(--accent); font-family: var(--font-mono); }
@media (max-width: 860px) { .cards-3 { grid-template-columns: 1fr; } }

/* ============ Use cases grid ============ */
.uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.uc { background: var(--surface); padding: var(--space-8) var(--space-6); transition: background var(--t); }
.uc:hover { background: var(--surface-2); }
.uc .uc-icon { color: var(--accent); width: 24px; height: 24px; margin-bottom: var(--space-4); }
.uc h4 { font-size: var(--text-base); font-weight: 600; margin-bottom: var(--space-2); }
.uc p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.55; }
@media (max-width: 860px) { .uc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .uc-grid { grid-template-columns: 1fr; } }

/* ============ Pricing ============ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); align-items: stretch; }
.price-card {
  border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-lg);
  padding: var(--space-8); display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--accent-dim); background: linear-gradient(180deg, rgba(0,212,255,0.05), var(--surface)); box-shadow: 0 0 0 1px var(--accent-dim), 0 30px 70px -40px var(--accent); }
.price-card .plan { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); display: flex; justify-content: space-between; align-items: center; }
.price-card.featured .plan .badge { color: #03171c; background: var(--accent); padding: 0.2rem 0.6rem; border-radius: var(--radius-full); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.05em; }
.price-card .amount { margin: var(--space-5) 0 var(--space-2); font-family: var(--font-mono); font-size: clamp(2rem, 1.4rem + 1.6vw, 2.6rem); font-weight: 600; color: #fff; letter-spacing: -0.02em; }
.price-card .amount span { font-size: var(--text-base); color: var(--text-faint); font-weight: 400; }
.price-card .desc { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-6); min-height: 2.6em; }
.price-card ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-8); flex: 1; }
.price-card ul li { font-size: var(--text-sm); color: var(--text-muted); display: flex; gap: var(--space-3); align-items: flex-start; }
.price-card ul li svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.price-card .btn { width: 100%; justify-content: center; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ============ Compliance ============ */
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.sec-item { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-md); padding: var(--space-6); display: flex; gap: var(--space-4); }
.sec-item .ck { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.sec-item h4 { font-size: var(--text-base); margin-bottom: var(--space-2); font-weight: 600; }
.sec-item p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.55; }
.sec-item.warn { border-color: rgba(248,113,113,0.3); background: rgba(248,113,113,0.04); }
.sec-item.warn .ck { color: var(--red); }
@media (max-width: 720px) { .sec-grid { grid-template-columns: 1fr; } }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-block: var(--space-16) var(--space-10); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-8); margin-bottom: var(--space-12); }
.footer-grid .brand { margin-bottom: var(--space-4); }
.footer-col h5 { font-size: var(--text-xs); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); margin-bottom: var(--space-4); }
.footer-col a { display: block; font-size: var(--text-sm); color: var(--text-muted); padding: var(--space-2) 0; transition: color var(--t); }
.footer-col a:hover { color: var(--text); }
.footer-about { font-size: var(--text-sm); color: var(--text-muted); max-width: 32ch; margin-top: var(--space-2); }
.status-pill { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--green); margin-top: var(--space-4); }
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: var(--space-6); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.footer-bottom p { font-size: var(--text-xs); color: var(--text-faint); max-width: none; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-10); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============ Scroll reveal ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* CTA band */
.cta-band { border: 1px solid var(--border-2); border-radius: var(--radius-lg); padding: clamp(var(--space-8), 5vw, var(--space-16)); text-align: center; position: relative; overflow: hidden; background: var(--surface); }
.cta-band::before { content: ''; position: absolute; inset: 0; background: url('assets/lattice-texture.webp') center/cover; opacity: 0.25; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: var(--text-2xl); font-weight: 600; margin-bottom: var(--space-4); }
.cta-band p { color: var(--text-muted); font-size: var(--text-lg); max-width: 46ch; margin: 0 auto var(--space-8); }
.cta-band .hero-ctas { justify-content: center; }
