:root {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --panel: #101010;
  --panel-2: #141414;
  --line: #262626;
  --text: #f5f5f0;
  --text-dim: #8f8f8a;
  --accent: #c6ff3d;
  --accent-bright: #ddff7a;
  --accent-ink: #05100a;
  --cyan: #3de0ff;
  --danger: #ff5c4d;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'Space Grotesk', ui-sans-serif, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.icon-x { width: 18px; height: 18px; }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }

/* ---------- intro ---------- */
body.no-scroll { overflow: hidden; height: 100%; }

.intro {
  position: fixed; inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.6s ease;
}
.intro--hidden { opacity: 0; pointer-events: none; }

.intro__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.15) brightness(0.6); }
.intro__overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 55%, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.85) 75%);
}

.intro__skip {
  position: absolute; top: 24px; right: 24px; z-index: 2;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.intro__skip:hover { border-color: var(--accent); }

.intro__center { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.intro__logo {
  width: clamp(160px, 22vw, 260px);
  margin-bottom: 32px;
  filter: drop-shadow(0 0 28px rgba(198,255,61,0.5));
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 56px);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__brand { display: flex; align-items: center; }
.nav__mark { height: 22px; width: auto; }

.nav__links { display: flex; align-items: center; gap: 28px; font-family: var(--mono); font-size: 13px; color: var(--text-dim); }
.nav__links a:hover { color: var(--text); }
@media (max-width: 780px) { .nav__links { display: none; } }

.nav__cta { display: flex; align-items: center; gap: 10px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.pill--buy { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pill--x { padding: 9px 12px; color: var(--text-dim); }
.pill:hover { transform: translateY(-1px); }
.pill--x:hover { color: var(--text); border-color: var(--cyan); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  border-radius: 10px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.btn--buy { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 26px -10px rgba(198,255,61,0.5); }
.btn--ghost { border-color: var(--line); color: var(--text); background: var(--panel); }
.btn--dark { background: var(--panel); color: #fff; border-color: var(--line); }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--center { display: flex; justify-content: center; width: fit-content; margin: 48px auto 0; }
.btn--full { width: 100%; margin-top: 18px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 110px clamp(20px, 6vw, 90px) 60px;
  background: var(--bg);
}

.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.15) brightness(0.75); }
.hero__grain {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  mix-blend-mode: overlay;
  opacity: 0.55;
  pointer-events: none;
}
.hero__video-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, #000 0%, rgba(0,0,0,0.7) 38%, rgba(0,0,0,0.35) 62%, rgba(0,0,0,0.75) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 30%, rgba(0,0,0,0.85) 100%);
}

.hero__grid-wrap {
  position: relative; z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
}
@media (max-width: 980px) { .hero__grid-wrap { grid-template-columns: 1fr; } }

.hero__content { max-width: 620px; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(198,255,61,0.6); }

.hero__title {
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.06;
  margin-bottom: 22px;
  color: var(--text);
}
.hero__title em { color: var(--accent); font-style: normal; }

.hero__tagline { font-size: clamp(15px, 1.6vw, 18px); color: var(--text-dim); max-width: 520px; margin-bottom: 34px; }

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- preview card ---------- */
.preview-card {
  background: rgba(16,16,16,0.82);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  backdrop-filter: blur(6px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8);
}
.preview-card__head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--text);
  margin-bottom: 18px;
}
.badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: 1px; font-weight: 700;
  color: var(--accent-ink); background: var(--accent);
  padding: 3px 8px; border-radius: 999px;
}
.preview-card__row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.preview-card__label { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--text-dim); }
.preview-card__value { font-size: 14px; font-weight: 600; }

.route-line { display: flex; align-items: center; justify-content: space-between; padding: 18px 6px; }
.route-line::before, .route-line::after { content: ''; }
.route-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(198,255,61,0.6); position: relative; }
.route-line { position: relative; }
.route-line::before {
  position: absolute; left: 6px; right: 6px; top: 50%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
  content: '';
}

.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.preview-stat { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.preview-stat__label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 6px; }
.preview-stat__num { font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--text); }

.scrollcue { position: absolute; bottom: 34px; left: clamp(20px, 6vw, 90px); z-index: 2; }
.scrollcue span {
  display: block; width: 1px; height: 46px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: scrollmove 1.8s ease-in-out infinite;
}
@keyframes scrollmove { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(10px); opacity: 0.4; } }

/* ---------- reveal-in (hero) ---------- */
.reveal-in { opacity: 0; transform: translateY(16px); animation: revealIn 0.7s ease forwards; }
.reveal-in--1 { animation-delay: 0.05s; }
.reveal-in--2 { animation-delay: 0.15s; }
.reveal-in--3 { animation-delay: 0.28s; }
.reveal-in--4 { animation-delay: 0.4s; }
.reveal-in--5 { animation-delay: 0.6s; }
@keyframes revealIn { to { opacity: 1; transform: translateY(0); } }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- section shared ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  display: block;
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--accent-ink); opacity: 0.6; }

.section-title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.12;
  margin-bottom: 22px;
  max-width: 760px;
  color: var(--text);
}
.section-title--light { color: var(--accent-ink); }

.section-label {
  font-family: var(--mono);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 44px;
  color: var(--text);
}

.section-lede { color: var(--text-dim); font-size: 17px; max-width: 620px; margin-bottom: 48px; }
.section-lede--light { color: rgba(5,16,10,0.72); }

.problem__note { margin-top: 30px; font-family: var(--mono); font-size: 12px; color: #4a4a45; }

/* ---------- terminal ---------- */
.terminal { padding: 120px clamp(20px, 6vw, 90px); background: var(--bg); }

.terminal-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 22px; }
@media (max-width: 860px) { .terminal-grid { grid-template-columns: 1fr; } }

.terminal-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

.terminal-panel__label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; color: var(--text-dim); margin-bottom: 10px; }
.terminal-field {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 18px;
  margin-bottom: 8px;
}
.terminal-field--dark { background: #0a0a0a; display: flex; flex-direction: column; gap: 6px; }
.terminal-field__tag { font-family: var(--mono); font-size: 11px; color: var(--text-dim); margin-bottom: 18px; }
.terminal-arrow { text-align: center; color: var(--accent); font-size: 18px; margin: 6px 0 18px; }

.terminal-panel--table { display: flex; flex-direction: column; }
.terminal-table__head {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 17px; margin-bottom: 18px;
}
.terminal-table__chain { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; color: var(--cyan); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.terminal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.terminal-table th { text-align: left; font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; color: var(--text-dim); font-weight: 500; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.terminal-table td { padding: 14px 0; border-bottom: 1px solid var(--line); }
.terminal-table tr:last-child td { border-bottom: none; }

.tag { font-family: var(--mono); font-size: 11px; padding: 4px 10px; border-radius: 999px; display: inline-block; }
.tag--up { background: rgba(198,255,61,0.12); color: var(--accent); }
.tag--down { background: rgba(255,92,77,0.12); color: var(--danger); }
.tag--flat { background: rgba(255,255,255,0.06); color: var(--text-dim); }
.tag--spike { background: rgba(61,224,255,0.12); color: var(--cyan); }

/* ---------- jagged divider ---------- */
.jagged { display: block; width: 100%; height: 90px; margin-bottom: -1px; }

/* ---------- vision ---------- */
.vision { padding: 100px clamp(20px, 6vw, 90px) 120px; background: var(--accent); color: var(--accent-ink); }

.phase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }

.phase {
  background: rgba(5, 16, 10, 0.06);
  border: 1px solid rgba(5, 16, 10, 0.18);
  border-radius: 14px;
  padding: 26px 24px;
  transition: transform 0.25s ease, background 0.25s ease;
}
.phase:hover { background: rgba(5, 16, 10, 0.1); transform: translateY(-6px); }
.phase__tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--accent-ink);
  color: var(--accent);
  padding: 5px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.phase h3 { font-size: 19px; margin-bottom: 10px; color: var(--accent-ink); }
.phase p { font-size: 14px; color: #17300f; line-height: 1.6; }

/* ---------- docs ---------- */
.docs { padding: 120px clamp(20px, 6vw, 90px); background: var(--bg-soft); }
.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 10px; }
.docs-grid p { color: var(--text-dim); font-size: 15px; line-height: 1.7; }
@media (max-width: 860px) { .docs-grid { grid-template-columns: 1fr; } }

/* ---------- tokenomics ---------- */
.tokenomics { padding: 120px clamp(20px, 6vw, 90px); text-align: center; background: var(--bg); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 18px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.stat-card:hover { transform: translateY(-6px) scale(1.02); border-color: var(--cyan); }
.stat-card__num {
  display: block;
  font-family: var(--mono);
  font-size: clamp(15px, 2vw, 22px);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  white-space: nowrap;
}
.stat-card__label { font-size: 13px; color: var(--text-dim); }

.tokenomics__ca { margin-top: 30px; font-family: var(--mono); font-size: 13px; color: var(--text-dim); }
.tokenomics__ca span { color: var(--cyan); }

/* ---------- howto ---------- */
.howto { padding: 120px clamp(20px, 6vw, 90px); text-align: center; background: var(--bg-soft); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; }
.step__num { font-family: var(--mono); color: var(--cyan); font-size: 13px; font-weight: 700; }
.step h3 { margin: 12px 0 8px; font-size: 17px; color: var(--text); }
.step p { color: var(--text-dim); font-size: 14px; line-height: 1.6; }

/* ---------- join ---------- */
.join {
  padding: 130px clamp(20px, 6vw, 90px);
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, #0c1a10 0%, var(--bg) 65%);
  border-top: 1px solid var(--line);
}
.join__inner { max-width: 640px; margin: 0 auto; }
.join__title { font-size: clamp(32px, 5vw, 52px); font-weight: 700; letter-spacing: -1px; margin-bottom: 34px; color: var(--text); }
.join__title em { color: var(--accent); font-style: normal; }
.join__links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.join__foot { font-family: var(--mono); font-size: 12px; color: #4a4a45; line-height: 1.7; }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .hero { padding-top: 100px; }
  .steps { text-align: center; }
}
