/* =========================================================
   AKX — AI Krypto Exchange
   Brand: Black + Gold · Futurist · Premium Fintech
   ========================================================= */

:root {
  /* Core palette */
  --bg: #0a0a0b;
  --bg-elev: #111114;
  --bg-card: #16161a;
  --bg-card-hover: #1c1c22;
  --line: #26262d;
  --line-strong: #3a3a44;

  --text: #f5f5f7;
  --text-mute: #b6b6bf;
  --text-dim: #8c8c96;

  /* Gold spectrum (signature) */
  --gold: #e8a317;
  --gold-light: #f5c84b;
  --gold-deep: #b87a08;
  --gold-glow: rgba(232, 163, 23, 0.35);

  /* Functional */
  --success: #00d68f;
  --danger: #ff4d4f;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Orbitron', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* Layout */
  --nav-h: 58px;
  --max: 1280px;
  --radius: 14px;
  --radius-sm: 10px;
}

/* ---------- Day (light) theme ---------- */
:root[data-theme="light"] {
  --bg: #fcfcfa;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f4f4f2;
  --line: #ececea;
  --line-strong: #dcdcd8;

  --text: #16161a;
  --text-mute: #44444c;
  --text-dim: #5e636e;

  /* Darker green/red so prices, 24h change and the OHLC legend stay readable on white */
  --success: #059669;
  --danger: #e11d48;

  --gold-glow: rgba(232, 163, 23, 0.22);
}
:root[data-theme="light"] body { background: var(--bg); color: var(--text); }
/* Keep the top nav dark even in day mode — re-scope dark vars so its contents stay light */
:root[data-theme="light"] .nav {
  background: #050506;
  --text: #f5f5f7;
  --text-mute: #b6b6bf;
  --text-dim: #8c8c96;
  --line: #26262d;
  --line-strong: #3a3a44;
  --bg-elev: #111114;
  --bg-card: #16161a;
  --success: #00d68f;
  --danger: #ff4d4f;
}
:root[data-theme="light"] .nav.scrolled { background: #050506; border-bottom-color: #26262d; }
:root[data-theme="light"] .theme-toggle { color: var(--text-mute); }

/* ---------- Card auto-swap (Mastercard ⇄ Visa) ---------- */
.card-swap { position: relative; width: 100%; line-height: 0; }
.card-swap .card-face { display: block; width: 100%; border-radius: 14px; opacity: 0; transition: opacity 1s ease; }
.card-swap .card-face.on { opacity: 1; }
.card-swap .card-face + .card-face { position: absolute; inset: 0; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: #050506;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 10, 11, 0.92);
}
.nav-inner {
  max-width: none;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 32px);
}
.brand {
  display: flex;
  align-items: center;
  transition: transform .2s;
}
.brand:hover { transform: scale(1.03); }
.brand-logo {
  height: 26px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(232, 163, 23, 0.18));
}
.nav-links {
  display: flex;
  gap: clamp(20px, 1.8vw, 32px);
  flex: 0 0 auto;
  justify-content: flex-start;
  margin-left: clamp(20px, 3vw, 56px);
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mute);
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s;
}
.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-cta { display: flex; gap: 10px; align-items: center; margin-left: auto; }

/* =========================================================
   SETTINGS (≡) MENU — Color Mode + Language
   ========================================================= */
.nav-settings { position: relative; }
.settings-trigger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 8px;
  color: var(--text-mute); cursor: pointer; transition: all .2s;
}
.settings-trigger:hover { color: var(--gold); border-color: var(--gold); }
.nav-settings.open .settings-trigger { color: var(--gold); border-color: var(--gold); }
.settings-panel {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 248px;
  padding: 8px; background: var(--bg-elev); border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 14px 36px -10px rgba(0,0,0,0.6), 0 0 0 1px rgba(232,163,23,0.08);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .2s, transform .2s, visibility .2s; z-index: 1100;
}
.nav-settings.open .settings-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.settings-panel .set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 8px; }
.settings-panel .set-label { font-size: 13px; font-weight: 600; color: var(--text); font-family: var(--font-sans); }
.settings-panel .set-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.settings-panel .set-lang { padding: 0; }
.settings-panel .theme-toggle { width: 36px; height: 36px; }
/* collapsed language row — click to expand the list */
.settings-panel .set-lang-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 8px; background: transparent; border: 0; border-radius: 8px;
  cursor: pointer; transition: background .15s;
}
.settings-panel .set-lang-row:hover { background: rgba(232,163,23,0.06); }
.settings-panel .set-lang-cur {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-mute); font-size: 13px; font-weight: 600; font-family: var(--font-sans);
}
.settings-panel .set-lang.open .set-lang-row { color: var(--gold-light); }
.settings-panel .set-lang.open .set-lang-cur { color: var(--gold-light); }
.settings-panel .set-lang.open .lang-caret { transform: rotate(180deg); }
/* language list — hidden until the row is clicked, then expands inline */
.settings-panel .lang-panel {
  position: static; opacity: 1; visibility: visible; transform: none;
  min-width: 0; padding: 2px 0 4px; margin: 0; background: transparent; border: 0; box-shadow: none;
  display: none; flex-direction: column; gap: 2px;
}
.settings-panel .set-lang.open .lang-panel { display: flex; }
/* day / night toggle */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 8px;
  color: var(--text-mute); cursor: pointer; transition: all .2s;
}
.theme-toggle:hover { color: var(--gold); border-color: var(--gold); }
.theme-toggle .ic-sun { display: none; }
.theme-toggle .ic-moon { display: block; }
:root[data-theme="light"] .theme-toggle .ic-sun { display: block; }
:root[data-theme="light"] .theme-toggle .ic-moon { display: none; }
/* connected wallet — green pulsing dot */
.acct-live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--success); margin-right: 8px; flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(0, 214, 143, 0.6);
  animation: akxLivePulse 1.6s ease-out infinite;
}
@keyframes akxLivePulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 214, 143, 0.55); }
  70%  { box-shadow: 0 0 0 6px rgba(0, 214, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 214, 143, 0); }
}
/* unify height & font of all nav-cta controls so they line up */
.nav-cta .lang-trigger,
.nav-cta .btn {
  height: 40px;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 14px;
  line-height: 1;
}

/* =========================================================
   LANGUAGE SWITCHER
   ========================================================= */
.lang-switch {
  position: relative;
}
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all .2s;
}
.lang-trigger:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}
.lang-trigger svg { opacity: .8; }
.lang-trigger #lang-current {
  min-width: 18px;
  text-align: center;
  letter-spacing: 0.02em;
}
.lang-caret {
  transition: transform .25s;
}
.lang-switch.open .lang-caret {
  transform: rotate(180deg);
}
.lang-switch.open .lang-trigger {
  border-color: var(--gold);
  color: var(--gold-light);
}
.lang-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow:
    0 12px 32px -8px rgba(0,0,0,0.6),
    0 0 0 1px rgba(232, 163, 23, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 1100;
}
.lang-switch.open .lang-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--text-mute);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all .15s;
}
.lang-option:hover {
  background: rgba(232, 163, 23, 0.08);
  color: var(--text);
}
.lang-option.active {
  background: rgba(232, 163, 23, 0.12);
  color: var(--gold-light);
}
.lang-option .lang-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: rgba(232, 163, 23, 0.1);
  border: 1px solid rgba(232, 163, 23, 0.25);
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.lang-option.active .lang-code {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a0f00;
}
.lang-option .lang-name {
  flex: 1;
}

/* =========================================================
   CJK FONT FALLBACKS (apply via html[lang])
   ========================================================= */
html[lang="zh-CN"] body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
html[lang="zh-TW"] body {
  font-family: 'Inter', 'Noto Sans TC', -apple-system, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
}
html[lang="ko"] body {
  font-family: 'Inter', 'Noto Sans KR', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
/* Keep AKX wordmark consistent across languages */
.brand-logo {
  font-family: var(--font-display) !important;
}
/* Hero first line = refined eyebrow label (small, tracked-out) */
.hero-title .line:first-child {
  font-family: var(--font-mono);
  display: block;
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  line-height: 1;
}
/* CJK headlines should be slightly tighter & use system display fonts */
html[lang="zh-CN"] .section h2,
html[lang="zh-TW"] .section h2,
html[lang="ko"] .section h2,
html[lang="zh-CN"] .card-copy h2,
html[lang="zh-TW"] .card-copy h2,
html[lang="ko"] .card-copy h2,
html[lang="zh-CN"] .cta-section h2,
html[lang="zh-TW"] .cta-section h2,
html[lang="ko"] .cta-section h2 {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -0.005em;
}
html[lang="zh-CN"] .hero-title .gradient,
html[lang="zh-TW"] .hero-title .gradient,
html[lang="ko"] .hero-title .gradient,
html[lang="zh-CN"] .product-card h3,
html[lang="zh-TW"] .product-card h3,
html[lang="ko"] .product-card h3,
html[lang="zh-CN"] .layer-body h3,
html[lang="zh-TW"] .layer-body h3,
html[lang="ko"] .layer-body h3,
html[lang="zh-CN"] .phase h3,
html[lang="zh-TW"] .phase h3,
html[lang="ko"] .phase h3,
html[lang="zh-CN"] .trust-card h3,
html[lang="zh-TW"] .trust-card h3,
html[lang="ko"] .trust-card h3 {
  font-family: inherit;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-primary {
  background: var(--gold);
  color: #1a0f00;
  box-shadow: 0 0 0 1px var(--gold-deep) inset, 0 8px 24px -8px var(--gold-glow);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--gold-deep) inset, 0 12px 32px -8px var(--gold-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}
.btn-connect {
  position: relative;
  padding-left: 16px;
  padding-right: 18px;
}
.btn-connect svg { vertical-align: -2px; }
.btn-connect::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-deep));
  z-index: -1;
  filter: blur(10px);
  opacity: 0;
  transition: opacity .25s;
}
.btn-connect:hover::before { opacity: .55; }
.btn-connect.connected { display: inline-flex; align-items: center; }
/* account dropdown (connected wallet) */
.acct-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-elev, #14130f);
  border: 1px solid var(--line, rgba(255,255,255,.1));
  border-radius: 11px;
  box-shadow: 0 18px 44px -14px rgba(0,0,0,.7);
  padding: 6px;
  display: none;
  z-index: 1200;
}
.acct-menu.show { display: block; }
.acct-menu .acct-addr {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12px; color: var(--text-dim);
  padding: 8px 10px 6px; border-bottom: 1px solid var(--line, rgba(255,255,255,.07)); margin-bottom: 4px;
}
.acct-menu .acct-item {
  display: block; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  color: var(--text); font-size: 13px; font-weight: 600;
  padding: 9px 10px; border-radius: 7px; text-decoration: none;
}
.acct-menu .acct-item:hover { background: rgba(255,255,255,.06); }
.acct-menu .acct-dc { color: var(--danger, #e5484d); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 28px 72px;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
/* animated particle/network field */
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.95;
  mask-image: radial-gradient(ellipse 100% 92% at 50% 40%, black 0%, black 35%, transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse 100% 92% at 50% 40%, black 0%, black 35%, transparent 88%);
}
/* drifting aurora gradient mesh — gives a living, premium glow */
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform, opacity;
  mix-blend-mode: screen;
}
.aurora-1 {
  width: 760px; height: 600px;
  background: radial-gradient(circle at 40% 40%, rgba(245,200,75,0.48) 0%, transparent 64%);
  top: -220px; left: -120px;
  animation: auroraDrift1 22s ease-in-out infinite;
}
.aurora-2 {
  width: 660px; height: 660px;
  background: radial-gradient(circle at 50% 50%, rgba(184,122,8,0.42) 0%, transparent 64%);
  top: -100px; right: -160px;
  animation: auroraDrift2 27s ease-in-out infinite;
}
.aurora-3 {
  width: 620px; height: 480px;
  background: radial-gradient(circle at 50% 50%, rgba(232,163,23,0.34) 0%, transparent 68%);
  bottom: -140px; left: 28%;
  animation: auroraDrift3 32s ease-in-out infinite;
}
@keyframes auroraDrift1 {
  0%,100% { transform: translate(0,0) scale(1); opacity: .9; }
  50% { transform: translate(140px, 90px) scale(1.18); opacity: 1; }
}
@keyframes auroraDrift2 {
  0%,100% { transform: translate(0,0) scale(1.05); opacity: .75; }
  50% { transform: translate(-120px, 80px) scale(0.9); opacity: 1; }
}
@keyframes auroraDrift3 {
  0%,100% { transform: translate(-60px,0) scale(1); opacity: .65; }
  50% { transform: translate(90px,-60px) scale(1.2); opacity: 1; }
}
/* very subtle slow-panning grid, masked toward the top */
.grid-overlay {
  position: absolute; inset: -60px;
  background-image:
    linear-gradient(to right, rgba(232, 163, 23, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(232, 163, 23, 0.05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 85% 65% at center 32%, black 0%, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at center 32%, black 0%, transparent 74%);
  animation: gridPan 28s linear infinite;
}
@keyframes gridPan {
  from { background-position: 0 0; }
  to { background-position: 64px 64px; }
}
/* edge vignette to focus the center and blend the canvas */
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 85% 80% at 50% 38%, transparent 62%, var(--bg) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .aurora, .grid-overlay { animation: none; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(232, 163, 23, 0.08);
  border: 1px solid rgba(232, 163, 23, 0.25);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gold-light);
  margin-bottom: 32px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-title .line {
  display: block;
}
.hero-title .gradient {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title em {
  font-style: italic;
  font-weight: 700;
}
.hero-sub {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--text-mute);
  line-height: 1.65;
  letter-spacing: -0.01em;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

/* Stats strip — borderless, whitespace-led */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  max-width: 740px;
  margin: 44px auto 0;
}
.stat {
  background: transparent;
  padding: 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}
.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-strong) 50%, transparent);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  color: var(--gold);
  display: inline-block;
}
.stat-unit {
  display: inline-block;
  font-size: 15px;
  color: var(--gold);
  font-weight: 600;
  margin-left: 2px;
}
.stat-num + .stat-unit {
  position: relative;
  top: -8px;
}
.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

/* Terminal */
.hero-terminal {
  position: relative;
  z-index: 1;
  margin: 64px auto 0;
  max-width: 760px;
  width: 100%;
  padding: 0 28px;
}
.terminal {
  background: linear-gradient(180deg, rgba(24,24,30,0.82) 0%, rgba(14,14,18,0.88) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(232, 163, 23, 0.14);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 30px 80px -30px rgba(0,0,0,0.7),
    0 0 120px -40px var(--gold-glow);
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--line);
}
.terminal-header .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--line-strong);
}
.terminal-header .dot.red { background: #ff5f57; }
.terminal-header .dot.yellow { background: #febc2e; }
.terminal-header .dot.green { background: #28c840; }
.terminal-title {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.terminal-body {
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.9;
  text-align: left;
  color: var(--text);
}
.terminal-line { white-space: nowrap; overflow: hidden; }
.terminal-line .prompt {
  color: var(--gold);
  font-weight: 600;
  margin-right: 8px;
}
.terminal-line.agent { color: var(--text-mute); }
.terminal-line.agent .prompt { color: var(--success); }
.terminal-line .typing {
  display: inline-block;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* =========================================================
   TRUST BAR
   ========================================================= */
.trust-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 28px;
  background: var(--bg-elev);
}
.trust-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.trust-logos {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.trust-pill {
  padding: 6px 14px;
  background: rgba(232, 163, 23, 0.06);
  border: 1px solid rgba(232, 163, 23, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gold-light);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  padding: 92px 28px;
  position: relative;
}
.section.dark {
  background: linear-gradient(180deg, var(--bg) 0%, #050506 100%);
}
.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}
.section h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.section-lead {
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--text-mute);
  line-height: 1.65;
  letter-spacing: -0.01em;
}

/* =========================================================
   PRODUCT GRID
   ========================================================= */
.product-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.product-card {
  grid-column: span 2;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.product-card.large {
  grid-column: span 6;
  padding: 48px;
  background:
    radial-gradient(circle at 100% 0%, rgba(232, 163, 23, 0.08) 0%, transparent 50%),
    var(--bg-card);
}
.product-card:hover {
  border-color: var(--gold-deep);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.18em;
  margin-bottom: 16px;
  padding: 4px 10px;
  background: rgba(232, 163, 23, 0.1);
  border-radius: 4px;
}
.product-card h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.product-card.large h3 {
  font-size: 28px;
  letter-spacing: -0.025em;
}
.card-desc {
  color: var(--text-mute);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.product-card.large .card-desc {
  font-size: 16px;
  max-width: 600px;
}
.feature-list {
  list-style: none;
  margin: 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.feature-list li {
  font-size: 14px;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}
.card-link {
  display: inline-block;
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.card-link:hover { color: var(--gold-light); }

/* Distribute medium product cards 2+2 across 4 columns next to a large one? -> we use 2,2,2,2 = 4 cards span 8 = no.
   The grid is 6 cols. Large=6, next 4 medium each span 2 = 8 -> too wide. Adjust: medium spans 2 makes 4 cards = 8. We have 4 medium cards.
   We need: large(6) + 4 medium = 6 + 4*1.5 = 6 + 6 = 12. So medium should span 1.5 — impossible. Make medium span 3 for two-per-row: */
.product-card:not(.large) {
  grid-column: span 3;
}
/* But we have 4 medium cards -> 2 rows of 2 (each 3 cols). Good. */

/* =========================================================
   ARCHITECTURE
   ========================================================= */
.arch-stack {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.arch-layer {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all .3s;
  position: relative;
}
.arch-layer.mid {
  background:
    linear-gradient(135deg, rgba(232, 163, 23, 0.06) 0%, transparent 60%),
    var(--bg-card);
  border-color: rgba(232, 163, 23, 0.25);
}
.arch-layer:hover {
  border-color: var(--gold-deep);
  transform: translateX(4px);
}
.layer-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--line);
  padding-right: 24px;
}
.layer-id {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.layer-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.layer-body h3 {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.layer-body p {
  color: var(--text-mute);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.layer-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.layer-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}

/* =========================================================
   INTENT GRID
   ========================================================= */
.intent-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.intent-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .3s;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 180px;
}
.intent-card:hover {
  border-color: var(--gold-deep);
  transform: translateY(-2px);
}
.intent-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.intent-card p {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}
.intent-card.cta {
  background:
    linear-gradient(135deg, rgba(232, 163, 23, 0.1) 0%, rgba(232, 163, 23, 0.02) 100%);
  border-color: rgba(232, 163, 23, 0.3);
}

/* =========================================================
   CARD SECTION
   ========================================================= */
.card-section {
  padding-top: 80px;
}
.card-layout {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.card-copy h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.14;
  margin: 16px 0 18px;
  letter-spacing: -0.025em;
}
.card-copy p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-mute);
  margin-bottom: 28px;
}
.check-list {
  list-style: none;
  margin-bottom: 32px;
}
.check-list li {
  font-size: 15px;
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 16px;
  width: 16px; height: 8px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.card-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}
.card-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(232, 163, 23, 0.15), transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* =========================================================
   TRUST GRID
   ========================================================= */
.trust-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all .3s;
}
.trust-card:hover {
  border-color: var(--gold-deep);
  transform: translateY(-2px);
}
.trust-icon {
  font-size: 28px;
  margin-bottom: 16px;
}
.trust-card h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.trust-card p {
  color: var(--text-mute);
  font-size: 14px;
  line-height: 1.7;
}

/* =========================================================
   ROADMAP
   ========================================================= */
.roadmap {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.roadmap::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%; right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold) 50%, var(--line) 50%, var(--line) 100%);
}
.phase {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: all .3s;
}
.phase::before {
  content: '';
  position: absolute;
  top: -8px; left: 24px;
  width: 16px; height: 16px;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 50%;
}
.phase.done::before {
  background: var(--gold);
  border-color: var(--gold);
}
.phase.active::before {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(232, 163, 23, 0.2);
  animation: pulse 2s ease-in-out infinite;
}
.phase-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  margin-top: 8px;
}
.phase h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.phase ul {
  list-style: none;
}
.phase ul li {
  font-size: 13px;
  color: var(--text-mute);
  padding: 6px 0 6px 16px;
  position: relative;
  line-height: 1.5;
}
.phase ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 13px;
  width: 6px; height: 1px;
  background: var(--gold);
}
.phase.done ul li,
.phase.active ul li {
  color: var(--text);
}

/* =========================================================
   CTA
   ========================================================= */
.cta-section {
  padding: 100px 28px;
  background:
    radial-gradient(ellipse at center, rgba(232, 163, 23, 0.08) 0%, transparent 60%),
    var(--bg);
  border-top: 1px solid var(--line);
}
.cta-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.cta-section h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.cta-section > .cta-inner > p {
  color: var(--text-mute);
  font-size: 16px;
  margin-bottom: 36px;
}
.cta-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 24px;
}
.cta-form input {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-sans);
  transition: border-color .2s;
}
.cta-form input:focus {
  outline: none;
  border-color: var(--gold);
}
.cta-form input::placeholder { color: var(--text-dim); }
.cta-perks {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: #050506;
  border-top: 1px solid var(--line);
  padding: 80px 28px 40px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 3fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer-logo {
  height: 38px;
  width: auto;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 10px rgba(232, 163, 23, 0.2));
}
.footer-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.footer-legal {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-mute);
  padding: 6px 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 32px;
}
.risk-note {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.7;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* =========================================================
   NAV MEGA MENU + DROPDOWNS + MOBILE
   ========================================================= */
.nav-item { position: relative; }
.nav-item > a {
  display: inline-block;
}
.nav-item.has-menu > a::after { content: none; }
.nav-mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, -4px);
  min-width: 224px;
  padding: 6px;
  background: rgba(16, 16, 20, 0.68);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 22px 52px -18px rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 1050;
}
.nav-mega.small { min-width: 172px; }
:root[data-theme="light"] .nav-mega {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(0, 0, 0, 0.07);
  box-shadow: 0 22px 52px -18px rgba(0,0,0,0.16);
}
.nav-item.has-menu:hover .nav-mega,
.nav-item.has-menu:focus-within .nav-mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
/* hover bridge so mouse can cross the gap */
.nav-item.has-menu::after {
  content: '';
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 14px;
}
.nav-mega-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--text);
  transition: background .15s, color .15s;
  text-decoration: none;
}
.nav-mega-item:hover {
  background: rgba(232, 163, 23, 0.10);
  color: var(--gold-light);
}
.nav-mega-item.active {
  background: rgba(232, 163, 23, 0.14);
  color: var(--gold-light);
}
.nav-mega-item .nm-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav-mega-item .nm-desc {
  font-size: 11.5px;
  color: var(--text-dim);
}
.nav-mega-item:hover .nm-desc { color: var(--text-mute); }

/* nav active state */
.nav-links > a.active,
.nav-item.has-menu > a.active {
  color: var(--gold);
}
.nav-links > a.active::after,
.nav-item.has-menu > a.active::after { opacity: 1; }

/* hamburger */
.nav-hamburger {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}
.nav-hamburger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-hamburger span:nth-child(1) { top: 13px; }
.nav-hamburger span:nth-child(2) { top: 19px; }
.nav-hamburger span:nth-child(3) { top: 25px; }
.nav-hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Floating, semi-transparent (frosted) panel — NOT fullscreen */
.mobile-menu {
  position: fixed;
  top: calc(var(--nav-h) + 8px);
  right: 10px; left: auto; bottom: auto;
  width: min(290px, calc(100vw - 20px));
  max-height: calc(100vh - var(--nav-h) - 20px);
  background: rgba(14, 14, 17, 0.82);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.7);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  z-index: 999;
  transform: translateY(-8px) scale(.98);
  transform-origin: top right;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
  overflow-y: auto;
}
:root[data-theme="light"] .mobile-menu {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(0, 0, 0, 0.09);
}
.mobile-menu.open {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}
.mobile-menu a {
  display: block;
  padding: 9px 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
}
.mobile-menu a:hover, .mobile-menu a.active {
  background: rgba(232, 163, 23, 0.08);
  color: var(--gold-light);
}

/* ---- mobile menu: wallet status block ---- */
.mm-wallet { margin-bottom: 10px; }
.mm-wallet.connected {
  background: rgba(0, 214, 143, 0.07);
  border: 1px solid rgba(0, 214, 143, 0.28);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mm-wallet .mmw-row { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; }
.mm-wallet .mmw-addr {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; font-weight: 600; color: var(--text);
  letter-spacing: .02em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.mm-wallet .mmw-dc {
  flex: 0 0 auto; background: transparent;
  border: 1px solid var(--line-strong, rgba(255,255,255,.16));
  color: var(--text-mute); font-size: 12.5px; font-weight: 600;
  padding: 7px 14px; border-radius: 8px; cursor: pointer;
  font-family: var(--font-sans, inherit);
}
.mm-wallet .mmw-dc:hover { border-color: var(--danger, #e5484d); color: var(--danger, #e5484d); }
.mm-wallet .mmw-connect {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gold); color: #1a0f00;
  font-size: 15px; font-weight: 700; padding: 14px; border-radius: 11px;
}
.mm-wallet .mmw-connect:hover { filter: brightness(1.07); color: #1a0f00; background: var(--gold); }

/* ---- mobile menu: Launch App CTA ---- */
.mobile-menu a.mm-cta {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong, rgba(255,255,255,.16));
  font-size: 13px; font-weight: 600; padding: 9px; margin-bottom: 2px;
}
/* Prominent AlphaOS / AI Agent shortcut — direct entry to the platform */
.mobile-menu a.mm-cta-agent {
  background: var(--gold); color: #1a0f00; border-color: var(--gold);
  font-weight: 700; margin-bottom: 4px;
}
.mobile-menu a.mm-cta-agent:hover { filter: brightness(1.07); color: #1a0f00; background: var(--gold); }

/* ---- mobile menu: hierarchy (no divider lines, collapsible submenus) ---- */
.mm-group { padding: 0; margin: 0; }
/* Section header doubles as the accordion toggle (Product / Developers) */
.mobile-menu a.mm-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13.5px; font-weight: 600; color: var(--text);
  text-transform: none; letter-spacing: 0;
  padding: 9px 10px; cursor: pointer;
}
.mobile-menu a.mm-label::after {
  content: ''; width: 7px; height: 7px; margin-left: 8px; flex: 0 0 auto;
  border-right: 1.6px solid var(--text-dim); border-bottom: 1.6px solid var(--text-dim);
  transform: rotate(45deg) translate(-1px, -1px); transition: transform .2s;
}
.mm-group.open > a.mm-label::after { transform: rotate(225deg) translate(-1px, -1px); }
.mobile-menu a.mm-label:hover { background: rgba(232,163,23,.08); color: var(--gold-light); }
/* Submenu hidden by default; revealed when its group is open */
.mm-group > a.mm-sub {
  display: none;
  font-size: 12.5px; font-weight: 400; color: var(--text-mute);
  padding: 7px 10px 7px 22px;
}
.mm-group.open > a.mm-sub { display: block; }
.mobile-menu a.mm-sub:hover { color: var(--gold-light); }
.mobile-menu a.mm-top { font-size: 13.5px; font-weight: 500; color: var(--text); padding: 9px 10px; }
/* Settings (color mode + language) folded into the single hamburger menu on mobile */
.mobile-menu .nav-settings.in-mobile { position: static; width: 100%; margin-top: 6px; }
.mobile-menu .nav-settings.in-mobile .settings-trigger { display: none; }
.mobile-menu .nav-settings.in-mobile .settings-panel {
  position: static; opacity: 1; visibility: visible; transform: none;
  box-shadow: none; border: 0; background: transparent; padding: 0;
  width: 100%; min-width: 0; margin: 0;
}
.mobile-menu .nav-settings.in-mobile .settings-panel .set-row,
.mobile-menu .nav-settings.in-mobile .settings-panel .set-lang-row { padding: 9px 10px; }
.mobile-menu .nav-settings.in-mobile .settings-panel .set-label { font-size: 13.5px; font-weight: 500; }
.mobile-menu .nav-settings.in-mobile .settings-panel .set-sep { margin: 4px 0; }
.mobile-menu .nav-settings.in-mobile .settings-panel .lang-panel { position: static; box-shadow: none; border: 0; background: transparent; padding: 4px 0 0; }
body.no-scroll { overflow: hidden; }

/* footer social */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.footer-social a {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-mute);
  transition: all .2s;
}
.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

/* =========================================================
   GENERIC PAGE COMPONENTS
   (used by all sub-pages: about, products, legal, etc.)
   ========================================================= */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 64px) 28px 64px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top, rgba(232, 163, 23, 0.06) 0%, transparent 50%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 14px 0 18px;
  background: linear-gradient(180deg, var(--text) 0%, var(--text-mute) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero .kicker {
  margin-bottom: 0;
}
.page-hero p.lead {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--text-mute);
  line-height: 1.65;
  letter-spacing: -0.01em;
}

/* breadcrumb */
.breadcrumb {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 28px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb .sep { margin: 0 10px; opacity: .5; }

/* generic page body container */
.page-body {
  max-width: 880px;
  margin: 0 auto;
  padding: 60px 28px 100px;
}
.page-body h2 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  margin: 52px 0 16px;
  letter-spacing: -0.025em;
  color: var(--text);
}
.page-body h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  margin: 34px 0 12px;
  letter-spacing: -0.015em;
  color: var(--gold-light);
}
.page-body p, .page-body li {
  color: var(--text-mute);
  line-height: 1.75;
  margin-bottom: 14px;
}
.page-body ul, .page-body ol {
  padding-left: 22px;
  margin-bottom: 18px;
}
.page-body ul li { list-style: disc; padding-left: 4px; }
.page-body ol li { list-style: decimal; padding-left: 4px; }
.page-body strong { color: var(--text); font-weight: 600; }
.page-body a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(232, 163, 23, 0.4);
}
.page-body a:hover { text-decoration-color: var(--gold); color: var(--gold-light); }

.page-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

/* page-side TOC */
.page-toc {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 13px;
}
.page-toc h4 {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.page-toc a {
  display: block;
  padding: 6px 0;
  color: var(--text-mute);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 10px;
  margin-left: -12px;
}
.page-toc a:hover, .page-toc a.active {
  color: var(--gold-light);
  border-left-color: var(--gold);
}

/* page layout with sidebar */
.page-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px 28px 100px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  align-items: start;
}
.page-layout .page-body { padding: 0; max-width: none; }

/* split section (img + copy) used in product pages */
.split-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-section.reverse .split-copy { order: 2; }
.split-copy h2 {
  font-family: var(--font-head);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 12px 0 16px;
}
.split-copy p {
  color: var(--text-mute);
  font-size: 16px;
  line-height: 1.8;
}
.split-visual {
  background:
    radial-gradient(circle at 30% 30%, rgba(232, 163, 23, 0.12), transparent 50%),
    var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.split-visual code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--gold-light);
  white-space: pre;
  text-align: left;
}

/* feature 4-grid */
.feature-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-grid .product-card {
  grid-column: span 1;
}

/* forms */
.form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-row label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color .2s;
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--text-dim); }

/* two-column contact layout */
.contact-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px 28px 100px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 20px 0 8px;
}
.contact-info h3:first-child { margin-top: 0; }
.contact-info p {
  color: var(--text-mute);
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-line;
}
.contact-info a {
  display: block;
  font-size: 14px;
  color: var(--text);
  padding: 4px 0;
  font-family: var(--font-mono);
}
.contact-info a:hover { color: var(--gold-light); }

/* auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) 28px 60px;
  background:
    radial-gradient(ellipse at center, rgba(232, 163, 23, 0.08) 0%, transparent 60%),
    var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}
.auth-card .auth-logo {
  display: block;
  height: 40px;
  margin: 0 auto 28px;
  width: auto;
}
.auth-card h1 {
  font-family: var(--font-head);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: 8px;
}
.auth-card .auth-sub {
  text-align: center;
  color: var(--text-mute);
  font-size: 14px;
  margin-bottom: 32px;
}
.auth-card .form .btn { justify-content: center; padding: 14px; }
.auth-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-dim);
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.auth-sep::before, .auth-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-alt {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-foot {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-mute);
}
.auth-foot a { color: var(--gold); }
.auth-forgot {
  text-align: right;
  font-size: 12px;
  margin-top: -12px;
}

/* 404 */
.notfound {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--nav-h) 28px 60px;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(232, 163, 23, 0.08) 0%, transparent 60%),
    var(--bg);
}
.notfound .big-404 {
  font-family: var(--font-display);
  font-size: clamp(120px, 22vw, 240px);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}

/* coming-soon banner */
.coming-soon-banner {
  max-width: var(--max);
  margin: 40px auto;
  padding: 20px 28px;
  border: 1px dashed rgba(232, 163, 23, 0.4);
  border-radius: var(--radius);
  background: rgba(232, 163, 23, 0.04);
  text-align: center;
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .product-card.large { grid-column: span 4; }
  .product-card:not(.large) { grid-column: span 2; }
  .intent-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .roadmap::before { display: none; }
  .card-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .page-layout { grid-template-columns: 1fr; gap: 32px; }
  .page-toc { position: static; }
  .split-section { grid-template-columns: 1fr; gap: 32px; }
  .split-section.reverse .split-copy { order: 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  :root { --nav-h: 52px; }
  .nav-links { display: none; }
  .nav-hamburger { display: inline-flex; align-items: center; justify-content: center; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn-primary { display: none; }
  /* push logo to the left; group lang + hamburger together on the right */
  .nav-inner { gap: 12px; padding: 0 16px; }
  .brand { margin-right: auto; }
  .nav-cta { gap: 8px; }
  .nav-cta .lang-trigger { height: 36px; padding: 0 10px; font-size: 13px; gap: 5px; }
  .nav-cta .lang-trigger svg:first-child { width: 15px; height: 15px; }
  .brand-logo { height: 22px; }
}
@media (max-width: 768px) {
  .brand-logo { height: 22px; }
  .hero { padding-top: calc(var(--nav-h) + 48px); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .stat + .stat::before { display: none; }
  .stat:nth-child(odd) + .stat::before { display: block; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card, .product-card.large, .product-card:not(.large) { grid-column: span 1; }
  .product-card.large { padding: 32px 24px; }
  .feature-list { grid-template-columns: 1fr; }
  .intent-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .arch-layer { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .layer-meta { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 16px; flex-direction: row; align-items: baseline; gap: 16px; }
  .layer-id { font-size: 28px; }
  .trust-inner { flex-direction: column; align-items: flex-start; }
  .section { padding: 64px 20px; }
  .cta-form { flex-direction: column; }
  .footer-cols { grid-template-columns: 1fr; }
  .hero-terminal { padding: 0 12px; }
  .terminal-body { font-size: 12px; padding: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 24px; }
  .page-hero { padding-top: calc(var(--nav-h) + 48px); }
}
