/* =========================================================
   TRACKBHAI - ULTRA-RESPONSIVE MODERN SAAS LANDING PAGE
   Full Multi-Device Support: Mobile (<640px), Tablet (640-1024px), Desktop (>1024px)
   ========================================================= */

:root {
  --bg-main: #070a13;
  --bg-surface: #0e1424;
  --bg-card: rgba(18, 25, 44, 0.75);
  --bg-card-hover: rgba(26, 36, 62, 0.9);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(16, 185, 129, 0.4);

  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --coral-500: #f43f5e;
  --amber-500: #f59e0b;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-main: 'Plus Jakarta Sans', 'Hind Siliguri', sans-serif;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body.landing-body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(6, 182, 212, 0.06) 0%, transparent 45%);
}

/* ==================== GLOBAL LAYOUT CONTAINERS ==================== */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

section {
  padding: 90px 0;
  position: relative;
}

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

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald-400);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-gradient {
  background: linear-gradient(135deg, var(--emerald-400), var(--cyan-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==================== TOP NAVIGATION ==================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 10, 19, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

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

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

.logo-shield {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--emerald-500), var(--cyan-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 0 16px var(--emerald-glow);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.logo-accent {
  color: var(--emerald-400);
}

.logo-tag {
  font-size: 11px;
  color: var(--emerald-400);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:hover {
  color: var(--emerald-400);
}

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

.btn-login {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-get-started {
  background: linear-gradient(135deg, var(--emerald-500), #059669);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px var(--emerald-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-get-started:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px var(--emerald-glow);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  background: rgba(14, 20, 36, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px;
  z-index: 999;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-drawer.open {
  display: flex;
}

.mobile-nav-drawer a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--emerald-400);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 10px var(--emerald-400);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--emerald-500), #059669);
  color: #fff;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 25px var(--emerald-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px var(--emerald-glow);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.trust-stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.stat-divider {
  display: none;
}

/* Hero Radar Mockup Card */
.radar-card {
  background: var(--bg-surface);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px var(--emerald-glow);
  position: relative;
}

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

.radar-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--emerald-400);
  font-weight: 600;
}

.pulse-online {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 8px var(--emerald-400);
}

.battery-chip {
  font-size: 12px;
  color: var(--emerald-400);
  font-weight: 700;
}

.radar-map-preview {
  height: 230px;
  background: radial-gradient(circle at center, #0f1c2e 0%, #080d1a 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 20px;
}

.radar-sweep {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg at 50% 50%, rgba(16, 185, 129, 0.2) 0deg, transparent 70deg);
  border-radius: 50%;
  animation: radarRotate 4s linear infinite;
}

@keyframes radarRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-blip {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-500), var(--cyan-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 0 20px var(--emerald-400);
}

.blip-ripple {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.6);
  animation: rippleRing 2s infinite;
}

@keyframes rippleRing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.geo-tag-floating {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(7, 10, 19, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.telemetry-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.box-lbl {
  font-size: 11px;
  color: var(--text-muted);
}

.box-val {
  font-size: 13px;
  font-weight: 700;
  margin-top: 3px;
}

.text-cyan { color: var(--cyan-400); }
.text-emerald { color: var(--emerald-400); }

/* ==================== FEATURES SECTION ==================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px var(--emerald-glow);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--emerald-400);
  margin-bottom: 22px;
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==================== PRICING SECTION ==================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-card.always-free-card {
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, rgba(15, 23, 42, 0.85) 100%);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.pricing-card.always-free-card:hover {
  border-color: #10b981;
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.2);
}

.pricing-card.always-free-card .amount {
  color: #10b981;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.popular {
  border: 2px solid var(--emerald-500);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.1) 0%, rgba(18, 25, 44, 0.85) 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px var(--emerald-glow);
  transform: scale(1.03);
  z-index: 2;
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-4px);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--emerald-500), #059669);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px var(--emerald-glow);
}

.pricing-header {
  margin-bottom: 24px;
}

.plan-name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.plan-desc {
  font-size: 13px;
  color: var(--text-muted);
  min-height: 40px;
  line-height: 1.5;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 18px 0 8px;
}

.plan-price .currency {
  font-size: 24px;
  font-weight: 700;
  color: var(--emerald-400);
}

.plan-price .amount {
  font-size: 46px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
}

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

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
  flex-grow: 1;
}

.plan-features li {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.5;
}

.plan-features li i {
  color: var(--emerald-400);
  font-size: 14px;
  flex-shrink: 0;
}

.btn-plan {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  display: block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  transition: all 0.2s ease;
}

.btn-plan:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-plan-popular {
  background: linear-gradient(135deg, var(--emerald-500), #059669);
  border: none;
  color: #fff;
  box-shadow: 0 4px 20px var(--emerald-glow);
}

.btn-plan-popular:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 8px 25px var(--emerald-glow);
}

/* ==================== FAQ SECTION ==================== */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.faq-item.active {
  border-color: rgba(16, 185, 129, 0.35);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: inherit;
}

.faq-question i {
  color: var(--text-muted);
  transition: transform 0.3s ease;
  font-size: 14px;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--emerald-400);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
}

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

.faq-answer p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==================== FOOTER ==================== */
.landing-footer {
  background: #05080f;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand h3 {
  font-size: 18px;
  font-weight: 800;
}

.footer-brand h3 span { color: var(--emerald-400); }
.footer-brand p { font-size: 12px; color: var(--text-muted); }

.footer-contact {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

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

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    max-width: 600px;
    margin: 0 auto;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card.popular {
    transform: none;
  }

  .pricing-card.popular:hover {
    transform: translateY(-4px);
  }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  .nav-links, .nav-actions {
    display: none;
  }

  .nav-hamburger {
    display: block;
  }

  .section-title {
    font-size: 28px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-trust {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

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

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-contact {
    flex-direction: column;
    gap: 10px;
  }
}

.plan-features li strong {
  color: #f8fafc;
  font-weight: 700;
}

.pricing-card.popular .plan-features li strong {
  color: #fff;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.2);
}

@keyframes pulseShield {
  0% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
  }
}
