/* ── BASE / CHALKBOARD ─────────────────── */
:root {
  --bg:        #050505;
  --bg2:       #0a0a0a;
  --chalk:     #f5f0e3;
  --chalk-dim: #d4cdb9;
  --chalk-mute:#888279;
  --accent:    #fff;
  --shadow:    0 0 60px rgba(245, 240, 227, 0.05);
  --hand:      'Caveat', cursive;
  --hand2:     'Patrick Hand', cursive;
  --body:      'Inter', system-ui, sans-serif;
}

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

html, body {
  background: var(--bg);
  color: var(--chalk);
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

body {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(245, 240, 227, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(245, 240, 227, 0.03) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

/* paper grain (subtle) */
.paper {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 20px 30px, var(--chalk) 0.5px, transparent 0.6px),
    radial-gradient(circle at 60px 80px, var(--chalk) 0.5px, transparent 0.6px),
    radial-gradient(circle at 130px 40px, var(--chalk) 0.4px, transparent 0.5px),
    radial-gradient(circle at 200px 120px, var(--chalk) 0.5px, transparent 0.6px),
    radial-gradient(circle at 280px 200px, var(--chalk) 0.4px, transparent 0.5px),
    radial-gradient(circle at 350px 60px, var(--chalk) 0.6px, transparent 0.7px);
  background-size: 400px 250px;
  mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ── NAV ───────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5%;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px dashed rgba(245, 240, 227, 0.12);
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--hand);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
}
.omega-glyph {
  font-size: 32px;
  font-weight: 700;
  display: inline-block;
  text-shadow: 0 0 16px rgba(245, 240, 227, 0.25);
}
.omega-glyph.small { font-size: 24px; }
.logo-text { font-family: var(--hand2); font-size: 24px; letter-spacing: 2px; }

.nav-links {
  display: flex;
  gap: 30px;
  font-family: var(--hand2);
  font-size: 18px;
  color: var(--chalk-dim);
}
.nav-links a:hover { color: var(--chalk); text-decoration: underline; text-underline-offset: 4px; text-decoration-style: wavy; }

.btn-buy {
  font-family: var(--hand2);
  font-size: 16px;
  background: var(--chalk);
  color: var(--bg);
  padding: 10px 22px;
  border-radius: 100px;
  letter-spacing: 1px;
  border: 2px solid var(--chalk);
  transition: all 0.2s;
  position: relative;
}
.btn-buy::before {
  content: '';
  position: absolute;
  inset: -3px;
  border: 1.5px dashed var(--chalk-dim);
  border-radius: 100px;
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-buy:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--chalk-mute); }
.btn-buy:hover::before { opacity: 1; }

/* ── HERO ─────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 90vh;
  padding: 80px 6% 120px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--hand2);
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--chalk-mute);
  margin-bottom: 32px;
}
.hero-tag .sketch-line {
  width: 60px;
  height: 6px;
  color: var(--chalk-mute);
}

.hero-title {
  font-family: var(--hand);
  font-size: clamp(4rem, 11vw, 8rem);
  line-height: 0.92;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -1px;
}
.hero-title .line {
  display: block;
  position: relative;
}
.hero-title em {
  font-style: italic;
  font-weight: 700;
  color: var(--chalk);
  position: relative;
  display: inline-block;
}
.hero-title em::before {
  content: '';
  position: absolute;
  inset: -8px -16px;
  border: 2.5px solid var(--chalk);
  border-radius: 50%;
  transform: rotate(-3deg);
  pointer-events: none;
}

.underline-scribble {
  width: min(400px, 80%);
  height: 22px;
  margin: 14px auto 30px;
  color: var(--chalk);
  display: block;
}

.hero-desc {
  max-width: 660px;
  margin: 0 auto 40px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--chalk-dim);
  line-height: 1.75;
}
.hero-desc strong { color: var(--chalk); font-weight: 600; }
.hero-desc em { color: var(--chalk); font-style: italic; font-family: var(--hand); font-size: 1.2em; }

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn-primary, .btn-secondary {
  font-family: var(--hand2);
  font-size: 18px;
  padding: 14px 32px;
  border-radius: 100px;
  letter-spacing: 1.5px;
  transition: all 0.2s;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary {
  background: var(--chalk);
  color: var(--bg);
  border: 2px solid var(--chalk);
}
.btn-primary:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--chalk-mute);
}
.btn-secondary {
  background: transparent;
  color: var(--chalk);
  border: 2px dashed var(--chalk-dim);
}
.btn-secondary:hover {
  border-style: solid;
  border-color: var(--chalk);
  transform: translate(-2px, -2px);
}
.btn-primary.big, .btn-secondary.big {
  font-size: 19px;
  padding: 16px 36px;
}

/* ── HAND-DRAWN OMEGA ART ── */
.omega-art {
  margin: 30px auto 0;
  max-width: 320px;
  opacity: 0.95;
}
.omega-art svg {
  width: 100%;
  height: auto;
}
.omega-stroke {
  fill: none;
  stroke: var(--chalk);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawIn 2.5s ease-out forwards;
}
.scribble {
  fill: none;
  stroke: var(--chalk-dim);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.6;
}
.star { stroke: var(--chalk); stroke-width: 1.5; stroke-linecap: round; fill: none; }
.annotation {
  font-family: var(--hand2);
  font-size: 12px;
  fill: var(--chalk-mute);
  letter-spacing: 1px;
}
@keyframes drawIn {
  to { stroke-dashoffset: 0; }
}

/* ── STATS ────────────────────────────── */
.stats {
  max-width: 1100px;
  margin: 0 auto 100px;
  padding: 0 6%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
}
.stat {
  text-align: center;
  padding: 24px 12px;
  border-top: 1px dashed rgba(245, 240, 227, 0.15);
  border-bottom: 1px dashed rgba(245, 240, 227, 0.15);
}
.stat-num {
  font-family: var(--hand);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-family: var(--hand2);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--chalk-mute);
  font-weight: 400;
}
.stat-underline {
  width: 50px;
  height: 6px;
  color: var(--chalk-mute);
  display: block;
  margin: 8px auto 0;
}

/* ── SECTIONS ─────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto 120px;
  padding: 0 6%;
  text-align: center;
}
.section-eyebrow {
  font-family: var(--hand2);
  font-size: 14px;
  letter-spacing: 5px;
  color: var(--chalk-mute);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--hand);
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -1px;
  font-weight: 700;
}
.title-underline {
  width: min(280px, 65%);
  height: 14px;
  display: block;
  color: var(--chalk-dim);
  margin: 0 auto 60px;
}

/* ── HOW GRID ────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
  text-align: left;
}
.how-card {
  background: rgba(245, 240, 227, 0.02);
  border: 2px dashed rgba(245, 240, 227, 0.18);
  border-radius: 22px;
  padding: 32px 28px;
  position: relative;
  transition: all 0.3s;
}
.how-card:nth-child(odd) { transform: rotate(-0.4deg); }
.how-card:nth-child(even) { transform: rotate(0.5deg); }
.how-card:hover {
  border-color: var(--chalk-dim);
  border-style: solid;
  transform: rotate(0deg) translate(-4px, -4px);
  box-shadow: 6px 6px 0 rgba(245, 240, 227, 0.08);
}
.how-num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--hand);
  font-size: 28px;
  color: var(--chalk-mute);
  font-weight: 700;
}
.how-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  color: var(--chalk);
}
.how-icon svg { width: 100%; height: 100%; }
.how-card h3 {
  font-family: var(--hand);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0;
}
.how-card p {
  color: var(--chalk-dim);
  font-size: 15px;
  line-height: 1.7;
}

/* ── TOKEN SECTION ────────────────────── */
.token-grid {
  background: rgba(245, 240, 227, 0.03);
  border: 2px dashed rgba(245, 240, 227, 0.2);
  border-radius: 28px;
  padding: 40px;
  text-align: center;
  position: relative;
  transform: rotate(-0.3deg);
}
.token-card {
  margin-bottom: 30px;
  padding: 24px 20px;
  background: rgba(245, 240, 227, 0.04);
  border: 1px solid rgba(245, 240, 227, 0.15);
  border-radius: 18px;
}
.tk-key {
  font-family: var(--hand2);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--chalk-mute);
  margin-bottom: 8px;
}
.tk-val {
  font-family: var(--hand2);
  font-size: 18px;
  color: var(--chalk);
  word-break: break-all;
}
.ca-val {
  cursor: pointer;
  font-size: 16px;
  padding: 8px 0;
  transition: opacity 0.2s;
}
.ca-val:hover { opacity: 0.8; }
.tk-hint {
  font-family: var(--hand);
  font-size: 14px;
  color: var(--chalk-mute);
  margin-top: 6px;
  cursor: pointer;
}

.token-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}
.token-cell {
  padding: 16px 12px;
  background: rgba(245, 240, 227, 0.03);
  border: 1px solid rgba(245, 240, 227, 0.12);
  border-radius: 14px;
}

.token-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ── FAQ ──────────────────────────────── */
.faq {
  text-align: left;
  max-width: 760px;
  margin: 30px auto 0;
}
.faq-item {
  margin-bottom: 14px;
  padding: 0;
  background: rgba(245, 240, 227, 0.02);
  border: 2px dashed rgba(245, 240, 227, 0.15);
  border-radius: 14px;
  transition: border-color 0.2s;
}
.faq-item:hover, .faq-item[open] {
  border-color: rgba(245, 240, 227, 0.3);
  border-style: solid;
}
.faq-item summary {
  font-family: var(--hand);
  font-size: 22px;
  padding: 18px 22px;
  cursor: pointer;
  color: var(--chalk);
  list-style: none;
  position: relative;
  font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: var(--chalk-mute);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item p {
  padding: 0 22px 22px;
  color: var(--chalk-dim);
  line-height: 1.75;
  font-size: 15px;
}
.faq-item code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(245, 240, 227, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--chalk);
}

/* ── FOOTER ───────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  border-top: 2px dashed rgba(245, 240, 227, 0.15);
  padding: 60px 6% 40px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-text {
  font-family: var(--hand2);
  color: var(--chalk-dim);
  font-size: 15px;
}
.footer-right {
  display: flex;
  gap: 28px;
  font-family: var(--hand2);
  font-size: 16px;
  color: var(--chalk-dim);
}
.footer-right a:hover { color: var(--chalk); }
.footer-bottom {
  text-align: center;
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px dashed rgba(245, 240, 227, 0.1);
  font-family: var(--hand);
  font-size: 16px;
  color: var(--chalk-mute);
  font-style: italic;
}

/* ── RESPONSIVE ─────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .how-grid { grid-template-columns: 1fr; }
  .token-row { grid-template-columns: 1fr 1fr; }
  .hero { padding: 60px 6% 80px; }
}
@media (max-width: 500px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .token-row { grid-template-columns: 1fr; }
  .hero-title { font-size: 4rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
