/* =========================================================================
   BallisticTracker — site styles
   Dark tactical theme · amber/orange accents · matches the iOS app.
   Single stylesheet, no dependencies.
   ========================================================================= */

:root {
  --bg:        #0c0e11;
  --bg-2:      #121519;
  --card:      #171b21;
  --card-2:    #1d222a;
  --line:      #262c35;
  --line-2:    #333b46;
  --accent:    #f5a623;   /* amber  */
  --accent-2:  #ff7a18;   /* orange */
  --accent-soft: rgba(245, 166, 35, .14);
  --green:     #34c759;
  --text:      #f3f5f8;
  --muted:     #a3acb8;
  --muted-2:   #76808d;
  --radius:    16px;
  --radius-sm: 11px;
  --maxw:      1120px;
  --ease:      cubic-bezier(.22, .61, .36, 1);
  --shadow:    0 18px 50px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
               system-ui, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient glow behind the page top */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 620px;
  background:
    radial-gradient(900px 420px at 78% -8%, rgba(255, 122, 24, .16), transparent 60%),
    radial-gradient(760px 420px at 12% 4%, rgba(245, 166, 35, .10), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

h1, h2, h3 {
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 .4em;
  font-weight: 800;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(245, 166, 35, .3);
  padding: 7px 13px;
  border-radius: 999px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52, 199, 89, .18); }

.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s;
  white-space: nowrap;
}
.btn-primary {
  color: #1b1206;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 10px 26px rgba(255, 122, 24, .32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(255, 122, 24, .42); color: #1b1206; }
.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .08); color: var(--text); transform: translateY(-2px); }
.btn .apple { width: 15px; height: 17px; vertical-align: middle; }

/* ---------- Header ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(12, 14, 17, .72);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.01em; color: var(--text); font-size: 17px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 3px 10px rgba(0,0,0,.5); }
.brand b { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a.lnk { color: var(--muted); font-weight: 600; font-size: 15px; }
.nav-links a.lnk:hover { color: var(--text); }
.nav-links .btn { padding: 10px 18px; font-size: 14.5px; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 62px); margin-top: 18px; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lede { font-size: clamp(17px, 2.1vw, 20px); color: var(--muted); max-width: 36ch; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { font-size: 14px; color: var(--muted-2); margin-top: 16px; }
.hero-note b { color: var(--muted); font-weight: 600; }

/* Phone frame */
.phone {
  position: relative;
  margin: 0 auto;
  width: clamp(220px, 30vw, 290px);
  border-radius: 40px;
  padding: 11px;
  background: linear-gradient(160deg, #20252d, #0c0e11);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow), 0 0 0 1px rgba(245,166,35,.08), 0 0 70px rgba(255,122,24,.18);
}
.phone img { border-radius: 30px; width: 100%; }
.phone::after { /* speaker notch */
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 7px; border-radius: 999px; background: #05060800; box-shadow: none;
}
.hero .phone { transform: rotate(2.2deg); }

/* ---------- Sections ---------- */
section { padding: 60px 0; position: relative; z-index: 1; }
.section-head { max-width: 620px; margin-bottom: 38px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }

/* Feature split (text + phone) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.split.flip .split-media { order: 2; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 18px; }
.card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(245,166,35,.35); box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid rgba(245,166,35,.28);
  font-size: 22px; margin-bottom: 14px;
}
.card h3 { font-size: 18.5px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- Privacy band ---------- */
.band {
  background: linear-gradient(180deg, rgba(245,166,35,.07), rgba(255,122,24,.04));
  border: 1px solid rgba(245,166,35,.22);
  border-radius: 22px;
  padding: 44px;
  text-align: center;
}
.band .ico-lg { font-size: 34px; }
.band h2 { font-size: clamp(26px, 3.4vw, 34px); margin-top: 10px; }
.band p { color: var(--muted); max-width: 62ch; margin: 0 auto; font-size: 17.5px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.pill {
  font-size: 14px; font-weight: 600; color: var(--text);
  background: rgba(255,255,255,.04); border: 1px solid var(--line-2);
  padding: 8px 15px; border-radius: 999px;
}
.pill .chk { color: var(--green); font-weight: 800; margin-right: 7px; }

/* ---------- Final CTA ---------- */
.cta-final { text-align: center; }
.cta-final .box {
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 54px 28px;
  box-shadow: var(--shadow);
}
.cta-final h2 { font-size: clamp(28px, 4vw, 42px); }
.cta-final p { color: var(--muted); max-width: 48ch; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  margin-top: 20px;
  color: var(--muted-2);
  font-size: 14.5px;
  position: relative; z-index: 1;
}
.foot-grid { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: flex-start; }
.foot-brand { display: flex; align-items: center; gap: 11px; color: var(--text); font-weight: 800; }
.foot-brand img { width: 30px; height: 30px; border-radius: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { color: var(--muted); font-weight: 600; }
.foot-links a:hover { color: var(--accent); }
.foot-fine { margin-top: 22px; max-width: 70ch; line-height: 1.6; }

/* ---------- Legal / content pages ---------- */
.legal { padding: 52px 0 30px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); }
.legal .updated { color: var(--muted-2); font-size: 14px; margin-bottom: 30px; }
.legal h2 { font-size: 22px; margin-top: 40px; padding-top: 8px; }
.legal h3 { font-size: 17.5px; margin-top: 26px; color: var(--accent); }
.legal p, .legal li { color: #d7dde4; font-size: 16.5px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 9px; }
.legal a { font-weight: 600; }
.legal .summary {
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px; padding: 18px 22px; margin: 26px 0;
}
.legal .summary p { margin: 0; color: var(--text); }
.faq { margin-top: 10px; }
.faq .q {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 22px; margin-bottom: 14px;
}
.faq .q h3 { margin: 0 0 8px; color: var(--text); font-size: 18px; }
.faq .q p { margin: 0; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 34px; }
  .split.flip .split-media { order: 0; }
  .hero { padding: 44px 0 10px; text-align: center; }
  .hero p.lede { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .split-media .phone { transform: none; }
  .hero .phone { transform: none; }
  .nav-links a.lnk { display: none; }   /* keep header clean on mobile; Join Beta button stays */
}
@media (max-width: 460px) {
  body { font-size: 16px; }
  .band, .cta-final .box { padding: 30px 20px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
