/* --- Design System and Global Variables (Inspired by Game Banner) --- */
:root {
  --bg-primary: #070b19;      /* Deep dark navy/ultramarine */
  --bg-secondary: #0d162f;    /* Dark royal blue */
  --bg-accent: rgba(255, 255, 255, 0.02);
  --text-primary: #ffffff;
  --text-secondary: #b0c4de;  /* Light steel blue */
  
  /* Colors extracted from the banner image */
  --accent-blue: #3c87ed;     /* Royal Blue (Main Character) */
  --accent-sky: #74dafb;      /* Sky Blue (Background Sky) */
  --accent-sand: #e6cab1;     /* Desert Sand (Running Track) */
  --accent-dark-blue: #0f1b94; /* Ultramarine (Shadows/Depth) */
  
  /* Additional UI accents */
  --accent-green: #39ff14;    /* Gate green/Success */
  --accent-gold: #ffc107;     /* Gold coins/Ratings */
  
  --accent-sky-glow: rgba(116, 218, 251, 0.4);
  --accent-blue-glow: rgba(60, 135, 237, 0.4);
  
  --font-family-title: 'Outfit', sans-serif;
  --font-family-body: 'Inter', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

/* --- Base Reset & Setup --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family-body);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-primary);
}

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

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-family-title);
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

/* --- Container Utility --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation Bar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(20px);
  background-color: rgba(7, 11, 25, 0.8);
  border-bottom: 1px solid rgba(116, 218, 251, 0.1);
  transition: var(--transition-normal);
}

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

.nav-logo {
  font-family: var(--font-family-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo-accent {
  color: var(--accent-sky);
  text-shadow: 0 0 10px var(--accent-sky-glow);
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent-sky);
  text-shadow: 0 0 8px var(--accent-sky-glow);
}

.nav-play-store-btn {
  display: inline-block;
  transition: transform var(--transition-fast);
  overflow: visible;
}

.nav-play-store-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.nav-google-play-badge {
  height: 48px;
  display: block;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  /* Dark backdrop with color radial glows based on banner */
  background: radial-gradient(circle at 80% 20%, rgba(116, 218, 251, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(60, 135, 237, 0.15) 0%, transparent 50%),
              var(--bg-primary);
  overflow: hidden;
}

/* Blurred Game Banner in the Hero Background for rich aesthetic */
.hero-banner-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.1);
  width: 100%;
  height: 100%;
  background-image: url('https://play-lh.googleusercontent.com/uvE8LOWqW8o_C_XeZsQkxRT1JRfgd0TU_WZHlqwWGB0bX14mMuOkRRDnvxcvnaswV_JpoeRy9eRG6e3zUUMOxw');
  background-size: cover;
  background-position: center;
  filter: blur(50px) brightness(0.2);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}

.hero-bg-glow {
  position: absolute;
  top: 15%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: var(--accent-blue);
  filter: blur(150px);
  opacity: 0.2;
  z-index: -2;
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.badge-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(13, 22, 47, 0.6);
  border: 1px solid rgba(116, 218, 251, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  backdrop-filter: blur(4px);
}

.badge svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.badge-rating svg {
  color: var(--accent-gold);
  filter: drop-shadow(0 0 4px rgba(255, 193, 7, 0.4));
}

.badge-downloads svg {
  color: var(--accent-sky);
}

.hero-title-container {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.hero-app-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(116, 218, 251, 0.2);
  border: 1px solid rgba(116, 218, 251, 0.3);
  object-fit: cover;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text-primary) 40%, var(--accent-sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(116, 218, 251, 0.1);
}

.hero-tagline {
  font-size: 1.2rem;
  margin-bottom: 36px;
  max-width: 540px;
  color: var(--text-secondary);
}

.hero-actions {
  margin-bottom: 24px;
}

.play-store-btn {
  position: relative;
  display: inline-block;
  border-radius: var(--border-radius-sm);
  overflow: visible;
  transition: transform 0.3s var(--transition-normal);
}

.btn-glow {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(135deg, var(--accent-sky), var(--accent-blue));
  border-radius: 12px;
  z-index: -1;
  filter: blur(10px);
  opacity: 0.6;
  transition: var(--transition-fast);
}

.play-store-btn:hover .btn-glow {
  filter: blur(15px);
  opacity: 0.9;
}

.play-store-btn:hover {
  transform: scale(1.03);
}

.google-play-badge {
  height: 64px;
  display: block;
}

.app-info-meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rating-icon-inline {
  height: 20px;
  border-radius: 3px;
  vertical-align: middle;
}

/* --- Hero Visual Mockup --- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.visual-wrapper {
  position: relative;
  z-index: 1;
}

/* Phone Mockup */
.phone-mockup {
  width: 270px;
  height: 540px;
  background-color: #050814;
  border: 12px solid #131e3b;
  border-radius: 36px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 
              0 0 30px rgba(116, 218, 251, 0.25);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-3deg) translateY(-10px);
  animation: floatMockup 6s ease-in-out infinite;
  transition: var(--transition-normal);
}

.phone-mockup:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.85), 
              0 0 45px rgba(116, 218, 251, 0.4);
}

.phone-speaker {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background-color: #24345c;
  border-radius: 2px;
  z-index: 5;
}

.phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gameplay-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-home-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  z-index: 5;
}

/* Floating Elements (Stylized with new Sand/Blue color scheme) */
.floating-bubble {
  position: absolute;
  padding: 8px 16px;
  background: rgba(13, 22, 47, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 30px;
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid rgba(116, 218, 251, 0.3);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
  animation: floatBubble 4s ease-in-out infinite;
  white-space: nowrap;
}

.bubble-1 {
  top: -20px;
  left: -10px;
  color: var(--accent-green);
  border-color: rgba(57, 255, 20, 0.4);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.2);
  animation-delay: 0.5s;
}

.bubble-2 {
  bottom: -15px;
  right: 10px;
  color: var(--accent-sky);
  border-color: rgba(116, 218, 251, 0.4);
  box-shadow: 0 0 15px rgba(116, 218, 251, 0.2);
  animation-delay: 1.5s;
}

.bubble-3 {
  top: 40%;
  right: -50px;
  color: var(--accent-sand);
  border-color: rgba(230, 202, 177, 0.4);
  box-shadow: 0 0 15px rgba(230, 202, 177, 0.2);
  animation-delay: 2.5s;
}

/* Animations */
@keyframes floatMockup {
  0%, 100% {
    transform: rotate(-3deg) translateY(-10px);
  }
  50% {
    transform: rotate(-3deg) translateY(10px);
  }
}

@keyframes floatBubble {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* --- Features Section --- */
.features {
  padding: 100px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(116, 218, 251, 0.05);
  border-bottom: 1px solid rgba(116, 218, 251, 0.05);
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--text-primary), var(--accent-sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.1rem;
}

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

.feature-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(116, 218, 251, 0.08);
  border-radius: var(--border-radius-md);
  padding: 40px 32px;
  transition: all var(--transition-normal);
  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-sky), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.feature-card:hover::before {
  transform: translateX(100%);
}

.feature-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(116, 218, 251, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 
              0 0 25px rgba(116, 218, 251, 0.08);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(116, 218, 251, 0.08);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-sky);
  transition: var(--transition-fast);
}

.feature-card:hover .card-icon {
  background: var(--accent-sky);
  color: var(--bg-primary);
  box-shadow: 0 0 15px var(--accent-sky-glow);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.card-desc {
  font-size: 0.95rem;
}

/* --- Gameplay Screenshots Gallery (Responsive Tablet/TV Mockup Style) --- */
.gallery {
  padding: 100px 0;
  background-color: var(--bg-primary);
  position: relative;
}

.carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 320px;
  margin: 0 auto;
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
  border-radius: 40px;
  /* Make the carousel look like a sleek, bezel-less modern smartphone screen */
  border: 10px solid #131e3b;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8), 0 0 35px rgba(116, 218, 251, 0.2);
  background-color: #000;
  aspect-ratio: 9 / 16;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
  aspect-ratio: 9 / 16; /* Maintains standard portrait mobile aspect ratio perfectly without stretching */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition-normal);
}

.carousel-slide:hover img {
  transform: scale(1.04);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(13, 22, 47, 0.9);
  border: 1px solid rgba(116, 218, 251, 0.25);
  color: var(--text-primary);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: var(--transition-fast);
}

.carousel-btn:hover {
  background: var(--accent-sky);
  color: var(--bg-primary);
  border-color: var(--accent-sky);
  box-shadow: 0 0 15px var(--accent-sky-glow);
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.btn-prev {
  left: -20px;
}

.btn-next {
  right: -20px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-fast);
}

.indicator.active {
  background: var(--accent-sky);
  width: 24px;
  border-radius: 10px;
  box-shadow: 0 0 10px var(--accent-sky-glow);
}

/* --- Call to Action Banner (Incorporates the Game Banner/Cover art) --- */
.cta-banner {
  padding: 100px 0;
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(116, 218, 251, 0.1) 0%, transparent 60%);
}

.cta-banner-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  background: var(--accent-blue);
  filter: blur(160px);
  opacity: 0.1;
  pointer-events: none;
}

.cta-card {
  /* Dynamic gradient overlay matching banner art context */
  background: linear-gradient(135deg, rgba(13, 22, 47, 0.9) 0%, rgba(7, 11, 25, 0.95) 100%);
  border: 1px solid rgba(116, 218, 251, 0.15);
  border-radius: var(--border-radius-lg);
  padding: 80px 40px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.75);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Include Banner Image inside the CTA section for a premium vibe */
.cta-banner-image {
  max-width: 500px;
  width: 100%;
  border-radius: var(--border-radius-md);
  margin-bottom: 32px;
  border: 2px solid rgba(116, 218, 251, 0.2);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(116, 218, 251, 0.1);
  transition: transform var(--transition-normal);
}

.cta-card:hover .cta-banner-image {
  transform: scale(1.02);
  border-color: rgba(116, 218, 251, 0.4);
}

.cta-headline {
  font-size: 3rem;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-subtext {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 40px;
}

.download-badge-cta {
  display: inline-block;
  transition: transform 0.3s var(--transition-normal);
}

.download-badge-cta:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 25px rgba(116, 218, 251, 0.45));
}

.google-play-badge-large {
  height: 80px;
  display: block;
}

/* --- Footer --- */
.footer {
  background-color: #030610;
  padding: 60px 0;
  border-top: 1px solid rgba(116, 218, 251, 0.1);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  font-family: var(--font-family-title);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-sky);
}

.footer-bottom {
  border-top: 1px solid rgba(116, 218, 251, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: center;
}

.copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .badge-row {
    justify-content: center;
  }
  
  .hero-title-container {
    justify-content: center;
  }
  
  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }
  
  .phone-mockup {
    transform: rotate(0) translateY(0);
    animation: floatMockupMobile 6s ease-in-out infinite;
  }
  
  @keyframes floatMockupMobile {
    0%, 100% {
      transform: translateY(-8px);
    }
    50% {
      transform: translateY(8px);
    }
  }
  
  .bubble-3 {
    right: -20px;
  }
  
  .btn-prev {
    left: 8px;
  }
  
  .btn-next {
    right: 8px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .hero {
    padding-top: 120px;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .phone-mockup {
    width: 220px;
    height: 440px;
    border-width: 8px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .cta-headline {
    font-size: 2.2rem;
  }
  
  .cta-card {
    padding: 60px 24px;
  }
  
  .google-play-badge-large {
    height: 70px;
  }
  
  .footer-top {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-links {
    justify-content: center;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-app-icon {
    width: 60px;
    height: 60px;
  }
  
  .floating-bubble {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  
  .phone-mockup {
    width: 180px;
    height: 360px;
  }
}
