/*
 * GamesAtlasPlus - Expanded Game Discovery
 * Color Theme: Purple (#8b5cf6) primary with clean modern aesthetic
 */

/* ============================================
   CSS VARIABLES - Theme System
   ============================================ */

:root {
  /* Colors - Light Theme */
  --background: #ffffff;
  --foreground: #0f172a;
  --card: #f8fafc;
  --card-foreground: #0f172a;
  --popover: #ffffff;
  --popover-foreground: #0f172a;
  --primary: #8b5cf6;
  --primary-foreground: #ffffff;
  --secondary: #f1f5f9;
  --secondary-foreground: #1e293b;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #c084fc;
  --accent-foreground: #1e293b;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #e2e8f0;
  --input: #f1f5f9;
  --ring: #8b5cf6;

  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  
  --header-height: 56px;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --background: #0f172a;
  --foreground: #f8fafc;
  --card: #1e293b;
  --card-foreground: #f8fafc;
  --popover: #1e293b;
  --popover-foreground: #f8fafc;
  --primary: #8b5cf6;
  --primary-foreground: #ffffff;
  --secondary: #334155;
  --secondary-foreground: #e2e8f0;
  --muted: #334155;
  --muted-foreground: #94a3b8;
  --accent: #6d28d9;
  --accent-foreground: #f8fafc;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #334155;
  --input: #1e293b;
  --ring: #8b5cf6;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* ============================================
   OVERFLOW PREVENTION
   ============================================ */

img, video, iframe, embed, object, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

[class*="grid"] > *,
[class*="flex"] > *,
.container > * {
  min-width: 0;
}

pre, code, .code-block {
  max-width: 100%;
  overflow-x: auto;
}

p, li, td, th {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

input, textarea, select {
  max-width: 100%;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
  margin-bottom: var(--space-md);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

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

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
}

.section-header h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--text-xl);
  color: var(--muted-foreground);
  margin-bottom: 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-base);
  font-weight: 600;
  font-family: var(--font-sans);
  line-height: 1.5;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--primary-foreground);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--secondary);
  border-color: var(--border);
  color: var(--foreground);
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-lg);
  min-height: 52px;
}

.btn-xl {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-xl);
  min-height: 60px;
}

button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* ============================================
   HEADER
   ============================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-base);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .header.scrolled {
  background-color: rgba(15, 23, 42, 0.8);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--foreground);
  text-decoration: none;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
}

.nav-desktop {
  display: none;
  gap: var(--space-xl);
}

.nav-desktop a {
  color: var(--foreground);
  font-weight: 500;
  font-size: var(--text-base);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-fast);
}

.nav-desktop a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background-color: var(--secondary);
  color: var(--foreground);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background-color: var(--muted);
  transform: rotate(15deg);
}

.theme-icon {
  width: 20px;
  height: 20px;
}

.moon-icon {
  display: none;
}

[data-theme="dark"] .sun-icon {
  display: none;
}

[data-theme="dark"] .moon-icon {
  display: block;
}

.cta-btn {
  display: none;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.menu-icon {
  position: relative;
  width: 24px;
  height: 2px;
  background-color: var(--foreground);
  transition: all var(--transition-fast);
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--foreground);
  transition: all var(--transition-fast);
}

.menu-icon::before {
  top: -8px;
}

.menu-icon::after {
  bottom: -8px;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  bottom: 0;
  transform: rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background-color: var(--background);
  border-top: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.nav-mobile.active {
  display: flex;
  max-height: 300px;
}

.nav-mobile a {
  padding: var(--space-lg);
  color: var(--foreground);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition-fast);
}

.nav-mobile a:hover {
  background-color: var(--secondary);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(192, 132, 252, 0.05) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

.hero-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

.hero-content {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.25rem, 8vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--muted-foreground);
  margin-bottom: var(--space-2xl);
  font-weight: 500;
}

.hero-phone-mockup {
  margin: var(--space-2xl) auto;
  max-width: 320px;
  perspective: 1000px;
}

.phone-frame {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: var(--space-md);
  box-shadow: var(--shadow-xl);
  border: 8px solid var(--foreground);
  animation: phoneFloat 3s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  50% { transform: translateY(-10px) rotateY(5deg); }
}

.phone-screen {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.swipe-indicator {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  top: 50%;
  transform: translateY(-50%);
  padding: var(--space-sm);
  background-color: var(--background);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: var(--text-sm);
  font-weight: 600;
  opacity: 0;
  animation: swipeHint 4s ease-in-out infinite;
}

.swipe-indicator.left {
  left: -60px;
  color: var(--muted-foreground);
}

.swipe-indicator.right {
  right: -60px;
  color: var(--primary);
}

@keyframes swipeHint {
  0%, 30%, 100% { opacity: 0; transform: translateY(-50%) translateX(0); }
  35%, 45% { opacity: 1; }
  40% { transform: translateY(-50%) translateX(10px); }
}

.swipe-indicator.left {
  animation-delay: 0s;
}

.swipe-indicator.right {
  animation-delay: 2s;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: var(--space-2xl) 0;
}

.hero-description {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border);
}

.hero-description p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--muted-foreground);
  text-align: left;
}

/* ============================================
   COMPARISON SECTION
   ============================================ */

.comparison-section {
  background-color: var(--background);
}

.comparison-grid {
  display: grid;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.comparison-card {
  background-color: var(--card);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.comparison-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.comparison-card h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.pain-points,
.benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.pain-points li,
.benefits li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: var(--text-base);
  line-height: 1.6;
}

.pain-points svg {
  flex-shrink: 0;
  color: var(--destructive);
  margin-top: 2px;
}

.benefits svg {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}

.old-way {
  border: 2px solid var(--destructive);
}

.new-way {
  border: 2px solid var(--primary);
}

.content-block {
  max-width: 800px;
  margin: var(--space-3xl) auto;
  padding: var(--space-2xl);
  background-color: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.content-block h3 {
  font-size: var(--text-2xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.content-block h3:first-child {
  margin-top: 0;
}

.content-block p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--muted-foreground);
}

.transition-text {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  font-weight: 600;
  color: var(--primary);
  font-style: italic;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */

.how-it-works {
  background: linear-gradient(180deg, var(--background) 0%, var(--secondary) 100%);
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.step {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  background-color: var(--card);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
}

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

.step-number {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--primary);
  opacity: 0.1;
  font-family: var(--font-display);
}

.step-visual {
  order: 1;
}

.step-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.step-content {
  order: 2;
}

.step-content h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
  color: var(--foreground);
}

.step-content p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--muted-foreground);
}

.step-connector {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
}

.cta-block {
  text-align: center;
  margin-top: var(--space-3xl);
}

/* ============================================
   COLLECTION SECTION
   ============================================ */

.collection-section {
  background-color: var(--background);
}

.feature-grid {
  display: grid;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.feature-visual {
  order: 2;
}

.feature-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.feature-benefits {
  order: 1;
  display: grid;
  gap: var(--space-lg);
}

.benefit-card {
  background-color: var(--card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.benefit-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.benefit-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.benefit-card p {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-bottom: 0;
}

.testimonial-card {
  background-color: var(--card);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  margin: var(--space-3xl) auto;
  max-width: 800px;
  border-left: 4px solid var(--primary);
}

.testimonial-avatar {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.testimonial-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto;
  border: 4px solid var(--primary);
}

.testimonial-quote p {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--foreground);
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.testimonial-quote footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-style: normal;
}

.testimonial-quote strong {
  font-size: var(--text-lg);
  color: var(--foreground);
}

.testimonial-quote span {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

.stats-card {
  display: grid;
  gap: var(--space-lg);
  margin: var(--space-3xl) auto;
  max-width: 1000px;
}

.stat-item {
  background-color: var(--card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-display);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: var(--text-base);
  color: var(--muted-foreground);
  font-weight: 500;
}

/* ============================================
   PURCHASE SECTION
   ============================================ */

.purchase-section {
  background: linear-gradient(180deg, var(--secondary) 0%, var(--background) 100%);
}

.purchase-demo {
  display: grid;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.game-page-mockup {
  order: 2;
}

.mockup-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.purchase-features {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.feature-item {
  display: flex;
  gap: var(--space-lg);
  background-color: var(--card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.feature-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius-md);
}

.feature-text h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.feature-text p {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-bottom: 0;
}

.trust-signals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  margin: var(--space-3xl) 0;
  padding: var(--space-xl);
  background-color: var(--card);
  border-radius: var(--radius-xl);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--foreground);
}

.trust-badge svg {
  color: var(--primary);
}

.live-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--primary-foreground);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  margin: var(--space-2xl) auto;
  max-width: 600px;
}

.counter-icon svg {
  color: var(--primary-foreground);
}

.counter-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.counter-number {
  font-size: var(--text-4xl);
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1;
}

.counter-text span {
  font-size: var(--text-base);
  opacity: 0.9;
}

.faq-section {
  max-width: 800px;
  margin: var(--space-4xl) auto;
}

.faq-section h3 {
  font-size: var(--text-3xl);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.faq-item {
  background-color: var(--card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.faq-item h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
  color: var(--primary);
}

.faq-item p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--muted-foreground);
  margin-bottom: 0;
}

.final-cta {
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(192, 132, 252, 0.1) 100%);
  border-radius: var(--radius-xl);
  margin-top: var(--space-4xl);
}

.final-cta h3 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

.final-cta > p {
  font-size: var(--text-xl);
  color: var(--muted-foreground);
  margin-bottom: var(--space-2xl);
}

.cta-subtext {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin-top: var(--space-md);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background-color: var(--card);
  color: var(--card-foreground);
  border-top: 1px solid var(--border);
}

.footer-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--primary-foreground);
  padding: var(--space-4xl) var(--space-lg);
  text-align: center;
}

.footer-cta h2 {
  font-size: var(--text-4xl);
  color: var(--primary-foreground);
  margin-bottom: var(--space-md);
}

.footer-cta p {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2xl);
  opacity: 0.95;
}

.footer-main {
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer-grid {
  display: grid;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-weight: 700;
  font-size: var(--text-xl);
  font-family: var(--font-display);
}

.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
}

.footer-tagline {
  font-size: var(--text-base);
  color: var(--muted-foreground);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--secondary);
  color: var(--foreground);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-2px);
}

.footer-links h4 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--foreground);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: var(--muted-foreground);
  font-size: var(--text-base);
  transition: color var(--transition-fast);
}

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

.newsletter-section {
  grid-column: 1 / -1;
  background-color: var(--secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-top: var(--space-2xl);
}

.newsletter-section h4 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.newsletter-section > p {
  color: var(--muted-foreground);
  margin-bottom: var(--space-lg);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.newsletter-form input {
  padding: var(--space-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.newsletter-note {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin-bottom: 0;
}

.footer-trust {
  grid-column: 1 / -1;
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border);
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0.5;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0;
  text-align: center;
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin-bottom: 0;
}

.legal-content {
  display: none;
}

/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--card);
  border-top: 2px solid var(--border);
  box-shadow: var(--shadow-xl);
  padding: var(--space-lg);
  z-index: 2000;
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-content {
  max-width: var(--container-lg);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
}

.cookie-content p {
  margin-bottom: 0;
  font-size: var(--text-base);
  color: var(--foreground);
}

.cookie-actions {
  display: flex;
  gap: var(--space-md);
}

.cookie-accept,
.cookie-reject {
  padding: var(--space-sm) var(--space-xl);
  font-size: var(--text-base);
}

/* ============================================
   RESPONSIVE - TABLET (768px+)
   ============================================ */

@media (min-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .nav-desktop {
    display: flex;
  }

  .cta-btn {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }

  .hero {
    min-height: 80vh;
  }

  .hero-content {
    max-width: 600px;
  }

  .hero-phone-mockup {
    max-width: 400px;
  }

  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }

  .comparison-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps-container {
    gap: var(--space-3xl);
  }

  .step {
    flex-direction: row;
    align-items: center;
  }

  .step:nth-child(odd) .step-visual {
    order: 1;
  }

  .step:nth-child(odd) .step-content {
    order: 2;
  }

  .step:nth-child(even) .step-visual {
    order: 2;
  }

  .step:nth-child(even) .step-content {
    order: 1;
  }

  .step-visual,
  .step-content {
    flex: 1;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .feature-visual {
    order: 1;
  }

  .feature-benefits {
    order: 2;
  }

  .stats-card {
    grid-template-columns: repeat(3, 1fr);
  }

  .purchase-demo {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .game-page-mockup {
    order: 1;
  }

  .purchase-features {
    order: 2;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .newsletter-section {
    grid-column: 1 / -1;
  }

  .newsletter-form {
    flex-direction: row;
    max-width: 600px;
    margin: 0 auto var(--space-md);
  }

  .newsletter-form input {
    flex: 1;
  }

  .newsletter-form button {
    flex-shrink: 0;
  }

  .cookie-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================
   RESPONSIVE - DESKTOP (1024px+)
   ============================================ */

@media (min-width: 1024px) {
  section {
    padding: var(--space-4xl) 0;
  }

  .hero {
    min-height: 85vh;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-phone-mockup {
    max-width: 480px;
  }

  .section-header h2 {
    font-size: var(--text-5xl);
  }

  .comparison-card {
    padding: var(--space-2xl);
  }

  .step {
    padding: var(--space-2xl);
  }

  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }
}

/* ============================================
   ACCESSIBILITY & ANIMATIONS
   ============================================ */

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

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

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

::selection {
  background-color: var(--primary);
  color: var(--primary-foreground);
}