:root {
  --bg: #0b1026;
  --bg-deep: #080c1d;
  --surface: #121938;
  --surface-2: #171f45;
  --ink: #f7f7ff;
  --muted: #c9cbe8;
  --line: rgba(247, 247, 255, 0.14);
  --pink: #f72585;
  --cyan: #4cc9f0;
  --lime: #b8f35a;
  --violet-mist: #bfa7ff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Baloo 2", system-ui, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(76, 201, 240, 0.14), transparent 26%),
    radial-gradient(circle at 85% 12%, rgba(247, 37, 133, 0.12), transparent 20%),
    linear-gradient(180deg, #10163a 0%, var(--bg) 30%, var(--bg-deep) 100%);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.12) 0.5px, transparent 1px);
  background-size: 100% 4px, 22px 22px, 18px 18px;
  mix-blend-mode: screen;
}

.cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(76,201,240,0.14) 0%, rgba(76,201,240,0.05) 35%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.site-header,
main,
.toast {
  position: relative;
  z-index: 1;
}

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(76, 201, 240, 0.18));
}

.brand-meta strong,
.brand-meta em {
  display: block;
  line-height: 1;
}

.brand-meta strong {
  font-size: 1.15rem;
}

.brand-meta em {
  margin-top: 6px;
  font-style: normal;
  color: var(--cyan);
  font-family: "Space Mono", monospace;
  font-size: 0.86rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.98rem;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(247, 247, 255, 0.06);
  color: var(--ink);
  outline: none;
}

.nav-pill {
  border: 2px solid rgba(184, 243, 90, 0.45);
  color: var(--ink) !important;
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 90px;
}

.hero {
  padding-top: 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 28px;
  align-items: center;
}

.hero-copy {
  padding: 30px 0 20px;
}

.eyebrow,
.card-kicker,
.label {
  font-family: "Space Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--lime);
  font-size: 0.84rem;
  margin: 0 0 16px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 6.7rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.hero h1 span {
  display: block;
  color: var(--cyan);
  font-size: 0.56em;
  margin-top: 12px;
  font-family: "Space Mono", monospace;
  letter-spacing: -0.04em;
}

.hero-tagline {
  margin: 20px 0 8px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  color: #ffd2e8;
  max-width: 11ch;
  line-height: 1;
}

.hero-text {
  margin: 0;
  max-width: 58ch;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--muted);
}

.hero-actions,
.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 15px 22px;
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.btn-primary {
  background: linear-gradient(90deg, var(--pink), #ff7eb8);
  color: white;
  box-shadow: 0 12px 30px rgba(247, 37, 133, 0.28);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--ink);
  border: 1px solid rgba(76, 201, 240, 0.32);
}

.status-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.dot-pink { background: var(--pink); }

.progress-chip strong {
  color: var(--lime);
}

.mini-progress {
  width: 90px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.mini-progress i,
.meter-track i {
  display: block;
  height: 100%;
  width: 99%;
  background: repeating-linear-gradient(90deg, #fff7bc 0 12px, #b8f35a 12px 24px, #9bf1ff 24px 36px, #fbb2d7 36px 48px);
  border-radius: inherit;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.sticker-stage {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.hero-logo {
  width: 86%;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(10, 14, 35, 0.6));
}

.main-float {
  animation: drift 5.8s ease-in-out infinite;
}

.hero-orbit {
  position: absolute;
  border: 1px dashed rgba(191, 167, 255, 0.25);
  border-radius: 50%;
}

.orbit-a {
  width: 84%;
  height: 84%;
}

.orbit-b {
  width: 64%;
  height: 64%;
}

.question {
  position: absolute;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.7rem);
  color: rgba(247,247,255,0.95);
  text-shadow: 0 4px 0 rgba(0,0,0,0.12);
  animation: bob 3.8s ease-in-out infinite;
}

.question-a { top: 10%; left: 9%; }
.question-b { top: 18%; right: 6%; animation-delay: -1s; }
.question-c { bottom: 20%; right: 12%; animation-delay: -2s; }

.scan-arc {
  position: absolute;
  top: 7%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.scan-arc span {
  display: block;
  width: 18px;
  border-radius: 999px;
  background: white;
  opacity: 0.9;
  transform-origin: bottom center;
}

.scan-arc span:nth-child(1) { height: 28px; background: #f7f7ff; }
.scan-arc span:nth-child(2) { height: 40px; background: #f7f7ff; }
.scan-arc span:nth-child(3) { height: 58px; background: #f29bc4; }
.scan-arc span:nth-child(4) { height: 56px; background: #8ceeff; }
.scan-arc span:nth-child(5) { height: 50px; background: #96f2d9; }
.scan-arc span:nth-child(6) { height: 36px; background: #cab7ff; }

.banner-band {
  margin-top: 28px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  background: #111631;
}

.banner-image {
  width: 100%;
  object-fit: cover;
  min-height: 220px;
}

.signal-strip,
.lore-section,
.token-section,
.how-section,
.roadmap-section,
.faq-section,
.join-section {
  margin-top: 34px;
}

.signal-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 18px;
}

.signal-card,
.token-shell,
.step-card,
.road-card,
.faq-item,
.join-card,
.lore-aside {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.035));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.signal-card {
  padding: 24px;
  border-radius: 24px;
}

.signal-card.large {
  padding: 30px;
}

.card-kicker {
  margin: 0 0 12px;
  font-size: 0.78rem;
  color: var(--cyan);
}

.signal-card h2,
.section-head h2,
.join-card h2 {
  margin: 0;
  line-height: 0.94;
  letter-spacing: -0.03em;
}

.signal-card h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.5rem);
}

.signal-card p,
.lore-node p,
.step-card p,
.road-card p,
.faq-item p,
.join-card p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.55;
}

.signal-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
}

.signal-list li + li {
  margin-top: 12px;
}

.mystery-meter {
  margin: 6px 0 16px;
}

.meter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-family: "Space Mono", monospace;
}

.meter-track {
  height: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.meter-track i {
  width: 0;
  transition: width 1.5s cubic-bezier(.22,1,.36,1);
}

.small-note {
  font-size: 0.94rem !important;
}

.section-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 4rem);
}

.lore-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 18px;
}

.lore-aside {
  border-radius: 30px;
  padding: 24px;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

.stacked-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stacked-tags span {
  padding: 12px 16px;
  border-radius: 999px;
  font-family: "Space Mono", monospace;
  font-size: 0.86rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
}

.stacked-tags span:nth-child(odd) {
  color: var(--cyan);
}

.stacked-tags span:nth-child(even) {
  color: #ffd5e8;
}

.lore-timeline {
  display: grid;
  gap: 16px;
}

.lore-node {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
}

.node-id {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(247,37,133,0.24), rgba(76,201,240,0.18));
  color: var(--ink);
  font-family: "Space Mono", monospace;
  font-weight: 700;
}

.lore-node h3,
.road-card h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.token-shell {
  border-radius: 34px;
  padding: 18px;
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.token-item {
  min-height: 156px;
  border-radius: 24px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(8, 12, 29, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

.token-item::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  opacity: 0.18;
}

.accent-pink::after { background: var(--pink); }
.accent-cyan::after { background: var(--cyan); }
.accent-lime::after { background: var(--lime); }
.accent-white::after { background: #ffffff; }

.label {
  color: var(--muted);
  font-size: 0.78rem;
}

.token-item strong {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.contract-box {
  gap: 12px;
}

.tiny-copy {
  align-self: flex-start;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
}

.steps-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-card {
  border-radius: 28px;
  padding: 22px;
  position: relative;
}

.step-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.step-top span {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(76,201,240,0.16);
  color: var(--cyan);
  font-family: "Space Mono", monospace;
}

.step-top b {
  font-size: 1.35rem;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.road-card {
  border-radius: 26px;
  padding: 22px;
  min-height: 240px;
}

.road-card span {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--lime);
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border-radius: 22px;
  padding: 0 22px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-size: 1.18rem;
  font-weight: 700;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--cyan);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 20px;
  max-width: 70ch;
}

.join-card {
  border-radius: 34px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  align-items: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(24px);
  background: rgba(8, 12, 29, 0.88);
  color: var(--ink);
  border: 1px solid rgba(184,243,90,0.35);
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

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

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

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.18s ease;
}

@keyframes drift {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

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

@media (max-width: 1080px) {
  .hero-grid,
  .signal-strip,
  .lore-layout,
  .join-card,
  .roadmap-grid,
  .steps-wrap,
  .token-grid,
  .section-head {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 420px;
  }

  .road-card,
  .token-item {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .site-header {
    padding-top: 16px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 86px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(11, 16, 38, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    background: rgba(255,255,255,0.04);
  }

  .hero-copy {
    padding-top: 10px;
  }

  .hero-tagline {
    max-width: 100%;
  }

  .status-chip {
    width: 100%;
    justify-content: space-between;
  }

  .lore-node {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  main,
  .site-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-visual {
    min-height: 320px;
  }

  .signal-card,
  .signal-card.large,
  .step-card,
  .road-card,
  .join-card,
  .token-shell,
  .lore-aside,
  .faq-item {
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}