/* =========================================================
   GPSHub — airabot-style dark SaaS theme
   Design tokens extracted from airabot.in screenshot
   ========================================================= */

:root {
  /* Backgrounds */
  --bg: #0a0a0f;
  --bg-alt: #0f0f17;
  --card: #0d0c14;
  --card-border: #1f1f2e;
  --card-border-hover: #34345a;

  /* Brand / accent */
  --indigo: #5b5bf0;
  --violet: #7557f3;
  --cyan: #5ec8e8;
  --grad: linear-gradient(135deg, #546bf5 0%, #7557f3 100%);

  /* Text */
  --text-heading: #f2f2f7;
  --text-body: #9999ad;
  --text-muted: #6b6b80;

  /* Badge */
  --badge-bg: #161634;
  --badge-border: #2e3e95;
  --badge-text: #9a9afc;

  /* Misc */
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --container: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-body);
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Ambient glow background effect (matches hero glow in reference) */
.glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px circle at 50% 0%, rgba(91,91,240,0.18), transparent 60%),
    radial-gradient(500px circle at 85% 10%, rgba(94,200,232,0.10), transparent 60%);
  z-index: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(91,91,240,0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 26px rgba(91,91,240,0.5); }
.btn-outline {
  background: transparent;
  color: var(--text-heading);
  border-color: var(--card-border);
}
.btn-outline:hover { border-color: var(--card-border-hover); background: rgba(255,255,255,0.02); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-heading);
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--text-body);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text-heading); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-actions .signin { font-size: 0.92rem; color: var(--text-body); }
.nav-actions .signin:hover { color: var(--text-heading); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-heading);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 70px;
  text-align: center;
  overflow: hidden;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-text);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}
.badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  display: inline-block;
}

.hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-heading);
  letter-spacing: -0.01em;
  max-width: 820px;
  margin: 0 auto 24px;
}
.hero h1 .grad-text {
  background: linear-gradient(90deg, #6b6bf6, #5ec8e8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .sub {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero .cta-row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.pill-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.pill-row .live-on { color: var(--text-muted); margin-right: 4px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text-body);
  font-size: 0.82rem;
}

/* ---------- Stat strip ---------- */
.stat-strip {
  border-top: 1px solid var(--card-border);
  background: var(--bg-alt);
  padding: 40px 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-grid .num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--indigo);
  margin-bottom: 4px;
}
.stat-grid .label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- Section heading pattern ---------- */
.section { padding: 90px 0; position: relative; }
.section.alt { background: var(--bg-alt); }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.section-head p {
  color: var(--text-body);
  font-size: 1rem;
}

/* ---------- Steps (How it works) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.step-card:hover { border-color: var(--card-border-hover); transform: translateY(-2px); }
.step-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: #2a2a3d;
  margin-bottom: 18px;
  line-height: 1;
}
.step-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(91,91,240,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
}
.step-card p { font-size: 0.92rem; color: var(--text-body); }

/* ---------- Feature groups ---------- */
.feature-group { margin-bottom: 56px; }
.feature-group:last-child { margin-bottom: 0; }
.feature-group-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.feature-group-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: rgba(91,91,240,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.feature-group-head h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-heading); }
.feature-group-head p { font-size: 0.88rem; color: var(--text-muted); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { border-color: var(--card-border-hover); transform: translateY(-2px); }
.feature-card .icon { font-size: 1.3rem; margin-bottom: 14px; }
.feature-card h4 { font-size: 0.98rem; font-weight: 700; color: var(--text-heading); margin-bottom: 8px; }
.feature-card p { font-size: 0.88rem; color: var(--text-body); }

/* ---------- Channel rows ---------- */
.channel-list { display: flex; flex-direction: column; gap: 18px; }
.channel-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: border-color 0.2s ease;
}
.channel-card:hover { border-color: var(--card-border-hover); }
.channel-icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  background: rgba(94,200,232,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.channel-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-heading); margin-bottom: 8px; }
.channel-card p { font-size: 0.92rem; color: var(--text-body); margin-bottom: 14px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
}

/* ---------- About / stats ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.about-text h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--text-heading); font-weight: 700; margin-bottom: 18px; line-height: 1.3; }
.about-text p { color: var(--text-body); margin-bottom: 16px; font-size: 0.98rem; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.about-stat-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
}
.about-stat-card .num { font-size: 2rem; font-weight: 800; color: var(--indigo); margin-bottom: 6px; }
.about-stat-card .label { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover { border-color: var(--card-border-hover); transform: translateY(-3px); }
.service-icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  background: rgba(91,91,240,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.service-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-heading); margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; color: var(--text-body); margin-bottom: 16px; }
.service-card .readmore { font-size: 0.85rem; font-weight: 600; color: var(--indigo); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}
.contact-info-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-info-card h3 { font-size: 1.1rem; color: var(--text-heading); margin-bottom: 20px; font-weight: 700; }
.contact-row { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-row .icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: rgba(91,91,240,0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.contact-row .label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 2px; }
.contact-row .value { font-size: 0.95rem; color: var(--text-heading); }
.contact-row a.value:hover { color: var(--cyan); }

.contact-form-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.82rem; color: var(--text-muted); }
.form-field input,
.form-field textarea {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text-heading);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.15s ease;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--indigo); }
.form-field textarea { resize: vertical; min-height: 100px; }
.form-msg { font-size: 0.85rem; margin-top: 12px; display: none; }
.form-msg.success { color: #6ee7b7; display: block; }
.form-msg.error { color: #f87171; display: block; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  color: var(--text-heading);
  font-size: 0.98rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q .chevron { transition: transform 0.2s ease; color: var(--text-muted); flex-shrink: 0; }
.faq-item.open .faq-q .chevron { transform: rotate(45deg); color: var(--indigo); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 24px;
}
.faq-item.open .faq-a { max-height: 240px; padding: 0 24px 20px; }
.faq-a p { font-size: 0.92rem; color: var(--text-body); }

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  position: relative;
  padding: 90px 0;
  overflow: hidden;
}
.final-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 16px;
  position: relative; z-index: 1;
}
.final-cta p {
  color: var(--text-body);
  max-width: 480px;
  margin: 0 auto 32px;
  position: relative; z-index: 1;
}
.final-cta .cta-row {
  position: relative; z-index: 1;
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--card-border);
  padding: 56px 0 28px;
  background: var(--bg-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); max-width: 320px; line-height: 1.7; }
.footer-col h4 { font-size: 0.85rem; color: var(--text-heading); margin-bottom: 16px; font-weight: 700; }
.footer-col a { display: block; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 12px; }
.footer-col a:hover { color: var(--text-heading); }
.footer-col .app-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  font-size: 0.82rem;
}
.footer-col .app-link:hover { border-color: var(--card-border-hover); color: var(--text-heading); }
.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.social-icons { display: flex; gap: 12px; }
.social-icons a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--card-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}
.social-icons a:hover { border-color: var(--card-border-hover); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero { padding: 80px 0 50px; }
  .services-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: .7em; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(15,15,20,0.98);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 8px;
  min-width: 220px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a { padding: 8px 10px; border-radius: 6px; white-space: nowrap; }
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.06); }
