/* ============================================================
   realassets — visual system
   Palette: acid green on green-tinted near-black
   ============================================================ */

:root {
  --void: #04070a;
  --panel: #070d0c;
  --panel-2: #0a1210;
  --line: #16241d;
  --line-bright: #204a35;
  --ink: #d8ffe6;
  --muted: #6f8f7c;
  --muted-2: #43594d;
  --neon: #38ff88;
  --neon-soft: #35ff7c;
  --lime: #b8ff3b;
  --neon-12: rgba(56, 255, 136, 0.12);
  --neon-20: rgba(56, 255, 136, 0.2);
  --neon-40: rgba(56, 255, 136, 0.4);

  --font-display: "Chakra Petch", sans-serif;
  --font-body: "Sora", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --maxw: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Layered atmospheric background ------------------------------------ */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 78% -5%, rgba(56, 255, 136, 0.10), transparent 60%),
    radial-gradient(700px 500px at 8% 12%, rgba(184, 255, 59, 0.05), transparent 55%),
    var(--void);
}
.bg-grid {
  position: fixed;
  inset: -2px;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line-bright) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-bright) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.14;
  -webkit-mask-image: radial-gradient(1100px 800px at 70% 0%, #000 20%, transparent 78%);
          mask-image: radial-gradient(1100px 800px at 70% 0%, #000 20%, transparent 78%);
}
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Typography --------------------------------------------------------- */
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
.mono { font-family: var(--font-mono); }
.neon { color: var(--neon); }
.lime { color: var(--lime); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--neon);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon));
}

/* Layout ------------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; padding: 120px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 5vw, 52px); line-height: 1.02; margin: 18px 0 0; }
.section-head p { color: var(--muted); margin-top: 18px; }

/* Nav ---------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(4, 7, 10, 0.85), rgba(4, 7, 10, 0.2));
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(4, 7, 10, 0.94); }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em; font-size: 18px; }
.brand svg, .brand img { width: 30px; height: 30px; filter: drop-shadow(0 0 10px var(--neon-40)); }
.brand img { border-radius: 50%; object-fit: cover; }
.brand .tick { color: var(--muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 13px; letter-spacing: 0.04em; font-family: var(--font-mono); transition: color 0.25s; }
.nav-links a:hover { color: var(--ink); }

/* Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.05em;
  padding: 13px 22px; border-radius: 2px; text-decoration: none;
  border: 1px solid var(--line-bright); color: var(--ink);
  background: transparent; cursor: pointer;
  transition: transform 0.3s var(--ease), border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.btn:hover { border-color: var(--neon); transform: translateY(-2px); box-shadow: 0 0 0 1px var(--neon-20), 0 10px 40px -18px var(--neon); }
.btn-primary {
  background: var(--neon); color: #032013; border-color: var(--neon);
  font-weight: 600;
  box-shadow: 0 0 30px -8px var(--neon-40);
}
.btn-primary:hover { background: var(--lime); border-color: var(--lime); color: #062104; box-shadow: 0 0 42px -6px var(--neon); }
.btn svg { width: 15px; height: 15px; }

/* Hero --------------------------------------------------------------- */
.hero { padding-top: 168px; padding-bottom: 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(46px, 8vw, 92px); line-height: 0.94; margin: 22px 0; }
.hero h1 .stroke {
  color: transparent; -webkit-text-stroke: 1.4px var(--neon-40);
  display: block;
}
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 460px; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero-meta .stat .n { font-family: var(--font-display); font-size: 26px; color: var(--ink); }
.hero-meta .stat .l { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }

/* Coin visual */
.coin-stage { position: relative; display: grid; place-items: center; min-height: 380px; }
.coin-stage .ring { position: absolute; border: 1px solid var(--line-bright); border-radius: 50%; opacity: 0.5; }
.coin-stage .ring.r1 { width: 300px; height: 300px; animation: spin 26s linear infinite; border-style: dashed; }
.coin-stage .ring.r2 { width: 400px; height: 400px; animation: spin 40s linear infinite reverse; opacity: 0.3; }
.coin { width: 210px; height: 210px; border-radius: 50%; object-fit: cover; filter: drop-shadow(0 0 40px rgba(56,255,136,0.35)); animation: float 6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-14px); } }

.marquee {
  margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; white-space: nowrap; padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee .track { display: inline-flex; gap: 40px; animation: slide 26s linear infinite; }
.marquee span { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.marquee span b { color: var(--neon); font-weight: 400; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Panels / cards ----------------------------------------------------- */
.panel {
  background: linear-gradient(180deg, var(--panel), var(--void));
  border: 1px solid var(--line); border-radius: 4px; position: relative;
}
.panel::before {
  content: ""; position: absolute; top: 0; left: 0; width: 14px; height: 14px;
  border-top: 1px solid var(--neon-40); border-left: 1px solid var(--neon-40);
}

/* Vision statement --------------------------------------------------- */
.vision-quote { font-family: var(--font-display); font-size: clamp(26px, 4.4vw, 46px); line-height: 1.12; max-width: 940px; }
.vision-quote em { font-style: normal; color: var(--neon); }
.vision-sub { color: var(--muted); margin-top: 26px; max-width: 560px; font-size: 17px; }

.buyback { margin-top: 40px; padding: 30px 32px; max-width: 720px; }
.buyback h3 { font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 28px); margin: 14px 0 12px; }
.buyback p { color: var(--muted); font-size: 16px; line-height: 1.6; }

/* Ecosystem grid ----------------------------------------------------- */
.eco-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.eco-card { padding: 26px; grid-column: span 2; transition: transform 0.4s var(--ease), border-color 0.4s; }
.eco-card:hover { transform: translateY(-4px); border-color: var(--line-bright); }
.eco-card.wide { grid-column: span 3; }
.eco-card.tall { grid-row: span 2; grid-column: span 2; }
.eco-card .ico { width: 42px; height: 42px; color: var(--neon); margin-bottom: 20px; }
.eco-card h3 { font-size: 20px; margin-bottom: 8px; }
.eco-card p { color: var(--muted); font-size: 14px; }
.eco-card .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.eco-card .tags span { font-family: var(--font-mono); font-size: 11px; color: var(--neon); border: 1px solid var(--line-bright); padding: 4px 9px; border-radius: 2px; background: var(--neon-12); }
.eco-card .idx { position: absolute; top: 18px; right: 20px; font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); }

/* Regions rarity ----------------------------------------------------- */
.rarity { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.rarity .tier { padding: 20px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); position: relative; overflow: hidden; }
.rarity .tier .bar { height: 3px; border-radius: 2px; margin-bottom: 16px; }
.rarity .tier h4 { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.05em; }
.rarity .tier .yield { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 4px; }
.rarity .tier .glow { position: absolute; inset: auto -30% -60% -30%; height: 120px; filter: blur(30px); opacity: 0.25; }

/* Tokens ------------------------------------------------------------- */
.token-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.token-card { padding: 30px; transition: transform 0.4s var(--ease), border-color 0.4s; }
.token-card:hover { transform: translateY(-4px); border-color: var(--line-bright); }
.token-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.token-head h3 { font-size: 24px; margin-top: 10px; }
.token-head .tick { font-family: var(--font-mono); font-size: 14px; color: var(--muted); letter-spacing: 0.08em; }
.token-card p { color: var(--muted); font-size: 14px; }
.token-badge { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--void); background: var(--neon); padding: 5px 9px; border-radius: 2px; white-space: nowrap; }
.token-badge.alt { color: var(--lime); background: transparent; border: 1px solid var(--line-bright); }
.token-addr { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line-bright); border-radius: 4px; background: var(--neon-12); }
.token-addr-label { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.token-addr code { font-size: 13px; color: var(--neon); word-break: break-all; line-height: 1.6; }
.token-warn { margin-top: 16px; font-size: 13px; color: var(--muted-2); line-height: 1.7; }
.token-card .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.token-card .tags span { font-family: var(--font-mono); font-size: 11px; color: var(--neon); border: 1px solid var(--line-bright); padding: 4px 9px; border-radius: 2px; background: var(--neon-12); }
@media (max-width: 720px) { .token-grid { grid-template-columns: 1fr; } }

/* Rewards / engagement ---------------------------------------------- */
.rewards-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 34px; align-items: start; }
.reward-steps { display: grid; gap: 14px; margin-top: 30px; }
.reward-step { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
.reward-step .num { font-family: var(--font-mono); color: var(--neon); font-size: 13px; padding-top: 2px; }
.reward-step h4 { font-family: var(--font-display); font-size: 16px; }
.reward-step p { color: var(--muted); font-size: 13px; }

.leaderboard { padding: 8px; }
.lb-head, .lb-row { display: grid; grid-template-columns: 42px 1fr 92px 84px; align-items: center; gap: 10px; padding: 12px 16px; }
.lb-head { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); border-bottom: 1px solid var(--line); }
.lb-row { border-bottom: 1px solid var(--line); transition: background 0.25s; }
.lb-row:hover { background: var(--neon-12); }
.lb-row:last-child { border-bottom: none; }
.lb-rank { font-family: var(--font-mono); color: var(--muted); font-size: 13px; }
.lb-row.top .lb-rank { color: var(--void); background: var(--neon); border-radius: 3px; text-align: center; width: 26px; padding: 2px 0; box-shadow: 0 0 16px -3px var(--neon); }
.lb-user { display: flex; align-items: center; gap: 10px; }
.lb-user .av { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-bright); background: radial-gradient(circle at 30% 30%, var(--neon-40), var(--panel-2)); flex: none; }
.lb-user .h { font-size: 14px; }
.lb-user .t { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); }
.lb-views { font-family: var(--font-mono); font-size: 13px; color: var(--muted); text-align: right; }
.lb-reward { font-family: var(--font-mono); font-size: 13px; color: var(--neon); text-align: right; }
.lb-foot { padding: 14px 16px; font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); text-align: center; border-top: 1px solid var(--line); }
.lb-empty { padding: 48px 24px; text-align: center; }
.lb-empty-mark { font-size: 30px; color: var(--neon); text-shadow: 0 0 22px var(--neon); margin-bottom: 14px; opacity: 0.85; }
.lb-empty h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.lb-empty p { color: var(--muted-2); font-size: 14px; max-width: 34ch; margin: 0 auto; }

/* Form --------------------------------------------------------------- */
.form-card { padding: 30px; margin-top: 30px; }
.form-card h3 { font-size: 20px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select {
  width: 100%; background: var(--void); border: 1px solid var(--line); border-radius: 3px;
  color: var(--ink); padding: 13px 15px; font-family: var(--font-mono); font-size: 14px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px var(--neon-12); }
.field input::placeholder { color: var(--muted-2); }
.hp { position: absolute; left: -9999px; }
.form-note { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); margin-top: 14px; line-height: 1.7; }
.form-msg { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 3px; font-family: var(--font-mono); font-size: 13px; }
.form-msg.ok { display: block; border: 1px solid var(--line-bright); background: var(--neon-12); color: var(--neon); }
.form-msg.err { display: block; border: 1px solid #4a2020; background: rgba(255,80,80,0.08); color: #ff8b8b; }

/* Roadmap ------------------------------------------------------------ */
.road { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.phase { padding: 22px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); position: relative; transition: border-color 0.4s, transform 0.4s var(--ease); }
.phase:hover { border-color: var(--line-bright); transform: translateY(-4px); }
.phase .pnum { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--neon); }
.phase .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-bright); margin: 14px 0; }
.phase.live .dot { background: var(--neon); box-shadow: 0 0 0 4px var(--neon-12), 0 0 14px var(--neon); }
.phase h4 { font-family: var(--font-display); font-size: 16px; margin-bottom: 12px; }
.phase ul { list-style: none; }
.phase li { font-size: 12.5px; color: var(--muted); padding: 4px 0 4px 16px; position: relative; }
.phase li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 1px; background: var(--neon-40); }
.phase .tag-now { position: absolute; top: 16px; right: 16px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; color: var(--void); background: var(--neon); padding: 3px 7px; border-radius: 2px; }

/* Charter ------------------------------------------------------------ */
.charter-grid { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; }
.charter-list { display: grid; gap: 2px; }
.rule { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 22px 20px; border-bottom: 1px solid var(--line); transition: background 0.25s; }
.rule:hover { background: var(--panel); }
.rule .rn { font-family: var(--font-mono); color: var(--neon); font-size: 13px; }
.rule h4 { font-family: var(--font-display); font-size: 16px; margin-bottom: 5px; }
.rule p { color: var(--muted); font-size: 13.5px; }
.charter-aside { padding: 26px; position: sticky; top: 100px; }
.charter-aside .ico { width: 40px; height: 40px; color: var(--neon); margin-bottom: 16px; }
.charter-aside h3 { font-size: 20px; margin-bottom: 10px; }
.charter-aside p { color: var(--muted); font-size: 14px; }

/* CTA band ----------------------------------------------------------- */
.cta-band { text-align: center; padding: 100px 0; }
.cta-band h2 { font-size: clamp(34px, 6vw, 68px); line-height: 0.98; }
.cta-band p { color: var(--muted); margin: 18px auto 0; max-width: 440px; }
.cta-band .hero-cta { justify-content: center; margin-top: 34px; }

/* Footer ------------------------------------------------------------- */
footer { border-top: 1px solid var(--line); padding: 60px 0 40px; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--muted); text-decoration: none; font-size: 14px; padding: 5px 0; transition: color 0.2s; }
.foot-col a:hover { color: var(--neon); }
.disclaimer { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.disclaimer p { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted-2); line-height: 1.8; max-width: 900px; }
.foot-legal { display: flex; justify-content: space-between; margin-top: 26px; flex-wrap: wrap; gap: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); }

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

/* Responsive --------------------------------------------------------- */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .coin-stage { min-height: 300px; order: -1; }
  .eco-grid, .road { grid-template-columns: repeat(2, 1fr); }
  .eco-card, .eco-card.wide, .eco-card.tall { grid-column: span 1; grid-row: auto; }
  .rewards-grid, .charter-grid { grid-template-columns: 1fr; }
  .rarity { grid-template-columns: repeat(2, 1fr); }
  .charter-aside { position: static; }
}
@media (max-width: 560px) {
  section { padding: 84px 0; }
  .eco-grid, .road, .rarity { grid-template-columns: 1fr; }
  .hero-meta { gap: 22px; }
}

/* $DCMD founder-holdings tracker */
.holdings {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(120% 140% at 100% 0%, var(--neon-12), transparent 60%),
    var(--panel-2);
  position: relative;
  overflow: hidden;
}
.holdings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.holdings-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.holdings-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 0 var(--neon-40);
  animation: holdings-pulse 2.4s var(--ease) infinite;
}
@keyframes holdings-pulse {
  0% { box-shadow: 0 0 0 0 var(--neon-40); }
  70% { box-shadow: 0 0 0 7px rgba(56, 255, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 255, 136, 0); }
}
.holdings-pct {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 46px;
  line-height: 1;
  color: var(--neon);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.holdings-pct em {
  font-style: normal;
  font-size: 24px;
  color: var(--lime);
  margin-left: 4px;
}
.holdings-meta {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}
.holdings[data-state="error"] .holdings-dot { background: var(--muted-2); animation: none; }
