:root {
  --bg: #02110b;
  --bg-2: #04170f;
  --panel: rgba(6, 38, 26, 0.55);
  --line: rgba(110, 255, 170, 0.16);
  --line-soft: rgba(160, 255, 210, 0.09);
  --text: #eafff3;
  --muted: #86a699;
  --lime: #7dff9a;
  --lime-dim: rgba(110, 255, 170, 0.5);
  --cyan: #12f0dc;
  --yellow: #eaff4f;
  --grad: linear-gradient(120deg, #12f0dc 0%, #7dff9a 50%, #eaff4f 100%);
  --eye: #ff5d73;
  --radius: 18px;
  --font: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1100px 620px at 50% 108%, rgba(18, 240, 190, 0.20), transparent 65%),
    radial-gradient(900px 600px at 85% -10%, rgba(125, 255, 154, 0.07), transparent 60%),
    linear-gradient(180deg, #010a06 0%, var(--bg) 60%, #03261a 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; }

#neurons { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.75; }
main, .nav, .footer { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; transition: transform .15s, box-shadow .2s, background .2s, opacity .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); color: #01140b; box-shadow: 0 0 0 0 rgba(110,255,170,.4); }
.btn-primary:hover { box-shadow: 0 0 32px rgba(110, 255, 170, 0.45); }
.btn-ghost { border-color: var(--line-soft); color: var(--text); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--lime-dim); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px clamp(20px, 5vw, 64px);
  backdrop-filter: blur(14px); background: rgba(2, 17, 11, 0.65); border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.fly-icon { width: 34px; height: 34px; filter: drop-shadow(0 0 8px rgba(110,255,170,.55)); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.wallet-btn { font-family: var(--mono); font-size: 13px; }
.wallet-dot { width: 8px; height: 8px; border-radius: 50%; background: #2c5444; }
.wallet-btn.connected { border-color: var(--lime-dim); }
.wallet-btn.connected .wallet-dot { background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.wallet-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.03); font-family: var(--mono); font-size: 14px; }
.wallet-box.connected { border-color: var(--lime-dim); }
.nav-links { display: flex; gap: 28px; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* ---------- Common ---------- */
.section { padding: clamp(72px, 10vw, 128px) clamp(20px, 5vw, 64px); max-width: 1240px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--lime);
}
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; line-height: 1.04; }
h1 { font-size: clamp(44px, 7vw, 88px); font-weight: 700; }
h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 600; margin-bottom: 48px; }
h3 { font-size: 22px; font-weight: 600; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 560px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.glow { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(110, 255, 170, 0.45)); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(110,255,170,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(110,255,170,0); } 100% { box-shadow: 0 0 0 0 rgba(110,255,170,0); } }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px;
  min-height: calc(100vh - 70px); padding: 48px clamp(20px, 5vw, 64px); max-width: 1320px; margin: 0 auto;
}
.hero-copy .lead { margin: 24px 0 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 36px; list-style: none; padding: 0; margin: 52px 0 0; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.hero-stats span { color: var(--muted); font-size: 14px; }

.hero-card-wrap { position: relative; perspective: 1200px; display: grid; place-items: center; min-height: 420px; }
.card {
  position: relative; width: min(440px, 100%); aspect-ratio: 1.586; border-radius: 22px; padding: 26px;
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 120%, rgba(18,240,190,.28), transparent 60%), linear-gradient(140deg, #06301f 0%, #021009 55%, #04211a 100%);
  border: 1px solid rgba(110, 255, 170, 0.28);
  box-shadow: 0 40px 90px -20px rgba(0,0,0,.9), 0 0 80px -10px rgba(110,255,170,.22), inset 0 1px 0 rgba(255,255,255,.08);
  transform-style: preserve-3d; transition: transform .2s ease-out; animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 50% { translate: 0 -10px; } }
.card-neurons { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.card-neurons line { stroke: rgba(110,255,170,.16); stroke-width: .6; }
.card-neurons circle { fill: rgba(110,255,170,.5); }
.card-neurons circle.fire { fill: var(--lime); filter: drop-shadow(0 0 4px var(--lime)); }
.card-shine {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(400px circle at var(--mx, 30%) var(--my, 20%), rgba(255,255,255,.12), transparent 45%);
}
.card > *:not(.card-neurons):not(.card-shine):not(.card-watermark) { position: relative; z-index: 3; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card-brand { font-size: 22px; font-weight: 500; }
.card-brand { display: flex; align-items: center; }
.card-brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card-logo { width: 28px; height: 28px; margin-right: 8px; filter: drop-shadow(0 0 6px rgba(110,255,170,.6)); }
.card-watermark { position: absolute; right: -40px; bottom: -50px; width: 260px; height: 260px; opacity: .1; z-index: 1; }
.card-tier { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--lime); border: 1px solid var(--lime-dim); padding: 4px 10px; border-radius: 999px; }
.chip {
  width: 52px; height: 40px; border-radius: 8px; display: grid; grid-template-rows: repeat(3, 1fr); gap: 3px; padding: 6px;
  background: var(--grad);
}
.chip i { background: rgba(0,0,0,.18); border-radius: 2px; }
.card-number { font-family: var(--mono); font-size: clamp(16px, 2vw, 21px); letter-spacing: .08em; }
.card-bottom { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; }
.card-bottom small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .15em; }

.float-chip {
  position: absolute; font-family: var(--mono); font-size: 13px; padding: 10px 14px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(10px); animation: floaty 6s ease-in-out infinite;
}
.fc-1 { top: 8%; left: -2%; }
.fc-2 { bottom: 6%; right: 0; animation-delay: -3s; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line-soft); background: rgba(110,255,170,.025); padding: 18px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 40s linear infinite; }
.marquee-item { font-family: var(--mono); font-size: 16px; color: var(--muted); display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.marquee-item b { color: var(--text); }
.marquee-item .up { color: var(--lime); }
.marquee-item .down { color: var(--eye); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-soft); transition: border-color .2s, transform .2s; }
.step:hover { border-color: var(--lime-dim); transform: translateY(-3px); }
.step-n { font-family: var(--mono); color: var(--lime); font-size: 14px; }
.step h3 { margin: 40px 0 10px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Token grid ---------- */
.token-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; margin-bottom: 20px; }
.token {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line-soft); transition: border-color .2s;
}
.token:hover { border-color: var(--lime-dim); }
.token img, .token .ph { width: 44px; height: 44px; border-radius: 50%; flex: none; background: #1a2410; object-fit: cover; }
.token .ph { display: grid; place-items: center; font-weight: 700; color: var(--lime); }
.token img, .token .ph { background: #06301f; }
.token-meta { min-width: 0; flex: 1; }
.token-meta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.token-meta span { font-size: 13px; color: var(--muted); }
.token-price { text-align: right; font-family: var(--mono); font-size: 13px; }
.token-price .up { color: var(--lime); }
.token-price .down { color: var(--eye); }
.badge { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.badge-ok { background: rgba(110,255,170,.14); color: var(--lime); }
.badge-chain { background: rgba(255,255,255,.07); color: var(--muted); }
.skeleton { height: 78px; border-radius: 14px; background: linear-gradient(90deg, var(--panel), rgba(20,80,55,.5), var(--panel)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Brain ---------- */
.brain { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.brain h2 { margin-bottom: 24px; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: center; }
.checks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--lime); box-shadow: 0 0 14px var(--lime-dim); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/80% no-repeat, linear-gradient(#000 0 0); mask-composite: exclude; }
.terminal { border-radius: var(--radius); background: #010d08; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(110,255,170,.2); }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #123526; }
.terminal-bar i:first-child { background: var(--eye); }
.terminal-bar span { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.terminal-body { height: 340px; overflow: hidden; padding: 16px 18px; font-family: var(--mono); font-size: 13px; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; }
.terminal-body p { margin: 0; animation: fadein .35s ease-out; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.terminal-body .t { color: #3f6656; margin-right: 8px; }
.terminal-body .ok { color: var(--lime); }
.terminal-body .warn { color: #ffc043; }
.terminal-body .bad { color: var(--eye); }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tier { position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-soft); }
.tier-featured { border-color: var(--lime); box-shadow: 0 0 60px -20px rgba(110,255,170,.5); }
.tier-badge { position: absolute; top: -12px; left: 24px; background: var(--grad); color: #01140b; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.tier-icon { font-size: 34px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tier h3 { margin-top: 22px; }
.tier-sub { color: var(--muted); margin: 4px 0 20px; font-size: 14px; }
.tier-price { font-family: var(--mono); font-size: 24px; margin: 0 0 18px; }
.tier ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.tier li::before { content: "→ "; color: var(--lime); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border-radius: 14px; background: var(--panel); border: 1px solid var(--line-soft); padding: 20px 24px; }
.faq details[open] { border-color: var(--line); }
.faq summary { cursor: pointer; font-size: 18px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lime); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 14px 0 0; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta-logo { width: 120px; height: 120px; margin-bottom: 28px; filter: drop-shadow(0 0 24px rgba(110,255,170,.55)); animation: floaty 6s ease-in-out infinite; }
.cta h2 { margin-bottom: 20px; }
.cta .lead { margin: 0 auto 36px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 40px clamp(20px, 5vw, 64px); max-width: 1240px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.x-link { display: inline-flex; align-items: center; gap: 8px; }
.x-btn { padding: 9px 11px; }
.x-inline { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.disclaimer { color: #587567; font-size: 12px; max-width: 880px; margin: 28px 0 10px; }

/* ---------- Checkout modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
.modal-box {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; padding: 28px;
  box-shadow: 0 40px 120px -20px rgba(0,0,0,.9), 0 0 80px -30px rgba(110,255,170,.4);
}
.modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-soft); background: transparent; color: var(--text); font-size: 20px; }
.modal h3 { font-size: 26px; margin-bottom: 6px; }
.stepper { display: flex; gap: 6px; margin: 18px 0 24px; }
.stepper i { flex: 1; height: 3px; border-radius: 3px; background: var(--line-soft); }
.stepper i.on { background: var(--lime); }
.field-label { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.input {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.03);
  color: var(--text); font: inherit; outline: none;
}
.input:focus { border-color: var(--lime-dim); }
.pick-list { display: grid; gap: 8px; max-height: 300px; overflow-y: auto; margin-top: 10px; padding-right: 4px; }
.pick-list .token { cursor: pointer; padding: 12px; }
.pick-list .token.sel { border-color: var(--lime); background: rgba(110,255,170,.06); }
.tier-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tier-pick button { text-align: left; padding: 14px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.03); color: var(--text); }
.tier-pick button.sel { border-color: var(--lime); background: rgba(110,255,170,.06); }
.tier-pick b { display: block; }
.tier-pick span { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.summary { border-radius: 14px; border: 1px solid var(--line-soft); padding: 16px; margin: 18px 0; display: grid; gap: 10px; font-size: 14px; }
.summary div { display: flex; justify-content: space-between; gap: 16px; }
.summary span:first-child { color: var(--muted); }
.summary span:last-child { font-family: var(--mono); text-align: right; word-break: break-all; }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row code { flex: 1; font-family: var(--mono); font-size: 13px; padding: 12px; border-radius: 10px; background: rgba(255,255,255,.04); word-break: break-all; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; }
.notice { font-size: 13px; padding: 12px 14px; border-radius: 12px; margin-top: 14px; }
.notice-warn { background: rgba(255,192,67,.08); color: #ffc043; border: 1px solid rgba(255,192,67,.2); }
.notice-err { background: rgba(255,74,61,.08); color: #ff7a70; border: 1px solid rgba(255,74,61,.25); }
.notice-ok { background: rgba(110,255,170,.08); color: var(--lime); border: 1px solid var(--line); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 20px 0 4px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.spinner { width: 46px; height: 46px; margin: 24px auto; border-radius: 50%; border: 3px solid var(--line-soft); border-top-color: var(--lime); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.center { text-align: center; }

/* ---------- Flying fly ---------- */
.flyer {
  position: fixed; top: 0; left: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  z-index: 40; cursor: pointer; will-change: transform;
  filter: drop-shadow(0 0 10px rgba(110,255,170,.7)) drop-shadow(0 18px 12px rgba(0,0,0,.6));
}
.flyer svg { width: 100%; height: 100%; overflow: visible; }
.flyer .f-wing-l, .flyer .f-wing-r { transform-box: view-box; transform-origin: 627px 520px; }
.flyer:not(.landed) .f-wing-l { animation: flapL .05s linear infinite alternate; }
.flyer:not(.landed) .f-wing-r { animation: flapR .05s linear infinite alternate; }
.flyer.landed .f-wing-l { transform: rotate(-4deg); }
.flyer.landed .f-wing-r { transform: rotate(4deg); }
.flyer.grooming .f-body { animation: groom .25s ease-in-out infinite alternate; transform-box: view-box; transform-origin: 627px 600px; }
@keyframes flapL { from { transform: rotate(18deg) scale(1); opacity: 1; } to { transform: rotate(-26deg) scale(.82); opacity: .45; } }
@keyframes flapR { from { transform: rotate(-18deg) scale(1); opacity: 1; } to { transform: rotate(26deg) scale(.82); opacity: .45; } }
@keyframes groom { to { transform: scale(1.03, .97); } }
.fly-bubble {
  position: fixed; z-index: 41; pointer-events: none; font-family: var(--mono); font-size: 12px; color: var(--lime);
  padding: 4px 9px; border-radius: 999px; background: rgba(4,6,10,.85); border: 1px solid var(--line);
  animation: bubble 1.1s ease-out forwards; white-space: nowrap;
}
@keyframes bubble { from { opacity: 0; transform: translate(-50%, 0) scale(.8); } 20% { opacity: 1; transform: translate(-50%, -14px) scale(1); } to { opacity: 0; transform: translate(-50%, -38px); } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero, .brain { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 40px; }
  .steps, .tiers { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .nav { padding: 12px 16px; gap: 10px; }
  .nav .brand { font-size: 17px; gap: 6px; }
  .fly-icon { width: 28px; height: 28px; }
  .nav .btn-sm { padding: 8px 12px; font-size: 13px; }
  .nav-get { display: none; }
  h1 { font-size: clamp(36px, 11vw, 88px); }
  h2 { font-size: clamp(28px, 8.5vw, 56px); }
  .steps, .tiers, .tier-pick { grid-template-columns: 1fr; }
  .float-chip { display: none; }
  .hero-stats { gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
