/**
 * Expertly Games — Landing Page Styles
 * Premium game portal aesthetic: dark, rich, with strong vertical identity.
 */

/* WHY: Inter gives cleaner numerals and tighter spacing than system-ui defaults */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

body {
  background: #07071a;
  color: #f0f0f5;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}


/* ==================== HERO ==================== */
.hero {
  text-align: center;
  padding: 80px 24px 64px;
  background: linear-gradient(180deg, #12103a 0%, #0c0828 50%, #07071a 100%);
  position: relative;
  overflow: hidden;
}

/* WHY: Multiple radial gradients create an organic, nebula-like depth effect */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 25% 40%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
              radial-gradient(ellipse at 75% 60%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 20%, rgba(34, 211, 238, 0.06) 0%, transparent 40%);
  animation: hero-shimmer 16s ease-in-out infinite alternate;
}

@keyframes hero-shimmer {
  0% { transform: translateX(-5%) translateY(-2%) rotate(0deg); }
  100% { transform: translateX(5%) translateY(2%) rotate(1deg); }
}

/* WHY: Floating orbs add a cosmic game-portal feel without being distracting */
.hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
  top: 10%;
  right: -5%;
  animation: hero-orb 20s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes hero-orb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 20px) scale(1.2); }
}

.hero-title {
  font-size: 64px;
  font-weight: 900;
  background: linear-gradient(135deg, #22d3ee 0%, #a855f7 35%, #f472b6 65%, #fbbf24 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -3px;
  position: relative;
  animation: gradient-shift 8s ease-in-out infinite;
  line-height: 1.1;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  color: #8b8ba0;
  font-size: 20px;
  margin-top: 14px;
  font-weight: 400;
  letter-spacing: 0.3px;
  position: relative;
  line-height: 1.5;
}

.hero-cards {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 48px;
  position: relative;
}

.hero-vertical-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 48px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  color: inherit;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  min-width: 220px;
  position: relative;
  overflow: hidden;
}

/* WHY: Top-edge highlight creates physical depth like a frosted glass card */
.hero-vertical-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}

.hero-vertical-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.hero-logistics {
  background: linear-gradient(160deg, rgba(14, 165, 233, 0.1) 0%, rgba(6, 182, 212, 0.04) 100%);
  border-color: rgba(14, 165, 233, 0.15);
}
.hero-logistics:hover {
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 16px 48px rgba(14, 165, 233, 0.15), 0 0 0 1px rgba(14, 165, 233, 0.1);
}

.hero-hospitality {
  background: linear-gradient(160deg, rgba(168, 85, 247, 0.1) 0%, rgba(251, 191, 36, 0.04) 100%);
  border-color: rgba(168, 85, 247, 0.15);
}
.hero-hospitality:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 16px 48px rgba(168, 85, 247, 0.15), 0 0 0 1px rgba(168, 85, 247, 0.1);
}

.hero-vertical-emoji {
  font-size: 44px;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.1));
}

.hero-vertical-label {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.hero-vertical-desc {
  font-size: 14px;
  color: #6b6b88;
  font-weight: 400;
  line-height: 1.4;
}


/* ==================== SECTIONS ==================== */
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.industry-section {
  padding: 64px 0 56px;
  position: relative;
}

/* WHY: Section-level background glow ties the vertical's color identity to its entire area */
#logistics {
  background: radial-gradient(ellipse at 0% 0%, rgba(14, 165, 233, 0.04) 0%, transparent 50%);
}

#hospitality {
  background: radial-gradient(ellipse at 100% 0%, rgba(168, 85, 247, 0.04) 0%, transparent 50%);
}

.section-header {
  margin-bottom: 40px;
  position: relative;
  padding-left: 24px;
}

.section-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 2px;
}

.logistics-accent {
  background: linear-gradient(180deg, #0ea5e9, #06b6d4);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.4);
}

.hospitality-accent {
  background: linear-gradient(180deg, #a855f7, #fbbf24);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

.section-title {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.2;
}

.section-subtitle {
  color: #6b6b88;
  font-size: 16px;
  margin-top: 6px;
  font-weight: 400;
}


/* ==================== SECTION HERO ILLUSTRATIONS ==================== */
/* WHY: Large hero images set the visual tone for each vertical — movie-poster feel */
.section-hero-img {
  text-align: center;
  margin-bottom: 36px;
}

.hero-illustration {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.04);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.hero-illustration:hover {
  transform: scale(1.02);
}

/* WHY: Colored glow matches the vertical's color identity */
.hero-illustration.logistics-glow {
  box-shadow: 0 8px 40px rgba(14, 165, 233, 0.15), 0 0 80px rgba(14, 165, 233, 0.06), 0 0 0 1px rgba(14, 165, 233, 0.1);
}

.hero-illustration.hospitality-glow {
  box-shadow: 0 8px 40px rgba(168, 85, 247, 0.15), 0 0 80px rgba(168, 85, 247, 0.06), 0 0 0 1px rgba(168, 85, 247, 0.1);
}


/* ==================== INDUSTRY GRID ==================== */
/* WHY: Fixed 2-column grid because each section has exactly 2 games (tycoon + arcade) */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}


/* ==================== GAME CARDS (shared) ==================== */
.game-card {
  background: linear-gradient(160deg, #12122e 0%, #0c0c22 100%);
  border: 1px solid #1e1e40;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}

/* WHY: Top-edge shimmer gives each card a physical "lit edge" */
.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  z-index: 1;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: #3a3a6a;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.03);
}

.game-card.coming-soon {
  opacity: 0.4;
  cursor: default;
  filter: grayscale(0.3);
}
.game-card.coming-soon:hover {
  transform: none;
  border-color: #1e1e40;
  box-shadow: none;
}


/* ==================== INDUSTRY CARDS ==================== */
.industry-card .game-preview {
  height: 220px;
}

.logistics-card {
  border-color: rgba(14, 165, 233, 0.12);
}
.logistics-card:hover {
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 12px 40px rgba(14, 165, 233, 0.1), 0 0 0 1px rgba(14, 165, 233, 0.08);
}

.hospitality-card {
  border-color: rgba(168, 85, 247, 0.12);
}
.hospitality-card:hover {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 12px 40px rgba(168, 85, 247, 0.1), 0 0 0 1px rgba(168, 85, 247, 0.08);
}


/* ==================== DURATION & NEW BADGES ==================== */
.duration-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(12px);
  color: #c0c0d0;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 1px solid rgba(255,255,255,0.06);
}

.new-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Game type tags — visual indicators for game category */
.type-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  z-index: 2;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(8px);
}

.type-tag-quick {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.type-tag-deep {
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.type-tag-team {
  background: rgba(96, 165, 250, 0.15);
  color: #bfdbfe;
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.type-tag-puzzle {
  background: rgba(251, 191, 36, 0.15);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.type-tag-classic {
  background: rgba(74, 222, 128, 0.12);
  color: #bbf7d0;
  border: 1px solid rgba(74, 222, 128, 0.15);
}

.type-tag-action {
  background: rgba(244, 114, 182, 0.15);
  color: #fbcfe8;
  border: 1px solid rgba(244, 114, 182, 0.2);
}


/* ==================== GAME PREVIEW ==================== */
.game-preview {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  position: relative;
  overflow: hidden;
}

/* WHY: Bottom gradient fades the preview into the info area cleanly */
.game-preview::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, #0c0c22, transparent);
  pointer-events: none;
}

.game-info {
  padding: 18px 22px 22px;
  position: relative;
}

.game-info h2 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.game-info p {
  color: #7a7a95;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}


/* ==================== BADGES ==================== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 10px;
  border: 1px solid transparent;
}

.badge.classic { background: rgba(74, 222, 128, 0.1); color: #4ade80; border-color: rgba(74, 222, 128, 0.15); }
.badge.puzzle { background: rgba(251, 191, 36, 0.1); color: #fbbf24; border-color: rgba(251, 191, 36, 0.15); }
.badge.action { background: rgba(244, 114, 182, 0.1); color: #f472b6; border-color: rgba(244, 114, 182, 0.15); }
.badge.strategy { background: rgba(96, 165, 250, 0.1); color: #60a5fa; border-color: rgba(96, 165, 250, 0.15); }
.badge.coming { background: rgba(100, 100, 120, 0.1); color: #555; border-color: rgba(100,100,120,0.1); }
.badge.chaos { background: rgba(239, 68, 68, 0.1); color: #f87171; border-color: rgba(239, 68, 68, 0.15); }
.badge.builder { background: rgba(168, 85, 247, 0.1); color: #c084fc; border-color: rgba(168, 85, 247, 0.15); }
.badge.team { background: rgba(96, 165, 250, 0.1); color: #60a5fa; border-color: rgba(96, 165, 250, 0.15); }


/* ==================== INDUSTRY PREVIEW BACKGROUNDS ==================== */
/* WHY: Each game gets a distinct gradient matching its vertical color identity */
.preview-freight-freakout {
  background: linear-gradient(160deg, #0c1929 0%, #0a1a2e 50%, #081828 100%);
}
.preview-desk-dynasty {
  background: linear-gradient(160deg, #0c1929 0%, #091f30 50%, #071a28 100%);
}
.preview-beat-backlog {
  background: linear-gradient(160deg, #0a1525 0%, #0d1f35 50%, #091828 100%);
}
.preview-turn-burn {
  background: linear-gradient(160deg, #1a0a2e 0%, #150d28 50%, #120824 100%);
}
.preview-lobby-logic {
  background: linear-gradient(160deg, #150d28 0%, #1a0a2e 50%, #120824 100%);
}
.preview-lobby-legend {
  background: linear-gradient(160deg, #1a0a2e 0%, #180d2a 50%, #140826 100%);
}
.preview-sold-out {
  background: linear-gradient(160deg, #1a0a2e 0%, #20103a 50%, #180830 100%);
}
.preview-freight-tetris {
  background: linear-gradient(160deg, #0c1929 0%, #0a1a2e 50%, #081828 100%);
}
.preview-hotel-pacman {
  background: linear-gradient(160deg, #150d28 0%, #1a0a2e 50%, #120824 100%);
}


/* ==================== CLASSIC PREVIEW BACKGROUNDS ==================== */
.preview-tetris {
  background: linear-gradient(160deg, #1a0a2e, #0a1a2e);
}
.preview-snake {
  background: linear-gradient(160deg, #0a1a0a, #0a2a1a);
}
.preview-breakout {
  background: linear-gradient(160deg, #2a1a0a, #1a0a0a);
}
.preview-minesweeper {
  background: linear-gradient(160deg, #1a1a1a, #2a2a2a);
}
.preview-2048 {
  background: linear-gradient(160deg, #2a1a0a, #3a2a0a);
}
.preview-space {
  background: linear-gradient(160deg, #0a0a2a, #1a0a3a);
}
.preview-pong {
  background: linear-gradient(160deg, #0a0a0a, #1a1a2a);
}
.preview-flappy {
  background: linear-gradient(160deg, #0a2a3a, #0a1a2a);
}


/* ==================== CLASSIC SECTION ==================== */
.classic-section {
  padding: 56px 0 64px;
  position: relative;
}

.classic-header {
  text-align: center;
  padding-left: 0;
  margin-bottom: 36px;
}

/* WHY: Retro scanline effect gives classic arcade section an authentic feel */
.classic-header .section-title {
  display: inline-block;
  position: relative;
}

.classic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.classic-card .game-preview {
  height: 160px;
}

.classic-card {
  border-color: rgba(100, 100, 140, 0.1);
}
.classic-card:hover {
  border-color: rgba(100, 100, 140, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}


/* ==================== SECTION DIVIDER ==================== */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px 24px;
}

.divider-line {
  height: 1px;
  flex: 1;
  max-width: 240px;
  background: linear-gradient(90deg, transparent, #2a2a4a 50%, transparent);
}

.divider-icon {
  font-size: 28px;
  opacity: 0.3;
  filter: grayscale(0.5);
}


/* ==================== FOOTER ==================== */
.footer {
  text-align: center;
  padding: 40px 24px;
  color: #3a3a50;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.03);
  font-weight: 400;
  letter-spacing: 0.3px;
}


/* ==================== UTILITY ==================== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6a6a88;
  text-decoration: none;
  font-size: 14px;
  padding: 12px 16px;
  transition: color 0.2s;
  font-weight: 500;
}
.back-link:hover { color: #fff; }


/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .hero {
    padding: 56px 16px 48px;
  }

  .hero-title {
    font-size: 40px;
    letter-spacing: -1.5px;
  }

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

  .hero-cards {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .hero-vertical-card {
    min-width: 0;
    width: 100%;
    max-width: 300px;
    padding: 24px 32px;
  }

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

  .hero-illustration {
    max-width: 100%;
    border-radius: 16px;
  }

  .section-hero-img {
    margin-bottom: 28px;
  }

  .industry-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .classic-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .industry-card .game-preview {
    height: 180px;
  }
}

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

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

  .section-inner {
    padding: 0 16px;
  }

  .game-info h2 {
    font-size: 18px;
  }
}
