/* ---------- base ---------- */
:root {
  --ink: #14161a;
  --cream: #fff8ec;
  --yellow: #ffcc33;
  --coral: #ff6b5e;
  --pink: #ff8fc7;
  --sky: #4fb2ff;
  --mint: #3ddc97;
  --purple: #9b6bff;
  --border: 3px solid var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --shadow-md: 6px 6px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
  background-image:
    radial-gradient(var(--ink) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -10px -10px;
}

h1, h2, h3, .logo-text {
  font-family: 'Fredoka', sans-serif;
  line-height: 1.05;
}

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

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 24px;
}

.section-alt {
  background: var(--ink);
  max-width: 100%;
  color: var(--cream);
}
.section-alt .section-title,
.section-alt .section-sub { color: var(--cream); }

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 50px;
  opacity: 0.75;
}

.highlight { padding: 0 8px; border: var(--border); box-shadow: var(--shadow-sm); display: inline-block; transform: rotate(-2deg); }
.highlight-yellow { background: var(--yellow); }
.highlight-mint { background: var(--mint); }

.underline-squiggle {
  position: relative;
  color: var(--coral);
}

/* ---------- marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: var(--border);
}
.marquee-track {
  display: inline-flex;
  gap: 40px;
  padding: 10px 0;
  animation: scroll-left 22s linear infinite;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}
.marquee-track span::after { content: '•'; margin-left: 40px; opacity: 0.5; }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: var(--cream);
  border-bottom: var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-img { height: 44px; width: auto; display: block; border-radius: 8px; }
.footer-logo .nav-logo-img { height: 40px; }
.coin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--yellow);
  border: var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  padding: 6px;
}
.logo-text { font-size: 1.3rem; font-weight: 600; }

.nav-links { display: flex; gap: 28px; }
.nav-links a { font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--coral); }
.nav-links a.nav-active { color: var(--coral); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- piggy icon ---------- */
.piggy-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.piggy-body { fill: var(--pink); stroke: var(--ink); stroke-width: 5; }
.piggy-snout { fill: #ffbede; stroke: var(--ink); stroke-width: 5; }
.piggy-ear { fill: var(--pink); stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; }
.piggy-leg { fill: var(--pink); stroke: var(--ink); stroke-width: 5; }
.piggy-tail { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.piggy-dot, .piggy-slot { fill: var(--ink); }
.piggy-svg-lg { width: 78%; height: 78%; margin: auto; }

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

.nav-right { display: flex; align-items: center; gap: 16px; }

.nav-price {
  display: flex;
  align-items: center;
  gap: 8px;
  border: var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(61,220,151,0.6);
  animation: pulse-dot 1.6s ease-out infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(61,220,151,0.6); }
  70% { box-shadow: 0 0 0 7px rgba(61,220,151,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); }
}
.nav-price-change { padding: 2px 8px; border-radius: 999px; font-size: 0.78rem; }
.nav-price-change.up { background: var(--mint); }
.nav-price-change.down { background: var(--coral); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  border: var(--border);
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

.btn-primary { background: var(--coral); color: var(--ink); }
.btn-outline { background: var(--cream); color: var(--ink); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ---------- pills / chips ---------- */
.pill {
  display: inline-block;
  border: var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.pill-yellow { background: var(--yellow); }
.pill-white { background: var(--cream); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 32px 100px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.1rem;
  max-width: 520px;
  opacity: 0.8;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.stat-chip {
  border: var(--border);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  min-width: 110px;
}
.stat-chip strong { font-family: 'Fredoka', sans-serif; font-size: 1.4rem; }
.stat-chip span { font-size: 0.75rem; opacity: 0.7; font-weight: 600; }
.stat-pink { background: var(--pink); }
.stat-blue { background: var(--sky); }
.stat-green { background: var(--mint); }

/* ---------- hero art / coin ---------- */
.hero-art { display: flex; justify-content: center; align-items: center; position: relative; }
.coin-wrap { position: relative; width: 320px; height: 320px; }

.big-coin {
  width: 280px; height: 280px;
  border-radius: 50%;
  background: var(--yellow);
  border: var(--border);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  margin: 20px auto;
  animation: float 4s ease-in-out infinite;
}
.big-coin-face { font-size: 5.5rem; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-14px) rotate(3deg); }
}

.sticker {
  position: absolute;
  background: var(--cream);
  border: var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 8px 12px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.2;
}
.sticker-1 { top: -6px; left: -20px; background: var(--mint); transform: rotate(-9deg); }
.sticker-2 { bottom: 10px; right: -30px; background: var(--sky); transform: rotate(7deg); }
.sticker-3 { top: 46%; left: -46px; background: var(--pink); transform: rotate(-5deg); }

/* ---------- live dashboard ---------- */
.live-section { max-width: 1100px; }
.live-heading { text-align: center; margin-bottom: 40px; }
.live-heading .section-title { margin-bottom: 12px; }
.badge-preview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--yellow);
  font-weight: 600;
  font-size: 0.78rem;
  box-shadow: var(--shadow-sm);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}

.dash-card {
  border: var(--border);
  border-radius: 20px;
  background: var(--cream);
  box-shadow: var(--shadow-md);
  padding: 22px;
}

.dash-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.6;
}

.price-card { background: var(--ink); color: var(--cream); }
.price-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.price-card .dash-label { opacity: 0.55; }
.price-value {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.1rem;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.price-change {
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--cream);
}
.price-change.up { background: var(--mint); color: var(--ink); border-color: var(--ink); }
.price-change.down { background: var(--coral); color: var(--ink); border-color: var(--ink); }

#priceChart { width: 100%; height: 220px; display: block; }
#liveChartFrame { width: 100%; height: 220px; display: block; border: none; border-radius: 12px; }
.chart-hidden { display: none !important; }
.chart-range { margin-top: 8px; font-size: 0.75rem; opacity: 0.5; font-weight: 600; }

.side-cards { display: flex; flex-direction: column; gap: 20px; }

.mini-stats { display: flex; flex-direction: column; gap: 16px; }
.mini-stat { display: flex; justify-content: space-between; align-items: baseline; }
.mini-value { font-family: 'Fredoka', sans-serif; font-size: 1.2rem; font-variant-numeric: tabular-nums; }

.activity-card { background: var(--yellow); }
.activity-row { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; font-size: 0.85rem; }
.activity-window { font-weight: 700; font-family: 'Fredoka', sans-serif; width: 28px; flex-shrink: 0; }
.activity-buys { color: #1a7a4c; font-weight: 600; }
.activity-sells { color: #b3392a; font-weight: 600; }

.ca-card-solo { max-width: 480px; margin: 0 auto; }
.live-coming-soon-text { margin-top: 16px; font-size: 0.85rem; opacity: 0.7; line-height: 1.5; }

.ca-card { background: var(--sky); }
.ca-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.ca-value {
  font-family: 'Space Grotesk', monospace;
  font-weight: 600;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copy-btn {
  border: var(--border);
  background: var(--cream);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  font-family: 'Fredoka', sans-serif;
}
.copy-btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.copy-btn:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }

.view-chain-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: underline;
}
.view-chain-link.link-disabled { opacity: 0.4; pointer-events: none; text-decoration: none; }

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: var(--border);
  border-radius: 50%;
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.social-link:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }

.countdown-card { background: var(--pink); }
.countdown { display: flex; gap: 10px; margin-top: 10px; }
.countdown-unit {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  flex: 1;
}
.countdown-unit span {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}
.countdown-unit small { font-size: 0.65rem; opacity: 0.6; font-weight: 600; }
.countdown-live { font-family: 'Fredoka', sans-serif; font-size: 1.1rem; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--cream);
  border: var(--border);
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- feature cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  border: var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease;
}
.feature-card:hover { transform: translateY(-6px); }
.feature-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.feature-card p { opacity: 0.8; line-height: 1.5; }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: var(--border);
  border-radius: 50%;
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.card-coral { background: var(--coral); }
.card-sky { background: var(--sky); }
.card-mint { background: var(--mint); }
.card-yellow { background: var(--yellow); }

.fee-explain-grid { margin-top: 28px; }
.trust-grid { margin-top: 28px; }
.dist-explain-grid { grid-template-columns: repeat(2, 1fr); }

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.step {
  background: var(--cream);
  color: var(--ink);
  border: var(--border);
  border-radius: 20px;
  padding: 26px 22px;
  box-shadow: var(--shadow-md);
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; opacity: 0.75; }
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.step-yellow { background: var(--yellow); }
.step-pink { background: var(--pink); }
.step-blue { background: var(--sky); }
.step-green { background: var(--mint); }

/* ---------- tokenomics ---------- */
.token-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.token-stat {
  border: var(--border);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.token-num { font-family: 'Fredoka', sans-serif; font-size: 2.1rem; }
.token-label { font-size: 0.85rem; font-weight: 600; opacity: 0.75; }
.stat-card-1 { background: var(--yellow); }
.stat-card-2 { background: var(--coral); }
.stat-card-3 { background: var(--sky); }
.stat-card-4 { background: var(--mint); }

.fee-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 32px; }
#fees.section-alt .token-stat,
#fees.section-alt .feature-card,
#trust.section-alt .feature-card { color: var(--ink); }

/* ---------- CTA ---------- */
.section-cta { max-width: 100%; padding: 0 24px 100px; }
.cta-box {
  max-width: 780px;
  margin: 0 auto;
  background: var(--purple);
  color: var(--cream);
  border: var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  padding: 60px 40px;
}
.cta-box h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: 14px 0 14px; }
.cta-box p { opacity: 0.85; max-width: 480px; margin: 0 auto 30px; }
.cta-box .pill-white { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  border: var(--border);
  border-radius: 16px;
  padding: 18px 22px;
  background: var(--cream);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; font-size: 1.3rem; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: 12px; opacity: 0.78; line-height: 1.55; }

/* ---------- footer ---------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 50px 32px 30px;
}
.footer-top {
  max-width: 1100px;
  margin: 0 auto 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  background: rgba(255, 248, 236, 0.06);
  border: 2px solid var(--cream);
  border-radius: 16px;
  padding: 6px;
}
.footer-links a {
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0.85;
  padding: 9px 18px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.footer-links a:hover { color: var(--ink); background: var(--yellow); opacity: 1; }
.footer-links a.nav-active { color: var(--ink); background: var(--yellow); opacity: 1; }
.disclaimer {
  max-width: 1100px;
  margin: 0 auto 16px;
  font-size: 0.78rem;
  opacity: 0.55;
  line-height: 1.6;
}
.copyright {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ---------- distributions page ---------- */
.dist-hero { text-align: center; }
.dist-hero .badge-preview { margin-top: 10px; }

.dist-total-section { padding-top: 0; }
.dist-total-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}
.dist-total-card {
  margin: 0 auto;
  text-align: center;
  background: var(--purple);
  color: var(--cream);
}
.dist-total-card.dist-total-burn { background: var(--ink); }
.dist-total-card .dash-label { opacity: 0.7; }
.dist-total-value {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.8rem;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

.dist-countdown-card { max-width: 360px; margin: 0 auto; }

.dist-table-wrap { overflow-x: auto; padding: 0; }
.dist-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.dist-table th, .dist-table td {
  text-align: left;
  padding: 14px 20px;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.dist-table thead th {
  background: var(--ink);
  color: var(--cream);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.dist-table tbody tr:nth-child(odd) { background: rgba(20,22,26,0.04); }
.dist-table tbody tr:first-child { font-weight: 600; }
.dist-addr { font-family: monospace; font-size: 0.85rem; opacity: 0.8; }
.dist-empty-row td { text-align: center; opacity: 0.6; padding: 32px 20px; font-style: italic; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-art { order: -1; }
  .nav-links { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .dist-explain-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .token-grid { grid-template-columns: 1fr 1fr; }
  .fee-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dist-total-grid { grid-template-columns: 1fr; }
  .nav-price span:not(.live-dot) { font-size: 0.75rem; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .token-grid { grid-template-columns: 1fr; }
  .sticker { display: none; }
  .nav-right { gap: 8px; }
  .nav-price { padding: 6px 10px; }
  .countdown { flex-wrap: wrap; }
}
