/* ==========================================================================
   1. VARIABLES - "SIZZLE TECH KITCHEN"
   ========================================================================== */
:root {
  /* Colors - Base */
  --bg-primary: #050505;
  --bg-secondary: #0e1116;
  
  /* Colors - Surface (Glass + Metal) */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --metal-bg: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  
  /* Gradients */
  --grad-flame: linear-gradient(135deg, #ff6a00, #ff2d00);
  --grad-gold: linear-gradient(135deg, #fbbf24, #f59e0b);
  --grad-steel: linear-gradient(135deg, #38bdf8, #0ea5e9);
  --grad-fusion: linear-gradient(135deg, #ff6a00, #fbbf24, #38bdf8);
  
  /* Glows */
  --glow-fire: rgba(255, 106, 0, 0.45);
  --glow-gold: rgba(251, 191, 36, 0.45);
  --glow-blue: rgba(56, 189, 248, 0.35);
  
  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #6b7280;
  
  /* Spacing & Layout */
  --max-width: 1280px;
  --nav-width-desktop: 90px;
  --nav-height-mobile: 70px;
  --spacing-desktop: 120px;
  --spacing-tablet: 80px;
  --spacing-mobile: 60px;
  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 24px;
  
  /* Transitions */
  --trans-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: radial-gradient(circle at top right, var(--bg-secondary), var(--bg-primary) 70%);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */
.main-wrapper {
  margin-left: var(--nav-width-desktop);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--spacing-desktop) 0;
  position: relative;
}

/* ==========================================================================
   4. HEADER & NAVIGATION - "FLOATING CONTROL PANEL"
   ========================================================================== */
.control-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-width-desktop);
  height: 100vh;
  background: var(--metal-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 0;
  box-shadow: 4px 0 24px rgba(0,0,0,0.5);
}

.brand-icon {
  width: 48px;
  height: 48px;
  background: var(--grad-fusion);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 24px;
  margin-bottom: 60px;
  box-shadow: 0 0 15px var(--glow-fire);
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1;
}

.nav-item {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 24px;
  transition: var(--trans-smooth);
}

.nav-item:hover, .nav-item.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
  box-shadow: inset 0 0 0 1px var(--glass-border);
  transform: scale(1.1);
}

.nav-item:hover {
  text-shadow: 0 0 10px var(--glow-fire);
}

.nav-item.active {
  background: var(--grad-flame);
  box-shadow: 0 0 20px var(--glow-fire);
  color: #fff;
}

/* Tooltip for Nav */
.nav-item::after {
  content: attr(aria-label);
  position: absolute;
  left: calc(100% + 16px);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
  transition: var(--trans-smooth);
}

.nav-item:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Top Right CTA */
.top-cta-wrapper {
  position: fixed;
  top: 32px;
  right: 32px;
  z-index: 999;
}

/* ==========================================================================
   5. HERO - "SIZZLING PAN WORLD"
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-top: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  mix-blend-mode: luminosity;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-primary) 100%), 
              radial-gradient(circle at center, rgba(255,106,0,0.1) 0%, transparent 60%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  position: relative;
  z-index: 10;
  padding: 0 24px;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  background: var(--text-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.hero-title span {
  background: var(--grad-flame);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: heatShimmerText 3s infinite alternate;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-legal-text {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
  padding: 0 24px;
}

/* ==========================================================================
   6. GAME SECTION - CORE PRODUCT
   ========================================================================== */
.game-section {
  background: radial-gradient(ellipse at center, rgba(14,17,22,1) 0%, var(--bg-primary) 100%);
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.game-showcase {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  perspective: 1000px;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--metal-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.game-controls {
  display: flex;
  gap: 12px;
}

.game-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: #000;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  overflow: hidden;
  transition: var(--trans-smooth);
  z-index: 2;
}

.game-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.game-glow-border {
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: var(--grad-fusion);
  border-radius: calc(var(--radius-lg) + 2px);
  z-index: 1;
  opacity: 0.3;
  filter: blur(10px);
  animation: heatBorder 4s infinite alternate;
}

.game-showcase:hover .game-wrapper {
  transform: rotateX(2deg) translateY(-5px);
  border-color: rgba(255,106,0,0.4);
}

.game-showcase:hover .game-glow-border {
  opacity: 0.6;
  filter: blur(15px);
}

/* ==========================================================================
   7. CARDS - "COOKING CARDS"
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  align-items: start;
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: var(--trans-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-gold);
  opacity: 0;
  transition: var(--trans-smooth);
}

/* Asymmetric Layout */
.feature-card:nth-child(1) { grid-column: span 4; }
.feature-card:nth-child(2) { grid-column: span 4; margin-top: 48px; }
.feature-card:nth-child(3) { grid-column: span 4; }

.feature-icon {
  font-size: 40px;
  margin-bottom: 24px;
  display: inline-block;
  background: var(--metal-bg);
  width: 80px; height: 80px;
  line-height: 80px;
  text-align: center;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: var(--trans-fast);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: rgba(251,191,36,0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 0 20px rgba(255,106,0,0.05);
}

.feature-card:hover::before {
  opacity: 1;
  background: var(--grad-flame);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 20px var(--glow-gold);
}

/* ==========================================================================
   8. FOOTER & LEGAL
   ========================================================================== */
.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--glass-border);
  padding: 64px 0 32px;
  margin-top: auto;
}

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

.footer-brand {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: #fff;
}

.footer-brand span {
  color: #ff6a00;
}

.legal-warning {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.legal-warning span {
  font-size: 24px;
}

.legal-warning p {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--trans-fast);
}

.footer-links a:hover {
  color: #ff6a00;
}

.copyright {
  color: var(--text-muted);
  font-size: 14px;
}

/* Content Pages (Terms, Privacy, etc.) */
.page-header {
  padding: 120px 24px 60px;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(30,35,45,1) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--glass-border);
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  background: var(--grad-fusion);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.content-section {
  padding: 60px 0;
}

.text-content {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-secondary);
  line-height: 1.8;
}

.text-content h2 {
  color: var(--text-primary);
  margin: 40px 0 20px;
  font-size: 1.8rem;
}

.text-content p {
  margin-bottom: 20px;
}

.text-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
  list-style: disc;
}

.text-content li {
  margin-bottom: 10px;
}

/* ==========================================================================
   9. BUTTON SYSTEM
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 16px;
  transition: var(--trans-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: -1;
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: scale(0.96);
}

.btn-flame {
  background: var(--grad-flame);
  color: #fff;
  box-shadow: 0 4px 15px var(--glow-fire);
}

.btn-flame:hover {
  box-shadow: 0 8px 25px var(--glow-fire);
  transform: translateY(-2px);
}

.btn-steel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}

.btn-steel:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(56,189,248,0.5);
  box-shadow: 0 8px 25px var(--glow-blue);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   10. ANIMATIONS & EFFECTS
   ========================================================================== */
.pulse-flame {
  animation: pulseHeat 2s infinite;
}

@keyframes pulseHeat {
  0% { box-shadow: 0 0 0 0 rgba(255,106,0,0.4); }
  70% { box-shadow: 0 0 0 15px rgba(255,106,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,106,0,0); }
}

@keyframes heatShimmerText {
  0% { filter: hue-rotate(0deg) brightness(1); }
  100% { filter: hue-rotate(15deg) brightness(1.2); }
}

@keyframes heatBorder {
  0% { opacity: 0.2; filter: blur(8px); transform: scale(1); }
  100% { opacity: 0.5; filter: blur(14px); transform: scale(1.02); }
}

/* Sparks / Particles */
.particles {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  bottom: -10px;
  background: #ff6a00;
  border-radius: 50%;
  filter: blur(2px);
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 0.8; }
  100% { transform: translateY(-100vh) translateX(50px) scale(0); opacity: 0; }
}

/* Fade in Scroll */
.fade-in {
  animation: fadeInScroll 0.8s ease-out forwards;
}

@keyframes fadeInScroll {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   11. MEDIA QUERIES (MOBILE RESPONSIVE)
   ========================================================================== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card:nth-child(1), .feature-card:nth-child(2), .feature-card:nth-child(3) {
    grid-column: span 1;
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  section {
    padding: var(--spacing-mobile) 0;
  }
  
  /* Reset layout for bottom nav */
  .main-wrapper {
    margin-left: 0;
    padding-bottom: calc(var(--nav-height-mobile) + 20px);
  }

  .control-panel {
    top: auto;
    bottom: 0;
    width: 100%;
    height: var(--nav-height-mobile);
    flex-direction: row;
    padding: 0 16px;
    justify-content: space-between;
    border-right: none;
    border-top: 1px solid var(--glass-border);
    border-radius: 16px 16px 0 0;
  }

  .brand-icon {
    display: none;
  }

  .nav-links {
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
    gap: 0;
  }

  .nav-item {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .nav-item::after {
    display: none; /* Hide tooltips on mobile */
  }

  .top-cta-wrapper {
    top: 16px;
    right: 16px;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }

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

  .feature-card:nth-child(n) {
    grid-column: span 1;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
}