/* ==========================================================================
   ASTEROID SHIBA mint site — "asteroid dusk" theme (deep plum-charcoal
   space, warm ember-orange asteroid accent, ice-cyan starlight).
   Distinct from the earlier deep-space navy/gold look: warm ember +
   ice cyan on plum charcoal, floating asteroid rocks, a Shiba
   astronaut mascot in glowing orbit rings, lively hover states
   everywhere.
   ========================================================================== */
:root {
  --bg: #150F1E;
  --bg2: #1E1429;
  --panel: #221829;
  --panel2: #2C1E38;
  --line: #4A3458;
  --line2: #5F4470;
  --ember: #FF8A3D;
  --ember2: #FF6B1A;
  --amber: #FFB347;
  --cyan: #7DE3FF;
  --rose: #FB7185;
  --text: #FFF6E8;
  --muted: #B8A6C9;
  --danger: #F87171;
  --display: "Baloo 2", "Noto Sans SC", sans-serif;
  --body: "Noto Sans SC", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Safety net only — the layout itself must fit (see .price, .console-head,
   grid min-width: 0 below). overflow-x: clip (not hidden) so the sticky
   header keeps working. */
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(255, 138, 61, 0.14), transparent 60%),
    radial-gradient(700px 420px at 0% 30%, rgba(125, 227, 255, 0.08), transparent 60%),
    radial-gradient(800px 600px at 50% 100%, rgba(251, 113, 133, 0.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.6;
}
a { color: var(--amber); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(21, 15, 30, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar .wrap { display: flex; align-items: center; gap: 14px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--display); font-size: 24px; letter-spacing: 1px; }
.brand img { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ember); box-shadow: 0 0 16px rgba(255, 138, 61, 0.45); }
.brand em { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: var(--muted); margin-left: -4px; }
nav { display: flex; gap: 2px; }
nav a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 6px 9px; border-radius: 8px; transition: color 0.15s, background 0.15s; }
nav a:hover { color: var(--amber); background: var(--panel); }
.sp { flex: 1; }
.lang-toggle {
  cursor: pointer; font-family: var(--mono); font-weight: 700; font-size: 13px;
  color: var(--amber); background: rgba(255, 179, 71, 0.08); border: 1px solid var(--line2);
  border-radius: 999px; padding: 7px 13px; letter-spacing: 1px; white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}
.lang-toggle:hover { border-color: var(--ember); background: rgba(255, 138, 61, 0.16); }
.btn-ember {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--body); font-weight: 700; font-size: 15px; color: #241000;
  background: linear-gradient(135deg, #FFC46B, var(--ember) 45%, var(--ember2));
  border: none; border-radius: 10px; padding: 9px 18px;
  box-shadow: 0 0 22px rgba(255, 138, 61, 0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-ember:hover:not(:disabled) { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 34px rgba(255, 138, 61, 0.65); }
.btn-ember.big { width: 100%; padding: 13px 18px; font-size: 17px; }
.btn-ember:disabled { opacity: 0.45; cursor: default; box-shadow: none; }
.btn-star {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--body); font-weight: 700; font-size: 15px; color: #04222E;
  background: linear-gradient(135deg, #C9F4FF, var(--cyan) 55%, #38BDF8);
  border: none; border-radius: 10px; padding: 9px 18px;
  box-shadow: 0 0 22px rgba(125, 227, 255, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-star:hover:not(:disabled) { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 34px rgba(125, 227, 255, 0.6); }
.btn-star.big { width: 100%; padding: 13px 18px; font-size: 17px; }
.btn-star:disabled { opacity: 0.45; cursor: default; box-shadow: none; }
.btn-ghost {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--body); font-weight: 700; font-size: 15px; color: var(--cyan);
  background: rgba(125, 227, 255, 0.1); border: 1px solid var(--cyan);
  border-radius: 10px; padding: 11px 20px;
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn-ghost:hover { transform: translateY(-2px); background: rgba(125, 227, 255, 0.2); }
.btn-o {
  cursor: pointer; font-family: var(--body); font-weight: 700; font-size: 14px;
  color: var(--amber); background: transparent; border: 1px solid var(--line2);
  border-radius: 9px; padding: 8px 14px;
  transition: border-color 0.15s, background 0.15s;
}
.btn-o:hover:not(:disabled) { border-color: var(--ember); background: rgba(255, 138, 61, 0.1); }
.btn-o:disabled { opacity: 0.4; cursor: default; }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(255, 138, 61, 0.14), rgba(255, 179, 71, 0.1), rgba(125, 227, 255, 0.1)); }
#ticker-track { display: inline-flex; white-space: nowrap; padding: 7px 0; animation: tick 36s linear infinite; font-family: var(--mono); font-size: 13px; color: var(--muted); }
#ticker-track span { padding: 0 14px; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-25%); } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 8px; overflow: hidden; }
#stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.nebula { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; pointer-events: none; animation: nebula-drift 18s ease-in-out infinite alternate; }
.nebula.n1 { width: 420px; height: 420px; top: -120px; right: -60px; background: radial-gradient(circle, rgba(255, 138, 61, 0.5), transparent 70%); }
.nebula.n2 { width: 360px; height: 360px; bottom: -140px; left: -80px; background: radial-gradient(circle, rgba(125, 227, 255, 0.32), transparent 70%); animation-delay: -9s; }
@keyframes nebula-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-24px, 18px) scale(1.08); } }
.shoot { position: absolute; width: 120px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #FFE3C7 60%, var(--ember)); transform: rotate(-32deg); opacity: 0; pointer-events: none; animation: shoot 7s linear infinite; }
.shoot.s1 { top: 12%; left: 62%; }
.shoot.s2 { top: 30%; left: 78%; animation-delay: -2.4s; animation-duration: 9s; }
.shoot.s3 { top: 6%; left: 30%; animation-delay: -4.8s; animation-duration: 11s; }
@keyframes shoot { 0%, 88% { opacity: 0; transform: rotate(-32deg) translateX(0); } 90% { opacity: 1; } 96% { opacity: 0; transform: rotate(-32deg) translateX(-260px); } 100% { opacity: 0; } }
.rock { position: absolute; pointer-events: none; background: radial-gradient(circle at 35% 30%, #6B4A3A, #2A1A22 70%); box-shadow: inset -6px -8px 14px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 138, 61, 0.18); animation: rock-float 9s ease-in-out infinite; }
.rock.r1 { width: 46px; height: 38px; top: 16%; left: 4%; border-radius: 48% 52% 55% 45% / 55% 48% 52% 45%; }
.rock.r2 { width: 28px; height: 24px; top: 58%; left: 46%; border-radius: 52% 48% 44% 56% / 48% 55% 45% 52%; animation-delay: -3s; animation-duration: 11s; }
.rock.r3 { width: 60px; height: 48px; top: 8%; right: 6%; border-radius: 45% 55% 52% 48% / 52% 44% 56% 48%; animation-delay: -6s; animation-duration: 13s; }
@keyframes rock-float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(5deg); } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 2px; color: var(--cyan); text-transform: uppercase; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
h1 { font-family: var(--display); font-size: clamp(38px, 10vw, 60px); line-height: 1.12; margin: 0 0 16px; font-weight: 800; }
.ember { color: var(--ember); text-shadow: 0 0 30px rgba(255, 138, 61, 0.55); }
.sub { color: var(--muted); font-size: 17px; margin: 0 0 18px; max-width: 520px; }
.prelaunch {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 24px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 1px; color: var(--amber);
  background: rgba(255, 179, 71, 0.09); border: 1px solid rgba(255, 179, 71, 0.4);
  border-radius: 999px; padding: 8px 16px;
}
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); animation: pulse 1.6s ease-in-out infinite; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.chip { background: rgba(34, 24, 41, 0.85); border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px; text-align: center; transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.chip:hover { transform: translateY(-3px); border-color: var(--ember); box-shadow: 0 8px 24px rgba(255, 138, 61, 0.18); }
.chip b { display: block; font-family: var(--mono); font-size: 19px; color: var(--text); }
.chip span { font-size: 12px; color: var(--muted); }
.hero-cta { display: flex; gap: 12px; margin-top: 26px; }
.hero-cta .btn-ember.big { width: auto; padding: 12px 26px; }
.hero-art-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.halo {
  position: absolute; width: 84%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.28), rgba(125, 227, 255, 0.12) 55%, transparent 72%);
  animation: halo-pulse 4s ease-in-out infinite;
}
@keyframes halo-pulse { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.07); opacity: 1; } }
.orbit { position: absolute; border-radius: 50%; pointer-events: none; }
.orbit.o1 { width: 88%; aspect-ratio: 1; border: 1px dashed rgba(255, 138, 61, 0.5); animation: spin 36s linear infinite; }
.orbit.o2 { width: 102%; aspect-ratio: 1; border: 1px solid rgba(125, 227, 255, 0.35); animation: spin-rev 52s linear infinite; }
.orbit.o3 { width: 74%; aspect-ratio: 1; border: 1px dotted rgba(255, 179, 71, 0.4); animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
.hero-art { width: 78%; border-radius: 50%; border: 2px solid var(--ember); box-shadow: 0 0 70px rgba(255, 138, 61, 0.35), 0 0 140px rgba(125, 227, 255, 0.22); animation: float 5s ease-in-out infinite; position: relative; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-caption { margin-top: 18px; font-size: 12px; letter-spacing: 3px; color: var(--muted); }
.spark { position: absolute; color: var(--amber); font-size: 20px; animation: twinkle 2.6s ease-in-out infinite; pointer-events: none; text-shadow: 0 0 12px var(--amber); }
.spark.sp1 { top: 6%; left: 8%; animation-delay: 0s; }
.spark.sp2 { top: 18%; right: 4%; font-size: 15px; color: var(--cyan); text-shadow: 0 0 12px var(--cyan); animation-delay: -0.9s; }
.spark.sp3 { bottom: 22%; left: 2%; font-size: 24px; animation-delay: -1.7s; }
.spark.sp4 { bottom: 8%; right: 12%; font-size: 13px; color: var(--rose); text-shadow: 0 0 12px var(--rose); animation-delay: -2.2s; }
@keyframes twinkle { 0%, 100% { opacity: 0.25; transform: scale(0.8) rotate(0deg); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }

/* Grid children must be allowed to shrink below their content width,
   or one long unbreakable line (e.g. the price line) stretches the
   whole grid past the viewport on phones. */
.hero-grid > *, .console-grid > *, .stats-grid > *, .feat-grid > *, .grid > *, .steps > *, .invite > *, .ct-grid > *, .chips > *, .ref-grid > *, .paper-grid > * { min-width: 0; }

/* ---------- mint console ---------- */
.console { padding: 40px 0 10px; }
.console-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(90deg, var(--panel2), rgba(255, 138, 61, 0.22)); border: 1px solid var(--line2); border-bottom: none;
  border-radius: 16px 16px 0 0; padding: 14px 20px;
}
.console-title { font-family: var(--display); font-size: clamp(17px, 5vw, 22px); letter-spacing: 1px; }
.pill { font-family: var(--mono); font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); background: var(--bg); }
.pill[data-s="live"] { color: var(--ember); border-color: var(--ember); box-shadow: 0 0 14px rgba(255, 138, 61, 0.35); animation: pulse 2s ease-in-out infinite; }
.pill[data-s="open"] { color: var(--cyan); border-color: var(--cyan); }
.pill[data-s="soon"] { color: var(--amber); border-color: var(--amber); }
.console-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--panel); border: 1px solid var(--line2); border-radius: 0 0 16px 16px;
}
.console-col { padding: 22px; }
.console-col + .console-col { border-left: 1px solid var(--line); }
.blk { margin-bottom: 22px; }
.blk:last-child { margin-bottom: 0; }
.lbl { font-size: 13px; color: var(--muted); letter-spacing: 1px; }
/* The price line wraps and scales with the screen — never nowrap, or
   it stretches the whole page past the viewport on phones. */
.price { font-family: var(--mono); font-size: clamp(15px, 4.6vw, 20px); font-weight: 700; line-height: 1.55; overflow-wrap: break-word; }
.price .arrow { color: var(--ember); }
.price small { font-size: 13px; color: var(--muted); font-family: var(--body); }
.seg { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.seg button {
  flex: 1 1 0; min-width: 34px; cursor: pointer; font-family: var(--mono); font-size: 15px; font-weight: 700;
  color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 9px 0;
  transition: transform 0.1s ease, background 0.15s ease, color 0.15s ease;
}
.seg button:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--ember); color: var(--ember); }
.seg button[aria-pressed="true"] { color: #241000; background: linear-gradient(135deg, #FFC46B, var(--ember)); border-color: var(--ember); box-shadow: 0 0 16px rgba(255, 138, 61, 0.45); }
.seg button:disabled { opacity: 0.35; cursor: default; }
.quote { display: flex; gap: 24px; margin-top: 14px; }
.quote b { display: block; font-family: var(--mono); font-size: clamp(16px, 5vw, 19px); margin-top: 2px; overflow-wrap: anywhere; }
.note { font-size: 13px; color: var(--muted); margin: 10px 0 0; word-break: break-all; }
.attr { margin-top: 14px; }
.attr input {
  display: block; width: 100%; margin-top: 6px; font-family: var(--body); font-size: 14px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; outline: none;
}
.attr input:focus { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.15); }
.flow-tabs { display: flex; gap: 10px; margin-top: 18px; }
.flow-tab {
  cursor: pointer; font-family: var(--body); font-weight: 700; font-size: 14px;
  color: var(--muted); background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 18px; transition: all 0.15s ease;
}
.flow-tab:hover { color: var(--text); border-color: var(--ember); }
.flow-tab.active { color: #241000; background: linear-gradient(135deg, #FFC46B, var(--ember)); border-color: var(--ember); box-shadow: 0 0 18px rgba(255, 138, 61, 0.35); }
.flow-panel { display: none; margin-top: 14px; }
.flow-panel.active { display: block; animation: fade-in 0.25s ease; }
.flow-panel .btn-ember.big, .flow-panel .btn-star.big { margin-top: 12px; }
.prompt-details { margin-top: 14px; }
.prompt-details summary { cursor: pointer; font-size: 14px; color: var(--cyan); }
.prompt-box {
  margin: 10px 0 0; padding: 14px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; font-family: var(--mono); font-size: 12.5px; line-height: 1.7;
  white-space: pre-wrap; word-break: break-all; color: var(--text);
}
.row { display: flex; justify-content: space-between; align-items: baseline; }
.prog-fig { font-family: var(--mono); font-size: clamp(24px, 7vw, 30px); font-weight: 700; }
.prog-fig span { font-size: 15px; color: var(--muted); }
.track { height: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; margin-top: 10px; overflow: hidden; }
.track span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ember2), var(--ember) 50%, var(--cyan)); background-size: 200% 100%; border-radius: 999px; transition: width 0.6s ease; animation: shimmer 2.4s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.cd > div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 0; text-align: center; transition: border-color 0.15s ease; }
.cd > div:hover { border-color: var(--ember); }
.cd b { display: block; font-family: var(--mono); font-size: 26px; }
.cd span { font-size: 12px; color: var(--muted); }
.cd-msg { margin-top: 12px; font-family: var(--mono); font-size: 18px; color: var(--cyan); text-align: center; }
.status { font-size: 14px; color: var(--muted); margin: 16px 0 0; min-height: 20px; }
.status[data-state="ok"] { color: var(--amber); }
.status[data-state="err"] { color: var(--danger); }

/* ---------- sections ---------- */
.sec { padding: 52px 0 10px; }
.sec-head { margin-bottom: 24px; }
.sec-head h2, .invite h2 { font-family: var(--display); font-size: 32px; font-weight: 700; margin: 0; line-height: 1.3; }
.lead { color: var(--muted); margin: 10px 0 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }

/* live stats band */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  background: linear-gradient(160deg, var(--panel2), var(--panel));
  border: 1px solid var(--line); border-radius: 16px; padding: 20px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.stat:hover { transform: translateY(-3px); border-color: var(--ember); box-shadow: 0 10px 28px rgba(255, 138, 61, 0.22); }
.stat-v { display: block; font-family: var(--mono); font-size: clamp(20px, 6vw, 26px); font-weight: 700; margin-top: 6px; color: var(--amber); }
.stat-b { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; min-height: 17px; }

/* leaderboard (prominent) */
.lb-sec { padding-top: 60px; }
.lb-tabs { display: flex; gap: 10px; margin-bottom: 14px; }
.lb-tab {
  cursor: pointer; font-family: var(--body); font-weight: 700; font-size: 15px;
  color: var(--muted); background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 22px; transition: all 0.15s ease;
}
.lb-tab:hover { color: var(--text); border-color: var(--ember); }
.lb-tab.active { color: #241000; background: linear-gradient(135deg, #FFC46B, var(--ember)); border-color: var(--ember); box-shadow: 0 0 20px rgba(255, 138, 61, 0.35); }
.lb-panel { display: none; }
.lb-panel.active { display: block; animation: fade-in 0.25s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* referral */
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ref-card { transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.ref-card:hover { transform: translateY(-4px); border-color: var(--ember); box-shadow: 0 12px 30px rgba(255, 138, 61, 0.16); }
.ref-big { font-family: var(--mono); font-size: 44px; font-weight: 700; color: var(--amber); line-height: 1.1; }
.ref-big span { font-size: 18px; color: var(--muted); }
.ref-card h3 { font-size: 17px; margin: 10px 0 8px; }
.ref-card p { font-size: 14px; color: var(--muted); margin: 0; }
.cap-box { margin-top: 14px; border-color: rgba(255, 179, 71, 0.5); background: linear-gradient(160deg, rgba(255, 179, 71, 0.08), var(--panel)); }
.cap-box h3 { font-size: 18px; margin: 0; }
.cap-box p { font-size: 14px; color: var(--muted); margin: 8px 0 0; }

/* features */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feat { transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.feat:hover { transform: translateY(-4px); border-color: var(--ember); box-shadow: 0 12px 30px rgba(255, 138, 61, 0.16); }
.feat-ico { font-size: 34px; margin-bottom: 10px; filter: drop-shadow(0 0 10px rgba(255, 138, 61, 0.4)); }
.feat h3 { font-size: 17px; margin: 0 0 8px; }
.feat p { font-size: 14px; color: var(--muted); margin: 0; }

/* how it works */
.steps { display: flex; gap: 12px; align-items: stretch; }
.step { flex: 1; text-align: center; transition: transform 0.15s ease, border-color 0.15s ease; }
.step:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: 0 12px 30px rgba(125, 227, 255, 0.14); }
.step-n {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 24px; font-weight: 700; color: #241000;
  background: linear-gradient(135deg, #FFC46B, var(--ember));
  box-shadow: 0 0 22px rgba(255, 138, 61, 0.45);
}
.step h3 { font-size: 17px; margin: 0 0 8px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; }
.step-arrow { display: flex; align-items: center; font-size: 26px; color: var(--amber); }

/* invite */
.invite { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; margin-top: 44px; }
.invite-input { display: flex; gap: 8px; margin-top: 10px; }
.invite-input input {
  flex: 1; min-width: 0; font-family: var(--mono); font-size: 14px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; outline: none;
}
.invite-input input:focus { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.15); }
.linkbox { display: flex; gap: 8px; align-items: center; margin-top: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 8px 8px 8px 12px; }
.linkbox code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12.5px; word-break: break-all; color: var(--cyan); }

/* mechanism + whitepaper */
.paper { margin-bottom: 14px; border-color: rgba(125, 227, 255, 0.4); background: linear-gradient(160deg, rgba(125, 227, 255, 0.06), var(--panel)); }
.paper h3 { font-size: 18px; margin: 0; }
.paper-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.paper-cell { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.paper-cell b { display: block; font-family: var(--mono); font-size: 17px; color: var(--amber); margin-top: 4px; overflow-wrap: anywhere; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mech { transition: transform 0.15s ease, border-color 0.15s ease; }
.mech:hover { transform: translateY(-3px); border-color: var(--ember); }
.mech .n { font-size: 13px; color: var(--cyan); margin-bottom: 8px; }
.mech h3 { font-size: 17px; margin: 0 0 8px; }
.mech p { font-size: 14px; color: var(--muted); margin: 0; }

/* leaderboard + ledger tables */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 500; padding: 6px 4px; border-bottom: 1px solid var(--line); }
td { padding: 8px 4px; border-bottom: 1px solid rgba(74, 52, 88, 0.6); }
td.r, th.r { text-align: right; font-family: var(--mono); }
td.rk { font-family: var(--mono); color: var(--muted); width: 28px; }
td a { color: var(--text); text-decoration: none; font-family: var(--mono); font-size: 13px; }
td a:hover { color: var(--amber); }
.empty { color: var(--muted); font-size: 14px; padding: 18px 0; text-align: center; }
.rl-status { font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); white-space: nowrap; }
.rl-status.paid { color: var(--cyan); border-color: var(--cyan); }
.rl-status.partial { color: var(--amber); border-color: var(--amber); }
.lb-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 12px 0 0; }

/* contracts */
.addr .a { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(74, 52, 88, 0.6); }
.addr .a:last-child { border-bottom: none; }
.addr .a a { font-family: var(--mono); font-size: 13px; color: var(--cyan); text-decoration: none; word-break: break-all; }
.pending { color: var(--muted); font-size: 14px; }
.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.ct-grid h3 { font-size: 17px; margin: 0; }
.nothave { margin-top: 14px; border-color: rgba(251, 113, 133, 0.45); background: linear-gradient(160deg, rgba(251, 113, 133, 0.07), var(--panel)); }
.nothave h3 { font-size: 18px; margin: 0; }
.nothave ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.nothave li { font-size: 14px; color: var(--muted); padding-left: 22px; position: relative; }
.nothave li::before { content: "✕"; position: absolute; left: 0; color: var(--rose); font-family: var(--mono); font-size: 13px; }

/* FAQ */
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 0 18px; transition: border-color 0.15s ease; }
.faq details:hover { border-color: var(--ember); }
.faq details[open] { border-color: var(--amber); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 15px; padding: 15px 0; }
.faq p { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.risk { margin-top: 20px; padding: 14px 18px; border: 1px solid rgba(255, 179, 71, 0.35); background: rgba(255, 179, 71, 0.06); border-radius: 12px; font-size: 14px; color: var(--amber); }

/* ---------- footer ---------- */
footer { margin-top: 56px; border-top: 1px solid var(--line); padding: 26px 0 34px; }
footer .wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
footer .brand { font-size: 20px; }
footer .brand img { width: 28px; height: 28px; }
footer span:last-child { color: var(--muted); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  nav { display: none; }
  .brand em { display: none; } /* header must fit brand + lang toggle + mint button */
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { width: 62%; }
  .chips { grid-template-columns: repeat(2, 1fr); }
  .console-grid { grid-template-columns: 1fr; }
  .console-col + .console-col { border-left: none; border-top: 1px solid var(--line); }
  .invite, .ct-grid { grid-template-columns: 1fr; }
  .stats-grid, .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .ref-grid, .paper-grid { grid-template-columns: 1fr 1fr; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); justify-content: center; }
  .nothave ul { grid-template-columns: 1fr; }
  .addr .a { grid-template-columns: 1fr auto; }
  .addr .a .lbl { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .brand { font-size: 20px; }
  .brand img { width: 30px; height: 30px; }
  .bar .wrap { gap: 10px; }
  .lang-toggle { padding: 6px 11px; font-size: 12px; }
  .bar .btn-ember { padding: 8px 13px; font-size: 14px; }
  .console-col { padding: 18px 16px; }
  .grid, .stats-grid, .feat-grid, .ref-grid, .paper-grid { grid-template-columns: 1fr; }
  .quote { flex-direction: column; gap: 8px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn-ember.big, .hero-cta .btn-ghost { text-align: center; }
  table { font-size: 13px; }
  th, td { padding: 6px 3px; }
  td a { font-size: 12px; word-break: break-all; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
