:root {
  --bg: #070b08;
  --bg-soft: #0b110d;
  --panel: #101913;
  --panel-2: #142019;
  --line: #253b2b;
  --text: #eff7f0;
  --text-dim: #98ab9d;
  --green-soft: #b2ffba;
  --green: #3efa52;
  --green-deep: #20b839;
  --grad: linear-gradient(120deg, var(--green-deep), var(--green));
  --ink: #070b08;
  --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;
}

a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); }
.icon-x { width: 18px; height: 18px; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  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(7, 11, 8, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__mark { width: 26px; height: 26px; display: block; }
.nav__mark svg { width: 100%; height: 100%; }
.nav__word { font-weight: 700; font-size: 18px; letter-spacing: 0.5px; }

.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: 12px; }

.chain-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 12px; color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px;
}
.chain-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(62,250,82,0.6); }
@media (max-width: 640px) { .chain-pill { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 10px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease;
  cursor: pointer;
}
.btn--buy { background: var(--grad); color: var(--ink); box-shadow: 0 10px 26px -10px rgba(62,250,82,0.4); }
.btn--ghost { border-color: var(--line); color: var(--text); background: var(--panel); }
.btn--dark { background: var(--panel); color: #fff; border-color: var(--line); }
.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn:hover { transform: translateY(-2px); }
.btn--center { display: flex; justify-content: center; width: fit-content; margin: 48px auto 0; }

/* ---------- reveal ---------- */
.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.55s; }
@keyframes revealIn { to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- hero ---------- */
.hero {
  padding: 96px clamp(20px, 6vw, 90px) 80px;
  background:
    radial-gradient(ellipse 60% 50% at 12% 0%, rgba(32,184,57,0.2), transparent 60%),
    radial-gradient(ellipse 60% 50% at 88% 20%, rgba(62,250,82,0.1), transparent 60%),
    var(--bg);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__content { max-width: 700px; }

.hero__eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-bottom: 22px;
}

.hero__title {
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.06;
  margin-bottom: 26px;
}
.grad-a { color: var(--green-soft); }
.grad-b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero__lede { font-size: clamp(15px, 1.6vw, 18px); color: var(--text-dim); max-width: 600px; margin-bottom: 16px; }

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 16px; }
.hero__note { font-family: var(--mono); font-size: 12.5px; color: #829588; }

/* ---------- hero 3d scene ---------- */
.hero-scene {
  position: relative;
  min-height: 420px;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, rgba(32,184,57,0.25), rgba(7,11,8,0.9) 72%);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.85);
}
.hero-scene canvas { display: block; width: 100%; height: 100%; }
.hero-scene__tag {
  position: absolute; left: 16px; bottom: 14px;
  font-size: 10px; letter-spacing: 1px; color: var(--text-dim);
  background: rgba(7,11,8,0.55); border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 999px;
  pointer-events: none;
}
@media (max-width: 980px) { .hero-scene { min-height: 320px; } }

/* ---------- badge (reused by preview labels) ---------- */
.badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: 1px; font-weight: 700;
  color: var(--ink); background: var(--green);
  padding: 3px 8px; border-radius: 999px;
}

/* ---------- custom cursor ---------- */
@media (pointer: fine) {
  body, a, button, input, select, textarea, .mkt-pill, .market-card, .logo-drop { cursor: none; }
}
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot { width: 7px; height: 7px; background: #fff; }
.cursor-ring {
  width: 32px; height: 32px; border: 1.5px solid #fff;
  opacity: 0.75;
  transition: width 0.22s ease, height 0.22s ease, opacity 0.22s ease;
}
.cursor-ring.is-hover { width: 58px; height: 58px; opacity: 1; }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- wallet toast ---------- */
.wallet-toast {
  position: fixed; top: 74px; right: 20px; z-index: 300;
  max-width: 300px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.5; color: var(--text);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.8);
  opacity: 0; transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.wallet-toast.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- stats ---------- */
.stats { padding: 0 clamp(20px, 6vw, 90px) 0; background: var(--bg); border-top: 1px solid var(--line); }

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 32px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat__label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; color: var(--text-dim); margin-bottom: 12px; }
.stat__num { display: block; font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.stat__foot { font-family: var(--mono); font-size: 11.5px; color: #829588; }
@media (max-width: 860px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } .stat { border-bottom: 1px solid var(--line); } }

/* ---------- markets preview ---------- */
.markets-preview { padding: 30px 0 44px; }
.markets-preview__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.eyebrow-inline { font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; color: var(--text-dim); }
.see-all { font-family: var(--mono); font-size: 13px; color: var(--green); }
.see-all:hover { text-decoration: underline; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.mkt-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px 8px 8px;
}
.mkt-pill__icon {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
}
.mkt-pill--more { color: var(--text-dim); padding: 8px 14px; }
.mkt-pill--more:hover { color: var(--text); border-color: var(--green); }

.markets-note { color: var(--text-dim); font-size: 14px; max-width: 720px; }

/* ---------- markets full grid ---------- */
.markets-full { padding: 110px clamp(20px, 6vw, 90px); background: var(--bg-soft); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--green); display: block; margin-bottom: 14px; }
.eyebrow--light { color: var(--ink); opacity: 0.6; }
.section-title { font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -1px; line-height: 1.12; margin-bottom: 20px; max-width: 760px; }
.section-title--light { color: var(--ink); }
.section-lede { color: var(--text-dim); font-size: 16px; max-width: 680px; margin-bottom: 42px; }

.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.market-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.market-card:hover { transform: translateY(-3px); border-color: var(--green); }
.market-card__icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 13px;
}
.market-card__name { flex: 1; font-size: 13.5px; font-weight: 600; }
.market-card__code { font-size: 11px; color: var(--text-dim); }

/* ---------- how it works (phase grid) ---------- */
.how { padding: 100px clamp(20px, 6vw, 90px) 120px; background: var(--grad); color: var(--ink); }
.phase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.phase {
  background: rgba(7, 11, 8, 0.1);
  border: 1px solid rgba(7, 11, 8, 0.2);
  border-radius: 14px;
  padding: 26px 24px;
  transition: transform 0.25s ease, background 0.25s ease;
}
.phase:hover { background: rgba(7, 11, 8, 0.16); transform: translateY(-6px); }
.phase__tag {
  display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 1px;
  background: var(--ink); color: var(--green);
  padding: 5px 10px; border-radius: 6px; margin-bottom: 16px;
}
.phase h3 { font-size: 19px; margin-bottom: 10px; color: var(--ink); }
.phase p { font-size: 14px; color: rgba(7,11,8,0.85); line-height: 1.6; }

/* ---------- keepers / docs ---------- */
.keepers, .docs { padding: 110px clamp(20px, 6vw, 90px); background: var(--bg); }
.docs { background: var(--bg-soft); }
.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 4px; }
.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: 110px clamp(20px, 6vw, 90px); text-align: center; background: var(--bg-soft); }
.section-label { font-family: var(--mono); font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; letter-spacing: 1px; margin-bottom: 44px; }
.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(--green); }
.stat-card__num { display: block; font-family: var(--mono); font-size: clamp(15px, 2vw, 22px); font-weight: 700; color: var(--green-soft); 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(--green); }

/* ---------- howto ---------- */
.howto { padding: 110px clamp(20px, 6vw, 90px); text-align: center; background: var(--bg); }
.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(--green); font-size: 13px; font-weight: 700; }
.step h3 { margin: 12px 0 8px; font-size: 17px; }
.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%, #102b17 0%, var(--bg) 65%);
  border-top: 1px solid var(--line);
}
.join__inner { max-width: 680px; margin: 0 auto; }
.join__title { font-size: clamp(32px, 5vw, 52px); font-weight: 700; letter-spacing: -1px; margin-bottom: 34px; }
.join__title em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; 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: 11.5px; color: #829588; line-height: 1.8; }

/* ---------- launch modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(3,4,8,0.72);
  backdrop-filter: blur(4px);
  padding: 24px;
}
.modal-overlay[hidden] { display: none; }

.modal {
  position: relative;
  width: 100%; max-width: 440px;
  max-height: 90vh; overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 28px;
}
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text-dim);
  cursor: pointer; font-size: 13px;
}
.modal__close:hover { color: var(--text); border-color: var(--green); }
.modal__title { font-size: 22px; font-weight: 700; margin: 10px 0 8px; }
.modal__sub { color: var(--text-dim); font-size: 12.5px; line-height: 1.6; margin-bottom: 22px; }

.form-row--logo { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.logo-drop {
  flex-shrink: 0; width: 60px; height: 60px; border-radius: 14px;
  border: 1px dashed var(--line); background: var(--panel-2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.logo-drop:hover { border-color: var(--green); }
.logo-drop__placeholder { font-family: var(--mono); font-size: 10px; color: var(--text-dim); text-align: center; line-height: 1.4; }
.logo-drop__img { width: 100%; height: 100%; object-fit: cover; }
.form-row__hint { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--text-dim); }
.form-row__hint strong { color: var(--text); font-size: 13.5px; }

.field { display: block; margin-bottom: 16px; font-size: 12.5px; color: var(--text-dim); }
.field span { display: block; margin-bottom: 6px; font-family: var(--mono); letter-spacing: 0.5px; }
.field i { font-style: normal; opacity: 0.7; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 13px; color: var(--text); font-family: var(--sans); font-size: 14px;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); }

.wallet-status {
  font-family: var(--mono); font-size: 11.5px; color: var(--text-dim);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 18px;
}
.wallet-status.is-connected { color: var(--green); border-color: rgba(62,250,82,0.35); }

.btn--full { width: 100%; }
.btn--connected { background: var(--panel-2); color: var(--green); border: 1px solid var(--green); box-shadow: none; }

.result-card { display: flex; align-items: center; gap: 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 18px; }
.result-card__logo {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  overflow: hidden; font-weight: 700; color: #fff; font-size: 20px;
}
.result-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.result-card__body h3 { font-size: 17px; margin-bottom: 4px; }
.result-card__ticker { color: var(--text-dim); font-size: 12.5px; }
.result-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.result-row:last-of-type { border-bottom: none; }
.result-row span:first-child { color: var(--text-dim); font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stat { border-right: none; }
}

/* Original company logos: preserve colors and proportions. */
.mkt-pill, .market-card { color: var(--text); text-decoration: none; }
.mkt-pill__icon { flex-shrink: 0; width: 28px; height: 28px; overflow: hidden; }
.market-card__icon { width: 42px; height: 42px; border-radius: 10px; overflow: hidden; }
.mkt-pill__icon img, .market-card__icon img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
.mkt-pill__icon img { padding: 2px; }
.market-card:focus-visible, .mkt-pill:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.market-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* Supplied CRX brand artwork. Frame the mark without altering the original file. */
.nav__mark { position: relative; width: 42px; height: 46px; overflow: hidden; flex-shrink: 0; mix-blend-mode: screen; }
.nav__mark img { position: absolute; display: block; width: 163%; height: auto; max-width: none; left: -29.8%; top: -18.7%; }
.nav__word { font-size: 21px; }

/* Transparent logo uses its own alpha channel. */
.nav__mark { width: 46px; height: 46px; mix-blend-mode: normal; overflow: visible; }
.nav__mark img { position: static; width: 100%; height: 100%; object-fit: contain; }

/* CRE wordmark includes its lettering and corner frame. */
.nav__mark { width: 96px; height: 64px; }
.nav__mark img { object-fit: contain; }
@media(max-width:640px) { .nav__mark { width: 78px; height: 52px; } }
