:root {
  --bg: #121020;
  --bg-soft: #1c1830;
  --card: #24203b;
  --card-deep: #171426;
  --text: #f6f2ff;
  --muted: #afa8c8;
  --border: rgba(255, 255, 255, 0.12);
  --yellow: #f6c343;
  --green: #55d37a;
  --blue: #56a8ff;
  --purple: #b064ff;
  --yellow-glow: rgba(246, 195, 67, 0.26);
  --green-glow: rgba(85, 211, 122, 0.18);
  --blue-glow: rgba(86, 168, 255, 0.2);
  --purple-glow: rgba(176, 100, 255, 0.22);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
  --container: 1280px;
  color-scheme: dark;
  font-family: "Nunito", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3,
.font-display {
  font-family: "Fredoka", ui-sans-serif, system-ui, sans-serif;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.site-bg img {
  width: 100%;
  height: 120%;
  object-fit: cover;
}

.bg-dim,
.bg-fade {
  position: absolute;
  inset: 0;
}

.bg-dim {
  background: rgba(0, 0, 0, 0.58);
}

.bg-fade {
  background:
    linear-gradient(180deg, rgba(18, 16, 32, 0.42), transparent 34%, rgba(18, 16, 32, 0.72)),
    radial-gradient(circle at 50% 28%, transparent, rgba(18, 16, 32, 0.48) 68%);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 16, 32, 0.78);
  backdrop-filter: blur(16px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(18, 16, 32, 0.94);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--container), calc(100% - 32px));
  min-height: 68px;
  margin-inline: auto;
}

.brand-link img {
  width: 146px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  font-weight: 900;
  letter-spacing: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-cta {
  padding: 0 16px;
  background: var(--yellow);
  color: #2a1d07;
  font-size: 0.92rem;
}

.nav-cta:hover,
.button-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 14px 32px var(--yellow-glow);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88svh;
  padding: 92px 0 44px;
  overflow: hidden;
}

.grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 42px 42px;
}

.glow,
.section-glow,
.waitlist-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(90px);
}

.glow-yellow {
  top: 43%;
  left: 50%;
  width: 270px;
  height: 270px;
  background: rgba(246, 195, 67, 0.12);
  transform: translate(-50%, -50%);
}

.glow-blue {
  right: 18%;
  bottom: 18%;
  width: 330px;
  height: 330px;
  background: var(--blue-glow);
}

.glow-purple {
  top: 22%;
  left: 19%;
  width: 330px;
  height: 330px;
  background: var(--purple-glow);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 54px;
  align-items: center;
}

.status-pill,
.section-pill,
.dev-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  border: 1px solid rgba(246, 195, 67, 0.32);
  border-radius: 999px;
  background: rgba(246, 195, 67, 0.1);
  color: var(--yellow);
  font-size: 0.86rem;
  font-weight: 900;
}

.status-pill {
  margin-bottom: 18px;
  padding: 0 14px;
}

.status-pill svg,
.button svg,
.waitlist-icon svg,
.form-note svg,
.email-field svg,
.footer-mark svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.hero-copy h1 {
  max-width: 700px;
  font-size: clamp(2.55rem, 6vw, 4.75rem);
  line-height: 0.98;
}

.hero-copy h1 span {
  display: inline;
  color: var(--yellow);
  text-shadow: 0 0 24px rgba(246, 195, 67, 0.25);
}

.hero-text {
  max-width: 640px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  line-height: 1.72;
}

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

.button {
  padding: 0 22px;
}

.button-primary {
  background: var(--yellow);
  color: #2a1d07;
}

.button-ghost {
  border: 1px solid var(--border);
  background: rgba(36, 32, 59, 0.86);
  color: var(--text);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-art img {
  width: min(100%, 570px);
  filter: drop-shadow(0 28px 38px rgba(0, 0, 0, 0.42));
  user-select: none;
}

.xp-badge {
  position: absolute;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(36, 32, 59, 0.86);
  box-shadow: var(--shadow);
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 950;
  backdrop-filter: blur(12px);
}

.xp-top {
  top: 4%;
  right: 2%;
}

.xp-bottom {
  bottom: 4%;
  left: 0;
  color: var(--blue);
}

.section {
  position: relative;
  padding: 104px 0;
}

.features-section {
  overflow: hidden;
}

.section-glow-green {
  top: 0;
  left: 30%;
  width: 440px;
  height: 440px;
  background: var(--green-glow);
}

.section-glow-purple {
  right: 14%;
  bottom: 0;
  width: 440px;
  height: 440px;
  background: var(--purple-glow);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 58px;
  text-align: center;
}

.section-pill {
  padding: 0 14px;
}

.section-pill.blue {
  border-color: rgba(86, 168, 255, 0.34);
  background: rgba(86, 168, 255, 0.1);
  color: var(--blue);
}

.section-pill.green {
  border-color: rgba(85, 211, 122, 0.34);
  background: rgba(85, 211, 122, 0.1);
  color: var(--green);
}

.section-heading h2,
.waitlist-card h2 {
  margin-top: 16px;
  font-size: clamp(2.05rem, 4vw, 3.1rem);
  line-height: 1.06;
}

.section-heading p,
.waitlist-card p,
.rpg-card p,
.step-copy p,
.site-footer p {
  color: var(--muted);
  line-height: 1.7;
}

.section-heading > p {
  margin-top: 16px;
  font-size: 1.08rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.rpg-card,
.waitlist-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(36, 32, 59, 0.96), rgba(21, 18, 35, 0.96));
  box-shadow: 0 14px 46px rgba(0, 0, 0, 0.22);
}

.rpg-card {
  min-height: 270px;
  padding: 24px;
}

.top-line {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--green), var(--blue), var(--purple));
}

.icon-box,
.step-icon,
.waitlist-icon,
.footer-mark {
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
}

.icon-box {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor 12%, transparent);
}

.icon-box svg,
.step-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.yellow { color: var(--yellow); }
.green { color: var(--green); }
.blue { color: var(--blue); }
.purple { color: var(--purple); }

.rpg-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.rpg-card p {
  font-size: 0.94rem;
}

.steps-section {
  overflow: hidden;
}

.timeline {
  position: relative;
  display: grid;
  gap: 74px;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border), transparent);
  transform: translateX(-50%);
}

.step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.step-left .step-copy {
  text-align: right;
}

.step-right .step-copy {
  text-align: left;
}

.step-number {
  display: inline-flex;
  margin-bottom: 10px;
  font-family: "Fredoka", sans-serif;
  font-size: 2.35rem;
  font-weight: 900;
}

.step-copy h3 {
  font-size: 1.7rem;
}

.step-copy p {
  margin-top: 10px;
}

.step-icon {
  width: 82px;
  height: 82px;
  border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor 12%, transparent);
  box-shadow: 0 20px 50px color-mix(in srgb, currentColor 18%, transparent);
}

.waitlist-section {
  overflow: hidden;
}

.waitlist-glow {
  top: 50%;
  left: 50%;
  width: 560px;
  height: 560px;
  background: rgba(246, 195, 67, 0.13);
  transform: translate(-50%, -50%);
}

.waitlist-container {
  max-width: 820px;
}

.waitlist-card {
  padding: 42px;
  text-align: center;
}

.waitlist-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 4px;
  background: rgba(246, 195, 67, 0.12);
  color: var(--yellow);
}

.waitlist-card > p {
  max-width: 610px;
  margin: 16px auto 0;
}

.waitlist-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 30px;
}

.email-field {
  position: relative;
  display: block;
}

.email-field svg {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--muted);
  transform: translateY(-50%);
}

.email-field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(18, 16, 32, 0.72);
  color: var(--text);
  padding: 0 16px 0 46px;
  outline: none;
}

.email-field input:focus {
  border-color: rgba(246, 195, 67, 0.8);
  box-shadow: 0 0 0 3px rgba(246, 195, 67, 0.14);
}

.form-note,
.form-status {
  grid-column: 1 / -1;
}

.form-note {
  display: inline-flex;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
}

.form-note svg {
  width: 15px;
  height: 15px;
}

.form-status {
  min-height: 24px;
  color: var(--green);
  font-weight: 850;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 42px 0;
  background: rgba(18, 16, 32, 0.66);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Fredoka", sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
}

.footer-mark {
  width: 34px;
  height: 34px;
  background: var(--yellow);
  color: #2a1d07;
}

.dev-pill {
  padding: 0 12px;
  border-color: rgba(176, 100, 255, 0.34);
  background: rgba(176, 100, 255, 0.1);
  color: var(--purple);
  font-size: 0.78rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal-up { transform: translateY(28px); }
.reveal-left { transform: translateX(-38px); }
.reveal-right { transform: translateX(38px); }
.reveal-scale { transform: scale(0.92); }

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

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .hero-copy {
    display: grid;
    justify-items: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-art img {
    width: min(100%, 470px);
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .main-nav,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .main-nav.open {
    position: fixed;
    top: 78px;
    right: 16px;
    left: 16px;
    display: grid;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(18, 16, 32, 0.96);
    box-shadow: var(--shadow);
  }

  .main-nav.open a {
    min-height: 46px;
  }

  .timeline-line {
    left: 40px;
  }

  .step,
  .step.step-right,
  .step.step-left {
    grid-template-columns: 82px 1fr;
    gap: 20px;
  }

  .step > div:empty {
    display: none;
  }

  .step-icon {
    grid-column: 1;
    grid-row: 1;
    width: 76px;
    height: 76px;
  }

  .step-copy,
  .step-left .step-copy,
  .step-right .step-copy {
    grid-column: 2;
    text-align: left;
  }

  .waitlist-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container,
  .nav-shell {
    width: min(var(--container), calc(100% - 24px));
  }

  .brand-link img {
    width: 128px;
  }

  .hero-section {
    min-height: auto;
    padding: 86px 0 34px;
  }

  .hero-copy h1 {
    font-size: 2.18rem;
  }

  .hero-text {
    font-size: 0.96rem;
    line-height: 1.52;
  }

  .button {
    width: 100%;
  }

  .hero-art img {
    width: min(100%, 260px);
  }

  .hero-grid {
    gap: 20px;
  }

  .status-pill {
    min-height: 28px;
    margin-bottom: 12px;
    padding: 0 10px;
    font-size: 0.75rem;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 22px;
  }

  .button {
    min-height: 48px;
  }

  .xp-badge {
    display: none;
  }

  .section {
    padding: 76px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    gap: 42px;
  }

  .waitlist-card {
    padding: 28px 18px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
