/* ================================================================
   FITMEHUB MODERN DESIGN SYSTEM & STYLESHEET
   Supports Dual Theme: Light Mode (Default) & Dark Mode
   ================================================================ */

/* --- Default Theme: Light Mode --- */
:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-elevated: rgba(255, 255, 255, 0.95);
  --bg-input: #ffffff;
  --bg-tools: #f1f5f9;
  --bg-result: #fff7ed;
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-focus: rgba(249, 115, 22, 0.4);
  --border-frame: #e2e8f0;
  
  --primary: #f97316;
  --primary-glow: rgba(249, 115, 22, 0.22);
  --primary-hover: #ea580c;
  
  --secondary: #0284c7;
  --secondary-glow: rgba(2, 132, 199, 0.18);
  
  --accent-green: #059669;
  --accent-purple: #7c3aed;
  --accent-rose: #e11d48;
  
  --text-main: #1e293b;
  --text-heading: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  
  --navbar-bg: rgba(255, 255, 255, 0.88);
  --mobile-drawer-bg: rgba(255, 255, 255, 0.98);
  --footer-bg: #0f172a;
  --footer-heading: #f8fafc;
  --footer-text: #94a3b8;
  
  --card-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --card-shadow-hover: 0 20px 35px -10px rgba(249, 115, 22, 0.15), 0 8px 16px -4px rgba(15, 23, 42, 0.08);
  
  --cta-bg: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, rgba(2, 132, 199, 0.08) 100%);
  --cta-border: rgba(249, 115, 22, 0.25);
  
  --troubleshoot-bg: #fef2f2;
  --troubleshoot-border: #fecaca;
  --troubleshoot-text: #991b1b;
  
  --ambient-1: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
  --ambient-2: radial-gradient(circle, rgba(2, 132, 199, 0.06) 0%, transparent 70%);
  
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Dark Mode Theme --- */
[data-theme="dark"] {
  --bg-primary: #070a12;
  --bg-secondary: #0d1424;
  --bg-card: rgba(18, 26, 44, 0.65);
  --bg-card-hover: rgba(26, 38, 64, 0.85);
  --bg-surface: #0e1526;
  --bg-surface-elevated: rgba(15, 23, 42, 0.9);
  --bg-input: rgba(13, 20, 36, 0.8);
  --bg-tools: linear-gradient(180deg, #070a12 0%, #0d1424 100%);
  --bg-result: rgba(15, 23, 42, 0.9);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-focus: rgba(249, 115, 22, 0.4);
  --border-frame: #1e293b;
  
  --primary: #f97316;
  --primary-glow: rgba(249, 115, 22, 0.25);
  --primary-hover: #ea580c;
  
  --secondary: #06b6d4;
  --secondary-glow: rgba(6, 182, 212, 0.2);
  
  --accent-green: #10b981;
  --accent-purple: #8b5cf6;
  --accent-rose: #f43f5e;
  
  --text-main: #f8fafc;
  --text-heading: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --navbar-bg: rgba(7, 10, 18, 0.82);
  --mobile-drawer-bg: rgba(7, 10, 18, 0.98);
  --footer-bg: #05080f;
  --footer-heading: #ffffff;
  --footer-text: #94a3b8;
  
  --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(249, 115, 22, 0.12);
  
  --cta-bg: linear-gradient(135deg, rgba(249, 115, 22, 0.18) 0%, rgba(6, 182, 212, 0.18) 100%);
  --cta-border: rgba(249, 115, 22, 0.35);
  
  --troubleshoot-bg: rgba(239, 68, 68, 0.08);
  --troubleshoot-border: rgba(239, 68, 68, 0.25);
  --troubleshoot-text: #fca5a5;
  
  --ambient-1: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, transparent 70%);
  --ambient-2: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ambient Background Glows */
.ambient-glow-1 {
  position: fixed;
  top: -10vw;
  right: -5vw;
  width: 50vw;
  height: 50vw;
  background: var(--ambient-1);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

.ambient-glow-2 {
  position: fixed;
  bottom: 10vw;
  left: -10vw;
  width: 45vw;
  height: 45vw;
  background: var(--ambient-2);
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
}

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

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-heading) 0%, var(--text-muted) 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-orange {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-green {
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-img-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
  transition: var(--transition-fast);
}

.brand-img-logo:hover {
  transform: scale(1.06);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), #ea580c);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-name span {
  color: var(--primary);
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--card-shadow);
}

.theme-toggle-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: rotate(15deg) scale(1.06);
  box-shadow: 0 4px 15px var(--primary-glow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

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

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn-primary {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.5);
}

.btn-glass {
  background: var(--bg-card);
  color: var(--text-heading);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.btn-cyan {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(6, 182, 212, 0.5);
}

.btn-playstore {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-playstore:hover {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #c2410c 100%);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.55);
  transform: translateY(-2px);
}

.btn-playstore i.fa-google-play {
  font-size: 2rem;
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: #ffffff;
  display: inline-block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.btn-playstore .btn-text-group {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.btn-playstore .btn-text-group .sub {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.btn-playstore .btn-text-group .main {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #ffffff;
}

/* Play Store Promo Banner Card */
.playstore-featured-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 1.5px solid rgba(249, 115, 22, 0.4);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 0 35px rgba(249, 115, 22, 0.15);
}

.playstore-banner-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.playstore-banner-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.playstore-banner-info h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.playstore-banner-info p {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0;
}

.playstore-rating-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.82rem;
  color: #fbbf24;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-heading);
  font-size: 1.35rem;
  cursor: pointer;
  border-radius: 10px;
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero-section {
  padding: 80px 0 60px 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.hero-content {
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px 5px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  font-size: 0.85rem;
  color: var(--text-heading);
  text-decoration: none;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
  max-width: 100%;
}

.hero-badge:hover {
  border-color: rgba(249, 115, 22, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.12);
}

.hero-badge .badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(249, 115, 22, 0.12);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.hero-badge .badge-tag .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: pulseDot 2s infinite;
}

.hero-badge .badge-text {
  font-weight: 600;
  color: var(--text-heading);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-badge .badge-arrow {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.hero-badge:hover .badge-arrow {
  transform: translateX(3px);
  color: var(--primary);
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.hero-title {
  font-size: 3.4rem;
  line-height: 1.12;
  margin-bottom: 22px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 34px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: var(--card-shadow);
}

.stat-icon-micro {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.stat-icon-micro.orange {
  background: rgba(249, 115, 22, 0.12);
  color: var(--primary);
}

.stat-icon-micro.cyan {
  background: rgba(2, 132, 199, 0.12);
  color: var(--secondary);
}

.stat-icon-micro.green {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
}

.stat-card .stat-num {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
  white-space: nowrap;
}

.stat-card .stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
  text-align: center;
  margin: 0;
}

/* Interactive Device Mockup in Hero */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 320px;
  background: var(--bg-card);
  border-radius: 40px;
  border: 8px solid var(--border-frame);
  box-shadow: var(--card-shadow), 0 0 40px var(--primary-glow);
  overflow: hidden;
  position: relative;
  transition: var(--transition-smooth);
}

.phone-frame:hover {
  transform: translateY(-6px) scale(1.02);
}

.phone-screen-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating Badges on Mockup */
.floating-badge {
  position: absolute;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--card-shadow);
  z-index: 2;
  animation: floatAnim 4s ease-in-out infinite;
}

.floating-badge.badge-top-right {
  top: 15%;
  right: -30px;
  animation-delay: 0s;
}

.floating-badge.badge-bottom-left {
  bottom: 20%;
  left: -35px;
  animation-delay: 2s;
}

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

.badge-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.badge-icon-box.orange { background: rgba(249, 115, 22, 0.15); color: var(--primary); }
.badge-icon-box.cyan { background: rgba(6, 182, 212, 0.15); color: var(--secondary); }
.badge-icon-box.green { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }

.badge-text-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge-text-val {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-heading);
}

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

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

.section-tag {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 18px;
}

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

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  box-shadow: var(--card-shadow);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

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

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.feature-icon-wrapper.orange { background: rgba(249, 115, 22, 0.12); color: var(--primary); }
.feature-icon-wrapper.cyan { background: rgba(6, 182, 212, 0.12); color: var(--secondary); }
.feature-icon-wrapper.green { background: rgba(16, 185, 129, 0.12); color: var(--accent-green); }
.feature-icon-wrapper.purple { background: rgba(139, 92, 246, 0.12); color: var(--accent-purple); }
.feature-icon-wrapper.rose { background: rgba(244, 63, 94, 0.12); color: var(--accent-rose); }

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

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

/* ================================================================
   INTERACTIVE TOOLS SECTION (VO2 Max & GPS Simulator)
   ================================================================ */
.tools-section {
  background: var(--bg-tools);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(16px);
  box-shadow: var(--card-shadow);
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.tool-header-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.tool-header-text h3 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.tool-header-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Form inputs for calculator */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Calculator Result Box */
.calc-result-box {
  background: var(--bg-result);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 24px;
  text-align: center;
}

.calc-score-display {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin: 10px 0;
}

.calc-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

/* Interactive Map Simulator */
#interactiveMap {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.map-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.telemetry-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.telemetry-pill {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.telemetry-pill .t-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.telemetry-pill .t-val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 2px;
}

/* ================================================================
   APP SCREENSHOTS CAROUSEL / SHOWCASE
   ================================================================ */
.screens-carousel-wrapper {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 20px 0 40px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screens-carousel-wrapper::-webkit-scrollbar {
  height: 8px;
}

.screens-carousel-wrapper::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.screens-carousel-wrapper::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

.screen-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  border-radius: 24px;
  overflow: hidden;
  border: 4px solid var(--border-frame);
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.screen-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: var(--primary);
  box-shadow: var(--card-shadow-hover);
}

.screen-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* ================================================================
   DEVELOPER & API SECTION
   ================================================================ */
.api-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 48px;
  margin: 40px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--card-shadow);
}

.code-window {
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.code-header {
  background: #121929;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #f59e0b; }
.code-dot.green { background: #10b981; }

.code-body {
  padding: 20px;
  color: #38bdf8;
  line-height: 1.6;
}

.code-body .keyword { color: #f43f5e; }
.code-body .string { color: #a7f3d0; }
.code-body .comment { color: #64748b; }

/* ================================================================
   CTA & DOWNLOAD BANNER WITH DETAILED APK METADATA
   ================================================================ */
.cta-banner {
  background: var(--cta-bg);
  border: 1px solid var(--cta-border);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  margin: 60px 0 100px 0;
  box-shadow: var(--card-shadow);
}

.apk-spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  max-width: 760px;
  margin: 32px auto 36px auto;
  text-align: left;
  box-shadow: var(--card-shadow);
}

.apk-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.apk-spec-item {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.apk-spec-item .spec-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.apk-spec-item .spec-val {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 4px;
}

.cta-banner h2 {
  font-size: 2.6rem;
  margin-bottom: 16px;
  text-align: center;
}

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

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.install-guide-wrapper {
  margin-top: 48px;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--card-shadow);
}

.install-guide-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 18px;
}

.install-guide-header h3 {
  font-size: 1.4rem;
  margin: 0;
  color: var(--text-heading);
  font-family: var(--font-heading);
}

.install-guide-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.install-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.install-step-card {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  transition: var(--transition-fast);
}

.install-step-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(249, 115, 22, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

.install-step-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #ea580c);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.4);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
}

.install-step-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}

.install-step-card code {
  background: rgba(249, 115, 22, 0.12);
  color: #ea580c;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  font-weight: 600;
}

[data-theme="dark"] .install-step-card code {
  color: #fdba74;
}

.install-troubleshoot-box {
  margin-top: 24px;
  background: var(--troubleshoot-bg);
  border: 1px solid var(--troubleshoot-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.install-troubleshoot-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dc2626;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

[data-theme="dark"] .install-troubleshoot-header {
  color: #f87171;
}

.install-troubleshoot-box p {
  color: var(--troubleshoot-text);
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 768px) {
  .apk-spec-grid {
    grid-template-columns: 1fr;
  }
  .install-steps-grid {
    grid-template-columns: 1fr;
  }
  .install-guide-wrapper {
    padding: 24px 18px;
  }
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--footer-bg);
  padding: 70px 0 30px 0;
  color: var(--footer-text);
}

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

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--footer-heading);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

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

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #64748b;
}

/* ================================================================
   MOBILE NAVIGATION DRAWER & EXPANDED MENU
   ================================================================ */
.nav-links.mobile-active {
  display: flex !important;
  flex-direction: column !important;
  position: fixed !important;
  top: 76px !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: calc(100vh - 76px) !important;
  background: var(--mobile-drawer-bg) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  padding: 28px 20px !important;
  gap: 14px !important;
  z-index: 9999 !important;
  border-top: 1px solid var(--border-subtle) !important;
  overflow-y: auto !important;
}

.nav-links.mobile-active li {
  width: 100%;
}

.nav-links.mobile-active .nav-link {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--text-heading) !important;
  padding: 14px 18px !important;
  border-radius: var(--radius-md) !important;
  background: var(--bg-input) !important;
  border: 1px solid var(--border-subtle) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  transition: var(--transition-fast) !important;
}

.nav-links.mobile-active .nav-link:active,
.nav-links.mobile-active .nav-link:hover {
  background: rgba(249, 115, 22, 0.12) !important;
  border-color: rgba(249, 115, 22, 0.4) !important;
  color: var(--primary) !important;
}

/* ================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ================================================================ */
@media (max-width: 1200px) and (min-width: 769px) {
  .nav-links {
    gap: 12px;
  }
  .nav-link {
    font-size: 0.82rem;
  }
  .nav-actions {
    gap: 8px;
  }
  .btn-playstore.btn-sm {
    padding: 8px 12px;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-stats-row {
    justify-content: center;
  }
  .hero-mockup-wrapper {
    margin-top: 40px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  .nav-links {
    display: none;
  }

  .nav-actions .btn-playstore,
  .nav-actions .btn {
    display: none !important;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-heading);
    font-size: 1.25rem;
  }

  .section {
    padding: 60px 0;
  }

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

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

  .hero-section {
    padding: 30px 0 50px 0;
  }

  .hero-badge {
    padding: 4px 12px 4px 5px;
    gap: 8px;
    margin-bottom: 18px;
  }

  .hero-badge .badge-tag {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  .hero-badge .badge-text {
    font-size: 0.76rem;
  }

  .hero-title {
    font-size: clamp(1.85rem, 6.8vw, 2.5rem);
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 24px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-cta-group .btn {
    width: 100%;
    padding: 14px 20px;
  }

  .hero-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 20px 0 0 0;
    margin-top: 24px;
    border-top: 1px solid var(--border-subtle);
  }

  .stat-card {
    padding: 10px 4px;
    border-radius: 12px;
  }

  .stat-icon-micro {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
    margin-bottom: 4px;
  }

  .stat-card .stat-num {
    font-size: 1.18rem;
    margin-bottom: 2px;
  }

  .stat-card .stat-label {
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .phone-frame {
    width: 270px;
    height: auto;
    margin: 0 auto;
  }

  .floating-badge {
    display: none;
  }

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

  .feature-card {
    padding: 24px 20px;
  }

  /* Form and Tools on Mobile */
  .tool-card {
    padding: 24px 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-control {
    height: 48px;
    font-size: 0.95rem;
  }

  #interactiveMap {
    height: 260px;
    border-radius: 14px;
  }

  .telemetry-row {
    gap: 8px;
  }

  .telemetry-pill {
    padding: 10px 8px;
  }

  .t-label {
    font-size: 0.68rem;
  }

  .t-val {
    font-size: 0.95rem;
  }

  /* Screenshot Carousel on Mobile */
  .screens-carousel-wrapper {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 4px 20px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .screens-carousel-wrapper::-webkit-scrollbar {
    display: none;
  }

  .screen-card {
    flex: 0 0 240px;
    scroll-snap-align: center;
    border-radius: 16px;
  }

  /* CTA & Download Section */
  .cta-banner {
    padding: 36px 18px;
    margin: 40px 0 60px 0;
  }

  .cta-banner h2 {
    font-size: 1.75rem;
  }

  .cta-banner p.lead {
    font-size: 0.95rem;
  }

  .apk-spec-card {
    padding: 20px 14px;
    margin: 24px 0;
  }

  .apk-spec-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .cta-buttons .btn {
    width: 100%;
    padding: 14px 18px;
  }

  .install-guide-wrapper {
    padding: 22px 14px;
    margin-top: 32px;
  }

  .install-guide-header h3 {
    font-size: 1.15rem;
  }

  .install-steps-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .install-step-card {
    padding: 16px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ================================================================
   SIPGAR ASSESSMENT & AUTO-SYNC SECTION STYLES
   ================================================================ */
.sipgar-showcase-wrapper {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(2, 132, 199, 0.06) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: 42px 36px;
  margin: 30px 0 60px 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

[data-theme="dark"] .sipgar-showcase-wrapper {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(14, 21, 38, 0.85) 100%);
  border-color: rgba(16, 185, 129, 0.35);
}

.sipgar-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

[data-theme="dark"] .sipgar-header-badge {
  color: #34d399;
}

.sipgar-title {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--text-heading);
}

.sipgar-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 780px;
  margin-bottom: 32px;
}

.sipgar-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.sipgar-pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition-smooth);
}

.sipgar-pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.15);
}

.sipgar-pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.sipgar-pillar-icon.green {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.sipgar-pillar-icon.blue {
  background: rgba(2, 132, 199, 0.15);
  color: #0284c7;
}

.sipgar-pillar-icon.orange {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
}

.sipgar-pillar-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-heading);
}

.sipgar-pillar-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.sipgar-sync-banner {
  background: var(--bg-card);
  border: 1px dashed rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sipgar-sync-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-heading);
}

.sipgar-sync-item i {
  color: #10b981;
  font-size: 1.1rem;
}

@media (max-width: 992px) {
  .sipgar-pillars-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .sipgar-showcase-wrapper {
    padding: 28px 20px;
  }
  .sipgar-title {
    font-size: 1.65rem;
  }
}

