:root {
  --bg: #050505;
  --bg-elevated: #0c0c0c;
  --ink: #f5f5f0;
  --muted: #8a8a80;
  --accent: #d1f31f;
  --accent-dim: rgba(209, 243, 31, 0.14);
  --line: rgba(209, 243, 31, 0.22);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(209, 243, 31, 0.09), transparent 55%),
    radial-gradient(ellipse 40% 30% at 90% 40%, rgba(209, 243, 31, 0.04), transparent 50%),
    linear-gradient(rgba(209, 243, 31, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(209, 243, 31, 0.03) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 90%);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0.55) 70%, transparent);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav {
  display: none;
  gap: 1.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav a {
  transition: color 0.25s var(--ease);
}

.nav a:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0a0a0a;
  background: var(--accent);
  border: 1px solid var(--accent);
  transition: transform 0.3s var(--ease), background 0.25s, color 0.25s, box-shadow 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(209, 243, 31, 0.35);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 4.5rem;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 3rem));
  margin: 0 auto 0 1.5rem;
  opacity: 0;
  transform: translateY(28px);
  animation: riseIn 0.9s var(--ease) 0.45s forwards;
}

.hero-brand {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--ink);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ca-btn {
  position: relative;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
}

.ca-toast {
  position: absolute;
  top: -1.8rem;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 0.2rem 0.55rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  color: #0a0a0a;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}

.ca-btn.is-copied .ca-toast {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Ticker */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--accent-dim);
  overflow: hidden;
  padding: 0.85rem 0;
}

.ticker-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  animation: marquee 28s linear infinite;
}

/* Sections */
.section {
  padding: 6.5rem 1.5rem;
}

.section-inner {
  width: min(920px, 100%);
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.1rem;
}

.lead {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 2.5rem;
}

.mono {
  font-family: var(--mono);
  font-size: 0.92em;
}

/* About pillars */
.pillars {
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.pillars li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  row-gap: 0.35rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(16px);
}

.pillars li.is-in {
  animation: riseIn 0.7s var(--ease) forwards;
}

.pillars li:nth-child(2).is-in { animation-delay: 0.08s; }
.pillars li:nth-child(3).is-in { animation-delay: 0.16s; }

.pillar-mark {
  grid-row: 1 / -1;
  width: 12px;
  height: 12px;
  margin-top: 0.4rem;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.pillars strong {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
}

.pillars span:last-child {
  grid-column: 2;
  color: var(--muted);
  max-width: 34rem;
}

/* Tokenomics */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.stats > div {
  padding: 1.4rem 1rem 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.stats > div:nth-child(odd) {
  padding-right: 1.25rem;
  border-right: 1px solid var(--line);
}

.stats > div:nth-child(even) {
  padding-left: 1.25rem;
}

.stats dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.stats dd {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
}

/* How to buy */
.steps {
  list-style: none;
  display: grid;
  gap: 0;
  margin-bottom: 2rem;
  border-top: 1px solid var(--line);
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  padding-top: 0.2rem;
}

.steps strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
}

.steps p {
  color: var(--muted);
  max-width: 36rem;
}

.how-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Chart */
.dex-embed {
  position: relative;
  width: 100%;
  padding-bottom: 125%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.dex-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 900px) {
  .dex-embed {
    padding-bottom: 62%;
  }
}

/* Community */
.community {
  padding-bottom: 5rem;
}

.community-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.community-logo {
  width: 88px;
  height: 88px;
  margin-bottom: 1.5rem;
  animation: pulseHex 3.5s ease-in-out infinite;
}

.community .lead {
  margin-left: auto;
  margin-right: auto;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Footer */
.site-footer {
  padding: 2rem 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.footer-brand img {
  width: 28px;
  height: 28px;
}

.footer-sym {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.footer-note,
.footer-ca {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Animations */
@keyframes riseIn {
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulseHex {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); transform: scale(1); }
  50% { filter: drop-shadow(0 0 18px rgba(209, 243, 31, 0.45)); transform: scale(1.04); }
}

@media (min-width: 768px) {
  .site-header {
    padding: 1.15rem 2.5rem;
  }

  .nav {
    display: flex;
  }

  .hero {
    padding-bottom: 5.5rem;
  }

  .hero-content {
    margin-left: 2.5rem;
  }

  .section {
    padding: 8rem 2.5rem;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats > div {
    padding: 1.5rem 1.25rem 1.5rem 0;
    border-right: 1px solid var(--line);
  }

  .stats > div:nth-child(odd),
  .stats > div:nth-child(even) {
    padding-left: 0;
    padding-right: 1.25rem;
  }

  .stats > div:nth-child(3n) {
    border-right: none;
    padding-right: 0;
  }

  .stats > div:nth-child(n + 4) {
    /* keep bottom border on second row */
  }
}

@media (max-width: 480px) {
  .site-header .btn-sm {
    display: none;
  }

  .hero-actions .ca-btn {
    width: 100%;
  }
}
