/* ============================================
   STUMBL ROULETTE - Landing Page Styles
   ============================================ */

/* --- Design Tokens --- */
:root {
  --pink: #FF4081;
  --pink-light: #FF80AB;
  --pink-glow: rgba(255, 64, 129, 0.3);
  --blue: #4C5BFF;
  --blue-light: #7C87FF;
  --dark: #1a1a2e;
  --dark-surface: #16213e;

  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-600: #6B7280;
  --gray-900: #111827;

  --success: #10B981;
  --warning: #F59E0B;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-2xl: 24px;
  --space-3xl: 32px;
  --space-4xl: 48px;
  --space-5xl: 64px;
  --space-6xl: 96px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 50px;
  --radius-full: 50%;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-pink: 0 4px 20px rgba(255, 64, 129, 0.35);

  --max-width: 1200px;
  --nav-height: 72px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 800ms;
}

/* --- 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);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  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;
}

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

/* --- Utility Classes --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-2xl);
}

.container--narrow {
  max-width: 800px;
}

.section {
  padding: var(--space-6xl) 0;
}

.gradient-text {
  background: linear-gradient(135deg, var(--pink), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* --- Section Headers --- */
.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: var(--space-lg);
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
  color: var(--gray-900);
}

.section-subtitle {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 600px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-5xl);
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 17px;
}

.btn-block {
  width: 100%;
  padding: 14px 24px;
}

.btn-primary {
  background: var(--pink);
  color: var(--white);
  box-shadow: var(--shadow-pink);
}

.btn-primary:hover {
  background: #E63673;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 64, 129, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--gray-900);
  border: 2px solid var(--gray-200);
}

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

.btn-white {
  background: var(--white);
  color: var(--pink);
}

.btn-white:hover {
  background: var(--gray-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: all var(--duration-normal) var(--ease-out);
}

.navbar--scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-2xl);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
  z-index: 10;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--duration-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pink);
  transition: width var(--duration-fast) var(--ease-out);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--gray-900);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  width: 100%;
}

.nav-cta {
  z-index: 10;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 10;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: all var(--duration-fast) var(--ease-out);
}

.nav-hamburger.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 64, 129, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(76, 91, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 80%, rgba(255, 128, 171, 0.06) 0%, transparent 40%),
    var(--white);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-5xl) var(--space-2xl);
  display: flex;
  align-items: center;
  gap: var(--space-5xl);
  width: 100%;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: var(--space-2xl);
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: var(--radius-full);
  animation: pulseGlow 2s ease infinite;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: var(--space-2xl);
  color: var(--gray-900);
}

.hero-subtitle {
  font-size: 19px;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: var(--space-3xl);
}

.hero-ctas {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.hero-note {
  font-size: 14px;
  color: var(--gray-400);
}

.hero-phone {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

/* --- Phone Mockup --- */
.phone-mockup {
  position: relative;
  z-index: 2;
}

.phone-frame {
  width: 280px;
  background: var(--gray-900);
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.1),
    var(--shadow-xl),
    0 40px 80px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: phoneFloat 6s ease-in-out infinite;
}

.phone-frame img {
  border-radius: 30px;
  width: 100%;
  display: block;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: var(--gray-900);
  border-radius: 0 0 18px 18px;
  z-index: 5;
}

.phone-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(255, 64, 129, 0.2), transparent 70%);
  filter: blur(40px);
  z-index: 1;
}

/* --- Interactive App Simulator --- */
.sim {
  position: relative;
  width: 100%;
  aspect-ratio: 440 / 956;
  border-radius: 30px;
  overflow: hidden;
  background: #e8e4df;
  cursor: default;
  user-select: none;
}

/* Map */
.sim-map {
  position: absolute;
  inset: 0;
  background: #e8e4df;
}

.sim-map-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}

.sim-street {
  position: absolute;
  background: #f5f2ed;
  z-index: 1;
}

.sim-street-h {
  left: 0;
  right: 0;
  height: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.sim-street-v {
  top: 0;
  bottom: 0;
  width: 6px;
  box-shadow: 1px 0 2px rgba(0,0,0,0.06);
}

/* Pins */
.sim-pin {
  position: absolute;
  width: 22px;
  height: 28px;
  z-index: 3;
  transform: translate(-50%, -100%);
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring);
}

.sim-pin::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--pink);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(255,64,129,0.3);
}

.sim-pin::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  top: 4px;
  left: 7px;
}

.sim-pin:hover,
.sim-pin.is-active {
  transform: translate(-50%, -100%) scale(1.2);
  z-index: 4;
}

.sim-pin.is-active::before {
  background: var(--blue);
}

/* User dot */
.sim-user {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #4285F4;
  border: 3px solid white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  box-shadow: 0 0 0 4px rgba(66,133,244,0.2), 0 2px 4px rgba(0,0,0,0.2);
}

/* Spin overlay */
.sim-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,46,0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.sim-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.sim-spin-icon {
  animation: none;
}

.sim-overlay.is-active .sim-spin-icon {
  animation: simSpinAnim 2s cubic-bezier(0.17,0.67,0.12,0.99) forwards;
}

.sim-spin-text {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 600;
}

/* Venue card */
.sim-card {
  position: absolute;
  bottom: 70px;
  left: 8px;
  right: 8px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  z-index: 8;
  transform: translateY(calc(100% + 80px));
  opacity: 0;
  transition: transform 0.5s var(--ease-spring), opacity 0.3s;
  overflow: hidden;
}

.sim-card.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.sim-card-img {
  height: 90px;
  background: linear-gradient(135deg, #f0e6d3, #d4c5a9);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.sim-card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.2), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0,0,0,0.08), transparent 50%);
}

.sim-card-img .sim-venue-icon {
  position: relative;
  z-index: 1;
  font-size: 36px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/* Venue type backgrounds */
.sim-card-img[data-venue="Japanese"] {
  background: linear-gradient(135deg, #ff6b35, #e84118);
}
.sim-card-img[data-venue="Mexican"] {
  background: linear-gradient(135deg, #f9ca24, #f0932b);
}
.sim-card-img[data-venue="Cocktail Bar"] {
  background: linear-gradient(135deg, #6c5ce7, #341f97);
}
.sim-card-img[data-venue="Italian"] {
  background: linear-gradient(135deg, #e17055, #d63031);
}
.sim-card-img[data-venue="Bowling Alley"] {
  background: linear-gradient(135deg, #0abde3, #1e3799);
}
.sim-card-img[data-venue="Brewery"] {
  background: linear-gradient(135deg, #f0932b, #6F4E37);
}

.sim-card-body {
  padding: 10px 12px 12px;
}

.sim-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.sim-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: #111;
}

.sim-card-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 4px;
}

.sim-card-type {
  font-size: 10px;
  color: var(--gray-400);
  margin-bottom: 6px;
}

.sim-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.sim-stars {
  color: #F59E0B;
  font-size: 11px;
  letter-spacing: 1px;
}

.sim-card-vibe {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--gray-600);
  margin-bottom: 10px;
}

.sim-vibe-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sim-card-actions {
  display: flex;
  gap: 6px;
}

.sim-btn-go {
  flex: 1;
  padding: 7px 0;
  background: var(--pink);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.sim-btn-fav {
  width: 32px;
  height: 32px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-size: 16px;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.sim-btn-fav.is-liked {
  color: var(--pink);
  border-color: var(--pink);
}

.sim-card-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 22px;
  height: 22px;
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

/* Spin button */
.sim-spin-btn {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  background: var(--pink);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 4px 16px rgba(255,64,129,0.4);
  z-index: 6;
  cursor: pointer;
  transition: all 0.2s;
  animation: pulseGlow 2s ease infinite;
}

.sim-spin-btn:hover {
  transform: translateX(-50%) scale(1.08);
}

.sim-spin-btn:active {
  transform: translateX(-50%) scale(0.95);
}

/* Spins remaining */
.sim-spins-left {
  position: absolute;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 9px;
  font-weight: 600;
  border-radius: 20px;
  z-index: 6;
  white-space: nowrap;
}

/* Settings gear */
.sim-gear {
  position: absolute;
  top: 40px;
  left: 10px;
  width: 32px;
  height: 32px;
  background: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  z-index: 5;
  cursor: default;
}

/* Tap hint */
.sim-hint {
  position: absolute;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
}

.sim-hint span {
  display: inline-block;
  padding: 5px 14px;
  background: var(--blue);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 20px;
  animation: simHintBounce 2s ease infinite;
  white-space: nowrap;
}

.sim-hint.is-hidden {
  display: none;
}

@keyframes simSpinAnim {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(900deg) scale(1.2); }
  100% { transform: rotate(1800deg) scale(1); }
}

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

/* Small phone mockup (how it works) */
.phone-mockup-sm .phone-frame {
  width: 200px;
  border-radius: 30px;
  padding: 8px;
  animation: none;
}

.phone-mockup-sm .phone-frame img {
  border-radius: 24px;
}

.phone-mockup-sm .phone-notch {
  width: 80px;
  height: 20px;
  top: 8px;
  border-radius: 0 0 14px 14px;
}

/* Carousel phone */
.phone-mockup-carousel .phone-frame {
  width: 240px;
  border-radius: 34px;
  padding: 10px;
  animation: none;
}

.phone-mockup-carousel .phone-frame img {
  border-radius: 26px;
}

.phone-mockup-carousel .phone-notch {
  width: 100px;
  height: 24px;
  top: 10px;
  border-radius: 0 0 16px 16px;
}

/* --- Floating Particles --- */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: var(--radius-full);
}

.particle-1 {
  width: 60px;
  height: 60px;
  background: rgba(255, 64, 129, 0.1);
  top: 15%;
  left: 10%;
  animation: float 8s ease-in-out infinite;
}

.particle-2 {
  width: 30px;
  height: 30px;
  background: rgba(76, 91, 255, 0.12);
  top: 25%;
  right: 15%;
  animation: float 12s ease-in-out infinite 1s;
}

.particle-3 {
  width: 45px;
  height: 45px;
  background: rgba(255, 64, 129, 0.08);
  bottom: 20%;
  left: 20%;
  animation: float 10s ease-in-out infinite 2s;
}

.particle-4 {
  width: 20px;
  height: 20px;
  background: rgba(76, 91, 255, 0.15);
  top: 60%;
  left: 5%;
  animation: float 7s ease-in-out infinite 0.5s;
}

.particle-5 {
  width: 35px;
  height: 35px;
  background: rgba(255, 128, 171, 0.1);
  top: 10%;
  right: 30%;
  animation: float 9s ease-in-out infinite 3s;
}

.particle-6 {
  width: 25px;
  height: 25px;
  background: rgba(76, 91, 255, 0.08);
  bottom: 30%;
  right: 10%;
  animation: float 11s ease-in-out infinite 1.5s;
}

/* --- Features Section --- */
.features {
  padding: var(--space-6xl) 0;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-2xl);
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  transition: all var(--duration-normal) var(--ease-out);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xl);
  background: var(--icon-bg, var(--pink));
  opacity: 0.12;
  position: relative;
}

.feature-icon svg {
  position: absolute;
  width: 28px;
  height: 28px;
}

/* Fix: icon container with opacity trick */
.feature-card .feature-icon {
  opacity: 1;
  background: color-mix(in srgb, var(--icon-bg, var(--pink)) 12%, transparent);
}

.feature-card .feature-icon svg {
  fill: var(--icon-bg, var(--pink));
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--gray-900);
}

.feature-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-600);
}

/* Staggered reveal */
.features-grid .feature-card:nth-child(1) { transition-delay: 0ms; }
.features-grid .feature-card:nth-child(2) { transition-delay: 80ms; }
.features-grid .feature-card:nth-child(3) { transition-delay: 160ms; }
.features-grid .feature-card:nth-child(4) { transition-delay: 240ms; }
.features-grid .feature-card:nth-child(5) { transition-delay: 320ms; }
.features-grid .feature-card:nth-child(6) { transition-delay: 400ms; }
.features-grid .feature-card:nth-child(7) { transition-delay: 480ms; }
.features-grid .feature-card:nth-child(8) { transition-delay: 560ms; }

/* --- Roulette Demo Section --- */
.roulette-demo {
  padding: var(--space-6xl) 0;
  background: var(--gray-50);
  text-align: center;
}

.roulette-content {
  margin-bottom: var(--space-4xl);
}

.roulette-content h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.roulette-content p {
  font-size: 18px;
  color: var(--gray-600);
}

.roulette-wheel-container {
  position: relative;
  display: inline-block;
  margin: 0 auto;
}

.roulette-wheel {
  width: 300px;
  height: 300px;
  border-radius: var(--radius-full);
  background: conic-gradient(
    #FF4081 0deg 45deg,
    #4C5BFF 45deg 90deg,
    #FF80AB 90deg 135deg,
    #7C87FF 135deg 180deg,
    #FF4081 180deg 225deg,
    #4C5BFF 225deg 270deg,
    #FF80AB 270deg 315deg,
    #7C87FF 315deg 360deg
  );
  position: relative;
  margin: 0 auto;
  box-shadow: 0 0 0 6px var(--white), 0 0 0 8px var(--gray-200), var(--shadow-lg);
}

.wheel-inner {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
}

.wheel-segment {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110px;
  height: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transform-origin: 0 0;
  display: flex;
  align-items: center;
  padding-left: 58px;
}

.wheel-segment:nth-child(1) { transform: rotate(22.5deg); }
.wheel-segment:nth-child(2) { transform: rotate(67.5deg); }
.wheel-segment:nth-child(3) { transform: rotate(112.5deg); }
.wheel-segment:nth-child(4) { transform: rotate(157.5deg); }
.wheel-segment:nth-child(5) { transform: rotate(202.5deg); }
.wheel-segment:nth-child(6) { transform: rotate(247.5deg); }
.wheel-segment:nth-child(7) { transform: rotate(292.5deg); }
.wheel-segment:nth-child(8) { transform: rotate(337.5deg); }

.wheel-pointer {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid var(--pink);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  z-index: 5;
}

.wheel-spin-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--pink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: var(--shadow-md);
  z-index: 5;
  transition: all var(--duration-fast);
  animation: pulseGlow 2s ease infinite;
}

.wheel-spin-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: var(--shadow-pink);
}

.roulette-result {
  margin-top: var(--space-3xl);
  font-size: 22px;
  font-weight: 700;
  color: var(--pink);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--duration-normal) var(--ease-spring);
}

.roulette-result.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- How It Works --- */
.how-it-works {
  padding: var(--space-6xl) 0;
  background: var(--white);
}

.steps {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Connecting dashed line */
.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 24px;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--gray-200) 0px,
    var(--gray-200) 8px,
    transparent 8px,
    transparent 16px
  );
}

.step {
  display: flex;
  align-items: center;
  gap: var(--space-4xl);
  margin-bottom: var(--space-5xl);
  position: relative;
}

.step:last-child {
  margin-bottom: 0;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--pink), var(--blue));
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--gray-900);
}

.step-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-600);
}

.step-phone {
  flex-shrink: 0;
}

/* --- Screenshots Carousel --- */
.screenshots {
  padding: var(--space-6xl) 0;
  background: var(--gray-50);
}

.carousel-wrapper {
  position: relative;
}

.carousel {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: var(--space-3xl) calc(50vw - 130px);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex-shrink: 0;
  scroll-snap-align: center;
  text-align: center;
  transition: transform var(--duration-normal) var(--ease-out);
}

.carousel-slide.is-active {
  transform: scale(1.05);
}

.slide-caption {
  margin-top: var(--space-lg);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1px solid var(--gray-200);
  font-size: 18px;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
}

.carousel-btn:hover {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
}

.carousel-dots {
  display: flex;
  gap: var(--space-sm);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--gray-300);
  border: none;
  transition: all var(--duration-fast);
  cursor: pointer;
}

.carousel-dot.is-active {
  background: var(--pink);
  width: 28px;
  border-radius: 5px;
}

/* --- Pricing Section --- */
.pricing {
  padding: var(--space-6xl) 0;
  background: var(--white);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-3xl);
  max-width: 750px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-4xl) var(--space-3xl);
  position: relative;
  transition: all var(--duration-normal) var(--ease-out);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
  border: 2px solid var(--pink);
  box-shadow: var(--shadow-pink);
  transform: scale(1.02);
}

.pricing-card--featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  background: var(--pink);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pricing-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid var(--gray-200);
}

.pricing-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-sm);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-xs);
}

.price-amount {
  font-size: 48px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}

.price-period {
  font-size: 16px;
  color: var(--gray-400);
}

.pricing-alt {
  font-size: 14px;
  color: var(--gray-400);
  margin-top: var(--space-sm);
}

.pricing-features {
  list-style: none;
  margin-bottom: var(--space-3xl);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  font-size: 15px;
  color: var(--gray-600);
}

.check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--success);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.check--pink {
  background: rgba(255, 64, 129, 0.1);
  color: var(--pink);
}

/* --- FAQ Section --- */
.faq {
  padding: var(--space-6xl) 0;
  background: var(--gray-50);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  background: var(--white);
  overflow: hidden;
  transition: all var(--duration-fast);
}

.faq-item:hover {
  border-color: var(--gray-300);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl) var(--space-2xl);
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  text-align: left;
  cursor: pointer;
  transition: color var(--duration-fast);
}

.faq-question:hover {
  color: var(--pink);
}

.faq-icon {
  font-size: 22px;
  font-weight: 300;
  color: var(--gray-400);
  transition: transform var(--duration-normal) var(--ease-out);
  flex-shrink: 0;
}

.faq-item--open .faq-icon {
  transform: rotate(45deg);
  color: var(--pink);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-out);
}

.faq-item--open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 var(--space-2xl) var(--space-xl);
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-600);
}

/* --- CTA Banner --- */
.cta-banner {
  padding: var(--space-6xl) 0;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  position: relative;
  overflow: hidden;
}

.cta-banner::before,
.cta-banner::after {
  content: '';
  position: absolute;
  border-radius: var(--radius-full);
  opacity: 0.15;
}

.cta-banner::before {
  width: 200px;
  height: 200px;
  background: var(--white);
  top: -50px;
  right: 10%;
  animation: float 8s ease-in-out infinite;
}

.cta-banner::after {
  width: 120px;
  height: 120px;
  background: var(--white);
  bottom: -30px;
  left: 15%;
  animation: float 10s ease-in-out infinite 2s;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.cta-content p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-3xl);
}

/* --- Footer --- */
.site-footer {
  background: var(--dark);
  padding: var(--space-5xl) 0 var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-4xl);
  margin-bottom: var(--space-4xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
}

.footer-tagline {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 250px;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-lg);
}

.footer-links a {
  display: block;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  padding: var(--space-xs) 0;
  transition: color var(--duration-fast);
}

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

.footer-bottom {
  padding-top: var(--space-3xl);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
}

/* --- Legal Pages --- */
.legal-page {
  padding-top: var(--nav-height);
}

.legal-hero {
  padding: var(--space-5xl) 0 var(--space-4xl);
  background:
    linear-gradient(135deg, rgba(255, 64, 129, 0.06), rgba(76, 91, 255, 0.06));
  text-align: center;
}

.legal-hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: var(--space-sm);
}

.legal-date {
  font-size: 14px;
  color: var(--gray-400);
}

.legal-content {
  padding: var(--space-4xl) 0 var(--space-6xl);
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-top: var(--space-4xl);
  margin-bottom: var(--space-lg);
  padding-left: var(--space-lg);
  border-left: 3px solid var(--pink);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-sm);
}

.legal-content p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-600);
  margin-bottom: var(--space-md);
}

.legal-content ul {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.legal-content li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-600);
  padding: var(--space-xs) 0;
  padding-left: var(--space-2xl);
  position: relative;
}

.legal-content li::before {
  content: '';
  position: absolute;
  left: var(--space-sm);
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--pink);
}

.legal-content a {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: #E63673;
}

.legal-content strong {
  font-weight: 600;
  color: var(--gray-900);
}

/* Contact box for support page */
.contact-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin: var(--space-lg) 0 var(--space-2xl);
}

.contact-box p {
  margin-bottom: var(--space-xs);
}

/* --- Scroll Reveal Animations --- */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Keyframes --- */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%      { transform: translateY(-20px) rotate(3deg); }
  66%      { transform: translateY(10px) rotate(-2deg); }
}

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 64, 129, 0.4); }
  50%      { box-shadow: 0 0 0 12px rgba(255, 64, 129, 0); }
}

/* --- Responsive --- */

/* Mobile nav */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: calc(var(--nav-height) + 20px) var(--space-2xl) var(--space-3xl);
    gap: var(--space-lg);
    transform: translateY(-100%);
    transition: transform var(--duration-normal) var(--ease-out);
    box-shadow: var(--shadow-lg);
    z-index: 5;
  }

  .nav-links.is-open {
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 18px;
    padding: var(--space-sm) 0;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-cta {
    display: none;
  }
}

/* Hero responsive */
@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4xl);
  }

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

  .hero-title {
    font-size: 42px;
  }

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

  .section-title {
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 34px;
    letter-spacing: -0.5px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .phone-frame {
    width: 240px;
  }

  .section-title {
    font-size: 26px;
  }

  .section-subtitle {
    font-size: 16px;
  }
}

/* Steps responsive */
@media (min-width: 768px) {
  .step {
    padding-left: var(--space-5xl);
  }

  .steps::before {
    left: 24px;
  }
}

@media (max-width: 768px) {
  .step {
    flex-direction: column;
    text-align: center;
    gap: var(--space-2xl);
  }

  .steps::before {
    display: none;
  }

  .step-phone {
    order: 1;
  }

  .step-content {
    order: 2;
  }

  .step-number {
    order: 0;
  }
}

@media (min-width: 1024px) {
  .step {
    padding-left: 0;
  }

  .steps::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .step {
    gap: var(--space-5xl);
  }

  .step-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .step-content {
    flex: 1;
    text-align: right;
    padding-right: var(--space-4xl);
  }

  .step-phone {
    flex: 1;
    padding-left: var(--space-4xl);
  }

  .step--reverse .step-content {
    order: 2;
    text-align: left;
    padding-right: 0;
    padding-left: var(--space-4xl);
  }

  .step--reverse .step-phone {
    order: 1;
    padding-left: 0;
    padding-right: var(--space-4xl);
    display: flex;
    justify-content: flex-end;
  }
}

/* Footer responsive */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }
}

/* Pricing responsive */
@media (max-width: 640px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* Roulette responsive */
@media (max-width: 480px) {
  .roulette-wheel {
    width: 250px;
    height: 250px;
  }

  .wheel-spin-btn {
    width: 60px;
    height: 60px;
    font-size: 12px;
  }

  .wheel-segment {
    font-size: 10px;
    width: 90px;
    padding-left: 48px;
  }

  .roulette-content h2 {
    font-size: 28px;
  }

  .cta-content h2 {
    font-size: 28px;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}
