/* ============ BRAINS Network ============ */
:root {
  --bg: #FAFAF9;
  --bg-tone: #F2F1ED;
  --ink-dark: #0E1520;
  --ink-dark-2: #121B29;
  --text: #16181D;
  --text-soft: #54565C;
  --text-faint: #8A8C92;
  --accent: #3B4F6C;
  --accent-soft: #4B5E7D;
  --accent-bright: #5B76A3;
  --accent-glow: #7f9bd0;
  --accent-tint: rgba(59, 79, 108, 0.08);
  --line: #E4E3DE;
  --card-bg: #FFFFFF;
  --radius: 18px;
  --radius-sm: 11px;
  --wrap: 1160px;
  --shadow-soft: 0 1px 2px rgba(14,21,32,.04), 0 10px 30px rgba(14,21,32,.06);
  --shadow-lift: 0 2px 6px rgba(14,21,32,.06), 0 24px 50px rgba(14,21,32,.12);
  --glass-light: rgba(255,255,255,.6);
  --glass-light-brd: rgba(255,255,255,.75);
  --glass-dark: rgba(255,255,255,.05);
  --glass-dark-brd: rgba(255,255,255,.12);
  --glass-blur: saturate(160%) blur(16px);
  --grad-accent: linear-gradient(120deg, #3B4F6C 0%, #5B76A3 60%, #7f9bd0 100%);
  --sans: 'Inter', system-ui, sans-serif;
  --display: 'Space Grotesk', 'Inter', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
code, .mono { font-family: var(--mono); font-size: .92em; }
code { background: var(--accent-tint); color: var(--accent); padding: .1em .4em; border-radius: 5px; font-weight: 500; }
.hidden { display: none !important; }
::selection { background: rgba(91,118,163,.22); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; border-radius: 4px; }
a { -webkit-tap-highlight-color: transparent; }

/* ---------- Global background ---------- */
.bg-field { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-aurora {
  position: absolute; inset: -20%;
  background:
    radial-gradient(38% 44% at 12% 8%, rgba(91,118,163,.12), transparent 60%),
    radial-gradient(34% 40% at 88% 16%, rgba(127,155,208,.1), transparent 60%),
    radial-gradient(46% 50% at 70% 92%, rgba(59,79,108,.08), transparent 62%);
  filter: blur(24px);
  animation: auroraDrift 30s ease-in-out infinite alternate;
}
.bg-grid {
  position: absolute; inset: 0; opacity: .4;
  background-image: linear-gradient(rgba(20,24,29,.024) 1px, transparent 1px), linear-gradient(90deg, rgba(20,24,29,.024) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 35%, transparent 82%);
}
@keyframes auroraDrift { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-3%,2%) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .bg-aurora { animation: none; } }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(250,250,249,.6); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.nav.scrolled { border-bottom-color: var(--glass-light-brd); background: rgba(250,250,249,.74); }
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); z-index: 2; }
.brand-mark { color: var(--accent); display: flex; }
.brand-name { font-family: var(--display); font-weight: 600; letter-spacing: .04em; font-size: 1.05rem; }
.nav-links { margin-left: auto; display: flex; gap: 26px; }
.nav-links a { text-decoration: none; color: var(--text-soft); font-size: .93rem; font-weight: 500; transition: color .2s; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--grad-accent); transition: width .25s; border-radius: 2px; }
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: 4px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; z-index: 2; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .2s; transform-origin: center; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(14,21,32,.4); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: .3s; }
.nav-scrim.show { opacity: 1; visibility: visible; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--sans); font-weight: 500; font-size: .95rem; padding: 11px 22px; border-radius: var(--radius-sm); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: .2s; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(59,79,108,.22); position: relative; overflow: hidden; }
.btn-primary::before { content: ''; position: absolute; inset: 0; background: var(--grad-accent); opacity: 0; transition: opacity .25s; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(59,79,108,.3); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary > * , .btn-primary { position: relative; }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }
.btn-ghost { color: var(--accent); border-color: var(--line); background: rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-lg { padding: 14px 30px; font-size: 1rem; }
.btn-block { width: 100%; margin-top: 8px; }
.section-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.05); }
.section-dark .btn-ghost:hover { border-color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: 120px 24px 80px;
  background:
    radial-gradient(110% 80% at 50% -20%, #ffffff 0%, rgba(250,250,249,0) 55%),
    radial-gradient(90% 70% at 15% 15%, rgba(110,138,184,.14), transparent 55%),
    radial-gradient(90% 70% at 85% 20%, rgba(127,155,208,.12), transparent 55%); }
.hero::before { content: ''; position: absolute; z-index: 0; width: min(820px, 92vw); height: min(820px, 92vw); left: 50%; top: 42%; transform: translate(-50%,-50%); pointer-events: none; background: radial-gradient(circle, rgba(91,118,163,.16) 0%, rgba(91,118,163,0) 62%); animation: heroGlow 9s ease-in-out infinite alternate; }
@keyframes heroGlow { from { opacity: .7; transform: translate(-50%,-50%) scale(1); } to { opacity: 1; transform: translate(-50%,-50%) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }
#dag-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-veil { position: absolute; inset: 0; z-index: 0; background: radial-gradient(60% 50% at 50% 46%, rgba(250,250,249,0) 20%, rgba(250,250,249,.55) 78%, rgba(250,250,249,.82) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 840px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .24em; font-size: .72rem; color: var(--accent); margin-bottom: 24px; padding: 7px 16px; border: 1px solid var(--line); border-radius: 100px; background: rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 0 rgba(91,118,163,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(91,118,163,.6);} 70%{box-shadow:0 0 0 8px rgba(91,118,163,0);} 100%{box-shadow:0 0 0 0 rgba(91,118,163,0);} }
.hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2.6rem, 6.4vw, 4.9rem); line-height: 1.01; letter-spacing: -.035em; margin-bottom: 26px; }
.hero-sub { font-size: clamp(1.06rem, 2vw, 1.3rem); line-height: 1.6; color: var(--text-soft); max-width: 560px; margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.hero-note { font-size: .9rem; color: var(--text-faint); }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 1; }
.scroll-hint span { display: block; width: 22px; height: 34px; border: 1.5px solid var(--text-faint); border-radius: 12px; position: relative; }
.scroll-hint span::after { content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 3px; height: 7px; background: var(--text-faint); border-radius: 2px; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0%{opacity:0;top:6px} 40%{opacity:1} 80%{opacity:0;top:16px} 100%{opacity:0} }

/* ---------- Stat band ---------- */
.statband { background: var(--ink-dark); color: #fff; padding: 46px 24px; position: relative; overflow: hidden; }
.statband::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% 0%, rgba(91,118,163,.25), transparent 60%); }
.statband-inner { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: center; }
.statband .stat { position: relative; }
.statband .stat + .stat::before { content: ''; position: absolute; left: -14px; top: 50%; transform: translateY(-50%); height: 42px; width: 1px; background: rgba(255,255,255,.12); }
.stat-n { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.4rem); background: linear-gradient(180deg,#fff,#c7d4ea); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -.01em; }
.stat-l { display: block; font-size: .85rem; color: rgba(255,255,255,.6); margin-top: 6px; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 124px 24px; }
.section:not(.section-dark) + .section:not(.section-dark) { border-top: 1px solid var(--line); }
.section-dark { background: var(--ink-dark); color: #fff; overflow: hidden; }
.section-dark::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0); background-size: 30px 30px; opacity: .7; }
.section-dark::after { content: ''; position: absolute; top: -30%; right: -10%; width: 60%; height: 80%; background: radial-gradient(circle, rgba(91,118,163,.2), transparent 65%); pointer-events: none; }
.section-dark .section-tag { color: var(--accent-glow); }
.section-dark h2 { color: #fff; }
.section-dark .lead, .section-dark .cols p, .section-dark .fine, .section-dark .phase p, .section-dark .card p { color: rgba(255,255,255,.72); }
.section-dark code { background: rgba(255,255,255,.1); color: #cdd8ea; }
.wrap { max-width: var(--wrap); margin: 0 auto; position: relative; z-index: 1; }
.wrap-narrow { max-width: 720px; }
.center { text-align: center; } .center h2, .center .lead { margin-left: auto; margin-right: auto; } .center-actions { justify-content: center; }
.section-tag { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .2em; font-size: .7rem; color: var(--accent); margin-bottom: 22px; }
.section-tag i { font-style: normal; font-weight: 500; opacity: .55; letter-spacing: 0; }
.section-tag::before { content: ''; width: 26px; height: 1px; background: currentColor; opacity: .5; }
.center-tag { justify-content: center; }
.section h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.85rem, 3.6vw, 2.75rem); line-height: 1.1; letter-spacing: -.03em; margin-bottom: 24px; max-width: 760px; }
.section h3 { font-family: var(--display); font-weight: 500; font-size: 1.15rem; letter-spacing: -.01em; margin-bottom: 10px; }
.lead { font-size: 1.16rem; line-height: 1.6; color: var(--text-soft); max-width: 660px; margin-bottom: 48px; }
.lead-quiet { margin-top: 14px; margin-bottom: 0; color: var(--text) !important; font-weight: 500; }
.section-dark .lead-quiet { color: #fff !important; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; }
.cols p { color: var(--text-soft); margin-bottom: 16px; }
.cols-visual { align-items: center; }
.fine { color: var(--text-faint); font-size: .95rem; margin-top: 28px; max-width: 720px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { position: relative; background: var(--glass-light); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-light-brd); border-radius: var(--radius); padding: 30px 28px; transition: .28s; box-shadow: var(--shadow-soft); overflow: hidden; }
.card::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--grad-accent); opacity: 0; transition: opacity .25s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.card:hover::after { opacity: 1; }
.card p { color: var(--text-soft); font-size: .97rem; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 13px; background: var(--accent-tint); color: var(--accent); margin-bottom: 18px; }
.card-top .card-icon { margin-bottom: 0; }
.card-icon svg { width: 26px; height: 26px; }
.card-mult { font-family: var(--mono); font-size: .85rem; color: var(--accent); background: var(--accent-tint); padding: 3px 10px; border-radius: 6px; }
.card-feature { background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(244,247,252,.6)); border-color: var(--accent-soft); }
.section-dark .card { background: var(--glass-dark); border-color: var(--glass-dark-brd); box-shadow: none; }
.section-dark .card:hover { background: rgba(255,255,255,.09); }
.section-dark .card h3 { color: #fff; }
.section-dark .card-icon { background: rgba(91,118,163,.22); color: #cdd8ea; }

/* ---------- Plasticity visual ---------- */
.plasticity-visual { margin: 0; padding: 18px; border-radius: var(--radius); background: var(--glass-dark); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-dark-brd); }
.pl-stage { position: relative; width: 100%; height: 320px; }
#plasticity-canvas { width: 100%; height: 320px; display: block; }
.pl-core { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 0 18px rgba(127,155,208,.6)); animation: coreBreathe 3.4s ease-in-out infinite; }
.pl-core svg { display: block; }
@keyframes coreBreathe { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .pl-core { animation: none; } }
.pl-caption { display: flex; gap: 22px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.pl-key { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: rgba(255,255,255,.75); }
.pl-key::before { content: ''; width: 10px; height: 10px; border-radius: 50%; }
.pl-key-strong::before { background: var(--accent-glow); box-shadow: 0 0 8px rgba(127,155,208,.9); }
.pl-key-weak::before { background: rgba(255,255,255,.3); }

/* ---------- The BRAINS app ---------- */
.app-preview { display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px; align-items: center; }
.app-window { border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); background: #0b1220; box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.app-chrome { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.08); }
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.2); }
.app-dots i:first-child { background: #e06c60; } .app-dots i:nth-child(2) { background: #e0b64f; } .app-dots i:nth-child(3) { background: #5fb87c; }
.app-url { font-family: var(--mono); font-size: .78rem; color: rgba(255,255,255,.5); margin: 0 auto; }
.app-net { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; color: rgba(255,255,255,.6); }
.app-net-dot { width: 7px; height: 7px; border-radius: 50%; background: #5fb87c; box-shadow: 0 0 8px #5fb87c; animation: pulse 2.4s infinite; }
.app-body { display: grid; grid-template-columns: 190px 1fr; min-height: 380px; }
.app-sidebar { padding: 16px; border-right: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); }
.app-new { font-size: .82rem; color: #cdd8ea; border: 1px dashed rgba(255,255,255,.2); border-radius: 8px; padding: 8px 10px; text-align: center; margin-bottom: 18px; }
.app-side-h { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.4); margin: 0 0 8px; }
.app-agents { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.app-agents li { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: rgba(255,255,255,.75); padding: 6px 8px; border-radius: 8px; }
.app-agents li.on { background: rgba(91,118,163,.24); color: #fff; }
.app-agents li em { margin-left: auto; font-style: normal; font-size: .68rem; color: rgba(255,255,255,.45); font-family: var(--mono); }
.ag-av { width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 600; color: #fff; }
.ag-av.a1 { background: #4b5e7d; } .ag-av.a2 { background: #6d5b8d; } .ag-av.a3 { background: #3f7d6e; }
.app-bal { font-family: var(--display); font-size: 1.2rem; color: #fff; } .app-bal span { font-weight: 600; }
.app-chat { display: flex; flex-direction: column; }
.app-thread { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.msg { max-width: 88%; opacity: 0; transform: translateY(8px); animation: msgIn .5s forwards; }
@keyframes msgIn { to { opacity: 1; transform: none; } }
.msg-role { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4); margin-bottom: 5px; display: flex; align-items: center; gap: 6px; }
.msg-bubble { padding: 11px 14px; border-radius: 12px; font-size: .9rem; line-height: 1.5; }
.msg.user { align-self: flex-end; }
.msg.user .msg-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.user .msg-role { justify-content: flex-end; }
.msg.agent .msg-bubble { background: rgba(255,255,255,.07); color: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.09); border-bottom-left-radius: 4px; }
.msg-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { font-family: var(--mono); font-size: .66rem; padding: 3px 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 4px; }
.chip-verified { background: rgba(95,184,124,.16); color: #8fe0aa; }
.chip-node { background: rgba(91,118,163,.2); color: #b9caea; }
.chip-cost { background: rgba(224,182,79,.14); color: #e6cf8a; }
.typing i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.6); margin-right: 3px; animation: blink 1.2s infinite; }
.typing i:nth-child(2){animation-delay:.2s} .typing i:nth-child(3){animation-delay:.4s}
@keyframes blink { 0%,60%,100%{opacity:.25} 30%{opacity:1} }
.app-composer { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.08); align-items: center; }
.app-input { flex: 1; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.45); font-size: .88rem; }
.app-send { width: 38px; height: 38px; flex: none; border: 0; border-radius: 10px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; cursor: default; }
.app-send svg { width: 18px; height: 18px; }
.app-feats { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.app-feats li { display: flex; gap: 14px; align-items: flex-start; color: rgba(255,255,255,.72); font-size: .95rem; }
.app-feats strong { color: #fff; font-weight: 600; }
.feat-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(91,118,163,.2); color: #cdd8ea; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.app-fine { margin-top: 32px; }

/* Cortex (BRAINS app) */
.app-brandchip { display: inline-flex; }
.cortex-body { display: grid; grid-template-columns: 1fr 300px; min-height: 400px; }
.cortex-chat { display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,.08); }
.cortex-graph { position: relative; background: radial-gradient(120% 100% at 70% 20%, rgba(91,118,163,.16), rgba(11,18,32,0) 60%); }
#cortex-canvas { width: 100%; height: 100%; display: block; }
.cortex-tag { position: absolute; left: 14px; right: 14px; bottom: 12px; font-family: var(--mono); font-size: .66rem; color: rgba(255,255,255,.5); text-align: center; }
@media (max-width: 620px) { .cortex-body { grid-template-columns: 1fr; } .cortex-graph { height: 200px; border-top: 1px solid rgba(255,255,255,.08); } }

/* Synapse studio */
.app-preview-wide { grid-template-columns: 1.6fr 1fr; }
.syn-body { padding: 30px 26px; min-height: 360px; display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.syn-flow { display: flex; align-items: stretch; justify-content: space-between; gap: 0; }
.syn-stage { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 6px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); transition: .3s; position: relative; }
.syn-stage .syn-ic { font-size: 1.3rem; color: #7f9bd0; transition: .3s; }
.syn-stage b { color: rgba(255,255,255,.9); font-size: .82rem; font-weight: 600; }
.syn-stage em { color: rgba(255,255,255,.42); font-style: normal; font-size: .68rem; font-family: var(--mono); }
.syn-stage.active { border-color: var(--accent-bright); background: rgba(91,118,163,.22); box-shadow: 0 0 0 1px var(--accent-bright), 0 10px 30px rgba(91,118,163,.3); transform: translateY(-3px); }
.syn-stage.active .syn-ic { color: #cdd8ea; transform: scale(1.15); }
.syn-stage.done .syn-ic { color: #8fe0aa; }
.syn-wire { flex: 0 0 34px; align-self: center; height: 2px; background: rgba(255,255,255,.12); position: relative; overflow: hidden; border-radius: 2px; }
.syn-wire i { position: absolute; inset: 0; width: 0; background: var(--grad-accent); transition: width .4s ease; }
.syn-wire.flow i { width: 100%; }
.syn-readout { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-height: 30px; }
.syn-status { font-family: var(--mono); font-size: .8rem; color: rgba(255,255,255,.7); }
.syn-chips { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 620px) { .syn-flow { flex-direction: column; gap: 0; } .syn-wire { width: 2px; height: 22px; flex-basis: 22px; } .syn-wire i { width: 100%; height: 0; transition: height .4s; } .syn-wire.flow i { height: 100%; } }

/* Tools (minters + wallet) */
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tool-card { background: var(--glass-light); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-light-brd); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-soft); }
.tool-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tool-tag { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); background: var(--accent-tint); padding: 5px 10px; border-radius: 6px; }
.tool-live { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--text-faint); font-family: var(--mono); }
.tool-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.tool-card > p { color: var(--text-soft); font-size: .95rem; margin-bottom: 20px; }
/* minter console */
.mc-panel { background: var(--ink-dark); border-radius: 12px; padding: 18px; color: #fff; }
.mc-row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .74rem; color: rgba(255,255,255,.6); margin-bottom: 14px; }
.mc-diff { color: #e6cf8a; }
.mc-benchmark { position: relative; height: 12px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 6px; }
.mc-benchmark .mc-mark { position: absolute; right: 22%; top: -18px; font-family: var(--mono); font-size: .6rem; color: rgba(255,255,255,.5); }
.mc-benchmark::after { content: ''; position: absolute; right: 22%; top: 0; bottom: 0; width: 2px; background: rgba(230,207,138,.8); }
.mc-fill { height: 100%; width: 0; background: var(--grad-accent); border-radius: 6px; }
.mc-foot { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .78rem; margin: 12px 0 10px; }
.mc-reward { color: #8fe0aa; }
.mc-log { font-family: var(--mono); font-size: .72rem; color: rgba(255,255,255,.55); border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; }
/* wallet */
.wl-panel { background: var(--ink-dark); border-radius: 12px; padding: 18px; color: #fff; }
.wl-balances { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.wl-bal { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); border-radius: 10px; padding: 12px 14px; }
.wl-bal.wl-cred { background: rgba(91,118,163,.18); }
.wl-k { display: block; font-family: var(--mono); font-size: .66rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; }
.wl-v { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 600; margin-top: 2px; }
.wl-id { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.wl-av { width: 30px; height: 30px; border-radius: 8px; background: var(--grad-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.wl-id b { font-size: .9rem; } .wl-id em { display: block; font-style: normal; font-size: .68rem; color: rgba(255,255,255,.45); font-family: var(--mono); }
.wl-badge { margin-left: auto; font-family: var(--mono); font-size: .64rem; color: #8fe0aa; background: rgba(95,184,124,.16); padding: 4px 8px; border-radius: 6px; }
.wl-stake { display: flex; align-items: center; gap: 10px; font-size: .74rem; color: rgba(255,255,255,.6); font-family: var(--mono); }
.wl-stakebar { flex: 1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.wl-stakebar i { display: block; height: 100%; width: 66%; background: var(--grad-accent); border-radius: 6px; }
.wl-apr { color: #8fe0aa; }
@media (max-width: 820px) { .tools-grid { grid-template-columns: 1fr; } }

/* Footer logo lockup */
.footer-logo { display: inline-flex; align-items: center; gap: 10px; }
.footer-logo .brand-name { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }

/* Wallet chooser modal */
.wallet-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(14,21,32,.55); backdrop-filter: blur(6px); animation: fadeIn .2s; }
.wallet-modal[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.wallet-sheet { width: 100%; max-width: 380px; background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-lift); border: 1px solid var(--glass-light-brd); animation: sheetUp .28s cubic-bezier(.2,.8,.3,1); }
@keyframes sheetUp { from { transform: translateY(14px); opacity: 0; } }
.wallet-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.wallet-sheet-head h4 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.wallet-close { border: 0; background: var(--bg-tone); width: 30px; height: 30px; border-radius: 8px; font-size: 1.3rem; line-height: 1; color: var(--text-soft); cursor: pointer; }
.wallet-close:hover { background: var(--line); }
.wallet-sub { font-size: .88rem; color: var(--text-soft); margin-bottom: 16px; }
.wallet-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.wallet-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: .18s; background: #fff; text-align: left; font-size: .95rem; font-weight: 500; color: var(--text); text-decoration: none; }
.wallet-opt:hover { border-color: var(--accent-soft); background: var(--accent-tint); transform: translateY(-1px); }
.wallet-opt img, .wallet-opt .wo-fallback { width: 30px; height: 30px; border-radius: 8px; flex: none; object-fit: contain; }
.wallet-opt .wo-fallback { background: var(--grad-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .95rem; }
.wallet-opt .wo-tag { margin-left: auto; font-family: var(--mono); font-size: .68rem; color: var(--text-faint); }
.wallet-foot { font-size: .74rem; color: var(--text-faint); text-align: center; margin-top: 16px; }

/* ---------- Genesis ---------- */
.genesis-layout { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; margin-bottom: 54px; }
.tranche-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tranche { background: var(--glass-light); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-light-brd); border-radius: var(--radius); padding: 22px 20px; position: relative; overflow: hidden; transition: .25s; box-shadow: var(--shadow-soft); }
.tranche::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--grad-accent); opacity: .4; }
.tranche:nth-child(2)::before { opacity: .6; } .tranche:nth-child(3)::before { opacity: .8; } .tranche:nth-child(4)::before { opacity: 1; }
.tranche:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.tranche.active { border-color: var(--accent-bright); box-shadow: 0 0 0 1px var(--accent-bright), var(--shadow-lift); }
.tranche-label { display: block; font-size: .78rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.tranche-price { display: block; font-family: var(--display); font-size: 2rem; font-weight: 600; color: var(--accent); }
.tranche-detail { display: block; font-size: .82rem; color: var(--text-soft); margin-top: 6px; }
.tranche-bar { margin-top: 14px; height: 4px; border-radius: 4px; background: var(--accent-tint); overflow: hidden; }
.tranche-bar span { display: block; height: 100%; background: var(--grad-accent); border-radius: 4px; transition: width 1s ease; }
.allocator { background: rgba(255,255,255,.85); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); color: var(--text); border-radius: var(--radius); border: 1px solid var(--glass-light-brd); padding: 26px 24px; box-shadow: var(--shadow-lift); position: sticky; top: 90px; }
.allocator-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.allocator-head h3 { margin: 0; }
.live-tranche { font-family: var(--mono); font-size: .8rem; color: var(--accent); }
.field-label { display: block; font-size: .8rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.amount-field { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: .2s; background: #fff; }
.amount-field:focus-within { border-color: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-tint); }
.amount-field input { flex: 1; border: 0; padding: 14px 16px; font-family: var(--display); font-size: 1.5rem; background: transparent; min-width: 0; }
.amount-field input:focus { outline: none; }
.ccy-select { position: relative; border-left: 1px solid var(--line); }
.ccy-btn { height: 100%; display: flex; align-items: center; gap: 6px; padding: 0 16px; background: var(--bg-tone); border: 0; cursor: pointer; font-family: var(--mono); font-size: .9rem; font-weight: 500; color: var(--text); }
.ccy-menu { position: absolute; top: calc(100% + 4px); right: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lift); list-style: none; min-width: 100px; z-index: 5; overflow: hidden; display: none; }
.ccy-menu.open { display: block; }
.ccy-menu li { padding: 10px 16px; font-family: var(--mono); font-size: .9rem; cursor: pointer; }
.ccy-menu li:hover { background: var(--bg-tone); }
.quick-amounts { display: flex; gap: 8px; margin-top: 12px; }
.quick-amounts button { flex: 1; padding: 8px 4px; border: 1px solid var(--line); background: #fff; border-radius: 8px; font-family: var(--mono); font-size: .82rem; color: var(--text-soft); cursor: pointer; transition: .2s; }
.quick-amounts button:hover { border-color: var(--accent-soft); color: var(--accent); }
.allocator-arrow { display: flex; justify-content: center; color: var(--text-faint); margin: 16px 0 4px; }
.you-receive { background: var(--bg-tone); border-radius: var(--radius-sm); padding: 18px; margin-bottom: 16px; }
.receive-amount { font-family: var(--display); font-size: 2rem; font-weight: 600; color: var(--accent); line-height: 1.1; }
.receive-amount em { font-style: normal; font-size: .9rem; color: var(--text-faint); font-family: var(--sans); }
.receive-detail { font-size: .85rem; color: var(--text-soft); margin-top: 8px; }
.vest-note { font-size: .82rem; color: var(--text-faint); background: var(--accent-tint); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; }
.wallet-status { font-size: .85rem; color: var(--accent); margin-top: 12px; min-height: 1em; word-break: break-word; }
.allocator-fine { font-size: .78rem; color: var(--text-faint); margin-top: 14px; line-height: 1.5; }
.steps-title { margin-bottom: 20px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; margin-bottom: 40px; }
.steps li { display: flex; align-items: flex-start; gap: 14px; color: var(--text-soft); }
.steps li span { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: .85rem; font-weight: 500; }
.perks { background: var(--accent-tint); border-radius: var(--radius); padding: 24px 28px; }
.perks p { color: var(--text-soft); } .perks strong { color: var(--text); }

/* ---------- Tokenomics ---------- */
.tokenomics { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: center; }
.donut-wrap { position: relative; width: 340px; height: 340px; margin: 0 auto; }
#donut { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.donut-center::before { content: ''; position: absolute; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(91,118,163,.25) 0%, rgba(91,118,163,0) 70%); }
.donut-center span, .donut-center small { position: relative; color: #fff; }
.donut-center span { font-family: var(--display); font-size: 2.6rem; font-weight: 600; }
.donut-center small { color: rgba(255,255,255,.55); letter-spacing: .1em; font-size: .8rem; }
.legend { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.legend li { display: flex; align-items: baseline; gap: 12px; }
.legend .dot { flex: none; width: 12px; height: 12px; border-radius: 3px; align-self: center; }
.legend .lg-name { font-weight: 500; min-width: 200px; display: inline-block; color: #fff; }
.legend .lg-pct { font-family: var(--mono); color: var(--accent-glow); font-weight: 500; }
.legend .lg-detail { display: block; font-size: .85rem; color: rgba(255,255,255,.5); }

/* ---------- Roadmap ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.timeline::before { content: ''; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), rgba(91,118,163,.12)); }
.phase { position: relative; padding-top: 30px; }
.phase::before { content: ''; position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 4px var(--bg), 0 0 12px rgba(91,118,163,.7); }
.phase-when { font-family: var(--mono); font-size: .85rem; color: var(--accent); display: block; margin-bottom: 10px; }
.phase p { color: var(--text-soft); font-size: .95rem; }

/* ---------- Whitepaper / Register ---------- */
.paper-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.signup { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.signup input { flex: 1; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--sans); font-size: 1rem; background: #fff; }
.signup input:focus { outline: 2px solid var(--accent-soft); outline-offset: 1px; border-color: transparent; }
.form-msg { margin-top: 14px; font-size: .92rem; color: var(--accent); min-height: 1.2em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 24px 32px; background: var(--bg-tone); position: relative; z-index: 1; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-brand .brand-name { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.footer-brand p { color: var(--text-soft); margin-top: 8px; font-size: .95rem; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-h { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-faint); margin-bottom: 4px; }
.footer-links a { color: var(--text-soft); text-decoration: none; font-size: .95rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { padding-top: 28px; }
.disclaimer { font-size: .82rem; color: var(--text-faint); max-width: 820px; line-height: 1.6; }
.copyright { font-size: .85rem; color: var(--text-faint); margin-top: 16px; }

/* ---------- Reveal ---------- */
.section .wrap > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.section.in .wrap > * { opacity: 1; transform: none; }
.section.in .wrap > *:nth-child(2){transition-delay:.05s} .section.in .wrap > *:nth-child(3){transition-delay:.1s} .section.in .wrap > *:nth-child(4){transition-delay:.15s}
@media (prefers-reduced-motion: reduce) { .section .wrap > * { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .genesis-layout { grid-template-columns: 1fr; } .allocator { position: static; }
  .app-preview, .app-preview-wide { grid-template-columns: 1fr; gap: 26px; }
  .tools-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .cols, .cards, .steps, .timeline, .tokenomics, .footer-inner { grid-template-columns: 1fr; }
  .statband-inner { grid-template-columns: 1fr; gap: 22px; }
  .statband .stat + .stat::before { display: none; }
  .tokenomics { gap: 40px; }
  .timeline::before { display: none; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0;
    background: rgba(250,250,249,.97); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--line); padding: 10px 20px 18px; gap: 0; z-index: 95; box-shadow: var(--shadow-lift);
    max-height: calc(100dvh - 68px); overflow-y: auto;
  }
  .nav.open .nav-links a { padding: 16px 6px; font-size: 1.06rem; border-bottom: 1px solid var(--line); }
  .nav.open .nav-links a:last-child { border-bottom: 0; }
  .nav.open .nav-links a::after { display: none; }
  .nav-cta { display: none !important; }
}
@media (max-width: 640px) {
  .section { padding: 76px 20px; }
  .section h2 { font-size: clamp(1.55rem, 6.6vw, 2rem); }
  .lead { font-size: 1.05rem; }
  .tranche-grid { grid-template-columns: 1fr 1fr; }
  .signup { flex-direction: column; }
  .app-body { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .hero { padding: 104px 20px 72px; }
  .hero h1 { font-size: clamp(2.15rem, 9vw, 3rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .br-desktop { display: none; }
  .donut-wrap { width: min(300px, 76vw); height: min(300px, 76vw); }
  .donut-center span { font-size: 2.2rem; }
  .legend .lg-name { min-width: 0; }
  .wl-balances { grid-template-columns: 1fr 1fr; }
  .btn-lg { padding: 13px 24px; }
}
@media (max-width: 420px) {
  .section { padding: 64px 16px; }
  .tranche-grid { grid-template-columns: 1fr; }
  .card, .tool-card, .allocator { padding: 22px 18px; }
  .amount-field input { font-size: 1.25rem; }
  .receive-amount { font-size: 1.7rem; }
  .syn-body { padding: 22px 16px; }
  .wallet-sheet { padding: 18px; }
}
