/* =========================================
   Sections: Hero, Rules, Worlds, Daily, Themes, Features, CTA
   ========================================= */

.section-wrapper {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 55px 24px;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.section-header p {
  margin-top: 12px;
  font-size: 1.1rem;
}

/* Modern Section Tag Chips */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.08) 0%, rgba(0, 229, 255, 0.06) 100%);
  border: 1px solid rgba(0, 230, 118, 0.2);
  color: var(--accent-mint);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =========================================
   1. Hero Section
   ========================================= */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 60px;
  overflow: hidden;
}

.hero-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-tagline {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero-description {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 40px;
}

.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-retro);
  font-size: 1.15rem;
  color: var(--accent-mint);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Hero Phone Mockup */
.hero-mockup-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-frame {
  width: 320px;
  height: 640px;
  background: #0C1017;
  border-radius: 46px;
  border: 4px solid #232C3E;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 230, 118, 0.15);
  position: relative;
  padding: 16px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.phone-notch {
  width: 120px;
  height: 18px;
  background: #181F2C;
  border-radius: 0 0 14px 14px;
  margin: 0 auto 16px;
}

.phone-screen {
  flex: 1;
  background: #090C12;
  border-radius: 32px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.phone-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-retro);
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.phone-game-board {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #101520;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.board-svg-container {
  width: 100%;
  height: 100%;
}

.phone-bottom-bar {
  text-align: center;
}

.phone-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-retro);
  font-size: 0.58rem;
  color: var(--accent-mint);
  background: rgba(0, 230, 118, 0.1);
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

/* =========================================
   2. Rules Walkthrough Section — 5 Rules
   ========================================= */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.rule-card {
  grid-column: span 2;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

/* Last two rules symmetrically centered on row 2 */
.rules-grid .rule-card:nth-child(4) {
  grid-column: 2 / span 2;
}
.rules-grid .rule-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.rule-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.rule-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.rule-number {
  width: 42px;
  height: 42px;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-retro);
  font-size: 0.75rem;
  color: var(--accent-mint);
  flex-shrink: 0;
}

.rule-badge {
  font-family: var(--font-retro);
  font-size: 0.65rem;
  color: var(--accent-amber);
}

.rule-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.rule-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.rule-visual {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 200px;
  background: #0A0D14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-top: auto;
}

.rule-visual svg {
  width: 85%;
  height: 85%;
}

/* =========================================
   3. World Progression Section
   ========================================= */
.worlds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.world-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.world-card:hover {
  border-color: var(--accent-mint);
  transform: translateY(-4px);
}

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

.world-num {
  font-family: var(--font-retro);
  font-size: 0.72rem;
  color: var(--accent-cyan);
}

.world-grid-size {
  font-family: var(--font-retro);
  font-size: 0.65rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
}

.world-name {
  font-size: 1.3rem;
  color: var(--text-primary);
}

.world-range {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-mint);
}

.world-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* =========================================
   4. Daily Challenge Section
   ========================================= */
.daily-box {
  background: linear-gradient(135deg, #111723 0%, #0A0D14 100%);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 230, 118, 0.1);
  overflow: hidden;
  width: 100%;
}

.daily-badge-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.streak-flame-chip {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(239, 68, 68, 0.12) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--accent-amber);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
  white-space: nowrap;
}

.daily-timer-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 22px 0 28px;
}

.daily-timer-boxes {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.countdown-colon {
  font-family: var(--font-retro);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.daily-timer-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  font-weight: 500;
}

.countdown-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  text-align: center;
  min-width: 58px;
}

.countdown-num {
  font-family: var(--font-retro);
  font-size: 1.25rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.countdown-lbl {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.daily-visual-preview {
  background: #080B10;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* =========================================
   5. Visual Themes Showcase
   ========================================= */
.themes-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
}

.themes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.theme-tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-primary);
  text-align: left;
}

.theme-tab-btn:hover, .theme-tab-btn.active {
  background: var(--bg-surface-elevated);
  border-color: var(--accent-mint);
  transform: translateX(6px);
}

.theme-btn-info h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.theme-btn-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.theme-color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.theme-display-canvas {
  background: #0D121B;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  transition: background 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* =========================================
   6. Core Features Section
   ========================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--accent-mint);
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* =========================================
   7. Final CTA Banner — Centered, No QR
   ========================================= */
.cta-banner {
  background: linear-gradient(135deg, #101622 0%, #07090E 100%);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0, 230, 118, 0.15);
}

.cta-banner h2 {
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 580px;
}

/* =========================================
   Light Mode Overrides for Sections
   ========================================= */
[data-theme="light"] .section-tag {
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.25);
  color: #047857;
}

[data-theme="light"] .rule-card {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .rule-card:hover {
  border-color: rgba(5, 150, 105, 0.4);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.12);
}

[data-theme="light"] .rule-visual {
  background: #0D131F;
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .world-card {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .world-card:hover {
  border-color: rgba(5, 150, 105, 0.4);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.12);
}

[data-theme="light"] .world-grid-size {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-secondary);
}

[data-theme="light"] .daily-box {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  border-color: rgba(5, 150, 105, 0.25);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .countdown-box {
  background: var(--bg-surface-elevated);
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .daily-visual-preview {
  background: #0D131F;
}

[data-theme="light"] .feature-card {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .feature-card:hover {
  border-color: rgba(5, 150, 105, 0.4);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.12);
}

[data-theme="light"] .cta-banner {
  background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 100%);
  border-color: rgba(5, 150, 105, 0.25);
  box-shadow: 0 10px 40px rgba(5, 150, 105, 0.08);
}
