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

:root {
  --bg: #0a0f0a;
  --bg-alt: #0f1610;
  --fg: #e8efe6;
  --muted: #8a9a87;
  --accent: #00d97e;
  --accent-2: #00b368;
  --down: #ff5d6c;
  --border: #1c2a1f;
  --card: #111a13;
  --card-hover: #142219;
  --max: 1100px;
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background:
    linear-gradient(180deg, rgba(10, 15, 10, 0.88) 0%, rgba(10, 15, 10, 0.94) 40%, var(--bg) 100%),
    url("assets/bg-chart.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(10, 15, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: block;
}

.hero-logo {
  width: 170px;
  height: 130px;
  margin: 0 auto 24px;
  display: block;
  border-radius: 24px;
  position: relative;
  z-index: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--fg);
  font-weight: 500;
  transition: color 0.2s;
}

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

/* HERO */
.hero {
  text-align: center;
  padding: 80px 24px 100px;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 217, 126, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.ticker-pill {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 24px;
  font-family: var(--font-mono);
}

.title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #00ff9d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ticker {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

.tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--accent);
  color: #042010;
  box-shadow: 0 0 0 rgba(0, 217, 126, 0);
}

.btn.primary:hover {
  background: var(--accent-2);
  box-shadow: 0 8px 24px rgba(0, 217, 126, 0.25);
}

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

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

.btn.small {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* SECTIONS */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 24px;
}

.section.alt {
  background: var(--bg-alt);
  max-width: none;
}

.section.alt > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-align: center;
}

.lead {
  text-align: center;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--card-hover);
  box-shadow: 0 12px 32px rgba(0, 217, 126, 0.08);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 16px;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.step-card {
  position: relative;
  padding-top: 40px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #042010;
  font-weight: 700;
  font-size: 0.9rem;
  margin-right: 12px;
  flex-shrink: 0;
}

.step-num.big {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 36px;
  height: 36px;
  font-size: 1rem;
}

.step-card h3 {
  padding-left: 50px;
}

/* STEPS */
.steps {
  list-style: none;
  max-width: 700px;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.steps li {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.steps li > div {
  flex: 1;
}

/* QUOTE */
.quote {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 32px;
  border-left: 3px solid var(--accent);
  background: rgba(0, 217, 126, 0.04);
  border-radius: 0 12px 12px 0;
}

.quote p {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 12px;
}

.quote cite {
  color: var(--muted);
  font-style: normal;
  font-size: 0.9rem;
}

/* CA BOX */
.ca-box {
  max-width: 600px;
  margin: 48px auto 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  flex-wrap: wrap;
}

.ca-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  width: 100%;
}

#ca {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  word-break: break-all;
  color: var(--fg);
  min-width: 0;
}

/* MANIFESTO */
.manifesto {
  text-align: center;
}

.manifesto p {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.manifesto .muted {
  font-size: 0.95rem;
  font-weight: 400;
  margin-top: 24px;
}

/* FOOTER */
.footer {
  background: var(--bg-alt);
  padding: 60px 24px 30px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
}

.footer a {
  display: block;
  padding: 4px 0;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.85rem;
}

.copyright {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  max-width: var(--max);
  margin: 0 auto;
}

/* CHART */
.chart-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  position: relative;
}

.chart-glow {
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 217, 126, 0.35), transparent 40%, transparent 60%, rgba(0, 217, 126, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.dex-embed {
  position: relative;
  width: 100%;
  height: 640px;
  border-radius: 10px;
  overflow: hidden;
  background: #0d1117;
  border: 1px solid var(--border);
}

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

.chart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .dex-embed {
    height: 420px;
  }
}

/* RESPONSIVE */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .nav-links {
    gap: 14px;
    font-size: 0.9rem;
  }

  .hero {
    padding: 60px 20px 80px;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-num {
    font-size: 1.5rem;
  }

  .section {
    padding: 60px 20px;
  }

  body {
    background-attachment: scroll;
  }
}
