/* Above-the-fold + CLS reserves — no mid/bundle needed for first paint */
:root {
  --ax-bg: #030712;
  --ax-text: #e8e8ed;
  --ax-muted: #94a3b8;
  --ax-blue: #3b82f6;
  --ax-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ax-font);
  line-height: 1.55;
  background: var(--ax-bg);
  color: var(--ax-text);
}
img, video, canvas, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

.navbar {
  position: sticky; top: 0; z-index: 1000;
  min-height: 64px; height: 64px;
  display: flex; align-items: center;
  background: rgba(3, 7, 18, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.nav-container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 64px;
}
.nav-logo { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; white-space: nowrap; }
.logo-dot, .logo-co { color: var(--ax-blue); }
.nav-links { list-style: none; margin: 0; padding: 0; display: none; gap: 1rem; align-items: center; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-toggle {
  width: 42px; height: 42px; border: 0; background: transparent;
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 20px; background: #e2e8f0; margin-inline: auto; }
@media (min-width: 960px) { .nav-toggle { display: none; } }
.nav-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--ax-blue); }

.ax-hero-v2 {
  position: relative;
  min-height: 720px;
  padding: 4.5rem 0 2.5rem;
  overflow: clip;
  contain: layout style;
}
@media (min-width: 960px) {
  .ax-hero-v2 { min-height: min(92vh, 880px); }
}
.ax-hero-v2__bg { position: absolute; inset: 0; pointer-events: none; }
.ax-hero-v2__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) {
  .ax-hero-v2__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 2.5rem; }
}
.ax-hero-v2__badge, .ax-hero-v2__tag {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.78rem; color: #bfdbfe; margin-bottom: 0.75rem; min-height: 1.4em;
}
.ax-hero-v2__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1.12; letter-spacing: -0.03em; font-weight: 700;
  max-width: 18ch; min-height: 2.4em;
}
.ax-hero-v2__desc {
  margin: 0 0 1.25rem; color: var(--ax-muted); font-size: 1.02rem;
  max-width: 42rem; min-height: 6.5em;
}
.ax-hero-v2__ticker {
  overflow: hidden; height: 28px; margin: 0 0 1rem; opacity: 0.85;
}
.ax-hero-v2__ticker-track {
  display: flex; gap: 0.75rem; white-space: nowrap; font-size: 0.85rem; color: #93c5fd;
}
.ax-hero-v2__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 1rem; min-height: 48px; }
.ax-hero-v2__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.75rem 1.25rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
}
.ax-hero-v2__btn--primary { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; }
.ax-hero-v2__btn--ghost { border: 1px solid rgba(148, 163, 184, 0.35); color: #e2e8f0; }
.ax-hero-v2__trust { display: flex; flex-wrap: wrap; gap: 0.5rem; min-height: 36px; }
.ax-hero-v2__trust-pill {
  display: inline-flex; align-items: center; min-height: 32px;
  padding: 0.35rem 0.75rem; border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25); font-size: 0.78rem; color: #cbd5e1;
}
.ax-hero-wc-trust-glow { display: none; }

.ax-hero-v2__visual, .ax-hero-v2__stage, .ax-hero-v2__char-stage { position: relative; width: 100%; }
.ax-hero-v2__char-stage {
  aspect-ratio: 493 / 506;
  max-width: 440px;
  margin: 0 auto;
  contain: layout paint size;
}
.ax-hero-v2__char, .ax-di-char {
  width: 100%; height: auto;
  aspect-ratio: 493 / 506;
  object-fit: contain;
}
/* Decorative HUD: absolute so late CSS cannot shift LCP image */
.ax-di-ambient, .ax-di-gridlines, .ax-di-hud-corner, .ax-di-command-bar,
.ax-di-hud, .ax-threat-radar, .ax-di-hex-platform, .ax-di-spotlight,
.ax-di-pedestal, .ax-di-fx, .ax-hero-v2__lottie, .ax-di-aurora {
  position: absolute !important;
  pointer-events: none;
}
.ax-hero-v2__lottie { inset: 0; opacity: 0; }
.ax-di-command-bar, .ax-di-hud, .ax-threat-radar, .ax-di-ambient,
.ax-di-hex-platform, .ax-di-fx { opacity: 0.35; }

.ax-hero-v2__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
  min-height: 80px;
}
.ax-hero-v2__stat { text-align: center; min-height: 72px; }
.ax-hero-v2__stat-num { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ax-hero-v2__stat-label { display: block; color: var(--ax-muted); font-size: 0.85rem; }

.space-bg, .ax-global-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(30, 58, 95, 0.4) 0%, transparent 50%),
    linear-gradient(180deg, #030712 0%, #0a0f1a 40%, #050810 100%);
}
.ax-global-bg-grid, .ax-global-bg-aurora, .ax-global-bg-noise { display: none; }

/* Below-fold: reserve height so delayed CSS cannot shove content */
.section, .ax-scroll-section {
  padding: 3.5rem 0;
  min-height: 320px;
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}
body.ax-home-ecosystem .ax-hero-v2 {
  content-visibility: visible;
  contain-intrinsic-size: auto;
}
.oma-platform-intro { min-height: 180px; }
.oma-hero-metrics, .oma-platform-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
  min-height: 140px;
}
@media (min-width: 700px) {
  .oma-hero-metrics, .oma-platform-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 100px; }
}
.oma-metric-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  min-height: 88px;
}
.oma-feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  min-height: 480px;
}
@media (min-width: 800px) {
  .oma-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.oma-feature-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 1.1rem;
  min-height: 140px;
}
.oma-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.65rem 1.1rem; border-radius: 999px; font-weight: 600;
}
.oma-btn-primary { background: #2563eb; color: #fff; }
.oma-btn-ghost { border: 1px solid rgba(148, 163, 184, 0.35); }

.section-header { min-height: 96px; margin-bottom: 1.5rem; }
.section-tag { display: inline-block; font-size: 0.8rem; color: #93c5fd; margin-bottom: 0.5rem; }

.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(3, 7, 18, 0.97);
  padding: 1rem;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  z-index: 1001;
}
.nav-account-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 160px;
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  padding: 0.5rem;
}
.nav-account-menu.open { display: block; }
.nav-account-li { position: relative; }

