/* =============================================
   NAMES ON WHEEL — Main Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Fredoka+One&family=Poppins:wght@400;500;600;700&display=swap');

/* === CSS Variables === */
:root {
  --cream: #FFF8F0;
  --cream-dark: #FFF0E0;
  --white: #FFFFFF;
  --text-dark: #2D2A26;
  --text-mid: #5A5550;
  --text-light: #8A837D;

  --red: #FF6B6B;
  --orange: #FF8E53;
  --yellow: #FFD166;
  --green: #06D6A0;
  --teal: #4ECDC4;
  --blue: #45B7D1;
  --purple: #9B59B6;
  --pink: #FF8B94;
  --indigo: #6C63FF;
  --lime: #A8E6CF;

  --grad-1: linear-gradient(135deg, #FF6B6B, #FFD166);
  --grad-2: linear-gradient(135deg, #4ECDC4, #45B7D1);
  --grad-3: linear-gradient(135deg, #9B59B6, #6C63FF);
  --grad-4: linear-gradient(135deg, #06D6A0, #4ECDC4);
  --grad-hero: linear-gradient(135deg, #FF6B6B 0%, #FFD166 35%, #06D6A0 65%, #45B7D1 100%);

  --shadow-sm: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-color: 0 12px 40px rgba(255,107,107,0.25);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 9999px;

  --footer-bg: #2D2A26;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 { font-family: 'Fredoka One', cursive; line-height: 1.2; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Section Headers === */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--purple);
  background: rgba(155,89,182,0.1);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text-dark);
  margin-bottom: 16px;
}
.section-title span { background: var(--grad-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-desc {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 600px;
  margin: 0 auto;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 0;
}
.site-header.scrolled {
  background: rgba(255,248,240,0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 72px;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon svg { display: block; transition: transform 0.6s ease; }
.logo:hover .logo-icon svg { transform: rotate(180deg); }
.logo-text {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  color: var(--text-dark);
}
.logo-accent { color: var(--red); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 8px; align-items: center; }
.main-nav a {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-mid);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}
.main-nav a:hover { color: var(--purple); background: rgba(155,89,182,0.1); }

.btn-spin-now {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  color: white;
  background: var(--grad-1);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(255,107,107,0.35);
  flex-shrink: 0;
}
.btn-spin-now:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,107,107,0.45); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.08);
  box-shadow: var(--shadow-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-menu.open { max-height: 400px; display: block; }
.mobile-menu ul { padding: 16px 24px 24px; }
.mobile-menu li a {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  padding: 100px 0 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}
.hero-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: floatOrb 8s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; background: var(--red); top: -200px; left: -150px; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: var(--yellow); top: 20%; right: -100px; animation-delay: 2s; }
.orb-3 { width: 350px; height: 350px; background: var(--teal); bottom: -100px; left: 30%; animation-delay: 4s; }
.orb-4 { width: 250px; height: 250px; background: var(--purple); top: 40%; left: 15%; animation-delay: 6s; }

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { padding-right: 20px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1.5px solid rgba(255,107,107,0.2);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--red);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  animation: slideInLeft 0.6s ease both;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0.7; } }

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  color: var(--text-dark);
  margin-bottom: 20px;
  animation: slideInLeft 0.6s 0.1s ease both;
}
.hero-title .highlight {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-mid);
  margin-bottom: 36px;
  animation: slideInLeft 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: slideInLeft 0.6s 0.3s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: white;
  background: var(--grad-1);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 28px rgba(255,107,107,0.4);
  transition: var(--transition);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(255,107,107,0.5); }
.btn-primary svg { transition: transform 0.4s ease; }
.btn-primary:hover svg { transform: rotate(360deg); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-dark);
  background: white;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(0,0,0,0.1);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-3px); }

.hero-stats {
  display: flex;
  gap: 32px;
  animation: slideInLeft 0.6s 0.4s ease both;
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
  background: var(--grad-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 600;
}

/* Hero Wheel Preview */
.hero-wheel-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideInRight 0.7s 0.2s ease both;
  position: relative;
}
.hero-wheel-bg {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,107,0.12) 0%, rgba(78,205,196,0.08) 50%, transparent 70%);
}
#heroWheelCanvas {
  border-radius: 50%;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(255,107,107,0.2);
  animation: floatWheel 4s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
@keyframes floatWheel {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* =============================================
   WHEEL APP SECTION
   ============================================= */
#wheel-app {
  padding: 100px 0;
  background: white;
  position: relative;
}
#wheel-app::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-hero);
}

.app-layout {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 48px;
  align-items: start;
}

/* Controls Panel */
.wheel-controls-panel {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(0,0,0,0.06);
}

.panel-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  background: white;
  padding: 6px;
  border-radius: var(--radius-md);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.06);
}
.tab-btn {
  flex: 1;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--text-mid);
  padding: 9px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-align: center;
}
.tab-btn.active {
  background: var(--grad-1);
  color: white;
  box-shadow: 0 4px 12px rgba(255,107,107,0.3);
}
.tab-btn:not(.active):hover { background: rgba(0,0,0,0.05); color: var(--text-dark); }

.tab-content { display: none; }
.tab-content.active { display: block; }

.names-textarea {
  width: 100%;
  min-height: 200px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: white;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  padding: 16px;
  resize: vertical;
  outline: none;
  transition: var(--transition);
  line-height: 1.8;
}
.names-textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(155,89,182,0.1); }

.names-count {
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 700;
  margin-top: 8px;
  text-align: right;
}

.quick-add {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.quick-add input {
  flex: 1;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  padding: 10px 16px;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-full);
  outline: none;
  transition: var(--transition);
  background: white;
}
.quick-add input:focus { border-color: var(--teal); }
.quick-add-btn {
  background: var(--grad-4);
  color: white;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(6,214,160,0.3);
}
.quick-add-btn:hover { transform: scale(1.05); }

/* Settings Tab */
.settings-grid {
  display: grid;
  gap: 20px;
}
.setting-item label {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.setting-item select, .setting-item input[type="text"] {
  width: 100%;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  padding: 10px 14px;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  background: white;
  outline: none;
  transition: var(--transition);
  color: var(--text-dark);
}
.setting-item select:focus, .setting-item input[type="text"]:focus { border-color: var(--purple); }

.color-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: var(--transition);
}
.swatch.active, .swatch:hover { border-color: var(--text-dark); transform: scale(1.2); }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #ddd;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: 0.3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}
.toggle input:checked + .toggle-slider { background: var(--green); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* History Tab */
.history-list { max-height: 280px; overflow-y: auto; }
.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
}
.history-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.history-name { font-weight: 700; color: var(--text-dark); }
.history-time { font-size: 0.78rem; color: var(--text-light); margin-left: auto; }
.history-empty {
  text-align: center;
  color: var(--text-light);
  font-family: 'Nunito', sans-serif;
  padding: 32px 0;
  font-size: 0.9rem;
}

/* Action Buttons */
.control-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.btn-clear-all {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-light);
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1.5px dashed rgba(0,0,0,0.15);
  transition: var(--transition);
  text-align: center;
}
.btn-clear-all:hover { color: var(--red); border-color: var(--red); background: rgba(255,107,107,0.05); }

/* Wheel Canvas Area */
.wheel-canvas-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.wheel-wrapper {
  position: relative;
  width: 420px;
  height: 420px;
}
.wheel-pointer {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
}
.wheel-spin-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: var(--text-dark);
  transition: var(--transition);
  cursor: pointer;
  border: 3px solid rgba(0,0,0,0.08);
}
.wheel-spin-btn:hover { transform: translate(-50%, -50%) scale(1.1); background: var(--cream); }
.wheel-spin-btn:active { transform: translate(-50%, -50%) scale(0.95); }
.wheel-spin-btn.spinning { pointer-events: none; }

#mainWheel {
  border-radius: 50%;
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(255,255,255,0.8), 0 0 0 10px rgba(0,0,0,0.06);
  display: block;
}

.wheel-result-box {
  width: 100%;
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  text-align: center;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.wheel-result-box.has-result {
  border-color: var(--green);
  box-shadow: 0 8px 32px rgba(6,214,160,0.2);
}
.result-emoji { font-size: 2rem; margin-bottom: 4px; display: none; }
.result-label {
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.result-name {
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-top: 4px;
}
.result-placeholder {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Winner Modal */
.winner-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.winner-modal-overlay.show { opacity: 1; pointer-events: all; }
.winner-modal {
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  max-width: 480px;
  width: 90%;
}
.winner-modal-overlay.show .winner-modal { transform: scale(1); }

.winner-confetti-emoji { font-size: 3.5rem; display: block; margin-bottom: 16px; animation: bounce 0.6s ease infinite alternate; }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-12px); } }

.winner-modal h2 {
  font-size: 2.2rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.winner-name {
  font-family: 'Fredoka One', cursive;
  font-size: 2.8rem;
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 16px 0;
  display: block;
}
.winner-modal-btns { display: flex; gap: 12px; justify-content: center; margin-top: 28px; }
.btn-spin-again {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: white;
  background: var(--grad-1);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(255,107,107,0.35);
}
.btn-spin-again:hover { transform: translateY(-2px); }
.btn-close-modal {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-mid);
  background: rgba(0,0,0,0.06);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}
.btn-close-modal:hover { background: rgba(0,0,0,0.1); }
.modal-remove-label {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 12px;
  font-family: 'Nunito', sans-serif;
}

/* Confetti canvas */
#confettiCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1999;
}

/* =============================================
   WHEEL TYPES SECTION
   ============================================= */
#wheel-types {
  padding: 100px 0;
  background: var(--cream);
}
.wheel-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.wheel-type-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.wheel-type-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-grad, var(--grad-1));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}
.wheel-type-card:hover::before { transform: scaleX(1); }
.wheel-type-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,0,0,0.08);
}
.wheel-type-card:nth-child(1) { --card-grad: var(--grad-1); }
.wheel-type-card:nth-child(2) { --card-grad: var(--grad-2); }
.wheel-type-card:nth-child(3) { --card-grad: var(--grad-3); }
.wheel-type-card:nth-child(4) { --card-grad: var(--grad-4); }
.wheel-type-card:nth-child(5) { --card-grad: linear-gradient(135deg, #FFD166, #FF8E53); }
.wheel-type-card:nth-child(6) { --card-grad: linear-gradient(135deg, #FF8B94, #C7CEEA); }

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--card-grad, var(--grad-1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
}
.wheel-type-card:hover .card-icon { transform: rotate(10deg) scale(1.1); }

.wheel-type-card h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.wheel-type-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.card-tag {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-top: 16px;
  background: rgba(0,0,0,0.06);
  color: var(--text-mid);
}
.wheel-type-card.popular .card-tag { background: rgba(255,107,107,0.12); color: var(--red); }
.popular-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--grad-1);
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* =============================================
   HOW IT WORKS
   ============================================= */
#how-it-works {
  padding: 100px 0;
  background: white;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(to right, var(--red), var(--yellow), var(--green), var(--blue));
  opacity: 0.3;
}
.step-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  background: var(--cream);
  transition: var(--transition);
  position: relative;
}
.step-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); background: white; }
.step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--step-grad, var(--grad-1));
  color: white;
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
}
.step-card:nth-child(1) { --step-grad: var(--grad-1); }
.step-card:nth-child(2) { --step-grad: var(--grad-2); }
.step-card:nth-child(3) { --step-grad: var(--grad-4); }
.step-card:nth-child(4) { --step-grad: var(--grad-3); }

.step-icon { font-size: 1.8rem; margin-bottom: 8px; display: block; }
.step-card h3 { font-size: 1.15rem; color: var(--text-dark); margin-bottom: 10px; }
.step-card p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.6; }

/* =============================================
   FEATURES
   ============================================= */
#features {
  padding: 100px 0;
  background: var(--cream);
}
.features-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.features-visual {
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feat-bubble {
  position: absolute;
  background: white;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: floatBubble var(--dur, 4s) ease-in-out infinite;
  animation-delay: var(--del, 0s);
  border: 2px solid var(--bubble-color, rgba(0,0,0,0.06));
}
.feat-bubble-icon { font-size: 1.3rem; }
.feat-bubble:nth-child(1) { top: 10%; left: 0; --dur: 3.5s; --del: 0s; --bubble-color: rgba(255,107,107,0.2); }
.feat-bubble:nth-child(2) { top: 10%; right: 0; --dur: 4.5s; --del: 0.7s; --bubble-color: rgba(78,205,196,0.2); }
.feat-bubble:nth-child(3) { bottom: 10%; left: 5%; --dur: 5s; --del: 1.4s; --bubble-color: rgba(255,209,102,0.3); }
.feat-bubble:nth-child(4) { bottom: 10%; right: 0; --dur: 3.8s; --del: 2s; --bubble-color: rgba(155,89,182,0.2); }
.feat-bubble:nth-child(5) { top: 50%; left: 50%; transform: translate(-50%,-50%); --dur: 4s; --del: 0.5s; --bubble-color: rgba(6,214,160,0.2); }
@keyframes floatBubble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.feat-bubble:nth-child(5) { animation: floatBubble5 4s ease-in-out infinite 0.5s; }
@keyframes floatBubble5 {
  0%, 100% { transform: translate(-50%,-50%) translateY(0); }
  50% { transform: translate(-50%,-50%) translateY(-12px); }
}

.central-wheel-preview {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.features-list { display: grid; gap: 20px; }
.feature-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: white;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.feature-item:hover { border-color: var(--purple); transform: translateX(8px); }
.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--feat-grad, var(--grad-3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.feature-item:nth-child(1) .feature-icon-box { --feat-grad: var(--grad-1); }
.feature-item:nth-child(2) .feature-icon-box { --feat-grad: var(--grad-2); }
.feature-item:nth-child(3) .feature-icon-box { --feat-grad: var(--grad-4); }
.feature-item:nth-child(4) .feature-icon-box { --feat-grad: var(--grad-3); }
.feature-item:nth-child(5) .feature-icon-box { --feat-grad: linear-gradient(135deg, #FFD166, #FF8E53); }
.feature-item:nth-child(6) .feature-icon-box { --feat-grad: linear-gradient(135deg, #FF8B94, #C7CEEA); }

.feature-item h4 { font-size: 1rem; color: var(--text-dark); margin-bottom: 4px; }
.feature-item p { font-size: 0.85rem; color: var(--text-mid); }

/* =============================================
   USE CASES
   ============================================= */
#use-cases {
  padding: 100px 0;
  background: white;
}
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.use-case-card {
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  transition: var(--transition);
  background: var(--card-bg, #fff5f5);
  border: 2px solid var(--card-border, rgba(255,107,107,0.15));
}
.use-case-card:nth-child(1) { --card-bg: #fff5f5; --card-border: rgba(255,107,107,0.2); }
.use-case-card:nth-child(2) { --card-bg: #f0fbfa; --card-border: rgba(78,205,196,0.2); }
.use-case-card:nth-child(3) { --card-bg: #fffbf0; --card-border: rgba(255,209,102,0.3); }
.use-case-card:nth-child(4) { --card-bg: #f8f0ff; --card-border: rgba(155,89,182,0.2); }
.use-case-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }

.use-case-emoji { font-size: 2.8rem; display: block; margin-bottom: 16px; }
.use-case-card h3 { font-size: 1.1rem; color: var(--text-dark); margin-bottom: 10px; }
.use-case-card p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.6; }

/* =============================================
   CONTENT / SEO SECTION
   ============================================= */
#seo-content {
  padding: 100px 0;
  background: var(--cream);
}
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}
.content-body h2 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 16px;
  margin-top: 40px;
}
.content-body h2:first-child { margin-top: 0; }
.content-body h3 {
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  margin-top: 32px;
}
.content-body p {
  font-size: 0.97rem;
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.8;
}
.content-body ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.content-body ul li {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 8px;
  padding-left: 6px;
  line-height: 1.7;
}
.content-body strong { color: var(--text-dark); font-weight: 700; }

.content-sidebar { position: sticky; top: 100px; }
.sidebar-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  border: 2px solid rgba(0,0,0,0.06);
}
.sidebar-card h4 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-keyword {
  display: inline-block;
  background: var(--cream);
  color: var(--text-mid);
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin: 4px;
  border: 1.5px solid rgba(0,0,0,0.08);
  transition: var(--transition);
}
.sidebar-keyword:hover { background: var(--grad-2); color: white; border-color: transparent; }
.sidebar-cta {
  text-align: center;
  padding: 28px;
  background: var(--grad-3);
  border-radius: var(--radius-lg);
  color: white;
}
.sidebar-cta h4 { color: white; font-size: 1.15rem; margin-bottom: 8px; }
.sidebar-cta p { font-size: 0.85rem; opacity: 0.85; margin-bottom: 16px; }
.btn-sidebar-cta {
  display: inline-block;
  background: white;
  color: var(--purple);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}
.btn-sidebar-cta:hover { transform: scale(1.05); }

/* =============================================
   FAQ
   ============================================= */
#faq {
  padding: 100px 0;
  background: white;
}
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: 16px; }
.faq-item {
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--purple); background: white; }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.97rem;
  color: var(--text-dark);
  gap: 16px;
}
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad-3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  transition: transform 0.3s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--grad-1); }
.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.8;
}
.faq-item.open .faq-answer { padding: 0 24px 20px; max-height: 300px; }

/* =============================================
   ABOUT / CTA SECTION
   ============================================= */
#about {
  padding: 100px 0;
  background: var(--cream);
}
.cta-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #FF6B6B 100%);
  border-radius: var(--radius-lg);
  padding: 72px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  top: -150px; right: -100px;
}
.cta-box::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  bottom: -100px; left: -80px;
}
.cta-box h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: white;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.cta-box p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-box .btn-cta-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: var(--purple);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 16px 40px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}
.cta-box .btn-cta-main:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 16px 48px rgba(0,0,0,0.3); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.7);
  position: relative;
}
.footer-wave {
  margin-bottom: -4px;
  line-height: 0;
}
.footer-wave svg { width: 100%; height: 80px; display: block; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 48px;
  display: grid;
  grid-template-columns: 1.8fr 2fr;
  gap: 80px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo span {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: white;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; }
.footer-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-tags span {
  font-family: 'Nunito', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.1);
}
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.4); margin-bottom: 8px; }
.footer-bottom p:last-child { margin-bottom: 0; }
.footer-keywords {
  font-size: 0.75rem !important;
  color: rgba(255,255,255,0.2) !important;
  letter-spacing: 0.05em;
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }
[data-animate-delay="5"] { transition-delay: 0.5s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-wheel-wrap { order: -1; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .app-layout { grid-template-columns: 1fr; }
  .wheel-wrapper { width: 360px; height: 360px; }
  #mainWheel { width: 360px; height: 360px; }
  .wheel-canvas-area { width: 100%; }
  .features-layout { grid-template-columns: 1fr; }
  .features-visual { display: none; }
  .content-grid { grid-template-columns: 1fr; }
  .content-sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .use-cases-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; max-height: 0; }
  .wheel-types-grid { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .cta-box { padding: 48px 32px; }
  .winner-modal { padding: 36px 28px; }
  .hero-badge { display: none; }
}

@media (max-width: 480px) {
  .wheel-types-grid { grid-template-columns: 1fr; }
  .use-cases-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .wheel-wrapper { width: 300px; height: 300px; }
  #mainWheel { width: 300px !important; height: 300px !important; }
  .footer-links { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}
