:root {
  --bg: #07080f;
  --bg-elevated: #0f111a;
  --surface: #141824;
  --ink: #eef2ff;
  --muted: #94a3b8;
  --line: #252a3a;
  --primary: #6366f1;
  --primary-soft: rgba(99, 102, 241, 0.2);
  --teal: #2dd4bf;
  --amber: #f59e0b;
  --violet: #a78bfa;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

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

.aurora {
  position: fixed;
  inset: -20% -10% auto;
  height: 70vh;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(99, 102, 241, 0.35), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 10%, rgba(45, 212, 191, 0.22), transparent 55%),
    radial-gradient(ellipse 40% 35% at 50% 60%, rgba(167, 139, 250, 0.18), transparent 50%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  animation: auroraShift 18s ease-in-out infinite alternate;
}

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

@keyframes auroraShift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2%, 3%, 0) scale(1.05); }
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(20px, 4vw, 48px);
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  display: grid;
  place-items: center;
  font-weight: 800;
}

.site-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.site-nav a:hover,
.nav-cta {
  color: var(--ink);
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff !important;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 12px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px clamp(20px, 4vw, 48px) 80px;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 52ch;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn.primary {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #fff;
  box-shadow: 0 12px 40px var(--primary-soft);
}

.btn.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.hero-stats dt {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-stats dd {
  margin: 4px 0 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 360px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  animation: float 8s ease-in-out infinite;
}

.orb-a {
  width: 180px;
  height: 180px;
  top: 10%;
  left: 10%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.8), transparent 70%);
}

.orb-b {
  width: 140px;
  height: 140px;
  bottom: 15%;
  right: 5%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.7), transparent 70%);
  animation-delay: -3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.mesh-card {
  position: absolute;
  inset: 18% 8%;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(20, 24, 36, 0.92), rgba(10, 12, 20, 0.75));
  box-shadow: var(--shadow);
  padding: 28px;
  backdrop-filter: blur(12px);
}

.mesh-card p {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 1.2rem;
}

.mesh-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.pulse-line {
  margin-top: 24px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--teal), var(--violet));
  background-size: 200% 100%;
  animation: pulseLine 3s linear infinite;
}

@keyframes pulseLine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px clamp(20px, 4vw, 48px);
}

.section.alt {
  background: rgba(255, 255, 255, 0.02);
  border-block: 1px solid var(--line);
  max-width: none;
}

.section.alt > * {
  max-width: 1200px;
  margin-inline: auto;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 10px;
}

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

.tokenomics-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 28px;
}

.donut-wrap {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  position: relative;
}

.allocation-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.transparency-panel {
  margin-top: 24px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.network-badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.12);
  color: var(--teal);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.address-grid {
  display: grid;
  gap: 10px;
}

.address-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.address-row code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--muted);
  word-break: break-all;
}

.fine-print {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.cta-band {
  padding-block: 96px;
}

.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 32px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.12), rgba(20, 24, 36, 0.6));
}

.cta-inner h2 {
  margin: 0 0 12px;
}

.cta-inner p {
  color: var(--muted);
  margin: 0 0 24px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 32px clamp(20px, 4vw, 48px) 48px;
  max-width: 1200px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: 280px;
  }
  .tokenomics-layout {
    grid-template-columns: 1fr;
  }
  .site-nav {
    display: none;
  }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    right: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
  }
  .menu-toggle {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurora,
  .orb,
  .pulse-line {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Whitepaper page */
.wp-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.wp-page h1 {
  font-size: 2.4rem;
  letter-spacing: -0.03em;
}

.wp-page h2 {
  margin-top: 2.5rem;
  color: var(--teal);
}

.wp-page p,
.wp-page li {
  color: var(--muted);
}

.wp-page strong {
  color: var(--ink);
}
