/* Apex Tracking — apextracking.net */

:root {
  --bg: #0b0d10;
  --bg-raised: #12161b;
  --bg-card: #151a20;
  --border: #232a33;
  --border-bright: #313b47;
  --text: #f2f5f8;
  --text-dim: #98a4b3;
  --text-faint: #6b7787;
  --accent: #2ee6a8;
  --accent-dim: #1fb383;
  --accent-glow: rgba(46, 230, 168, 0.14);
  --danger: #ff6b6b;
  --radius: 12px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter,
    Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; }

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

/* ---------- Header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 16, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.logo:hover { text-decoration: none; }

.logo-mark {
  width: 26px;
  height: 26px;
  display: block;
}

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

.nav-links a {
  color: var(--text-dim);
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

@media (max-width: 680px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #06231a;
}
.btn-primary:hover { background: #46f0b8; }
.btn-primary:disabled {
  background: var(--border-bright);
  color: var(--text-faint);
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-bright);
}
.btn-ghost:hover { border-color: var(--text-faint); }

.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 620px;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 68%);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 760px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  background: var(--bg-raised);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.01em;
  margin-bottom: 26px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 6.2vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.033em;
  font-weight: 750;
}

.hero p.lede {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-dim);
  margin: 0 0 34px;
  max-width: 620px;
}

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

.hero-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--text-faint);
}

/* ---------- Sections ---------- */

section { padding: 76px 0; }

.section-head { max-width: 620px; margin-bottom: 46px; }

h2 {
  margin: 0 0 14px;
  font-size: clamp(27px, 3.6vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 700;
}

.section-head p {
  margin: 0;
  color: var(--text-dim);
  font-size: 17px;
}

.divider { border-top: 1px solid var(--border); }

/* ---------- Feature grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.card-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  color: var(--accent);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.8px;
  line-height: 1.62;
}

/* ---------- Pricing ---------- */

.pricing {
  display: flex;
  justify-content: center;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  padding: 34px 32px;
  max-width: 420px;
  width: 100%;
  position: relative;
}

.price-tag {
  position: absolute;
  top: -11px;
  left: 32px;
  background: var(--accent);
  color: #06231a;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 100px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 8px 0 6px;
}
.price .amount { font-size: 46px; font-weight: 750; letter-spacing: -0.03em; }
.price .period { color: var(--text-dim); font-size: 16px; }

.price-sub { color: var(--text-dim); font-size: 14.5px; margin: 0 0 24px; }

.feature-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 11px;
}
.feature-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-dim);
}
.feature-list svg {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  color: var(--accent);
}

/* ---------- Forms ---------- */

.form-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
}

.form-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 34px;
}

.form-card h1 {
  font-size: 27px;
  margin-bottom: 8px;
  letter-spacing: -0.022em;
}
.form-card > p.sub {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0 0 28px;
}

.field { margin-bottom: 18px; }

label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text);
}

input[type="text"],
input[type="email"],
select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border-bright);
  border-radius: 9px;
  color: var(--text);
  font-size: 15.5px;
  font-family: inherit;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
input::placeholder { color: var(--text-faint); }

.checkbox-row {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.checkbox-row input { margin-top: 3px; flex: none; }
.checkbox-row label {
  font-weight: 400;
  font-size: 13.8px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.55;
}

.form-error {
  display: none;
  background: rgba(255, 107, 107, 0.09);
  border: 1px solid rgba(255, 107, 107, 0.32);
  color: #ffa8a8;
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 14px;
  margin-bottom: 18px;
}
.form-error.show { display: block; }

.form-foot {
  margin-top: 20px;
  font-size: 12.8px;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.6;
}

/* ---------- Success ---------- */

.success-icon {
  width: 54px;
  height: 54px;
  color: var(--accent);
  margin-bottom: 20px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 14px;
  counter-reset: step;
}
.steps li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 14.8px;
  color: var(--text-dim);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-bright);
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 0; max-width: 780px; }

details {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  color: var(--text-faint);
  font-size: 21px;
  font-weight: 400;
  flex: none;
  line-height: 1;
}
details[open] summary::after { content: "\2212"; }
details p {
  margin: 12px 0 0;
  color: var(--text-dim);
  font-size: 15px;
  max-width: 680px;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 52px 40px;
  text-align: center;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p {
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 28px;
  font-size: 16.5px;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}
.footer-inner p { margin: 0; color: var(--text-faint); font-size: 13.5px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--text-faint); font-size: 13.5px; }
.footer-links a:hover { color: var(--text-dim); text-decoration: none; }

/* ---------- Legal pages ---------- */

.legal { max-width: 720px; padding: 56px 0 40px; }
.legal h1 { font-size: 34px; margin-bottom: 10px; }
.legal .updated { color: var(--text-faint); font-size: 14px; margin-bottom: 34px; }
.legal h2 { font-size: 21px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--text-dim); font-size: 15.5px; }
.legal ul { padding-left: 20px; }
