/* =========================================
   BATTLEZONE APK DOWNLOAD PAGE STYLES
   FULLY RESPONSIVE & OPTIMIZED FOR ALL SCREENS
   ========================================= */

/* CSS Variables for Clean Modern Theme */
:root {
  --bg-color: #ffffff;
  --surface-color: #f8fafc;
  --surface-border: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --brand-primary: #2563eb;
  --brand-primary-hover: #1d4ed8;
  --brand-secondary: #f59e0b;
  --brand-secondary-hover: #d97706;
  --green: #10b981;
  --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
}

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

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

/* Fluid Responsive Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.text-green {
  color: var(--green);
}

/* =========================================
   HEADER
   ========================================= */
.header {
  border-bottom: 1px solid var(--surface-border);
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: clamp(10px, 2vw, 16px) 0;
  transition: var(--transition);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.logo-img {
  height: clamp(38px, 6vw, 56px);
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--brand-primary);
  color: #ffffff !important;
  padding: clamp(12px, 2.5vw, 16px) clamp(22px, 3.5vw, 32px);
  border-radius: 12px;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  letter-spacing: -0.2px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  text-align: center;
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: var(--brand-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-large {
  padding: clamp(14px, 3vw, 18px) clamp(28px, 4vw, 42px);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--surface-border);
  padding: clamp(8px, 1.5vw, 10px) clamp(14px, 2vw, 20px);
  border-radius: 8px;
  font-weight: 600;
  font-size: clamp(0.82rem, 1.2vw, 0.92rem);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-outline:hover {
  background-color: var(--surface-color);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
  padding: clamp(36px, 6vw, 84px) 0;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(245, 158, 11, 0.04) 0%, transparent 40%);
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 64px);
}

.hero-text-content {
  flex: 1 1 55%;
  max-width: 620px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(245, 158, 11, 0.12);
  color: var(--brand-secondary-hover);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: clamp(0.78rem, 1.2vw, 0.88rem);
  font-weight: 700;
  margin-bottom: clamp(16px, 3vw, 24px);
}

.hero-title {
  font-size: clamp(2rem, 5vw + 0.5rem, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: clamp(14px, 2.5vw, 20px);
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.highlight-text {
  color: var(--brand-secondary);
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: clamp(24px, 4vw, 36px);
  max-width: 540px;
}

.cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: clamp(28px, 4vw, 40px);
  width: 100%;
}

.download-info {
  font-size: clamp(0.8rem, 1.2vw, 0.88rem);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.8vw, 14px);
}

.feature-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(0.88rem, 1.3vw, 0.98rem);
  font-weight: 500;
  color: var(--text-primary);
}

.feature-bullets li i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Phone Mockup Visual */
.hero-visual {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.real-phone-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.phone-img {
  width: 100%;
  max-width: clamp(260px, 35vw, 440px);
  height: auto;
  max-height: clamp(360px, 60vh, 620px);
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(15, 23, 42, 0.16));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-img:hover {
  transform: translateY(-6px) scale(1.01);
}

/* =========================================
   FEATURES SECTION
   ========================================= */
.features-section {
  padding: clamp(48px, 8vw, 88px) 0;
  background-color: var(--surface-color);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}

.section-title {
  text-align: center;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: clamp(32px, 5vw, 56px);
  color: var(--text-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.feature-card {
  background-color: var(--bg-color);
  padding: clamp(24px, 4vw, 36px);
  border-radius: 20px;
  border: 1px solid var(--surface-border);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.feature-icon {
  width: clamp(52px, 6vw, 64px);
  height: clamp(52px, 6vw, 64px);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin-bottom: clamp(14px, 2.5vw, 20px);
  color: white;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.bg-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.bg-orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.bg-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

.feature-card h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: clamp(0.88rem, 1.3vw, 0.96rem);
  line-height: 1.6;
}

/* =========================================
   INSTALL SECTION
   ========================================= */
.install-section {
  padding: clamp(48px, 8vw, 88px) 0;
}

.install-card {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(24px, 5vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-xl);
  color: white;
}

.install-content {
  flex: 1 1 60%;
}

.install-content h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: clamp(16px, 3vw, 24px);
  color: white;
}

.install-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 18px);
}

.install-steps li {
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
}

.install-steps strong {
  color: #ffffff;
  font-weight: 700;
}

.install-steps em {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-style: normal;
  font-weight: 600;
}

.install-action {
  background-color: #ffffff;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  flex: 1 1 35%;
  max-width: 380px;
}

.install-action .btn-primary {
  width: 100%;
  justify-content: center;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  text-align: center;
  padding: clamp(24px, 4vw, 40px) 0;
  color: var(--text-secondary);
  font-size: clamp(0.82rem, 1.2vw, 0.92rem);
  border-top: 1px solid var(--surface-border);
  background-color: var(--surface-color);
}

/* =========================================
   TOAST NOTIFICATION (Centered on all screens)
   ========================================= */
.toast {
  position: fixed;
  bottom: clamp(16px, 4vw, 32px);
  left: 50%;
  transform: translate(-50%, 120px);
  background-color: #0f172a;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  max-width: calc(100% - 32px);
  width: max-content;
  text-align: center;
  pointer-events: none;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* =========================================
   RESPONSIVE MEDIA QUERIES
   ========================================= */

/* Tablets & Medium Screens (<= 992px) */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }
  
  .hero-text-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .cta-group {
    align-items: center;
  }

  .feature-bullets {
    align-items: flex-start;
    text-align: left;
    display: inline-flex;
    margin: 0 auto;
  }

  .hero-visual {
    width: 100%;
    margin-top: 8px;
  }

  .phone-img {
    max-height: 480px;
  }
  
  .install-card {
    flex-direction: column;
    text-align: center;
    gap: 36px;
  }

  .install-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .install-steps {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
  }

  .install-action {
    width: 100%;
    max-width: 440px;
  }
}

/* Mobile Devices (<= 640px) */
@media (max-width: 640px) {
  .header-content {
    gap: 8px;
  }

  .logo-img {
    height: 38px;
  }

  .btn-outline {
    padding: 7px 12px;
    font-size: 0.8rem;
    gap: 6px;
  }

  .btn-primary {
    width: 100%;
    max-width: 100%;
  }

  .cta-group {
    width: 100%;
    max-width: 100%;
  }

  .phone-img {
    max-height: 380px;
  }

  .feature-bullets {
    width: 100%;
    background-color: var(--surface-color);
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid var(--surface-border);
  }

  .feature-bullets li {
    font-size: 0.88rem;
  }

  .install-card {
    border-radius: 18px;
    padding: 24px 16px;
  }

  .install-action {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .install-steps li {
    font-size: 0.92rem;
  }
}

/* Extra Small Screens (<= 380px) */
@media (max-width: 380px) {
  .logo-img {
    height: 32px;
  }

  .btn-outline span,
  .btn-outline {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .phone-img {
    max-height: 320px;
  }

  .btn-primary {
    font-size: 0.9rem;
    padding: 12px 18px;
  }
}
