/* ==========================================================================
   SHISH KEBAB MASTER - PREMIUM DESIGN SYSTEM
   ========================================================================== */

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

:root {
  --primary-glow: linear-gradient(135deg, #ff8c00 0%, #ff3c00 100%);
  --secondary-glow: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  --bg-dark: #09070f;
  --bg-velvet: #130f22;
  --text-white: #ffffff;
  --text-gray: #b3b0c2;
  --orange-neon: #ff5100;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-glow: rgba(255, 81, 0, 0.15);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & LAYOUT FOUNDATIONS
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 20%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(255, 81, 0, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 7, 15, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-emoji {
  font-size: 32px;
  filter: drop-shadow(0 0 10px rgba(255, 81, 0, 0.6));
  animation: pulseEmoji 3s ease-in-out infinite;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: var(--primary-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
  font-weight: 500;
  font-size: 15px;
  color: var(--text-gray);
}

nav ul li a:hover {
  color: var(--text-white);
  text-shadow: 0 0 15px rgba(255, 81, 0, 0.4);
}

.play-btn {
  padding: 10px 20px;
  background: var(--primary-glow);
  border-radius: 30px;
  color: var(--text-white);
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(255, 81, 0, 0.3);
}

.play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 81, 0, 0.5);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 64px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-content h1 span {
  background: var(--primary-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-content p {
  font-size: 18px;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 500px;
}

.cta-group {
  display: flex;
  gap: 16px;
  align-items: center;
}

.app-store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #110f1c;
  border: 1px solid var(--glass-border);
  padding: 12px 24px;
  border-radius: 16px;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.app-store-badge:hover {
  border-color: var(--orange-neon);
  box-shadow: 0 0 20px var(--glass-glow);
  transform: translateY(-2px);
}

.app-store-badge i {
  font-size: 28px;
}

.badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge-subtitle {
  font-size: 10px;
  color: var(--text-gray);
  text-transform: uppercase;
}

.badge-title {
  font-size: 16px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrap::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 81, 0, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
}

.mockup-img {
  width: 100%;
  max-width: 480px;
  border-radius: 40px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 81, 0, 0.1);
  transform: rotate(2deg);
  transition: var(--transition-smooth);
}

.mockup-img:hover {
  transform: rotate(0deg) scale(1.02);
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.features {
  background: var(--bg-velvet);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 100px 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-gray);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 32px 24px;
  border-radius: 24px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 81, 0, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--glass-glow);
  transform: translateY(-6px);
}

.feature-icon {
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: rgba(255, 81, 0, 0.1);
  border: 1px solid rgba(255, 81, 0, 0.2);
}

.feature-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.5;
}

/* ==========================================================================
   LEADERBOARD SECTION
   ========================================================================== */
.leaderboard-section {
  padding: 100px 0;
  position: relative;
}

.leaderboard-wrap {
  max-width: 700px;
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 40px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 20px;
}

.table-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.sync-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #00e676;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #00e676;
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 16px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.leaderboard-row:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--glass-border);
}

.leaderboard-row.rank-1 {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 215, 0, 0.01) 100%);
  border-color: rgba(255, 215, 0, 0.2);
}

.leaderboard-row.rank-1 .rank-badge {
  background: #ffd700;
  color: #000;
}

.leaderboard-row.rank-2 {
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.05) 0%, rgba(192, 192, 192, 0.01) 100%);
  border-color: rgba(192, 192, 192, 0.2);
}

.leaderboard-row.rank-2 .rank-badge {
  background: #c0c0c0;
  color: #000;
}

.leaderboard-row.rank-3 {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.05) 0%, rgba(205, 127, 50, 0.01) 100%);
  border-color: rgba(205, 127, 50, 0.2);
}

.leaderboard-row.rank-3 .rank-badge {
  background: #cd7f32;
  color: #000;
}

.rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.player-name {
  font-weight: 600;
  font-size: 16px;
}

.player-score {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--orange-neon);
}

/* ==========================================================================
   LEGAL PAGES STYLES
   ========================================================================== */
.legal-content {
  max-width: 800px;
  margin: 60px auto 120px;
  padding: 0 24px;
}

.legal-content h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 12px;
  background: var(--primary-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-update {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 40px;
  display: block;
}

.legal-body {
  font-size: 16px;
  color: var(--text-gray);
  line-height: 1.8;
}

.legal-body h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-white);
  margin: 32px 0 16px;
}

.legal-body p {
  margin-bottom: 20px;
}

.legal-body ul {
  list-style-type: square;
  margin-left: 20px;
  margin-bottom: 24px;
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-body a {
  color: var(--orange-neon);
  font-weight: 500;
}

.legal-body a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 60px 0;
  background: #06050a;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-info p {
  color: var(--text-gray);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--text-gray);
}

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

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes pulseEmoji {
  0% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(255, 81, 0, 0.6)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 20px rgba(255, 81, 0, 0.9)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(255, 81, 0, 0.6)); }
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */
@media (max-width: 968px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    margin: 40px auto;
  }
  
  .hero-content h1 {
    font-size: 48px;
  }
  
  .hero-content p {
    margin: 0 auto 30px;
  }
  
  .cta-group {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .nav-container {
    flex-direction: column;
    gap: 16px;
  }
  
  nav ul {
    gap: 20px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  
  .leaderboard-wrap {
    padding: 24px 16px;
  }
  
  .table-header h3 {
    font-size: 20px;
  }
}
