@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #0b0715;
  --bg-alt: #120b20;
  --ink: #f3efff;
  --muted: #b2abc5;
  --card: #161225;
  --surface: #1a142a;
  --surface-2: #221a38;
  --stroke: rgba(240, 235, 255, 0.12);
  --accent: #9b5cff;
  --accent-2: #ff5fd0;
  --accent-3: #35d0ff;
  --shadow-soft: 0 28px 60px rgba(7, 4, 14, 0.5);
  --shadow-strong: 0 40px 70px rgba(4, 2, 12, 0.75);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-display: "Space Grotesk", "Sora", sans-serif;
  --font-body: "Instrument Sans", "Work Sans", sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

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

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

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(
      circle at 12% 18%,
      rgba(155, 92, 255, 0.32) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 86% 10%,
      rgba(53, 208, 255, 0.22) 0%,
      transparent 38%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 95, 208, 0.22) 0%,
      transparent 42%
    ),
    linear-gradient(140deg, #0b0715 0%, #120b22 55%, #0a0614 100%);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      90deg,
      rgba(243, 239, 255, 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(
      0deg,
      rgba(243, 239, 255, 0.06) 1px,
      transparent 1px
    );
  background-size: 80px 80px;
  opacity: 0.35;
}

.orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}

.orb-1 {
  background: #6b35f5;
  top: -120px;
  left: -120px;
}

.orb-2 {
  background: #2fa6ff;
  top: 10%;
  right: -160px;
  animation-delay: 2s;
}

.orb-3 {
  background: #ff5fd0;
  bottom: -140px;
  left: 25%;
  animation-delay: 4s;
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(11, 7, 21, 0.82);
  border-bottom: 1px solid rgba(240, 235, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.4px;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.2s ease;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fdf9ff;
  box-shadow: 0 18px 40px rgba(155, 92, 255, 0.35);
}

.btn.ghost {
  border-color: rgba(240, 235, 255, 0.22);
  color: var(--ink);
  background: transparent;
}

.btn.small {
  padding: 10px 18px;
  font-size: 0.95rem;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(7, 4, 14, 0.55);
}

.hero {
  padding: 110px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.6vw, 3.6rem);
  line-height: 1.05;
  margin: 12px 0 18px;
}

.eyebrow {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--muted);
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.stat-card {
  background: rgba(16, 12, 26, 0.72);
  border: 1px solid rgba(240, 235, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 6px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
}

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

.hero-media {
  position: relative;
  min-height: 520px;
}

.game-reel {
  position: relative;
  height: 520px;
  overflow: hidden;
  display: grid;
  place-items: center;
  --cycle: 40s;
  --gap: 8s;
}

.game-slide {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(420px, 88%);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(240, 235, 255, 0.16);
  box-shadow: 0 24px 60px rgba(4, 2, 12, 0.65);
  transform: translate(-50%, -50%) translateX(260%);
  opacity: 0;
  animation: reel-drift var(--cycle) linear infinite;
  animation-delay: calc(var(--i) * var(--gap) * -1);
  will-change: transform, opacity;
  background: #120b1f;
}

.game-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.glass-tag {
  position: absolute;
  right: 20px;
  bottom: -6px;
  background: rgba(12, 9, 22, 0.8);
  border: 1px solid rgba(240, 235, 255, 0.16);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(6, 4, 12, 0.6);
}

.section {
  padding: 90px 0;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  background: rgba(16, 12, 26, 0.75);
  border: 1px solid rgba(240, 235, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 10px;
}

.feature-card h3 {
  font-family: var(--font-display);
  margin: 0;
}

.feature-card p {
  color: var(--muted);
  margin: 0;
}


.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.step-card {
  padding: 22px;
  background: rgba(16, 12, 26, 0.8);
  border-radius: var(--radius-md);
  border: 1px solid rgba(240, 235, 255, 0.08);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 12px;
}

.step-number {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent-2);
}

.cta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background-color: rgba(12, 9, 22, 0.85);
  background-image: linear-gradient(
    120deg,
    rgba(155, 92, 255, 0.2),
    rgba(53, 208, 255, 0.12)
  );
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid rgba(240, 235, 255, 0.12);
  box-shadow: var(--shadow-soft);
}

.cta-card h2 {
  font-family: var(--font-display);
  margin: 0 0 12px;
}

.cta-card p {
  margin: 0;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 50;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 12, 0.75);
  backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  width: min(520px, 92vw);
  background: #120b1f;
  border-radius: var(--radius-md);
  border: 1px solid rgba(240, 235, 255, 0.12);
  box-shadow: 0 30px 70px rgba(3, 2, 10, 0.8);
  padding: 28px;
  color: var(--ink);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal.is-open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 1px solid rgba(240, 235, 255, 0.12);
  background: rgba(20, 14, 32, 0.9);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
}

.modal-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: rgba(10, 8, 18, 0.7);
  border: 1px solid rgba(240, 235, 255, 0.16);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(155, 92, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(155, 92, 255, 0.2);
}

.form-status {
  min-height: 1.2em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-status.is-success {
  color: #d5f2df;
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.toast {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: min(360px, 90vw);
  background: rgba(12, 9, 22, 0.95);
  border: 1px solid rgba(240, 235, 255, 0.16);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 24px 50px rgba(4, 2, 12, 0.6);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast.is-success {
  border-color: rgba(120, 220, 170, 0.4);
}

.toast.is-error {
  border-color: rgba(255, 120, 120, 0.4);
}

.toast-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toast-message {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
}

.toast-action {
  border: 1px solid rgba(240, 235, 255, 0.2);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.site-footer {
  padding: 40px 0 60px;
  border-top: 1px solid rgba(240, 235, 255, 0.08);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  color: var(--muted);
}

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

.footer-links a:hover {
  color: var(--ink);
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}

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

@keyframes reel-drift {
  0% {
    transform: translate(-50%, -50%) translateX(260%) scale(0.92);
    opacity: 0.08;
  }
  30% {
    opacity: 0.35;
  }
  50% {
    transform: translate(-50%, -50%) translateX(0%) scale(1);
    opacity: 1;
  }
  70% {
    opacity: 0.35;
  }
  100% {
    transform: translate(-50%, -50%) translateX(-260%) scale(0.92);
    opacity: 0.08;
  }
}

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

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero-media {
    min-height: auto;
  }

  .game-reel {
    height: 420px;
  }

  .game-slide {
    width: min(420px, 92%);
  }

  .glass-tag {
    position: static;
    margin-top: 16px;
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-reel {
    height: auto;
    overflow: visible;
    padding: 8px 0;
  }

  .game-slide {
    position: static;
    transform: none;
    opacity: 1;
    animation: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  .hero {
    padding-top: 60px;
  }

  .btn.small {
    display: none;
  }

  .game-reel {
    height: 320px;
  }

  .game-slide {
    width: min(320px, 92%);
  }

  .cta-card {
    padding: 24px;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}
