/* ============ TOKENS ============ */
:root {
  --yellow: #F0B90B;
  --yellow-dark: #D9A400;
  --yellow-soft: #FFF6D8;
  --ink: #17181C;
  --ink-soft: #4A4C52;
  --cream: #FFFDF6;
  --white: #FFFFFF;
  --green: #16C784;
  --line: rgba(23, 24, 28, 0.1);
  --shadow: 0 10px 30px rgba(23, 24, 28, 0.08);
  --radius: 22px;
  --font-head: "Baloo 2", "Noto Sans SC", "Poppins", sans-serif;
  --font-body: "Poppins", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--font-head); color: var(--ink); margin: 0 0 12px; line-height: 1.15; }
p { margin: 0 0 16px; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

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

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 3px solid var(--ink);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 6px 0 var(--ink);
}
.btn-primary:hover { background: var(--yellow-dark); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 3px 0 var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--white); }

/* ============ HEADER / NAV ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 246, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--ink);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  margin-right: auto;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  object-fit: cover;
  background: var(--yellow);
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}
.main-nav a:hover { color: var(--yellow-dark); }

.nav-cta { padding: 10px 20px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
  margin: 0 7px;
}

/* ============ TICKER ============ */
.ticker-wrap {
  background: var(--ink);
  color: var(--yellow);
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
}
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  padding: 9px 0;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  animation: ticker 28s linear infinite;
}
.ticker-track .up { color: var(--green); }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23,24,28,0.55) 0%, rgba(23,24,28,0.2) 45%, rgba(23,24,28,0) 65%);
}
.hero-inner { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 60px; min-width: 0; width: 100%; }
.hero-text { max-width: 560px; min-width: 0; }

.eyebrow {
  display: inline-block;
  background: var(--ink);
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}
.hero h1 .hl { color: var(--yellow); }
.hero-text p { color: rgba(255,255,255,0.88); font-size: 1.05rem; max-width: 480px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 26px 0 30px;
}
.hero .btn-ghost { border-color: var(--white); color: var(--white); }
.hero .btn-ghost:hover { background: var(--white); color: var(--ink); }

.contract-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  background: rgba(255,255,255,0.95);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 8px 8px 8px 18px;
  max-width: 100%;
  box-sizing: border-box;
}
.contract-label {
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.contract-chip code {
  font-size: 0.82rem;
  color: var(--ink);
  overflow-wrap: anywhere;
  min-width: 0;
  flex: 1 1 auto;
}
.copy-btn {
  border: none;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s ease;
}
.copy-btn:hover { background: var(--yellow-dark); }
.copy-btn:disabled {
  background: rgba(23,24,28,0.12);
  color: var(--ink-soft);
  cursor: not-allowed;
}
.copy-btn:disabled:hover { background: rgba(23,24,28,0.12); }

.contract-chip-center { margin: 40px auto 0; justify-content: center; }

/* ============ STATS STRIP ============ */
.stats-strip {
  background: var(--ink);
  padding: 34px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-head);
  color: var(--yellow);
  font-size: 1.5rem;
}
.stat span {
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============ SECTIONS ============ */
.section { padding: 96px 0; }
.section-alt { background: var(--yellow-soft); }

.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section-head .eyebrow { background: var(--yellow); color: var(--ink); }

/* ---- Story ---- */
.story-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: start;
}
.story-image {
  position: relative;
  align-self: center;
}
.blob {
  position: absolute;
  inset: -18px;
  background: var(--yellow);
  border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
  z-index: 0;
}
.story-image img {
  position: relative;
  z-index: 1;
  border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
  border: 4px solid var(--ink);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 3px dashed var(--ink);
}
.timeline li {
  position: relative;
  padding: 0 0 40px 32px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--ink);
}
.chapter {
  display: inline-block;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yellow-dark);
  margin-bottom: 6px;
}
.timeline h3 { font-size: 1.25rem; margin-bottom: 8px; }
.timeline p { margin: 0; }

/* ---- Feature grid ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.feature-card:hover { transform: translateY(-6px); }
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.92rem; margin: 0; }

/* ---- Tokenomics ---- */
.token-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.token-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.token-value {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.token-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

/* ---- Treasury (fees to stocks) ---- */
.treasury-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.treasury-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  box-shadow: var(--shadow);
}
.treasury-card-highlight {
  background: var(--yellow);
}
.treasury-value {
  display: block;
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.treasury-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.treasury-card p {
  font-size: 0.9rem;
  margin: 0;
}
.treasury-card-highlight p { color: var(--ink); opacity: 0.85; }

.treasury-note {
  max-width: 720px;
  margin: 36px auto 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---- How to buy ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 30px 22px;
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step-card p { font-size: 0.92rem; margin: 0; }

/* ---- CTA / Community ---- */
.cta-section { text-align: center; }
.cta-inner { max-width: 520px; margin: 0 auto; }
.cta-image {
  width: 130px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 4px solid var(--ink);
  background: var(--yellow);
}
.cta-inner h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 30px;
}
.footer-inner { text-align: center; }
.site-footer .brand {
  justify-content: center;
  color: var(--yellow);
  margin-bottom: 18px;
}
.disclaimer {
  max-width: 640px;
  margin: 0 auto 18px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.copyright { font-size: 0.82rem; color: rgba(255,255,255,0.45); margin: 0; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 3px solid var(--ink);
    padding: 20px 24px;
    gap: 16px;
  }
  .nav-cta { display: none; }

  .story-layout { grid-template-columns: 1fr; }
  .story-image { max-width: 280px; margin: 0 auto 20px; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .token-grid { grid-template-columns: repeat(2, 1fr); }
  .treasury-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .hero { min-height: 560px; }
  .hero-overlay { background: rgba(23,24,28,0.6); }
  .feature-grid, .token-grid, .treasury-grid, .steps-grid { grid-template-columns: 1fr; }
  .contract-chip { width: 100%; justify-content: center; text-align: center; padding: 10px 14px; }
  .section { padding: 64px 0; }
}
