/* ==========================================================================
   AODex — aodex.ai
   Consumer marketing site. Inherits the AOCyber dark + gold editorial system
   (tokens identical to aocyber.ai/css/main.css) but composes it warmer and
   more product-led: the app itself is the hero, type is larger, and the page
   carries a single gold aura rather than an even wash.
   Dark-mode only, by design.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg:               #0a0a0a;
  --surface:          #141414;
  --surface-elevated: #1a1a1a;
  --border:           #2a2a2a;

  --gold:        #d4a853;
  --gold-hover:  #e0b964;
  --gold-muted:  #b8923e;
  --gold-15:     rgba(212, 168, 83, 0.15);
  --gold-25:     rgba(212, 168, 83, 0.25);
  --gold-40:     rgba(212, 168, 83, 0.40);
  /* The logo gradient. Reserved for the primary CTA and the plan card edge —
     using it everywhere would cheapen it. */
  --gold-grad:   linear-gradient(135deg, #fce88d 0%, #efb32c 100%);

  --text:           #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-muted:     #8a8a8a;

  --success: #4ade80;
  --warning: #fbbf24;
  --error:   #f87171;

  --font-sans:  'proxima-nova', system-ui, -apple-system, sans-serif;
  --font-serif: 'petersburg-web', Georgia, 'Times New Roman', serif;
  --font-mono:  ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 9999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.3s;

  --z-nav:    1000;
  --z-mobile: 1020;

  --wrap:       1200px;
  --wrap-wide:  1440px;
  --nav-height: 68px;
}

/* --------------------------------------------------------------------------
   1. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-size: clamp(16px, 0.55vw + 14.5px, 18px);
  font-weight: 400;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* A single warm aura anchored behind the hero, plus a fine grain over the
   whole page. Together they keep large flat charcoal areas from reading as
   dead space without adding another colour to the palette. */
body::before {
  content: "";
  position: absolute;
  inset: -20vh 0 auto 0;
  height: 150vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 42% at 22% 18%, rgba(212, 168, 83, 0.13), transparent 68%),
    radial-gradient(46% 34% at 88% 4%, rgba(252, 232, 141, 0.07), transparent 70%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.32;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

main,
.site-nav,
.site-footer { position: relative; z-index: 2; }

img, svg, video, canvas { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
table { border-collapse: collapse; }
code, pre, kbd { font-family: var(--font-mono); }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}
a:hover { color: var(--gold-hover); }

::selection { background: rgba(212, 168, 83, 0.3); color: var(--text); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: var(--space-md);
  z-index: 2000;
  padding: 10px 18px;
  background: var(--gold); color: #0a0a0a;
  font-weight: 700; border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-md); color: #0a0a0a; }

/* --------------------------------------------------------------------------
   2. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.022em; font-weight: 700; }

h1, .h1 { font-size: clamp(40px, 4.4vw + 10px, 68px); }
h2, .h2 { font-size: clamp(30px, 2.9vw + 12px, 50px); line-height: 1.1; }
h3, .h3 { font-size: clamp(20px, 0.9vw + 16px, 25px); letter-spacing: -0.014em; line-height: 1.22; }
h4, .h4 { font-size: 17px; letter-spacing: -0.01em; }

p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

.lead {
  font-size: clamp(18px, 0.9vw + 15px, 22px);
  line-height: 1.55;
  color: var(--text-secondary);
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.muted { color: var(--text-secondary); }
.gold  { color: var(--gold); }
.mono  { font-family: var(--font-mono); }

/* The signature editorial device: a short gold rule above a label. */
.rule {
  width: 140px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}
.rule--sm { width: 64px; height: 2px; }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.wrap--wide   { max-width: var(--wrap-wide); }
.wrap--narrow { max-width: 780px; }

.section { padding-block: clamp(64px, 7vw, 108px); }
.section--tight { padding-block: clamp(40px, 4.5vw, 68px); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .rule { margin-bottom: var(--space-lg); }
.section-head .eyebrow { margin-bottom: var(--space-md); }
.section-head h2 { margin-bottom: var(--space-md); }

.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 12%, var(--border) 88%, transparent);
  border: 0;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  transition:
    background var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}

.btn svg { flex: none; }

.btn--gold {
  color: #0a0a0a;
  background: var(--gold-grad);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 10px 30px -12px rgba(239, 179, 44, 0.7);
}
.btn--gold:hover {
  color: #0a0a0a;
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 16px 38px -14px rgba(239, 179, 44, 0.85);
}
.btn--gold:active { transform: translateY(0); }

.btn--outline {
  color: var(--gold);
  border-color: var(--gold-40);
  background: rgba(212, 168, 83, 0.06);
}
.btn--outline:hover {
  color: var(--gold-hover);
  border-color: var(--gold);
  background: var(--gold-15);
  transform: translateY(-2px);
}

.btn--ghost { color: var(--text-secondary); border-color: var(--border); }
.btn--ghost:hover { color: var(--text); border-color: var(--text-muted); background: rgba(255, 255, 255, 0.04); }

.btn--lg { min-height: 56px; padding: 18px 34px; font-size: 17px; }
.btn--sm { min-height: 38px; padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }

.btn__arrow { transition: transform var(--duration) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.textlink {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 15px; color: var(--gold);
  border-bottom: 1px solid var(--gold-25);
  padding-bottom: 1px;
}
.textlink:hover { border-color: var(--gold); }

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  border-bottom: 1px solid transparent;
  transition: background var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out),
              backdrop-filter var(--duration) var(--ease-out);
}

.site-nav.is-scrolled {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  height: var(--nav-height);
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand:hover { color: inherit; }
.brand__mark { height: 30px; width: auto; }
.brand__name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand__name em {
  font-style: normal;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: var(--space-md); }
.nav-actions .signin { font-size: 15px; font-weight: 500; color: var(--text-secondary); }
.nav-actions .signin:hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.mobile-menu {
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  z-index: var(--z-mobile);
  padding: var(--space-2xl) clamp(20px, 5vw, 40px);
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  display: block;
  padding-block: var(--space-md);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { margin-top: var(--space-2xl); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions .signin { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(40px, 5.5vw, 76px);
  padding-bottom: clamp(40px, 5vw, 72px);
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}

.hero__copy { max-width: 620px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  margin-bottom: var(--space-lg);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  background: var(--gold-15);
  border: 1px solid var(--gold-25);
  border-radius: var(--radius-full);
}

.badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(212, 168, 83, 0.55);
  animation: pulse 2.6s var(--ease-out) infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(212, 168, 83, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(212, 168, 83, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 168, 83, 0); }
}

.hero h1 { margin-bottom: var(--space-lg); }
.hero h1 .strike {
  position: relative;
  color: var(--text-secondary);
  white-space: nowrap;
}
/* Drawn rather than text-decoration so the stroke keeps the gold weight
   at every clamp size. */
.hero h1 .strike::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%; top: 54%;
  height: 5px;
  border-radius: 3px;
  background: var(--gold);
  transform: rotate(-2.2deg) scaleX(0);
  transform-origin: left center;
  animation: strike 0.7s var(--ease-out) 0.65s forwards;
}

@keyframes strike { to { transform: rotate(-2.2deg) scaleX(1); } }

.hero__sub { max-width: 560px; margin-bottom: var(--space-xl); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.hero__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-lg);
  font-size: 14px;
  color: var(--text-muted);
}
.hero__note span { display: inline-flex; align-items: center; gap: 7px; }
.hero__note svg { color: var(--gold); }

/* Staggered load-in. One orchestrated reveal beats scattered micro-motion. */
.hero [data-stagger] {
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn 0.85s var(--ease-out) forwards;
}
.hero [data-stagger="1"] { animation-delay: 0.05s; }
.hero [data-stagger="2"] { animation-delay: 0.14s; }
.hero [data-stagger="3"] { animation-delay: 0.24s; }
.hero [data-stagger="4"] { animation-delay: 0.34s; }
.hero [data-stagger="5"] { animation-delay: 0.44s; }
.hero [data-stagger="6"] { animation-delay: 0.2s; }

@keyframes riseIn { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { max-width: none; }
}

/* Single-column hero puts the headline where the mesh's type-safe zone can't
   protect it, so quiet the field rather than move it. */
@media (max-width: 700px) {
  .hero__canvas { opacity: 0.45; }
}

/* --------------------------------------------------------------------------
   7. App window (hand-built representation of the AODex UI)
   -------------------------------------------------------------------------- */
.app {
  position: relative;
  border: 1px solid rgba(212, 168, 83, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, #171717 0%, #101010 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 40px 90px -40px rgba(0, 0, 0, 0.95),
    0 0 70px -30px rgba(212, 168, 83, 0.32);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-3.2deg) rotateX(1.4deg);
  transition: transform 0.7s var(--ease-out);
}
.app:hover { transform: perspective(1600px) rotateY(0deg) rotateX(0deg); }

.app__bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 11px 14px;
  border-bottom: 1px solid #232323;
  background: rgba(255, 255, 255, 0.018);
}
.app__dots { display: flex; gap: 6px; }
.app__dots i { width: 9px; height: 9px; border-radius: 50%; background: #333; }
.app__url {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.app__body {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  min-height: 388px;
}

.app__rail {
  padding: 14px 12px;
  border-right: 1px solid #202020;
  background: rgba(0, 0, 0, 0.28);
}
.app__railhead {
  font-size: 13px; font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.app__railhead em { font-style: normal; color: var(--gold); }

.app__item {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 9px;
  margin-bottom: 3px;
  font-size: 12px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
}
.app__item.is-active { color: var(--text); background: var(--gold-15); }
.app__item svg { flex: none; opacity: 0.8; }

.app__label {
  margin: 16px 0 8px;
  font-size: 9.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: #5f5f5f;
}

.app__thread {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 16px;
  gap: 12px;
}

.app__threadhead {
  display: flex; align-items: baseline; gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1f1f1f;
}
.app__threadhead b { font-size: 13.5px; letter-spacing: -0.01em; }
.app__threadhead span { font-size: 11px; color: var(--gold-muted); }

.msg { max-width: 86%; font-size: 12.5px; line-height: 1.55; }
.msg--me {
  align-self: flex-end;
  padding: 9px 13px;
  color: #f0e4cb;
  background: rgba(212, 168, 83, 0.16);
  border: 1px solid rgba(212, 168, 83, 0.22);
  border-radius: 12px 12px 3px 12px;
}
.msg--ai { align-self: flex-start; color: var(--text-secondary); }
.msg--ai strong { color: var(--text); font-weight: 700; }

.app__memory {
  display: flex; align-items: center; gap: 8px;
  align-self: flex-start;
  padding: 6px 11px;
  font-size: 11px;
  color: var(--gold);
  background: rgba(212, 168, 83, 0.08);
  border: 1px dashed rgba(212, 168, 83, 0.3);
  border-radius: var(--radius-full);
}

.app__cite {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold);
  background: rgba(212, 168, 83, 0.12);
  border-radius: 4px;
}

.app__composer {
  display: flex; align-items: center; gap: 10px;
  margin-top: auto;
  padding: 10px 12px;
  font-size: 12px;
  color: #6a6a6a;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #262626;
  border-radius: 10px;
}
.app__composer .caret {
  width: 1.5px; height: 14px;
  background: var(--gold);
  animation: blink 1.15s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.app__models {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 10px;
}
.app__models b {
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  border: 1px solid #262626;
  border-radius: var(--radius-full);
}
.app__models b.is-on { color: var(--gold); border-color: var(--gold-25); background: rgba(212, 168, 83, 0.08); }

@media (max-width: 640px) {
  .app { transform: none; }
  .app__body { grid-template-columns: 1fr; min-height: 0; }
  .app__rail { display: none; }
}

/* --------------------------------------------------------------------------
   8. Marquee — personas
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-sm);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: var(--space-md);
  animation: slide 64s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee + .marquee { margin-top: var(--space-md); }
.marquee--reverse .marquee__track { animation-direction: reverse; }

@keyframes slide { to { transform: translateX(-50%); } }

.chip {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 330px;
  padding: 14px 18px;
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration) var(--ease-out), background var(--duration) var(--ease-out);
}
.chip:hover { border-color: var(--gold-25); background: rgba(26, 26, 26, 0.9); }

.chip__mark {
  display: grid; place-items: center;
  flex: none;
  width: 38px; height: 38px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--gold);
  background: rgba(212, 168, 83, 0.12);
  border: 1px solid var(--gold-25);
  border-radius: 50%;
}
.chip b { display: block; font-size: 14px; letter-spacing: -0.01em; color: var(--text); }
.chip span { display: block; font-size: 12.5px; line-height: 1.4; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   9. The trade — problem/solution split
   -------------------------------------------------------------------------- */
.trade {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.trade__col {
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(20, 20, 20, 0.5);
}
.trade__col--ours {
  border-color: var(--gold-25);
  background:
    linear-gradient(180deg, rgba(212, 168, 83, 0.07), rgba(20, 20, 20, 0.5) 55%);
  box-shadow: 0 0 60px -34px rgba(212, 168, 83, 0.55);
}

.trade__head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: var(--space-lg);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-muted);
}
.trade__col--ours .trade__head { color: var(--gold); }

.trade__list li {
  display: flex;
  gap: 12px;
  padding-block: 11px;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.trade__list li:first-child { border-top: 0; padding-top: 0; }
.trade__list svg { flex: none; margin-top: 3px; }
.trade__col--ours .trade__list li { color: var(--text); }
.trade__col--ours .trade__list svg { color: var(--gold); }
.trade__col--theirs .trade__list svg { color: #5c5c5c; }

/* --------------------------------------------------------------------------
   10. Feature bento
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}

.tile {
  position: relative;
  padding: clamp(24px, 2.4vw, 32px);
  background: rgba(20, 20, 20, 0.62);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.45s var(--ease-out), transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
/* A gold wash that lifts in from the top-left on hover — the same aura the
   page carries, scoped to one tile. */
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(80% 70% at 12% 0%, rgba(212, 168, 83, 0.14), transparent 70%);
  transition: opacity 0.45s var(--ease-out);
}
.tile:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 168, 83, 0.32);
  box-shadow: 0 22px 50px -32px rgba(0, 0, 0, 0.9);
}
.tile:hover::before { opacity: 1; }

.tile--wide { grid-column: span 2; }

/* Roadmap tiles read as quieter than shipped ones — dashed edge, no gold
   wash on hover, so the page never blurs the line between the two. */
.tile--soon {
  border-style: dashed;
  background: rgba(20, 20, 20, 0.35);
}
.tile--soon::before { display: none; }
.tile--soon:hover { border-color: rgba(212, 168, 83, 0.28); }
.tile--soon .tile__icon {
  color: var(--gold-muted);
  border-color: rgba(184, 146, 62, 0.35);
  background: rgba(212, 168, 83, 0.05);
}

.tile__flag {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-muted);
}

.tile__icon {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  margin-bottom: var(--space-lg);
  color: var(--gold);
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid var(--gold-25);
  border-radius: 11px;
}
.tile h3 { margin-bottom: 10px; }
.tile p { font-size: 15.5px; line-height: 1.55; color: var(--text-secondary); }
.tile > * { position: relative; }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--wide { grid-column: span 2; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .tile--wide { grid-column: span 1; }
}

/* --------------------------------------------------------------------------
   11. Pull quote
   -------------------------------------------------------------------------- */
.pull-quote {
  padding-left: clamp(20px, 3vw, 34px);
  border-left: 3px solid var(--gold);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(24px, 2.4vw + 12px, 40px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.pull-quote cite {
  display: block;
  margin-top: var(--space-md);
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   12. Platforms
   -------------------------------------------------------------------------- */
/* Two even columns that collapse to one — used for the platforms row, where
   the 420px pricing column was squeezing the pills into ragged wraps. */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.platform {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  font-size: 15px; font-weight: 700;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: color var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
}
.platform svg { color: var(--gold); }
.platform:hover { color: var(--text); border-color: var(--gold-25); }

.platform--soon {
  color: var(--text-muted);
  border-style: dashed;
}
.platform--soon svg { color: var(--gold-muted); opacity: 0.7; }

/* --------------------------------------------------------------------------
   13. Pricing — one plan
   -------------------------------------------------------------------------- */
.plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; } }

/* Gradient edge drawn as a padded wrapper — a border-image gradient can't
   follow the radius cleanly across browsers. */
.plan {
  position: relative;
  padding: 1.5px;
  background: linear-gradient(150deg, rgba(252, 232, 141, 0.85), rgba(212, 168, 83, 0.25) 42%, rgba(42, 42, 42, 1) 78%);
  border-radius: calc(var(--radius-lg) + 2px);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 1), 0 0 90px -46px rgba(212, 168, 83, 0.75);
}

.plan__inner {
  padding: clamp(28px, 3.4vw, 44px);
  background: linear-gradient(180deg, #161616 0%, #0e0e0e 100%);
  border-radius: var(--radius-lg);
}

.plan__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px;
  margin-bottom: var(--space-lg);
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: #0a0a0a;
  background: var(--gold-grad);
  border-radius: var(--radius-full);
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.plan__currency { font-size: 26px; font-weight: 700; color: var(--gold); align-self: flex-start; margin-top: 10px; }
.plan__amount {
  font-size: clamp(56px, 6vw, 82px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.plan__period { font-size: 15px; color: var(--text-muted); }

.plan__was {
  margin-bottom: var(--space-lg);
  font-size: 14px;
  color: var(--text-muted);
}
.plan__was s { color: #6a6a6a; }

.plan__list { margin-block: var(--space-lg); }
.plan__list li {
  display: flex; gap: 11px;
  padding-block: 9px;
  font-size: 15.5px;
  line-height: 1.45;
}
.plan__list svg { flex: none; margin-top: 4px; color: var(--gold); }

.plan__fine {
  margin-top: var(--space-md);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

.plan-points li {
  display: flex; gap: 14px;
  padding-block: var(--space-md);
  border-top: 1px solid var(--border);
}
.plan-points li:first-child { border-top: 0; }
.plan-points b { display: block; font-size: 16px; margin-bottom: 3px; }
.plan-points span { font-size: 15px; color: var(--text-secondary); line-height: 1.5; }
.plan-points svg { flex: none; margin-top: 5px; color: var(--gold); }

/* --------------------------------------------------------------------------
   14. FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--border); }

.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-block: var(--space-lg);
  font-size: clamp(17px, 0.8vw + 15px, 20px);
  font-weight: 700;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
  transition: color var(--duration) var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold); }

.faq__sign {
  position: relative;
  flex: none;
  width: 20px; height: 20px;
  color: var(--gold);
}
.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translateY(-50%);
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}
.faq__sign::after { transform: translateY(-50%) rotate(90deg); }
.faq details[open] .faq__sign::after { transform: translateY(-50%) rotate(0deg); opacity: 0; }

.faq__answer {
  padding-bottom: var(--space-lg);
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.62;
  color: var(--text-secondary);
  animation: fadeDown 0.35s var(--ease-out);
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   15. Closing CTA
   -------------------------------------------------------------------------- */
.closer {
  position: relative;
  overflow: hidden;
  padding-block: clamp(80px, 10vw, 150px);
  border-top: 1px solid var(--border);
  background:
    radial-gradient(58% 100% at 50% 108%, rgba(212, 168, 83, 0.17), transparent 70%);
  text-align: center;
}
.closer .rule { margin-inline: auto; margin-bottom: var(--space-lg); }
.closer h2 { margin-bottom: var(--space-md); }
.closer p { max-width: 560px; margin-inline: auto; margin-bottom: var(--space-xl); }
.closer__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); justify-content: center; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-block: var(--space-3xl) var(--space-2xl);
  border-top: 1px solid var(--border);
  background: #070707;
  font-size: 14.5px;
  color: var(--text-secondary);
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}
@media (max-width: 760px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__top { grid-template-columns: 1fr; } }

.site-footer h4 {
  margin-bottom: var(--space-md);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}
.site-footer li { padding-block: 6px; }
.site-footer .brand { margin-bottom: var(--space-md); }
.site-footer__blurb { max-width: 42ch; font-size: 14.5px; line-height: 1.55; color: var(--text-muted); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   17. Sticky mobile CTA
   -------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-nav);
  display: none;
  padding: 12px clamp(16px, 4vw, 24px) calc(12px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 10, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform 0.45s var(--ease-out);
}
.sticky-cta.is-shown { transform: translateY(0); }

@media (max-width: 760px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 0; }
}

/* --------------------------------------------------------------------------
   18. Scroll reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   19. Utilities
   -------------------------------------------------------------------------- */
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.center { text-align: center; }

/* --------------------------------------------------------------------------
   20. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero [data-stagger] { opacity: 1; transform: none; }
  .hero h1 .strike::after { transform: rotate(-2.2deg) scaleX(1); }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .app { transform: none; }
}

/* --------------------------------------------------------------------------
   21. Print — the page is dark-only on screen; print it legibly.
   -------------------------------------------------------------------------- */
@media print {
  body { background: #fff; color: #111; }
  body::before, body::after,
  .site-nav, .sticky-cta, .hero__canvas, .marquee { display: none !important; }
  .tile, .plan__inner, .trade__col { border-color: #ccc; background: none; }
}
