/* ==========================================================================
   SPLIT - ARCADE SURVIVAL LANDING PAGE STYLESHEET
   Design System: Warm Obsidian Arcade
   ========================================================================== */

:root {
  --bg-dark: #0A0B10;
  --bg-card: rgba(18, 20, 30, 0.75);
  --bg-card-hover: rgba(28, 32, 48, 0.85);
  --accent-orange: #FF6D00;
  --accent-warm: #FF5722;
  --accent-yellow: #FFB300;
  --accent-glow: rgba(255, 109, 0, 0.4);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 109, 0, 0.35);
  --text-main: #FFFFFF;
  --text-muted: #A0A5BB;
  --text-dim: #6B7280;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  background: 
    radial-gradient(circle at 50% -10%, rgba(255, 109, 0, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(255, 87, 34, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(255, 179, 0, 0.06) 0%, transparent 50%),
    var(--bg-dark);
  background-attachment: fixed;
}

/* Background Grid Overlay */
.grid-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(255, 109, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 109, 0, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 18px 0;
  transition: var(--transition);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 11, 16, 0.7);
  border-bottom: 1px solid var(--border-light);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.nav-logo {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(255, 109, 0, 0.4);
  transition: var(--transition);
}

.nav-brand:hover .nav-logo {
  transform: scale(1.05) rotate(3deg);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFAB40 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent-orange);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-warm));
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: var(--transition);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 109, 0, 0.6);
  filter: brightness(1.1);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 109, 0, 0.12);
  border: 1px solid rgba(255, 109, 0, 0.3);
  color: var(--accent-orange);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-badge span.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-orange);
  box-shadow: 0 0 10px var(--accent-orange);
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #FF6D00 0%, #FF9100 50%, #FFD600 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 540px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.store-badge {
  display: inline-block;
  transition: var(--transition);
}

.store-badge:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 6px 20px rgba(255, 109, 0, 0.4));
}

.store-badge img {
  height: 48px;
  width: auto;
  display: block;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.85;
  position: relative;
}

.coming-soon-tag {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent-orange);
  color: #000000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.rating-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.stars {
  color: var(--accent-yellow);
  font-size: 1.1rem;
}

.rating-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Hero Visual / Canvas Container */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 109, 0, 0.25) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
}

/* Dynamic Live Arcade Demo Container */
.canvas-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.canvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.canvas-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-orange);
}

.live-indicator {
  width: 10px;
  height: 10px;
  background-color: #00E676;
  border-radius: 50%;
  box-shadow: 0 0 8px #00E676;
}

.canvas-stats {
  display: flex;
  gap: 16px;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.canvas-stats span strong {
  color: var(--text-main);
}

.game-canvas-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 109, 0, 0.2);
  background-color: #05060A;
  touch-action: none;
  cursor: crosshair;
}

#demoCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.direction-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 4px;
}

.dir-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.dir-btn.active {
  background: var(--accent-orange);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(255, 109, 0, 0.4);
}

.btn-reset-demo {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-reset-demo:hover {
  background: rgba(255, 255, 255, 0.18);
}

.canvas-instructions {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ==========================================================================
   FEATURE BANNER SHOWCASE
   ========================================================================== */

.feature-banner-section {
  padding: 40px 0 80px;
}

.feature-graphic-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glow);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  transition: var(--transition);
}

.feature-graphic-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(255, 109, 0, 0.25);
}

.feature-graphic-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */

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

.section-tag {
  color: var(--accent-orange);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 100px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  background: rgba(255, 109, 0, 0.12);
  border: 1px solid rgba(255, 109, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent-orange);
  margin-bottom: 24px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon-box {
  transform: scale(1.1) rotate(5deg);
  background: var(--accent-orange);
  color: #FFFFFF;
}

.feature-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ==========================================================================
   HOW TO PLAY SECTION
   ========================================================================== */

.how-to-play {
  padding: 80px 0;
  position: relative;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 109, 0, 0.25);
  position: absolute;
  top: 16px;
  right: 20px;
  line-height: 1;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--accent-orange);
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ==========================================================================
   GAMEPLAY SCREENSHOTS & ICON HIGHLIGHT
   ========================================================================== */

.media-showcase {
  padding: 80px 0;
}

.media-flex {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(20px);
}

.app-icon-display {
  width: 100%;
  max-width: 280px;
  border-radius: 40px;
  box-shadow: 0 20px 50px rgba(255, 109, 0, 0.35);
  transition: var(--transition);
}

.app-icon-display:hover {
  transform: scale(1.03) rotate(-2deg);
}

.showcase-content h3 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.showcase-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.highlights-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.highlights-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-main);
}

.highlights-list li i {
  color: var(--accent-orange);
  font-weight: bold;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */

.faq-section {
  padding: 80px 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--border-glow);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--accent-orange);
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px 24px;
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */

.cta-banner {
  margin: 80px 0 100px;
  background: linear-gradient(135deg, rgba(255, 109, 0, 0.2), rgba(255, 87, 34, 0.1));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  border-top: 1px solid var(--border-light);
  padding: 60px 0 30px;
  background: rgba(5, 6, 10, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 320px;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  font-size: 0.85rem;
}

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

@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 120px;
  }

  .hero-description {
    margin: 0 auto 36px;
  }

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

  .rating-bar {
    justify-content: center;
  }

  .media-flex {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .app-icon-display {
    margin: 0 auto;
  }

  .highlights-list {
    grid-template-columns: 1fr;
  }

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

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

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

  .nav-links {
    display: none;
  }

  .canvas-card {
    padding: 14px;
  }
}
