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

:root {
  --orange:    #FF6B35;
  --orange-dk: #e0531f;
  --dark:      #0D0D0D;
  --dark2:     #141414;
  --dark3:     #1C1C1E;
  --card:      #1E1E20;
  --border:    rgba(255,255,255,0.08);
  --text:      #F5F5F5;
  --muted:     #8E8E93;
  --green:     #30D158;
  --amber:     #FFD60A;
  --radius:    14px;
  --shadow:    0 8px 40px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 18px; }
.logo-icon { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: 50px; font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none; transition: all .2s;
  white-space: nowrap;
}
.btn-sm    { padding: 7px 16px; font-size: 13px; }
.btn-lg    { padding: 14px 32px; font-size: 17px; }
.btn-primary  { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dk); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(255,107,53,0.4); }
.btn-outline  { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); }
.btn-ghost    { background: rgba(255,255,255,0.08); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }
.w-full { width: 100%; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 0 80px;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,107,53,0.18) 0%, transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.badge {
  display: inline-flex; align-items: center;
  background: rgba(255,107,53,0.12); border: 1px solid rgba(255,107,53,0.3);
  color: var(--orange); padding: 6px 16px; border-radius: 50px;
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px; color: var(--muted); max-width: 560px;
  margin: 0 auto 36px;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.hero-badges {
  display: flex; align-items: center; gap: 16px;
  justify-content: center; margin-bottom: 60px; flex-wrap: wrap;
}
.store-badge { height: 40px; }
.or-text { color: var(--muted); font-size: 14px; }
.hero-mockup { display: flex; justify-content: center; }
.mockup-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 28px;
  display: flex; flex-direction: column; gap: 14px;
  max-width: 420px; width: 100%; text-align: left;
  box-shadow: var(--shadow);
}
.mockup-row { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot.green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot.amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); }

/* ── Features ────────────────────────────────────────────── */
.features { padding: 100px 0; }
.features h2, .pricing h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; text-align: center; margin-bottom: 12px; }
.section-sub { color: var(--muted); font-size: 17px; text-align: center; margin-bottom: 56px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: rgba(255,107,53,0.35); transform: translateY(-3px); }
.feature-icon { font-size: 32px; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 14px; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 50px; letter-spacing: .04em; }
.tag.free  { background: rgba(48,209,88,0.15); color: var(--green); }
.tag.pro   { background: rgba(255,107,53,0.15); color: var(--orange); }
.tag.fleet { background: rgba(10,132,255,0.15); color: #0A84FF; }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing { padding: 100px 0; background: var(--dark2); }
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  align-items: start;
}
.price-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; position: relative;
}
.price-card.featured { border-color: var(--orange); box-shadow: 0 0 40px rgba(255,107,53,0.15); }
.popular-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 50px;
  white-space: nowrap;
}
.plan-name { font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.plan-price { margin-bottom: 24px; }
.plan-price .amount { font-size: 40px; font-weight: 800; }
.plan-price .period { color: var(--muted); font-size: 16px; }
.plan-features { list-style: none; margin-bottom: 28px; }
.plan-features li { font-size: 14px; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--border); }
.plan-features li:last-child { border-bottom: none; }
.plan-features li:first-child { color: var(--text); }
.price-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ── Social Proof ────────────────────────────────────────── */
.proof { padding: 60px 0; background: var(--dark3); }
.proof-grid { display: flex; gap: 0; justify-content: center; flex-wrap: wrap; }
.proof-stat { text-align: center; padding: 20px 60px; }
.stat-num { display: block; font-size: 36px; font-weight: 800; color: var(--orange); }
.stat-label { font-size: 14px; color: var(--muted); }

/* ── Footer ──────────────────────────────────────────────── */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.logo-text { font-weight: 700; font-size: 16px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); font-size: 14px; text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted); font-size: 13px; }

/* ── App Shell (app.html) ────────────────────────────────── */
.app-shell {
  display: flex; flex-direction: column; min-height: 100vh; background: var(--dark);
}
.app-topbar {
  height: 60px; background: var(--dark2); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 20px; gap: 12px; flex-shrink: 0;
}
.app-topbar .logo { font-size: 16px; }
.app-body { display: flex; flex: 1; overflow: hidden; }
.app-sidebar {
  width: 220px; background: var(--dark2); border-right: 1px solid var(--border);
  padding: 16px 12px; flex-shrink: 0; overflow-y: auto;
}
.sidebar-section { margin-bottom: 24px; }
.sidebar-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding: 0 12px; margin-bottom: 6px; }
.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 9px; cursor: pointer;
  color: var(--muted); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: all .15s;
}
.sidebar-item:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.sidebar-item.active { background: rgba(255,107,53,0.15); color: var(--orange); }
.sidebar-item .icon { font-size: 16px; width: 20px; text-align: center; }
.sidebar-item .pro-lock { margin-left: auto; font-size: 10px; background: rgba(255,107,53,0.2); color: var(--orange); padding: 2px 6px; border-radius: 4px; font-weight: 700; }
.app-content { flex: 1; overflow-y: auto; }
.app-frame { width: 100%; height: 100%; border: none; background: var(--dark); }

/* Auth screen */
.auth-screen {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; background: var(--dark);
  padding: 24px;
}
.auth-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 40px; max-width: 400px; width: 100%; text-align: center;
}
.auth-card .logo { justify-content: center; font-size: 22px; margin-bottom: 8px; }
.auth-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.auth-card p { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.auth-input {
  background: var(--dark3); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 16px; color: var(--text); font-size: 15px; width: 100%;
  outline: none; transition: border-color .2s;
}
.auth-input:focus { border-color: var(--orange); }
.auth-divider { text-align: center; color: var(--muted); font-size: 13px; margin: 4px 0; }
.auth-error { color: #FF453A; font-size: 13px; text-align: center; min-height: 18px; }
.auth-switch { font-size: 14px; color: var(--muted); margin-top: 16px; }
.auth-switch a { color: var(--orange); text-decoration: none; font-weight: 600; }

/* Paywall modal */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  z-index: 200; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 36px; max-width: 460px; width: 100%; text-align: center; position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.06); border: none; border-radius: 50%;
  width: 32px; height: 32px; cursor: pointer; color: var(--muted); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--text); }
.modal-title { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.modal-sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.modal-plans { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; justify-content: center; }
.modal-plan {
  flex: 1; min-width: 140px; border: 1.5px solid var(--border); border-radius: 12px;
  padding: 16px; cursor: pointer; transition: all .2s;
}
.modal-plan:hover, .modal-plan.selected { border-color: var(--orange); background: rgba(255,107,53,0.06); }
.modal-plan .plan-n { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.modal-plan .plan-p { font-size: 22px; font-weight: 800; }
.modal-plan .plan-note { font-size: 11px; color: var(--muted); }

/* Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .app-sidebar { width: 0; overflow: hidden; position: fixed; z-index: 50; height: 100%; transition: width .3s; }
  .app-sidebar.open { width: 220px; box-shadow: var(--shadow); }
  .proof-stat { padding: 20px 30px; }
  .hero h1 { font-size: 32px; }
}
