/* ============================================================
   CHAOS LOOP — Promotional Website Styles
   Zero-dependency, hand-crafted CSS
   ============================================================ */

/* ── Custom Properties ────────────────────────────────────── */
:root {
  /* Colors — from the game's neon blue→purple icon */
  --bg-deep: #050510;
  --bg-surface: #0a0a1a;
  --bg-card: rgba(15, 15, 35, 0.6);
  --bg-card-hover: rgba(25, 25, 55, 0.8);

  --primary: #6c5ce7;
  --primary-glow: #a855f7;
  --primary-dim: rgba(108, 92, 231, 0.15);

  --accent: #00d4ff;
  --accent-glow: #22d3ee;
  --accent-dim: rgba(0, 212, 255, 0.12);

  --gold: #fbbf24;
  --gold-glow: #f59e0b;
  --gold-dim: rgba(251, 191, 36, 0.1);

  --text: #e8e6f0;
  --text-muted: #8b8a9e;
  --text-heading: #ffffff;

  --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
  --gradient-gold: linear-gradient(135deg, var(--gold), #ef8f00, var(--gold));
  --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(108, 92, 231, 0.2) 0%, transparent 60%);

  /* Typography */
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;

  --fs-hero: clamp(2.4rem, 5vw + 1rem, 4.5rem);
  --fs-h2: clamp(1.8rem, 3vw + 0.5rem, 3rem);
  --fs-h3: clamp(1.1rem, 1.5vw + 0.3rem, 1.5rem);
  --fs-body: clamp(0.95rem, 1vw + 0.2rem, 1.125rem);
  --fs-small: clamp(0.8rem, 0.8vw + 0.2rem, 0.95rem);

  /* Spacing */
  --section-py: clamp(4rem, 8vw, 8rem);
  --container-px: clamp(1.25rem, 4vw, 3rem);
  --container-max: 1200px;
  --card-radius: 16px;
  --btn-radius: 12px;

  /* Effects */
  --glow-primary: 0 0 30px rgba(108, 92, 231, 0.4), 0 0 60px rgba(108, 92, 231, 0.15);
  --glow-accent: 0 0 30px rgba(0, 212, 255, 0.4), 0 0 60px rgba(0, 212, 255, 0.15);
  --glow-gold: 0 0 30px rgba(251, 191, 36, 0.4), 0 0 60px rgba(251, 191, 36, 0.15);
  --glass-blur: blur(16px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.3s var(--ease-out-expo);
  --transition-slow: 0.6s var(--ease-out-expo);
}

/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

/* ── Container ────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ── Star Canvas (Background) ─────────────────────────────── */
#star-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Scroll Animations ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition-base), padding var(--transition-base), box-shadow var(--transition-base);
}

.nav.scrolled {
  background: rgba(5, 5, 16, 0.92);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 0.6rem 0;
  box-shadow: 0 1px 30px rgba(108, 92, 231, 0.1);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 1px;
}

.nav__logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav__logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color var(--transition-base);
  letter-spacing: 0.5px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
  border-radius: 1px;
}

.nav__link:hover {
  color: var(--text-heading);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__lang-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  transition: all var(--transition-base);
  letter-spacing: 1px;
}

.nav__lang-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  box-shadow: var(--glow-accent);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile Nav ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 80vw);
    height: 100vh;
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    background: rgba(5, 5, 16, 0.97);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: right var(--transition-slow);
    border-left: var(--glass-border);
    padding: 2rem;
  }

  .nav__links.open {
    right: 0;
  }

  .nav__link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
  }
}

/* ── Section Heading ────────────────────────────────────────── */
.section-heading {
  text-align: center;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.section-heading__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.15);
  margin-bottom: 1.25rem;
}

.section-heading__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-heading__title .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-heading__subtitle {
  font-size: var(--fs-body);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(80px + 2rem) 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(108, 92, 231, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 40%;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.hero__logo-container {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.hero__logo {
  width: clamp(100px, 18vw, 160px);
  height: clamp(100px, 18vw, 160px);
  border-radius: 28px;
  box-shadow: var(--glow-primary), 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero__logo-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 32px;
  border: 2px solid rgba(108, 92, 231, 0.3);
  animation: pulse-ring 3s ease-in-out infinite;
}

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

@keyframes pulse-ring {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--fs-hero);
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1.1;
}

.hero__title-main {
  display: block;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent) 50%, var(--primary-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__title-sub {
  display: block;
  font-size: 0.4em;
  letter-spacing: 8px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.8rem;
  -webkit-text-fill-color: var(--text-muted);
}

.hero__tagline {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.8;
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.hero__banner {
  position: relative;
  margin-top: 2rem;
  max-width: 550px;
  border-radius: 20px;
  overflow: hidden;
}

.hero__banner img {
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(108, 92, 231, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero__banner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(to top, var(--bg-deep), transparent 40%);
  pointer-events: none;
}

/* ── CTA Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 0.9rem 2rem;
  border-radius: var(--btn-radius);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 25px rgba(108, 92, 231, 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-primary), 0 8px 30px rgba(108, 92, 231, 0.5);
}

.btn--outline {
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.03);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.btn--gold {
  background: var(--gradient-gold);
  color: #1a1a2e;
  box-shadow: 0 4px 25px rgba(251, 191, 36, 0.3);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-gold), 0 8px 30px rgba(251, 191, 36, 0.4);
}

.btn__icon {
  width: 20px;
  height: 20px;
}

.btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.6s;
}

.btn:hover::after {
  transform: rotate(45deg) translateX(100%);
}

/* Store badges */
.store-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--btn-radius);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  transition: all var(--transition-base);
}

.store-badge:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.store-badge__icon {
  width: 28px;
  height: 28px;
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-badge__small {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  line-height: 1;
}

.store-badge__name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.3;
}

/* ── PHASES Section ─────────────────────────────────────────── */
.phases {
  position: relative;
  z-index: 1;
  padding: var(--section-py) 0;
}

.phases__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
}

.phase-card {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  cursor: default;
  aspect-ratio: 4/5;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.phase-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), var(--glow-primary);
}

.phase-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.phase-card:hover .phase-card__image {
  transform: scale(1.1);
}

.phase-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 5, 16, 0.95) 0%,
    rgba(5, 5, 16, 0.4) 40%,
    rgba(5, 5, 16, 0.1) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.phase-card__number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--accent);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.phase-card__icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.phase-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}

.phase-card__desc {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.6;
}

.phase-card__glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.phase-card:hover .phase-card__glow {
  opacity: 1;
  box-shadow: 0 0 20px var(--primary-glow);
}

/* ── GALLERY Section ─────────────────────────────────────────── */
.gallery {
  position: relative;
  z-index: 1;
  padding: var(--section-py) 0;
  overflow: hidden;
}

.gallery__track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 1rem var(--container-px);
  scroll-padding: 0 var(--container-px);
}

.gallery__track::-webkit-scrollbar {
  display: none;
}

.gallery__item {
  flex: 0 0 min(320px, 80vw);
  scroll-snap-align: center;
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  border: var(--glass-border);
  transition: transform var(--transition-base);
}

.gallery__item:hover {
  transform: scale(1.03);
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.gallery__item-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(5, 5, 16, 0.9), transparent);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--accent);
  text-align: center;
}

.gallery__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.gallery__dot.active {
  width: 28px;
  border-radius: 4px;
  background: var(--gradient-primary);
}

/* ── CHAOS PASS Section ──────────────────────────────────────── */
.chaos-pass {
  position: relative;
  z-index: 1;
  padding: var(--section-py) 0;
}

.chaos-pass__wrapper {
  position: relative;
  border-radius: 24px;
  padding: 3px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.4), rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0.4));
  background-size: 300% 300%;
  animation: gradient-rotate 4s ease infinite;
}

@keyframes gradient-rotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.chaos-pass__card {
  position: relative;
  background: linear-gradient(135deg, #0a1128, #070b1a, #0a1128);
  border-radius: 22px;
  padding: clamp(2.5rem, 5vw, 3rem);
  overflow: hidden;
}

.chaos-pass__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.05), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.chaos-pass__icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2), inset 0 0 10px rgba(56, 189, 248, 0.1);
  margin-bottom: 2rem;
}

.chaos-pass__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .chaos-pass__content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.chaos-pass__header-text {
  display: flex;
  flex-direction: column;
}

.chaos-pass__title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: #e0f2fe;
  letter-spacing: 2px;
  margin-bottom: 0.25rem;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.chaos-pass__desc {
  font-size: var(--fs-small);
  color: #7dd3fc;
  margin-bottom: 2rem;
}

.chaos-pass__price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0;
  position: absolute;
  bottom: 1rem;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.chaos-pass__price-old {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: rgba(15, 23, 42, 0.6);
  text-decoration: line-through;
  font-weight: 700;
}

.chaos-pass__price-amount {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
  color: #0f172a;
}

.chaos-pass__features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chaos-pass__features-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: #38bdf8;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.chaos-pass__feature {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transition: all var(--transition-base);
}

.chaos-pass__feature:hover {
  transform: translateX(4px);
}

/* Feature Colors */
.chaos-pass__feature--green {
  border-color: rgba(34, 197, 94, 0.3);
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.1), transparent);
}
.chaos-pass__feature--green .chaos-pass__feature-icon { color: #4ade80; }

.chaos-pass__feature--purple {
  border-color: rgba(168, 85, 247, 0.3);
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.1), transparent);
}
.chaos-pass__feature--purple .chaos-pass__feature-icon { color: #c084fc; }

.chaos-pass__feature--pink {
  border-color: rgba(236, 72, 153, 0.3);
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.1), transparent);
}
.chaos-pass__feature--pink .chaos-pass__feature-icon { color: #f472b6; }

.chaos-pass__feature--cyan {
  border-color: rgba(6, 182, 212, 0.3);
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.1), transparent);
}
.chaos-pass__feature--cyan .chaos-pass__feature-icon { color: #22d3ee; }

.chaos-pass__feature-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chaos-pass__feature-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.chaos-pass__feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.chaos-pass__feature-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

/* ── FEATURES Section ─────────────────────────────────────── */
.features {
  position: relative;
  z-index: 1;
  padding: var(--section-py) 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem;
}

.feature-card {
  position: relative;
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: var(--card-radius);
  padding: 2rem;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: all var(--transition-base);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  border-color: rgba(108, 92, 231, 0.2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: block;
}

.feature-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.6rem;
}

.feature-card__desc {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 0 2rem;
  background: linear-gradient(to top, rgba(10, 10, 26, 0.8), transparent);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}

.footer__logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer__logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__tagline {
  font-size: var(--fs-small);
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.7;
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--text-heading);
  margin-bottom: 1.25rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link {
  font-size: var(--fs-small);
  color: var(--text-muted);
  transition: color var(--transition-base);
}

.footer__link:hover {
  color: var(--accent);
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: var(--glass-border);
  transition: all var(--transition-base);
}

.footer__social-link:hover {
  background: var(--primary-dim);
  border-color: rgba(108, 92, 231, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.2);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: color var(--transition-base);
}

.footer__social-link:hover svg {
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

.footer__copyright {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
}

.footer__legal a {
  font-size: var(--fs-small);
  color: var(--text-muted);
  transition: color var(--transition-base);
}

.footer__legal a:hover {
  color: var(--accent);
}

/* ── Infinity SVG Animation (Hero) ───────────────────────────── */
.hero__infinity {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(400px, 60vw, 800px);
  height: auto;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.hero__infinity path {
  stroke: var(--primary);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw-infinity 8s linear infinite;
}

@keyframes draw-infinity {
  0% { stroke-dashoffset: 1000; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1000; }
}

/* ── Responsive Overrides ────────────────────────────────────── */
@media (max-width: 480px) {
  .hero__cta-group {
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
  }

  .store-badge {
    width: 100%;
    justify-content: center;
  }

  .phase-card {
    aspect-ratio: 3/4;
  }

  .phases__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .phases__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1025px) {
  .phases__grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .phase-card {
    aspect-ratio: 3/5;
  }
}

/* ── Utility ──────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile overlay backdrop */
.nav__overlay {
  visibility: hidden;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.nav__overlay.active {
  visibility: visible;
  opacity: 1;
}
