/* ========== VARIABLES ========== */
:root {
  --color-primary: #667eea;
  --color-primary-dark: #5568d3;
  --color-secondary: #764ba2;
  --color-accent: #f093fb;
  --color-bg: #0a0e27;
  --color-bg-light: #1a1f3a;
  --color-text: #ffffff;
  --color-text-muted: #a0aec0;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --border-radius: 1rem;
  --transition: all 0.3s ease;
}

/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  z-index: 1000;
}

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

.nav-brand .logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-dashboard {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-dashboard:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link.active {
  color: var(--color-primary);
}

/* ========== MOBILE MENU ========== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-text);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: var(--color-bg-light);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 80px 2rem 2rem;
    gap: 0;
    transition: right 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links .nav-link {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
  }

  .nav-links .btn-dashboard {
    margin-top: 1rem;
    text-align: center;
    padding: 1rem;
  }

  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
  }

  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* ========== HERO SECTION ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.15), transparent);
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.3; }
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

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

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-primary);
}

.btn-large {
  padding: 1.25rem 3rem;
  font-size: 1.1rem;
}

/* ========== DEVICES CONTAINER ========== */
.devices-container {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ========== TV MOCKUP ========== */
.tv-mockup {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

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

.tv-screen {
  width: 500px;
  height: 320px;
  background: var(--color-bg);
  border-radius: 1rem;
  border: 12px solid #1a1f3a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  position: relative;
}

.tv-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
  pointer-events: none;
}

.tv-content {
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tv-header {
  text-align: center;
  border-bottom: 2px solid rgba(102, 126, 234, 0.3);
  padding-bottom: 0.75rem;
}

.tv-game-title {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.tv-round {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0.25rem 0 0 0;
}

.tv-timer {
  margin-bottom: 0.5rem;
}

.timer-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.timer-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 1rem;
  transition: width 1s linear;
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.timer-text {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-accent);
  margin: 0;
  font-weight: 600;
}

.tv-choices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  flex: 1;
}

.tv-choice {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
}

.tv-choice.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
  border-color: var(--color-accent);
  box-shadow: 0 0 20px rgba(240, 147, 251, 0.3);
}

.tv-choice-letter {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  min-width: 35px;
  text-align: center;
}

.tv-choice-info {
  flex: 1;
  font-size: 0.8rem;
  line-height: 1.4;
}

.tv-choice-info strong {
  font-size: 0.9rem;
  color: var(--color-text);
}

.tv-choice-info small {
  color: var(--color-text-muted);
}

.tv-voters {
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 600;
  background: rgba(240, 147, 251, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
}

.tv-stand {
  width: 120px;
  height: 8px;
  background: linear-gradient(135deg, #1a1f3a, #2d3561);
  margin: 1rem auto 0;
  border-radius: 0.5rem;
  position: relative;
}

.tv-stand::before {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 15px;
  background: linear-gradient(135deg, #1a1f3a, #2d3561);
  border-radius: 0.5rem;
}

/* ========== PHONE MOCKUP ========== */
.phone-mockup {
  width: 200px;
  height: 400px;
  background: linear-gradient(135deg, #1a1f3a, #2d3561);
  border-radius: 1.5rem;
  padding: 0.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  animation: float 6s ease-in-out infinite;
  animation-delay: 0.5s;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
}

.game-preview {
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.preview-header {
  text-align: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-title {
  font-size: 0.9rem;
  margin: 0 0 0.35rem 0;
  color: var(--color-text);
}

.preview-score {
  font-size: 0.75rem;
  margin: 0;
  color: var(--color-text-muted);
}

.preview-score strong {
  color: var(--color-accent);
  font-size: 0.85rem;
}

.preview-status {
  text-align: center;
  font-size: 0.75rem;
  padding: 0.65rem;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 0.5rem;
  color: var(--color-text);
}

.preview-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  flex: 1;
}

.choice-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  color: var(--color-text);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

.choice-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.choice-btn.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-color: var(--color-accent);
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* ========== GAME MODES PREVIEW ========== */
.game-modes-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.game-mode-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.4s ease;
  cursor: pointer;
  min-width: 140px;
}

.game-mode-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary);
  background: rgba(102, 126, 234, 0.1);
}

.game-mode-card.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
  border-color: var(--color-accent);
  box-shadow: 0 15px 40px rgba(240, 147, 251, 0.2);
  transform: translateY(-10px) scale(1.05);
}

.game-mode-card .mode-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.game-mode-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.game-mode-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* ========== CONCEPT SECTION ========== */
.concept {
  padding: var(--spacing-xl) 0;
  background: var(--color-bg-light);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.step:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-primary);
}

.step-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.step p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ========== GAMES HIGHLIGHT SECTION ========== */
.games-highlight {
  padding: var(--spacing-xl) 0;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.games-grid .game-highlight-card:nth-child(4) {
  grid-column: 2;
}

.game-highlight-card {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.game-highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-highlight-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
}

.game-highlight-card:hover::before {
  opacity: 1;
}

.game-highlight-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.game-highlight-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.game-highlight-card p {
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.5rem;
}

.game-highlight-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  align-self: flex-start;
}

.games-highlight .games-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ========== FEATURES SECTION ========== */
.features {
  padding: var(--spacing-xl) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature {
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.feature p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ========== CTA SECTION ========== */
.cta {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* ========== JOIN SECTION ========== */
.join-section {
  padding: var(--spacing-lg) 0;
  background: var(--color-bg-light);
}

.join-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(102, 126, 234, 0.05);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.join-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.join-content h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.join-content p {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.email-link {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  padding: 0.75rem 2rem;
  background: rgba(240, 147, 251, 0.1);
  border-radius: 0.5rem;
  border: 2px solid var(--color-accent);
  transition: var(--transition);
}

.email-link:hover {
  background: var(--color-accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(240, 147, 251, 0.3);
}

/* ========== FOOTER ========== */
.footer {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-light) 100%);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-accent), transparent);
}

.footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(102, 126, 234, 0.08), transparent 70%);
  pointer-events: none;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  padding: 4rem 0 3rem;
  align-items: start;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand h3 {
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  display: inline-block;
  text-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

.footer-brand p {
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  margin-bottom: 1.25rem;
  color: var(--color-text);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 1px;
}

.footer-column a {
  display: inline-block;
  color: var(--color-text-muted);
  text-decoration: none;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
}

.footer-column a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width 0.3s ease;
}

.footer-column a:hover {
  color: var(--color-text);
  transform: translateX(3px);
}

.footer-column a:hover::before {
  width: 100%;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-heart {
  color: var(--color-accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Footer Contact Form */
.footer-contact {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contact p {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
}

.footer-contact-form {
  display: flex;
  gap: 0.5rem;
}

.footer-contact-form input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.footer-contact-form input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(0, 0, 0, 0.4);
}

.footer-contact-form input::placeholder {
  color: #666;
}

.footer-contact-form button {
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.footer-contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.footer-contact-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.footer-contact-message {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  min-height: 1.2em;
}

.footer-contact-message.success {
  color: #10b981;
}

.footer-contact-message.error {
  color: #ef4444;
}

@media (max-width: 480px) {
  .footer-contact-form {
    flex-direction: column;
  }

  .footer-contact-form button {
    width: 100%;
  }
}

/* ========== RESPONSIVE ========== */

/* Tablettes paysage et petits écrans */
@media (max-width: 968px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .game-modes-preview {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .game-mode-card {
    min-width: 120px;
    padding: 1.5rem 1rem;
  }

  .game-mode-card .mode-icon {
    font-size: 2.5rem;
  }

  .game-mode-card h3 {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .devices-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .tv-screen {
    width: 400px;
    height: 260px;
  }

  .tv-content {
    padding: 1rem;
    gap: 0.75rem;
  }

  .tv-game-title {
    font-size: 1.2rem;
  }

  .tv-round {
    font-size: 0.75rem;
  }

  .tv-choices-grid {
    gap: 0.5rem;
  }

  .tv-choice {
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .tv-choice-letter {
    font-size: 1.2rem;
    min-width: 28px;
  }

  .tv-choice-info {
    font-size: 0.7rem;
  }

  .tv-choice-info strong {
    font-size: 0.75rem;
  }

  .tv-voters {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
  }

  .phone-mockup {
    width: 180px;
    height: 360px;
  }

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

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

  /* Games grid: 2 colonnes sur tablette */
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .games-grid .game-highlight-card:nth-child(4) {
    grid-column: auto;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 0 2rem;
  }

  .footer-brand {
    max-width: 100%;
    text-align: center;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    text-align: center;
  }

  .footer-column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Tablettes portrait */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .cta h2 {
    font-size: 2rem;
  }

  .cta p {
    font-size: 1rem;
  }

  .btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

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

@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

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

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

  .game-highlight-card {
    padding: 2rem;
  }

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

  .tv-screen {
    width: 320px;
    height: 200px;
  }

  .tv-content {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .tv-game-title {
    font-size: 1rem;
  }

  .tv-round {
    font-size: 0.7rem;
  }

  .timer-bar {
    height: 6px;
  }

  .timer-text {
    font-size: 0.7rem;
  }

  .tv-choices-grid {
    gap: 0.4rem;
  }

  .tv-choice {
    padding: 0.4rem;
    gap: 0.4rem;
  }

  .tv-choice-letter {
    font-size: 1rem;
    min-width: 24px;
  }

  .tv-choice-info {
    font-size: 0.6rem;
  }

  .tv-choice-info strong {
    font-size: 0.65rem;
  }

  .tv-voters {
    font-size: 0.6rem;
    padding: 0.15rem 0.3rem;
  }

  .phone-mockup {
    width: 150px;
    height: 300px;
    padding: 0.5rem;
  }

  .game-preview {
    padding: 0.75rem 0.5rem;
    gap: 0.75rem;
  }

  .preview-title {
    font-size: 0.75rem;
  }

  .preview-score {
    font-size: 0.65rem;
  }

  .preview-score strong {
    font-size: 0.7rem;
  }

  .preview-status {
    font-size: 0.65rem;
    padding: 0.5rem;
  }

  .choice-btn {
    font-size: 1.2rem;
    min-height: 45px;
  }
}

/* ========== SMOOTH SCROLL ========== */
html {
  scroll-behavior: smooth;
}

/* ========== SCROLL ANIMATIONS ========== */

/* État initial - éléments masqués */
[data-animate] {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Fade up - monte depuis le bas */
[data-animate="fade-up"] {
  transform: translateY(40px);
}

/* Fade in - simple fondu */
[data-animate="fade-in"] {
  transform: translateY(0);
}

/* Fade left - arrive de la gauche */
[data-animate="fade-left"] {
  transform: translateX(-40px);
}

/* Fade right - arrive de la droite */
[data-animate="fade-right"] {
  transform: translateX(40px);
}

/* Scale up - zoom depuis petit */
[data-animate="scale-up"] {
  transform: scale(0.9);
}

/* État visible - quand l'élément entre dans le viewport */
[data-animate].animate-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Délais pour les animations échelonnées */
[data-animate-delay="100"] { transition-delay: 0.1s; }
[data-animate-delay="200"] { transition-delay: 0.2s; }
[data-animate-delay="300"] { transition-delay: 0.3s; }
[data-animate-delay="400"] { transition-delay: 0.4s; }
[data-animate-delay="500"] { transition-delay: 0.5s; }
[data-animate-delay="600"] { transition-delay: 0.6s; }

/* Désactiver les animations si l'utilisateur préfère moins de mouvement */
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
