/* ============================================================
   TachyonTracker — Corporate Design System
   Palette: off-white bg · deep navy primary · teal accent
   Typography: Inter (Google Fonts)
   ============================================================ */

:root {
  /* Backgrounds */
  --bg:           #f8f9fb;
  --bg-white:     #ffffff;
  --bg-subtle:    #f2f4f8;
  --bg-navy:      #0f1b2d;
  --bg-navy-dark: #0a1220;

  /* Foregrounds */
  --fg:           #0f1b2d;
  --fg-secondary: #3d4f65;
  --fg-muted:     #7a8da0;
  --fg-on-navy:   #e8edf3;
  --fg-muted-navy:#8ea4ba;

  /* Accent — teal */
  --accent:       #0d9488;
  --accent-dark:  #0a7870;
  --accent-light: #ccfbf1;
  --accent-dim:   rgba(13, 148, 136, 0.10);

  /* Borders */
  --border:       #dde3ec;
  --border-strong:#c4cedb;

  /* Status */
  --success:      #16a34a;
  --success-bg:   #dcfce7;
  --warning:      #d97706;
  --warning-bg:   #fef3c7;

  /* Typography */
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Radius */
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --radius-xl:    24px;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(15, 27, 45, 0.07), 0 1px 2px rgba(15, 27, 45, 0.04);
  --shadow:       0 4px 12px rgba(15, 27, 45, 0.08), 0 2px 4px rgba(15, 27, 45, 0.05);
  --shadow-lg:    0 12px 32px rgba(15, 27, 45, 0.10), 0 4px 8px rgba(15, 27, 45, 0.06);
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-nav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--accent);
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--fg); }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: var(--radius);
}

/* ============================================================
   SECTION TAG / EYEBROW
   ============================================================ */

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 96px 24px 80px;
  text-align: center;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.hero-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.hero-segment-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg-secondary);
  letter-spacing: 0.04em;
}

.hero-segment-divider {
  width: 1px;
  height: 16px;
  background: var(--border-strong);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--fg);
  margin-bottom: 8px;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero h1 .hero-sub-head {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--fg-secondary);
  letter-spacing: -0.02em;
  margin-top: 6px;
}

.lede {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--fg-secondary);
  max-width: 560px;
  margin: 24px auto 40px;
  line-height: 1.7;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  overflow: hidden;
  max-width: 560px;
  margin: 0 auto;
}

.stat {
  flex: 1;
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat:last-child { border-right: none; }

.stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--fg);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.stat-value.accent { color: var(--accent); }

.stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg-muted);
  margin-top: 4px;
  line-height: 1.35;
}

/* ============================================================
   TRUST BAR
   ============================================================ */

.trust-bar {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  text-align: center;
}

.trust-bar-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--fg-secondary);
}

.trust-icon {
  color: var(--accent);
  font-size: 0.9rem;
}

/* ============================================================
   METRICS / FEATURE CARDS
   ============================================================ */

.metrics {
  padding: 96px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.metrics-header {
  margin-bottom: 56px;
  max-width: 600px;
}

.metrics-header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 12px;
}

.metrics-header p {
  font-size: 1rem;
  color: var(--fg-secondary);
  line-height: 1.65;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.metric-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.metric-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.metric-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.15rem;
  color: var(--accent);
}

.metric-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.metric-card p {
  color: var(--fg-secondary);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ============================================================
   FEATURES LIST
   ============================================================ */

.features {
  background: var(--bg-white);
  padding: 96px 24px;
}

.features-inner {
  max-width: 840px;
  margin: 0 auto;
}

.features-header {
  margin-bottom: 56px;
}

.features-header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 12px;
}

.features-header p {
  font-size: 1rem;
  color: var(--fg-secondary);
}

.features-list { display: flex; flex-direction: column; }

.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.feature-row:first-child { border-top: 1px solid var(--border); }

.feature-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  min-width: 36px;
  padding-top: 5px;
}

.feature-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.feature-content p {
  color: var(--fg-secondary);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ============================================================
   PRICING / COMPARISON
   ============================================================ */

.comparison {
  padding: 96px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.comparison-header {
  margin-bottom: 48px;
}

.comparison-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 12px;
}

.comparison-header p {
  color: var(--fg-secondary);
  font-size: 0.95rem;
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--bg-white);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.comparison-table thead {
  background: var(--bg-subtle);
}

.comparison-table th {
  padding: 14px 24px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-secondary);
  border-bottom: 1px solid var(--border);
}

.comparison-table th.highlight-col {
  color: var(--accent);
}

.comparison-table td {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  color: var(--fg-secondary);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: var(--bg-subtle);
}

.comparison-table td.highlight-col {
  color: var(--fg);
  font-weight: 600;
}

/* ============================================================
   CLOSING CTA
   ============================================================ */

.closing {
  background: var(--bg-navy);
  padding: 100px 24px;
  text-align: center;
}

.closing-content {
  max-width: 680px;
  margin: 0 auto;
}

.closing h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--fg-on-navy);
  margin-bottom: 16px;
}

.closing h2 .accent { color: var(--accent); }

.closing-sub {
  color: var(--fg-muted-navy);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--bg-navy-dark);
  padding: 48px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-content {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg-on-navy);
  letter-spacing: -0.02em;
}

.footer-logo span { color: var(--accent); }

.footer-tagline {
  font-size: 0.78rem;
  color: var(--fg-muted-navy);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--fg-muted-navy);
}

.footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--fg-muted-navy);
  flex-shrink: 0;
}

.footer-meta a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.footer-meta a:hover { text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .hero { padding: 64px 20px 56px; }
  .hero h1 { letter-spacing: -0.025em; }
  .hero-stats { flex-direction: column; border-radius: var(--radius); }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .hero-segment { flex-wrap: wrap; gap: 8px; }
  .hero-segment-divider { display: none; }
  .metrics { padding: 64px 20px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .features { padding: 64px 20px; }
  .feature-row { flex-direction: column; gap: 8px; }
  .feature-number { min-width: auto; }
  .comparison { padding: 64px 20px; }
  .comparison-table th,
  .comparison-table td { padding: 12px 16px; }
  .closing { padding: 72px 20px; }
  .site-footer { padding: 40px 20px; }
  .footer-content { flex-direction: column; gap: 24px; text-align: center; }
  .footer-meta { flex-direction: column; gap: 8px; }
  .footer-dot { display: none; }
  .trust-bar-inner { gap: 20px; }
}

@media (max-width: 480px) {
  .nav-links a:not(.btn) { display: none; }
  .hero-cta-row { flex-direction: column; width: 100%; }
  .btn-lg { width: 100%; justify-content: center; }
}
