:root {
  --bg: #080b16;
  --bg-2: #0d1224;
  --panel: #11182d;
  --text: #eef3ff;
  --muted: #9da8cc;
  --border: rgba(255, 255, 255, 0.08);
  --primary: #6a8bff;
  --primary-2: #9b6bff;
  --accent: #29e0c2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --container: 1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter",
    "Helvetica Neue", Arial, sans-serif;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(180deg, #070a15 0%, #0b1020 42%, #080b16 100%);
  background-size: 44px 44px, 44px 44px, auto;
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

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

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(8, 11, 22, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; }
.brand-name { letter-spacing: 0; }
.logo-mark {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
}
.logo-mark svg, .logo-mark img { width: 100%; height: 100%; display: block; }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a { color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
  line-height: 1;
  user-select: none;
}
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 12px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #7897ff 0%, #5f7dff 100%);
  border-color: #7897ff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 2px 8px rgba(31, 45, 92, 0.45);
}
.btn-primary:hover { background: linear-gradient(180deg, #86a2ff 0%, #6685ff 100%); border-color: #86a2ff; }
.btn-primary:active { background: #5f7dff; border-color: #5f7dff; }
.btn-outline { color: var(--text); border-color: rgba(255,255,255,0.16); background: transparent; }
.btn-outline:hover { border-color: rgba(255,255,255,0.32); background: rgba(255,255,255,0.05); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--text); }

/* Hero */
.hero { position: relative; padding: 104px 0 72px; overflow: hidden; }
.hero-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(41, 224, 194, 0.1);
  padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(41, 224, 194, 0.28);
}
.hero h1 {
  font-size: clamp(38px, 6vw, 68px); line-height: 1.02; margin: 18px 0 18px; letter-spacing: -0.02em;
}
.grad {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--muted); font-size: 18px; max-width: 730px; margin: 0 auto; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.hero-meta { color: var(--muted); margin-top: 18px; font-size: 13px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: middle; box-shadow: 0 0 10px var(--accent); }
.hero-bg {
  position: absolute; inset: auto 0 -1px 0; height: 200px;
  background: linear-gradient(to bottom, transparent, rgba(41,224,194,0.05));
  pointer-events: none;
}

/* Logos */
.logos { padding: 16px 0 8px; }
.logos-title { color: var(--muted); text-align: center; font-size: 13px; margin: 0 0 14px; }
.logos-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px; opacity: 0.85;
}
.logos-grid li {
  text-align: center; color: var(--muted); font-weight: 600; letter-spacing: 0.04em;
  padding: 14px 8px; border: 1px solid var(--border); border-radius: 10px;
  background: rgba(255,255,255,0.02);
}

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 12px 0 8px; letter-spacing: -0.01em; }
.sub { color: var(--muted); margin: 0; }

/* Cards */
.cards {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  padding: 22px; border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)),
    rgba(13, 18, 36, 0.9);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 18px 44px rgba(0,0,0,0.2);
  transition: transform .2s ease, border-color .2s, background .2s;
}
.card:hover { transform: translateY(-2px); border-color: rgba(134,240,215,0.24); }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  background: linear-gradient(180deg, rgba(134,240,215,0.13), rgba(106,139,255,0.1));
  border: 1px solid rgba(134,240,215,0.18);
  color: #86f0d7;
}
.card-icon svg { width: 22px; height: 22px; display: block; }
.card h3 { margin: 6px 0 8px; font-size: 18px; }
.card p { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
.card-link { font-weight: 600; font-size: 14px; color: var(--primary); }
.card-link.muted { color: var(--muted); }

/* Features */
.feature-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.feature {
  padding: 20px; border-radius: var(--radius);
  background: rgba(13,18,36,0.68); border: 1px solid rgba(255,255,255,0.09);
}
.feature h4 { margin: 0 0 6px; font-size: 16px; }
.feature p { color: var(--muted); margin: 0; font-size: 14px; }

/* Pricing */
.pricing {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}
.pricing.single {
  grid-template-columns: minmax(280px, 460px);
  justify-content: center;
}
.pricing.trackflow-plans {
  max-width: 880px;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 24px;
}
.plan {
  position: relative;
  padding: 30px; border-radius: var(--radius);
  background: rgba(13,18,36,0.78); border: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column;
}
.plan h3 { margin: 0 0 6px; }
.plan-kicker {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.plan .price { color: var(--text); font-size: 46px; line-height: 1; margin: 0 0 14px; font-weight: 800; letter-spacing: -0.02em; }
.plan .price span { font-size: 14px; color: var(--muted); font-weight: 500; }
.trial-price span { margin-left: 4px; }
.plan-copy { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.plan ul { display: grid; gap: 10px; margin-bottom: 28px; color: var(--muted); font-size: 14px; }
.plan ul li::before { content: "✓ "; color: var(--accent); margin-right: 4px; }
.plan .btn { margin-top: auto; }
.plan.featured {
  border-color: rgba(106, 139, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(134,240,215,0.08), rgba(106,139,255,0.06)),
    rgba(13,18,36,0.9);
  box-shadow: 0 22px 60px rgba(0,0,0,0.28), 0 1px 0 rgba(255,255,255,0.06) inset;
}
.badge {
  position: absolute; top: -10px; right: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 800; color: white;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
details {
  background: rgba(13,18,36,0.7); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px; padding: 14px 18px;
}
summary { cursor: pointer; font-weight: 600; }
details[open] summary { color: var(--primary); }
details p { color: var(--muted); margin: 10px 0 0; }
details a { color: var(--primary); }

/* CTA */
.cta { padding: 96px 0; }
.cta-inner {
  text-align: center; padding: 48px 24px; border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(134,240,215,0.1), rgba(106,139,255,0.12)),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.11);
  box-shadow: 0 24px 70px rgba(0,0,0,0.24), 0 1px 0 rgba(255,255,255,0.06) inset;
}
.cta h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 8px; }
.cta p { color: var(--muted); margin: 0 0 22px; }
.cta-form {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  max-width: 520px; margin: 0 auto;
}
.cta-form input {
  flex: 1; min-width: 220px; padding: 12px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--text);
  font-size: 14px;
}
.cta-form input:focus { outline: none; border-color: var(--primary); }
.cta-meta { color: var(--muted); font-size: 13px; margin: 16px 0 0; }
.cta-meta a { color: var(--primary); font-weight: 600; }
.cta-meta a:hover { color: var(--text); }

/* Footer */
.footer { padding: 48px 0 24px; border-top: 1px solid var(--border); }
.footer-inner {
  display: grid; gap: 28px;
  grid-template-columns: 1.1fr 2fr; align-items: start;
}
.foot-cols { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.foot-cols h5 { color: var(--text); margin: 0 0 10px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.foot-cols a { color: var(--muted); font-size: 14px; }
.foot-cols a:hover { color: var(--text); }
.foot-cols ul { display: grid; gap: 8px; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 8px;
}
.muted { color: var(--muted); }
.small { font-size: 12px; }

.legal-page {
  padding: 72px 0 96px;
}
.legal-page article {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  background: rgba(13,18,36,0.82);
  box-shadow: 0 22px 60px rgba(0,0,0,0.24), 0 1px 0 rgba(255,255,255,0.05) inset;
}
.legal-page h1 { margin: 0 0 8px; font-size: clamp(30px, 5vw, 44px); line-height: 1.05; }
.legal-page h2 { margin: 30px 0 8px; font-size: 20px; }
.legal-page p, .legal-page li { color: var(--muted); }
.legal-page ul { list-style: disc; padding-left: 20px; display: grid; gap: 8px; }
.legal-page a { color: var(--accent); font-weight: 600; }

@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .pricing.trackflow-plans { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .section { padding: 64px 0; }
  .cta { padding: 64px 0; }
  .legal-page article { padding: 24px; }
}
