/* Tellatrack marketing landing page.
   Reuses the app's dark palette (see css/style.css :root tokens) so the
   promo site and the app feel like one product. */

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

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --border: #2a2a2a;
  --text: #e4e4e4;
  --text-muted: #888;
  --accent: #4f9eff;
  --accent-hover: #3a8aee;
  --radius: 12px;
  --max: 1100px;
}

html { scroll-behavior: smooth; }

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

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

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

/* --- Navbar --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a.nav-item { color: var(--text-muted); font-size: 0.9rem; }
.nav-links a.nav-item:hover { color: var(--text); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-muted); color: #fff; }
.btn-lg { padding: 0.9rem 1.8rem; font-size: 1.05rem; }

/* --- Hero --- */
.hero {
  position: relative;
  text-align: center;
  padding: 6rem 0 5rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  max-width: 130vw;
  background: radial-gradient(circle, rgba(79, 158, 255, 0.18), transparent 60%);
  pointer-events: none;
}
.hero > .container { position: relative; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(79, 158, 255, 0.1);
  border: 1px solid rgba(79, 158, 255, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -1.5px;
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.hero h1 .grad {
  background: linear-gradient(90deg, #4f9eff, #9b6bff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.sub {
  max-width: 640px;
  margin: 0 auto 2.25rem;
  font-size: 1.15rem;
  color: var(--text-muted);
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 1.25rem; font-size: 0.85rem; color: var(--text-muted); }

/* --- Section shell --- */
.section { padding: 5rem 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -1px;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.section-head p { color: var(--text-muted); font-size: 1.05rem; }
.alt { background: var(--surface); border-block: 1px solid var(--border); }

/* --- Feature grid --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s, border-color 0.2s;
}
.alt .card { background: var(--bg); }
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card .ico {
  font-size: 1.6rem;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(79, 158, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 1rem;
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* --- Steps --- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.step { text-align: center; padding: 1rem; }
.step .num {
  width: 44px; height: 44px; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-weight: 700;
  border-radius: 50%; font-size: 1.1rem;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* --- Install / platforms --- */
.install-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.install-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.install-card h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.3rem; margin-bottom: 1rem; }
.install-card ol { margin: 0.5rem 0 0 1.1rem; color: var(--text-muted); }
.install-card ol li { margin-bottom: 0.5rem; }
.install-card .badge {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 0.2rem 0.6rem; border-radius: 999px; margin-left: auto;
}
.badge-easy { background: rgba(80, 220, 120, 0.15); color: #6fdc8c; }
.badge-manual { background: rgba(255, 190, 80, 0.15); color: #ffbe50; }

/* --- CTA banner --- */
.cta {
  text-align: center;
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(79,158,255,0.12), rgba(155,107,255,0.12));
  border-block: 1px solid var(--border);
}
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -1px; margin-bottom: 1rem; font-weight: 800; }
.cta p { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.1rem; }

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }

@media (max-width: 640px) {
  .nav-links a.nav-item { display: none; }
  .hero { padding: 4rem 0 3.5rem; }
  .section { padding: 3.5rem 0; }
}
