:root {
  --bg0: #05060c;
  --bg1: #0c1224;
  --ice: #8fe9ff;
  --vod: #6aa7ff;
  --accent: #c9f0ff;
  --glass: rgba(255, 255, 255, 0.06);
  --stroke: rgba(143, 233, 255, 0.22);
  --text: #e8f4ff;
  --muted: #9db4d6;
  --glow: 0 0 40px rgba(111, 200, 255, 0.35);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% -10%, #132a55 0%, transparent 55%),
    radial-gradient(900px 700px at 100% 0%, #1a1f4a 0%, transparent 50%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 40%, #070a12);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Aurora mesh */
.fx-aurora {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background: conic-gradient(
      from 120deg at 50% 50%,
      rgba(80, 160, 255, 0.12),
      rgba(255, 120, 200, 0.08),
      rgba(120, 255, 220, 0.1),
      rgba(80, 160, 255, 0.12)
    ),
    radial-gradient(circle at 30% 20%, rgba(120, 200, 255, 0.15), transparent 45%);
  filter: blur(60px);
  opacity: 0.85;
  animation: aurora-spin 28s linear infinite;
}

@keyframes aurora-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Floating orbs */
.fx-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 60%);
  opacity: 0.12;
  animation: float-orb 14s var(--ease) infinite alternate;
}

.orb:nth-child(1) {
  width: 320px;
  height: 320px;
  left: -8%;
  top: 18%;
  animation-delay: -2s;
}
.orb:nth-child(2) {
  width: 220px;
  height: 220px;
  right: -4%;
  top: 42%;
  animation-delay: -5s;
}
.orb:nth-child(3) {
  width: 400px;
  height: 400px;
  left: 35%;
  bottom: -15%;
  animation-delay: -8s;
}

@keyframes float-orb {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(40px, -30px, 0) scale(1.08);
  }
}

/* Noise grain */
.fx-grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 100;
  background: linear-gradient(90deg, var(--vod), var(--ice));
  box-shadow: var(--glow);
  transition: width 0.08s linear;
}

.wrap {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

/* Referral countdown strip (above header) */
.ref-banner {
  position: relative;
  z-index: 60;
  width: 100%;
  padding: 0.55rem 1.25rem;
  background: linear-gradient(90deg, rgba(12, 28, 58, 0.96), rgba(8, 18, 42, 0.98));
  border-bottom: 1px solid var(--stroke);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.ref-banner__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}

.ref-banner__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.ref-banner__num {
  color: var(--ice);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ref-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: #061018;
  background: linear-gradient(135deg, var(--ice), var(--vod));
  box-shadow: var(--glow);
  transition: transform 0.2s var(--ease), filter 0.2s;
}

.ref-banner__btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Nav */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 0 -1.25rem;
  padding: 0.75rem 1.25rem;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(6, 10, 22, 0.85), rgba(6, 10, 22, 0.35));
  border-bottom: 1px solid var(--stroke);
}

.top-nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--ice), var(--vod));
  box-shadow: var(--glow);
  animation: pulse-mark 3.2s ease-in-out infinite;
}

@keyframes pulse-mark {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.05);
    filter: brightness(1.15);
  }
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s, transform 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--glass);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding: 3.2rem 0 2rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 2.5rem;
  }
}

.hero__title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  margin: 0 0 0.75rem;
  background: linear-gradient(120deg, #fff, var(--ice) 45%, var(--vod));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: title-shimmer 6s ease-in-out infinite;
}

@keyframes title-shimmer {
  0%,
  100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(18deg);
  }
}

.hero__lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s, background 0.25s;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  color: #041018;
  background: linear-gradient(120deg, var(--ice), var(--vod));
  box-shadow: 0 10px 40px rgba(80, 170, 255, 0.35);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-60%) rotate(12deg);
  transition: transform 0.6s var(--ease);
}

.btn--primary:hover::after {
  transform: translateX(60%) rotate(12deg);
}

.btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn--ghost {
  color: var(--text);
  background: var(--glass);
  border-color: var(--stroke);
}

.btn--ghost:hover {
  border-color: rgba(143, 233, 255, 0.55);
  transform: translateY(-2px);
}

.hero__panel {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  padding: 1.25rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--stroke);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform-style: preserve-3d;
  animation: panel-float 7s ease-in-out infinite;
}

@keyframes panel-float {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg);
  }
  50% {
    transform: translateY(-8px) rotateX(2deg);
  }
}

.hero__panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(143, 233, 255, 0.7), transparent, rgba(180, 120, 255, 0.45));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero__panel-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.mini-slot {
  aspect-ratio: 3/4;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateZ(0);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.mini-slot:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.mini-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Marquee */
.marquee {
  margin: 1.5rem 0 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.marquee__track {
  display: flex;
  gap: 2.5rem;
  padding: 0.65rem 0;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
}

.marquee span {
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Section */
.section {
  margin-top: 3rem;
  padding-top: 1rem;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.section__head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.section__head p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.5;
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  border-radius: var(--radius);
  padding: 1.1rem;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(143, 233, 255, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Slots */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.85rem;
}

.slot-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0f1c;
  aspect-ratio: 3/4;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
  cursor: pointer;
}

.slot-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.slot-card:hover {
  transform: perspective(900px) rotateX(4deg) rotateY(-4deg) translateZ(12px);
  box-shadow: 0 24px 60px rgba(30, 120, 255, 0.25);
}

.slot-card:hover::after {
  opacity: 1;
}

.slot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.slot-card:hover img {
  transform: scale(1.06);
}

.slot-card__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.45rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
}

.slot-card a {
  position: absolute;
  inset: 0;
  text-decoration: none;
}

/* Article */
.article {
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--stroke);
  background: rgba(5, 8, 18, 0.55);
  padding: 1.5rem 1.35rem 1.75rem;
  line-height: 1.72;
  font-size: 1.02rem;
}

.article h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
  color: var(--accent);
}

.article h3:first-child {
  margin-top: 0;
}

.article p {
  margin: 0 0 0.95rem;
  color: #c7daf2;
}

.article p strong {
  color: #fff;
  font-weight: 600;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.1rem;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary {
  color: var(--ice);
}

.faq-item p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

/* Spotlight cursor (desktop) */
.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(120, 200, 255, 0.14), transparent 65%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.35s;
}

body:hover .cursor-glow {
  opacity: 1;
}

@media (max-width: 900px), (pointer: coarse) {
  .cursor-glow {
    display: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto;
  }
  .cursor-glow {
    display: none;
  }
}
