:root {
  --bg: #07090d;
  --bg2: #0c1017;
  --panel: #111722;
  --panel2: #161e2c;
  --line: #1f2a3b;
  --text: #e6edf6;
  --muted: #8794a8;
  --accent: #35e0a1;
  --accent2: #4aa8ff;
  --warn: #ffb547;
  --bad: #ff5d6c;
  --radius: 14px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.55; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* nav */
nav.top { position: sticky; top: 0; z-index: 10; background: rgba(7, 9, 13, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
nav.top .wrap { display: flex; align-items: center; gap: 24px; height: 62px; }
.logo { font-weight: 800; letter-spacing: -0.02em; font-size: 1.15rem; color: var(--text); display: flex; align-items: center; gap: 10px; }
.logo i { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: inline-block; }
nav.top .links { display: flex; gap: 20px; margin-left: auto; align-items: center; }
nav.top .links a { color: var(--muted); font-size: 0.95rem; }
nav.top .links a:hover { color: var(--text); text-decoration: none; }
nav.top .links a.btn.primary, nav.top .links a.btn.primary:hover { color: #042417; }
.ticker { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-weight: 600; cursor: pointer; font-size: 0.95rem; font-family: inherit; }
.btn:hover { border-color: #2c3b52; text-decoration: none; }
.btn.primary { background: var(--accent); color: #042417; border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.small { padding: 7px 12px; font-size: 0.85rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* hero */
.hero { padding: 90px 0 60px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -40% -10% auto; height: 600px; background: radial-gradient(closest-side, rgba(53, 224, 161, 0.16), transparent), radial-gradient(closest-side at 70% 60%, rgba(74, 168, 255, 0.14), transparent); pointer-events: none; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 18px; position: relative; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { color: var(--muted); font-size: 1.15rem; max-width: 640px; margin: 0 auto 30px; position: relative; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }
.ca { margin: 34px auto 0; display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-family: var(--mono); font-size: 0.88rem; position: relative; cursor: pointer; max-width: 100%; overflow-wrap: anywhere; }
.ca span { color: var(--muted); }

section { padding: 70px 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.02em; margin: 0 0 10px; }
section p.lead { color: var(--muted); margin: 0 0 36px; max-width: 680px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--panel2); margin-bottom: 14px; font-size: 1.15rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 28px; }
.stat { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); }
.stat b { display: block; font-size: 1.6rem; font-family: var(--mono); }
.stat span { color: var(--muted); font-size: 0.88rem; }

/* tiers */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 26px; }
.tier { padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.tier.hot { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.tier .name { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.tier .req { font-size: 1.7rem; font-weight: 800; font-family: var(--mono); margin: 6px 0 2px; }
.tier .req small { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.matrix { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.93rem; }
table.matrix th, table.matrix td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: center; }
table.matrix th:first-child, table.matrix td:first-child { text-align: left; }
table.matrix thead th { background: var(--panel2); font-weight: 600; }
table.matrix tr:last-child td { border-bottom: 0; }
.yes { color: var(--accent); }
.no { color: #39465a; }

/* tokenomics */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.bar { height: 12px; border-radius: 6px; display: flex; overflow: hidden; margin: 14px 0; }
.legend div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { padding: 7px 0 7px 22px; position: relative; color: var(--muted); }
ul.ticks li::before { content: '›'; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }

/* roadmap */
.road { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.phase .when { font-family: var(--mono); font-size: 0.8rem; color: var(--accent2); }
.phase .prog { height: 6px; background: var(--panel2); border-radius: 4px; margin: 12px 0; overflow: hidden; }
.phase .prog i { display: block; height: 100%; background: var(--accent); }

/* faq */
details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: var(--panel); margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

footer { padding: 40px 0 60px; color: var(--muted); font-size: 0.88rem; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }

/* terminal */
.term { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; padding: 18px 0 40px; }
@media (max-width: 920px) { .term { grid-template-columns: 1fr; } .hide-sm { display: none !important; } }
@media (max-width: 480px) { nav.top .wrap { gap: 12px; } nav.top .links { gap: 10px; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.panel h3 { margin: 0 0 12px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
input, select, textarea { background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 10px 12px; font-family: var(--mono); font-size: 0.9rem; min-width: 0; }
input:focus, textarea:focus, select:focus { outline: 1px solid var(--accent2); }
.grow { flex: 1; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.kv div { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.kv span { display: block; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.kv b { font-family: var(--mono); font-size: 0.95rem; overflow-wrap: anywhere; }
.flags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.flag { font-size: 0.8rem; padding: 4px 9px; border-radius: 999px; background: rgba(255, 181, 71, 0.1); color: var(--warn); border: 1px solid rgba(255, 181, 71, 0.25); }
.flag.bad { background: rgba(255, 93, 108, 0.1); color: var(--bad); border-color: rgba(255, 93, 108, 0.3); }
.pill { font-size: 0.75rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--mono); }
.pill.low { color: var(--accent); border-color: rgba(53, 224, 161, 0.4); }
.pill.medium { color: #e3d35a; border-color: rgba(227, 211, 90, 0.4); }
.pill.high, .pill.degen, .pill.pumpdump { color: var(--warn); border-color: rgba(255, 181, 71, 0.4); }
.pill.avoid { color: var(--bad); border-color: rgba(255, 93, 108, 0.4); }
.pill.golden { color: #ffd166; border-color: rgba(255, 209, 102, 0.5); }
.list { max-height: 420px; overflow-y: auto; }
.item { padding: 10px 4px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 0.9rem; cursor: pointer; }
.item:hover { background: var(--bg2); }
.item small { color: var(--muted); display: block; }
.up { color: var(--accent); }
.down { color: var(--bad); }
.muted { color: var(--muted); }
.chat { display: flex; flex-direction: column; gap: 10px; }
.chat .log { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.msg { padding: 9px 12px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); white-space: pre-wrap; font-size: 0.92rem; }
.msg.me { align-self: flex-end; background: rgba(74, 168, 255, 0.12); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--panel2); border: 1px solid var(--line); padding: 10px 16px; border-radius: 10px; display: none; z-index: 50; max-width: calc(100% - 32px); }
.disclaimer { color: var(--muted); font-size: 0.82rem; margin-top: 10px; }

a.card { color: inherit; display: block; transition: border-color .15s; }
a.card:hover { border-color: var(--accent); text-decoration: none; }
