/* ============================================================
   MERIDIAN EXCHANGE — Design System
   Digital-asset exchange theme · dark navy + crypto mint
   Pure CSS · no frameworks · framework-free
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* palette */
  --clr-ink:        #04070f;   /* deepest void                 */
  --clr-bg:         #070e1d;   /* page ground                  */
  --clr-bg-2:       #0a1428;   /* alternating section ground   */
  --clr-panel:      #0d1b33;   /* raised card surface          */
  --clr-panel-2:    #12213d;   /* elevated surface             */
  --clr-line:       rgba(140, 178, 242, 0.14);   /* hairline   */
  --clr-line-2:     rgba(140, 178, 242, 0.30);   /* stronger    */
  --clr-text:       #eaf1fd;   /* primary text                 */
  --clr-muted:      #93a5cc;   /* secondary text               */
  --clr-faint:      #5d6e95;   /* tertiary text                */
  --clr-brand:      #3df2b4;   /* crypto mint — primary        */
  --clr-brand-deep: #16c98d;   /* mint hover / press           */
  --clr-brand-ink:  #04231a;   /* text on mint                 */
  --clr-blue:       #5b93ff;   /* electric blue — secondary    */
  --clr-blue-deep:  #2f63e0;   /* blue press                   */
  --clr-gold:       #ffc857;   /* amber — token / highlights   */
  --clr-red:        #ff5c77;   /* negative movement / error    */
  --clr-glow:       rgba(61, 242, 180, 0.35);

  /* type */
  --font-display: 'Space Grotesk', system-ui, 'Segoe UI', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* layout */
  --container: 1200px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--clr-brand); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
  color: var(--clr-text);
}
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--clr-brand); color: var(--clr-brand-ink); }
:focus-visible { outline: 2px solid var(--clr-brand); outline-offset: 3px; border-radius: 4px; }

/* subtle scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--clr-ink); }
::-webkit-scrollbar-thumb { background: #1c2c4d; border-radius: 8px; border: 2px solid var(--clr-ink); }
::-webkit-scrollbar-thumb:hover { background: #274069; }

/* ---------- Layout primitives ---------- */
.wrap { width: min(var(--container), 92%); margin-inline: auto; }
.section { position: relative; padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--clr-bg-2); }
.section--line { border-block: 1px solid var(--clr-line); }
.section--ink { background: var(--clr-ink); }

/* decorative chart-grid background */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(140, 178, 242, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 178, 242, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-art { position: relative; }
.split-art img.art {
  width: 100%; height: auto; border: 1px solid var(--clr-line-2);
  border-radius: 18px; box-shadow: 0 40px 90px -45px rgba(2, 6, 18, 0.95);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.95rem 1.7rem; border-radius: 12px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem; line-height: 1;
  color: var(--clr-text); text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary {
  background: linear-gradient(135deg, var(--clr-brand), var(--clr-brand-deep));
  color: var(--clr-brand-ink);
  box-shadow: 0 14px 34px -14px var(--clr-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -16px var(--clr-glow); }
.btn--ghost { background: transparent; border-color: var(--clr-line-2); color: var(--clr-text); }
.btn--ghost:hover { border-color: var(--clr-brand); color: var(--clr-brand); background: rgba(61, 242, 180, 0.06); }
.btn--gold {
  background: linear-gradient(135deg, var(--clr-gold), #f3a51f);
  color: #1a1204;
  box-shadow: 0 14px 30px -14px rgba(255, 200, 87, 0.45);
}
.btn--gold:hover { transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.05rem; }
.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.9rem; border-radius: 10px; }

/* ---------- Section headers ---------- */
.sec-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--clr-brand);
}
.kicker::before { content: "//"; color: var(--clr-faint); }
.sec-head--center .kicker::after { content: "//"; color: var(--clr-faint); }
.sec-title { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.08; margin: 0.65rem 0 1rem; }
.sec-lede { color: var(--clr-muted); font-size: 1.05rem; max-width: 60ch; margin: 0; }
.grad-text {
  background: linear-gradient(100deg, var(--clr-brand), #b9f6ff 55%, var(--clr-blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  border: 1px solid var(--clr-line-2); color: var(--clr-muted);
  background: rgba(140, 178, 242, 0.05);
}
.pill--brand { color: var(--clr-brand); border-color: rgba(61, 242, 180, 0.4); background: rgba(61, 242, 180, 0.08); }
.pill--gold  { color: var(--clr-gold);  border-color: rgba(255, 200, 87, 0.4); background: rgba(255, 200, 87, 0.08); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--clr-brand); animation: blink 1.4s steps(1) infinite; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 14, 29, 0.85);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--clr-line);
}
.nav-inner {
  width: min(var(--container), 92%); margin-inline: auto;
  height: 76px; display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-id { display: grid; gap: 0.1rem; line-height: 1; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  letter-spacing: -0.02em; color: var(--clr-text);
}
.brand-name b { color: var(--clr-brand); font-weight: 700; }
.brand-tag {
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--clr-faint);
}
.nav-links { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; list-style: none; }
.nav-links li { margin: 0; }
.nav-link {
  display: inline-block; padding: 0.5rem 0.8rem;
  font-family: var(--font-body); font-weight: 500; font-size: 0.95rem;
  color: var(--clr-muted); text-decoration: none; border-radius: 9px;
  transition: color 0.22s, background 0.22s;
}
.nav-link:hover { color: var(--clr-text); background: rgba(61, 242, 180, 0.08); }
.nav-link.active { color: var(--clr-brand); background: rgba(61, 242, 180, 0.1); }
.nav-cta { margin-left: 0.75rem; }
.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; padding: 0; flex: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: transparent; border: 1px solid var(--clr-line-2); border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--clr-text); transition: transform 0.3s var(--ease), opacity 0.25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(900px 520px at 82% -10%, rgba(61, 242, 180, 0.14), transparent 60%),
    radial-gradient(760px 500px at 6% 110%, rgba(91, 147, 255, 0.16), transparent 60%),
    var(--clr-bg);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero h1 { font-size: clamp(2.35rem, 5.4vw, 4.2rem); line-height: 1.02; letter-spacing: -0.03em; margin: 1.1rem 0 1.2rem; }
.hero-lede { color: var(--clr-muted); font-size: clamp(1rem, 1.6vw, 1.12rem); max-width: 52ch; margin: 0; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-note {
  display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap;
  margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px dashed var(--clr-line);
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--clr-faint);
}
.hero-note .hk { color: var(--clr-text); }
.hero-note .sep { opacity: 0.4; }

/* trading monitor */
.hero-panel { position: relative; }
.monitor {
  position: relative; border: 1px solid var(--clr-line-2); border-radius: 18px;
  background: var(--clr-panel); overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(2, 6, 18, 0.95), 0 0 70px -24px var(--clr-glow);
}
.monitor-bar {
  display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 1rem;
  background: var(--clr-panel-2); border-bottom: 1px solid var(--clr-line);
}
.m-dot { width: 10px; height: 10px; border-radius: 50%; }
.m-dot:nth-child(1) { background: var(--clr-red); }
.m-dot:nth-child(2) { background: var(--clr-gold); }
.m-dot:nth-child(3) { background: var(--clr-brand); }
.m-title { margin-left: auto; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clr-faint); }
.hero-bg { position: relative; height: 400px; background: var(--clr-ink); }
.hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.4s ease;
}
.hero-bg img.active { opacity: 1; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, transparent 55%, rgba(13, 27, 51, 0.7)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px);
}
.monitor-tag {
  position: absolute; left: 1.1rem; bottom: 1.1rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--clr-text);
  padding: 0.5rem 0.9rem; border-radius: 999px;
  background: rgba(6, 11, 24, 0.72); border: 1px solid var(--clr-line-2);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.float-chip {
  position: absolute; right: -1.2rem; top: -1.4rem; z-index: 3;
  display: grid; gap: 0.15rem; padding: 1rem 1.25rem; border-radius: 14px;
  background: rgba(10, 20, 40, 0.9); border: 1px solid rgba(61, 242, 180, 0.4);
  box-shadow: 0 22px 50px -22px rgba(2, 6, 18, 0.95), 0 0 34px -14px var(--clr-glow);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: floatY 6s ease-in-out infinite;
}
.float-chip .fc-label { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clr-faint); }
.float-chip .fc-num { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--clr-brand); }

/* ---------- Ticker tape ---------- */
.ticker { position: relative; overflow: hidden; border-block: 1px solid var(--clr-line); background: var(--clr-panel); }
.ticker-track { display: flex; width: max-content; animation: ticker 34s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tic-item {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1.6rem; white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.85rem;
  border-right: 1px solid var(--clr-line);
}
.tic-sym { color: var(--clr-faint); }
.tic-pair { color: var(--clr-text); font-weight: 600; }
.tic-price { color: var(--clr-muted); }
.tic-chg.up { color: var(--clr-brand); }
.tic-chg.down { color: var(--clr-red); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stat {
  display: flex; align-items: center; gap: 1rem;
  background: var(--clr-panel); border: 1px solid var(--clr-line);
  border-radius: 14px; padding: 1.45rem 1.5rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.stat:hover { transform: translateY(-4px); border-color: rgba(61, 242, 180, 0.35); }
.stat-icon {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--clr-line-2); border-radius: 13px;
  background: rgba(61, 242, 180, 0.07);
}
.stat-icon img { width: 30px; height: 30px; object-fit: contain; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: 1.65rem; letter-spacing: -0.02em; line-height: 1.1; color: var(--clr-text); }
.stat-num em { font-style: normal; color: var(--clr-brand); }
.stat-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clr-faint); margin-top: 0.15rem; }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--clr-panel);
  border: 1px solid var(--clr-line); border-radius: 16px; padding: 1.9rem;
  overflow: hidden; transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--clr-brand), transparent 70%);
  opacity: 0; transition: opacity 0.35s;
}
.card:hover {
  transform: translateY(-6px); border-color: rgba(61, 242, 180, 0.35);
  box-shadow: 0 26px 60px -32px rgba(2, 6, 18, 0.95), 0 0 44px -20px var(--clr-glow);
}
.card:hover::before { opacity: 1; }
.icon-badge {
  width: 56px; height: 56px; display: grid; place-items: center;
  border: 1px solid var(--clr-line-2); border-radius: 14px;
  background: rgba(61, 242, 180, 0.08); margin-bottom: 1.25rem;
}
.icon-badge img { width: 34px; height: 34px; object-fit: contain; }
.card-title { font-size: 1.18rem; margin-bottom: 0.55rem; }
.card-text { color: var(--clr-muted); font-size: 0.96rem; line-height: 1.65; margin: 0; }
.card-link {
  display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 1.15rem;
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600;
  color: var(--clr-brand); text-decoration: none;
}
.card-link svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.card-link:hover svg { transform: translateX(4px); }

/* ---------- Terminal ---------- */
.terminal {
  font-family: var(--font-mono);
  background: #060b18; border: 1px solid var(--clr-line-2); border-radius: 16px;
  overflow: hidden; box-shadow: 0 34px 80px -40px rgba(2, 6, 18, 0.95);
}
.term-bar {
  display: flex; align-items: center; gap: 0.4rem; padding: 0.65rem 1rem;
  background: var(--clr-panel-2); border-bottom: 1px solid var(--clr-line);
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-dot:nth-child(1) { background: var(--clr-red); }
.term-dot:nth-child(2) { background: var(--clr-gold); }
.term-dot:nth-child(3) { background: var(--clr-brand); }
.term-title { margin-left: auto; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clr-faint); }
.term-body { padding: 1.3rem 1.4rem; min-height: 240px; font-size: 0.86rem; line-height: 2; color: var(--clr-muted); }
.term-body .t-cmd { color: var(--clr-text); }
.term-body .t-ok  { color: var(--clr-brand); }
.term-body .t-blue{ color: var(--clr-blue); }
.term-body .t-dim { color: var(--clr-faint); }
.cursor { display: inline-block; width: 9px; height: 1.05em; background: var(--clr-brand); vertical-align: text-bottom; animation: blink 1.1s steps(1) infinite; }

/* ---------- Token panel ---------- */
.token-panel {
  position: relative; overflow: hidden;
  border: 1px solid var(--clr-line-2); border-radius: 22px;
  background: linear-gradient(180deg, var(--clr-panel), var(--clr-bg-2));
  padding: clamp(1.6rem, 3.5vw, 2.8rem);
}
.token-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px 320px at 92% 0%, rgba(255, 200, 87, 0.1), transparent 62%),
              radial-gradient(520px 320px at 0% 100%, rgba(91, 147, 255, 0.1), transparent 60%);
}
.token-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.token-panel h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.token-panel p { color: var(--clr-muted); }
.mer-coin { width: 110px; height: 110px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin: 1.6rem 0; }
.cd-tile { background: var(--clr-panel-2); border: 1px solid var(--clr-line); border-radius: 12px; padding: 1rem 0.4rem; text-align: center; }
.cd-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1; color: var(--clr-text); }
.cd-label { display: block; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clr-faint); margin-top: 0.45rem; }
.progress { height: 12px; border-radius: 999px; background: var(--clr-panel-2); border: 1px solid var(--clr-line); overflow: hidden; }
.progress-fill { height: 100%; width: 68%; border-radius: 999px; background: linear-gradient(90deg, var(--clr-brand), var(--clr-blue)); box-shadow: 0 0 18px -2px var(--clr-glow); }
.progress-meta { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.8rem; color: var(--clr-muted); margin: 0.6rem 0 1.2rem; }
.progress-meta b { color: var(--clr-brand); font-weight: 600; }
.pay-row { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.3rem; }
.pay-chip { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--clr-muted); }
.pay-icon { width: 60px; height: 42px; object-fit: contain; background: #fff; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--clr-line); }

/* token distribution bars */
.bar-row { display: grid; grid-template-columns: 9rem 1fr 3.5rem; gap: 1rem; align-items: center; margin-bottom: 0.9rem; }
.bar-name { font-family: var(--font-mono); font-size: 0.78rem; color: var(--clr-text); }
.bar-pct { font-family: var(--font-mono); font-size: 0.8rem; text-align: right; color: var(--clr-brand); }

/* ---------- Data table ---------- */
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
.data-table th {
  text-align: left; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--clr-faint);
  padding: 0.8rem 1rem; border-bottom: 1px solid var(--clr-line-2); white-space: nowrap;
}
.data-table td { padding: 0.95rem 1rem; border-bottom: 1px solid var(--clr-line); color: var(--clr-muted); }
.data-table tr:last-child td { border-bottom: none; }
.data-table td:first-child { color: var(--clr-text); font-weight: 500; }
.data-table .pct { font-family: var(--font-mono); color: var(--clr-brand); }
.data-table .val { font-family: var(--font-mono); color: var(--clr-text); }

/* ---------- Roadmap ---------- */
.timeline { position: relative; display: grid; gap: 2.2rem; max-width: 860px; }
.timeline::before {
  content: ""; position: absolute; top: 6px; bottom: 6px; left: 11px; width: 2px;
  background: linear-gradient(180deg, var(--clr-brand), var(--clr-blue), transparent);
  opacity: 0.45;
}
.tl-item { position: relative; padding-left: 2.8rem; }
.tl-dot {
  position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--clr-bg); border: 2px solid var(--clr-brand);
  box-shadow: 0 0 0 5px rgba(61, 242, 180, 0.12), 0 0 18px -2px var(--clr-glow);
}
.tl-item.is-now .tl-dot { background: var(--clr-brand); animation: pulse 2s infinite; }
.tl-date { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clr-brand); }
.tl-title { font-size: 1.25rem; margin: 0.4rem 0 0.45rem; }
.tl-text { color: var(--clr-muted); max-width: 64ch; margin: 0; }

.roadmap-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; }
.rm-item {
  border: 1px solid var(--clr-line); border-left: 2px solid var(--clr-brand);
  border-radius: 12px; padding: 1.35rem 1.2rem; background: var(--clr-panel);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.rm-item:hover { transform: translateY(-5px); border-color: rgba(61, 242, 180, 0.4); }
.rm-q { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--clr-faint); }
.rm-item h3 { font-size: 1rem; margin: 0.45rem 0 0.35rem; }
.rm-item p { font-size: 0.82rem; line-height: 1.55; color: var(--clr-muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.9rem; max-width: 880px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--clr-line); border-radius: 14px;
  background: var(--clr-panel); overflow: hidden; transition: border-color 0.3s;
}
.faq details[open] { border-color: rgba(61, 242, 180, 0.4); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.45rem; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--clr-text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; font-family: var(--font-mono); font-weight: 500;
  font-size: 1.35rem; line-height: 1; color: var(--clr-brand);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 1.45rem 1.35rem; color: var(--clr-muted); line-height: 1.7; }
.faq-body p { margin: 0; }

/* ---------- Process steps ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.step { background: var(--clr-panel); border: 1px solid var(--clr-line); border-radius: 14px; padding: 1.7rem 1.5rem; transition: transform 0.3s var(--ease), border-color 0.3s; }
.step:hover { transform: translateY(-5px); border-color: rgba(61, 242, 180, 0.35); }
.step-num { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.16em; color: var(--clr-brand); }
.step h3 { font-size: 1.05rem; margin: 0.55rem 0 0.45rem; }
.step p { color: var(--clr-muted); font-size: 0.88rem; line-height: 1.6; margin: 0; }

/* ---------- Check lists ---------- */
.check-list { list-style: none; display: grid; gap: 0.8rem; margin-top: 1.5rem; }
.check-list li { display: flex; gap: 0.65rem; align-items: flex-start; color: var(--clr-muted); font-size: 0.98rem; }
.check-list svg { flex: none; width: 18px; height: 18px; color: var(--clr-brand); margin-top: 3px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.info-stack { display: grid; gap: 1.1rem; }
.info-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--clr-panel); border: 1px solid var(--clr-line); border-radius: 14px; padding: 1.45rem 1.5rem;
}
.info-card > svg { flex: none; width: 24px; height: 24px; color: var(--clr-brand); margin-top: 2px; }
.info-card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.info-card p { color: var(--clr-muted); font-size: 0.9rem; line-height: 1.6; margin: 0; }
.info-card a { color: var(--clr-text); text-decoration: none; }
.info-card a:hover { color: var(--clr-brand); }
.contact-form {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.15rem;
  background: var(--clr-panel); border: 1px solid var(--clr-line-2); border-radius: 18px; padding: clamp(1.5rem, 3vw, 2.4rem);
}
.field { display: grid; gap: 0.45rem; }
.field--span { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clr-faint); }
.input, .textarea {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--clr-text);
  background: var(--clr-bg-2); border: 1px solid var(--clr-line); border-radius: 11px;
  padding: 0.9rem 1rem; transition: border-color 0.25s, box-shadow 0.25s;
}
.input::placeholder, .textarea::placeholder { color: var(--clr-faint); }
.input:focus, .textarea:focus { outline: none; border-color: var(--clr-brand); box-shadow: 0 0 0 3px rgba(61, 242, 180, 0.12); }
.textarea { min-height: 140px; resize: vertical; }
.form-ok, .form-err { display: none; align-items: center; gap: 0.55rem; padding: 0.85rem 1.1rem; border-radius: 11px; font-size: 0.9rem; }
.form-ok.show, .form-err.show { display: flex; }
.form-ok { color: var(--clr-brand); background: rgba(61, 242, 180, 0.1); border: 1px solid rgba(61, 242, 180, 0.35); }
.form-err { color: var(--clr-red); background: rgba(255, 92, 119, 0.1); border: 1px solid rgba(255, 92, 119, 0.35); }
.form-note { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--clr-faint); }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(3.4rem, 6vw, 5rem) 0; border-bottom: 1px solid var(--clr-line);
  background:
    radial-gradient(760px 420px at 88% -20%, rgba(61, 242, 180, 0.12), transparent 60%),
    radial-gradient(600px 380px at 0% 120%, rgba(91, 147, 255, 0.14), transparent 60%),
    var(--clr-bg);
}
.page-hero .wrap { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); line-height: 1.05; margin: 0.7rem 0 0; }
.page-hero .lede { color: var(--clr-muted); max-width: 56ch; margin: 0.9rem 0 0; }
.crumbs { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.04em; color: var(--clr-faint); }
.crumbs a { color: var(--clr-muted); text-decoration: none; }
.crumbs a:hover { color: var(--clr-brand); }
.crumbs .sep { opacity: 0.5; }
.crumbs .cur { color: var(--clr-brand); }
.hero-art {
  width: clamp(150px, 20vw, 230px); aspect-ratio: 1.3;
  border: 1px solid var(--clr-line-2); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 70px -36px rgba(2, 6, 18, 0.95);
  animation: floatY 7s ease-in-out infinite;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid var(--clr-line-2); border-radius: 22px;
  padding: clamp(2.2rem, 5vw, 3.8rem);
  background:
    radial-gradient(720px 300px at 50% -30%, rgba(61, 242, 180, 0.16), transparent 62%),
    radial-gradient(520px 260px at 88% 120%, rgba(91, 147, 255, 0.15), transparent 60%),
    var(--clr-panel);
}
.cta-banner h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); max-width: 24ch; margin-inline: auto; }
.cta-banner p { color: var(--clr-muted); max-width: 56ch; margin: 0.85rem auto 1.9rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- 404 ---------- */
.error-hero { text-align: center; padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem); }
.big-404 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; line-height: 0.85;
  font-size: clamp(6rem, 22vw, 13rem);
  background: linear-gradient(180deg, rgba(61, 242, 180, 0.95), rgba(61, 242, 180, 0.12));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-hero h1 { margin-top: 1.2rem; }
.error-hero .lede { color: var(--clr-muted); max-width: 52ch; margin: 0.5rem auto 2rem; }
.term-404 { max-width: 620px; margin: 0 auto 2.4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--clr-ink); border-top: 1px solid var(--clr-line); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }
.foot-brand p { color: var(--clr-muted); font-size: 0.92rem; line-height: 1.7; max-width: 34ch; margin: 1.1rem 0 1.4rem; }
.foot-title { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clr-text); margin-bottom: 1.15rem; }
.foot-links { list-style: none; display: grid; gap: 0.7rem; }
.foot-link { color: var(--clr-muted); text-decoration: none; font-size: 0.92rem; transition: color 0.2s; }
.foot-link:hover { color: var(--clr-brand); }
.foot-news { display: flex; gap: 0.5rem; margin-top: 1.1rem; }
.foot-news .input { padding: 0.72rem 0.95rem; font-size: 0.9rem; }
.foot-news p { margin-top: 0.7rem; }
.socials { display: flex; gap: 0.55rem; }
.social-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--clr-line); border-radius: 10px; color: var(--clr-muted);
  transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.social-btn:hover { color: var(--clr-brand); border-color: rgba(61, 242, 180, 0.4); transform: translateY(-2px); }
.social-btn svg { width: 18px; height: 18px; }
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.4rem 0; border-top: 1px solid var(--clr-line);
  font-size: 0.85rem; color: var(--clr-faint);
}
.foot-bottom .legal a { color: var(--clr-muted); text-decoration: none; margin-left: 1.1rem; }
.foot-bottom .legal a:hover { color: var(--clr-brand); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 12px; cursor: pointer;
  background: var(--clr-panel-2); border: 1px solid rgba(61, 242, 180, 0.45); color: var(--clr-brand);
  box-shadow: 0 14px 30px -14px rgba(2, 6, 18, 0.95);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease), background 0.25s, color 0.25s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--clr-brand); color: var(--clr-brand-ink); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes blink { 50% { opacity: 0; } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse {
  50% { box-shadow: 0 0 0 9px rgba(61, 242, 180, 0.08), 0 0 26px -2px var(--clr-glow); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .roadmap-strip { grid-template-columns: repeat(3, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .split, .token-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 640px; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 0.6rem 1.25rem 1.25rem;
    background: rgba(8, 15, 32, 0.98); border-bottom: 1px solid var(--clr-line);
    max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease);
  }
  .nav-links.open { max-height: 540px; }
  .nav-links li { border-bottom: 1px solid rgba(140, 178, 242, 0.08); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-link { display: block; padding: 0.8rem 0.6rem; border-radius: 8px; }
  .nav-cta { margin: 0.6rem 0 0; justify-content: center; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .roadmap-strip { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; }
  .countdown { gap: 0.5rem; }
  .bar-row { grid-template-columns: 6.5rem 1fr 3rem; }
  .contact-form { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-bg { height: 300px; }
  .float-chip { right: 0.6rem; top: -1rem; }
  .foot-bottom { justify-content: center; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-bg img { transition: none; }
}
