/* =====================================================================
   HireLoop — Enterprise AI Talent Intelligence
   Design system: Deep Navy + Electric Teal | Syne + DM Sans
   ===================================================================== */

/* ── 1. Design Tokens ─────────────────────────────────────────────── */
:root {
  /* Core palette */
  --bg:            #0a0e1a;
  --bg-surface:    #0f1628;
  --bg-raised:     #141d35;
  --bg-card:       #172040;
  --border:        rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.13);

  /* Brand accent */
  --teal:          #00d4aa;
  --teal-dim:      rgba(0,212,170,0.15);
  --teal-glow:     rgba(0,212,170,0.35);
  --teal-dark:     #00b391;

  /* Text */
  --text-primary:  #f0f4ff;
  --text-secondary:#8b9ab8;
  --text-muted:    #4e5e7a;

  /* Semantic */
  --score-high:    #00d4aa;
  --score-mid:     #f5a623;
  --score-low:     #e85b5b;

  /* Spacing scale */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Layout */
  --max-width:     1200px;
  --nav-height:    68px;

  /* Radius */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Typography */
  --font-heading: 'Syne', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Shadows */
  --shadow-card:  0 2px 20px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
  --shadow-glow:  0 0 40px var(--teal-glow);
}

/* ── 2. Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg { display: block; }

/* ── 3. Navigation ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--teal);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Nav center links */
.nav-center {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover { color: var(--text-primary); }

/* Nav CTA */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--teal);
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--r-full);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--teal-dark);
  box-shadow: 0 0 20px var(--teal-glow);
  transform: translateY(-1px);
}

/* ── 4. Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

/* Noise texture overlay */
.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Ambient glow blobs */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,212,170,0.12) 0%, transparent 70%);
  top: -100px;
  left: -200px;
}

.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(41,98,255,0.1) 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

/* Hero left — copy */
.hero-left { display: flex; flex-direction: column; gap: var(--space-lg); }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 14px;
  background: var(--teal-dim);
  border: 1px solid rgba(0,212,170,0.25);
  border-radius: var(--r-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--teal);
  width: fit-content;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-accent {
  color: var(--teal);
  position: relative;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 500px;
}

/* Hero CTAs */
.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  background: var(--teal);
  color: var(--bg);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--r-full);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.hero-cta-primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 0 30px var(--teal-glow);
  transform: translateY(-2px);
}

.hero-cta-ghost {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.hero-cta-ghost:hover { color: var(--text-primary); }

/* Trust badges */
.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── 5. Hero Dashboard Preview ────────────────────────────────────── */
.hero-right { display: flex; align-items: center; justify-content: flex-end; }

.hero-dashboard-preview {
  width: 100%;
  max-width: 520px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.05),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 14px var(--space-lg);
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.preview-dots span:nth-child(1) { background: #ff5f57; }
.preview-dots span:nth-child(2) { background: #febc2e; }
.preview-dots span:nth-child(3) { background: #28c840; }

.preview-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.preview-body { padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-md); }

.preview-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.preview-kpi {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--space-md);
  text-align: center;
}

.kpi-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.kpi-value.accent { color: var(--teal); }
.kpi-value span { font-size: 0.8125rem; color: var(--text-muted); font-weight: 400; }

.preview-divider { height: 1px; background: var(--border); margin: var(--space-xs) 0; }

.preview-candidates-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.preview-candidates { display: flex; flex-direction: column; gap: var(--space-sm); }

.preview-candidate {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 10px var(--space-md);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.2s ease;
}

.preview-candidate:hover { border-color: var(--border-strong); }

.candidate-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--teal-dim), rgba(41,98,255,0.15));
  border: 1px solid rgba(0,212,170,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--teal);
  flex-shrink: 0;
  font-family: var(--font-heading);
}

.candidate-info { flex: 1; min-width: 0; }

.candidate-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.candidate-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.candidate-score {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.candidate-score.high {
  background: var(--teal-dim);
  border-color: rgba(0,212,170,0.3);
  color: var(--teal);
}

/* ── 6. Stats Bar ─────────────────────────────────────────────────── */
.stats {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-xl) 0;
}

.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat {
  flex: 1;
  text-align: center;
  padding: var(--space-md) var(--space-lg);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stat.visible { opacity: 1; transform: none; }

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── 7. How It Works ──────────────────────────────────────────────── */
.how {
  padding: var(--space-3xl) 0;
  background: var(--bg);
}

.how-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.how-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-3xl);
}

.section-tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--teal-dim);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.how-header h2,
.features-header h2,
.social-proof-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.how-sub,
.features-sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.how-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.how-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s ease;
}

.how-step.visible { opacity: 1; transform: none; }
.how-step:hover { border-color: var(--border-strong); }

.step-number {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-icon {
  width: 52px;
  height: 52px;
  background: var(--teal-dim);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}

.how-step h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.how-step p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.how-connector {
  width: 48px;
  flex-shrink: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
  margin-top: 60px;
  align-self: flex-start;
}

/* ── 8. Features ──────────────────────────────────────────────────── */
.features {
  padding: var(--space-3xl) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.features-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.features-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-3xl);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  opacity: 0;
  transform: translateY(20px);
}

.feature-card.visible { opacity: 1; transform: none; }

.feature-card:hover {
  border-color: rgba(0,212,170,0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,212,170,0.08);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--teal-dim);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}

.feature-content h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
}

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

.feature-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 500;
  width: fit-content;
  margin-top: auto;
}

/* CTA card */
.feature-card-cta {
  background: linear-gradient(135deg, rgba(0,212,170,0.08) 0%, rgba(41,98,255,0.06) 100%);
  border-color: rgba(0,212,170,0.2);
  align-items: center;
  justify-content: center;
  text-align: center;
}

.feature-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.feature-cta-icon { color: var(--teal); opacity: 0.6; }

.feature-cta-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.feature-cta-btn {
  display: inline-block;
  padding: 11px 24px;
  background: var(--teal);
  color: var(--bg);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--r-full);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.feature-cta-btn:hover {
  background: var(--teal-dark);
  box-shadow: 0 0 24px var(--teal-glow);
}

/* ── 9. Social Proof ──────────────────────────────────────────────── */
.social-proof {
  padding: var(--space-3xl) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.social-proof-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.social-proof-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-3xl);
}

.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: var(--space-md);
}

.proof-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s ease;
}

.proof-card.visible { opacity: 1; transform: none; }
.proof-card:hover { border-color: var(--border-strong); }

/* Highlight card spans 2 cols */
.proof-card-highlight {
  grid-column: span 1;
  background: linear-gradient(135deg, rgba(0,212,170,0.06) 0%, rgba(41,98,255,0.04) 100%);
  border-color: rgba(0,212,170,0.2);
}

.proof-metric {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.proof-metric-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.proof-metric-accent { color: var(--teal); }

.proof-metric-arrow {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.proof-metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.proof-icon {
  width: 44px;
  height: 44px;
  background: var(--teal-dim);
  border: 1px solid rgba(0,212,170,0.15);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}

.proof-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.proof-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── 10. Pricing ──────────────────────────────────────────────────── */
.pricing {
  padding: var(--space-3xl) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.pricing-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.pricing-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}

.pricing-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.pricing-sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pricing-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.pricing-card.featured {
  background: linear-gradient(160deg, rgba(0,212,170,0.06) 0%, var(--bg-card) 60%);
  border-color: rgba(0,212,170,0.3);
  box-shadow: 0 0 40px rgba(0,212,170,0.08);
}

.pricing-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--teal);
  color: var(--bg);
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: fit-content;
}

.pricing-card-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.price-currency {
  font-size: 1.125rem;
  color: var(--text-secondary);
  align-self: flex-start;
  margin-top: 8px;
}

.price-period {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pricing-feature svg { flex-shrink: 0; margin-top: 2px; }

.pricing-cta {
  display: block;
  text-align: center;
  padding: 12px 24px;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--r-full);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pricing-cta:hover {
  background: var(--bg-card);
  border-color: var(--teal);
}

.pricing-cta.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--bg);
}

.pricing-cta.primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 0 20px var(--teal-glow);
}

/* ── 11. Closing CTA ──────────────────────────────────────────────── */
.closing {
  padding: var(--space-3xl) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,212,170,0.06) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.closing-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.closing-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.closing-inner h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.closing-sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.closing-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.closing-cta-btn {
  display: inline-block;
  padding: 15px 32px;
  background: var(--teal);
  color: var(--bg);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--r-full);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.closing-cta-btn:hover {
  background: var(--teal-dark);
  box-shadow: 0 0 30px var(--teal-glow);
  transform: translateY(-2px);
}

.closing-cta-ghost {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
}

.closing-cta-ghost:hover { color: var(--text-primary); }

.closing-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── 12. Footer ───────────────────────────────────────────────────── */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-logo-mark {
  width: 28px;
  height: 28px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-link:hover { color: var(--text-secondary); }

.footer-right {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── 13. Auth Pages (login / register) ───────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-card);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.auth-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}

.auth-subtitle {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input {
  padding: 11px 14px;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,212,170,0.12);
}

.form-input::placeholder { color: var(--text-muted); }

.form-submit {
  padding: 13px 24px;
  background: var(--teal);
  color: var(--bg);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-body);
  margin-top: var(--space-xs);
}

.form-submit:hover {
  background: var(--teal-dark);
  box-shadow: 0 0 20px var(--teal-glow);
}

.auth-switch {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
}

.auth-switch a {
  color: var(--teal);
  font-weight: 500;
}

.auth-switch a:hover { text-decoration: underline; }

.auth-error {
  padding: var(--space-md);
  background: rgba(232,91,91,0.1);
  border: 1px solid rgba(232,91,91,0.3);
  border-radius: var(--r-md);
  font-size: 0.875rem;
  color: var(--score-low);
}

/* ── 14. App UI (dashboard / settings / etc.) ────────────────────── */
.app-shell {
  min-height: 100vh;
  background: var(--bg);
}

.app-nav {
  height: var(--nav-height);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 var(--space-xl);
  gap: var(--space-xl);
  position: sticky;
  top: 0;
  z-index: 50;
}

.app-nav-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-right: auto;
}

.app-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl);
}

/* Cards */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-xl);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 9px 20px;
  border-radius: var(--r-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--teal);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 0 16px var(--teal-glow);
}

.btn-secondary {
  background: var(--bg-raised);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--teal);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 12px;
}

.btn-ghost:hover { color: var(--text-primary); }

/* Score badges */
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 24px;
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.score-high { background: var(--teal-dim); color: var(--teal); }
.score-mid  { background: rgba(245,166,35,0.12); color: var(--score-mid); }
.score-low  { background: rgba(232,91,91,0.1); color: var(--score-low); }

/* Tables */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead th {
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 12px var(--space-md);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tbody tr:hover td { background: rgba(255,255,255,0.02); }

/* Tags / Pills */
.tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.tag-teal {
  background: var(--teal-dim);
  border-color: rgba(0,212,170,0.2);
  color: var(--teal);
}

/* ── 15. Utility ──────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.text-teal   { color: var(--teal); }
.text-muted  { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.font-heading { font-family: var(--font-heading); }

/* ── 16. Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid    { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid  { grid-template-columns: 1fr; max-width: 480px; }
}

@media (max-width: 768px) {
  :root { --space-xl: 24px; --space-2xl: 40px; --space-3xl: 64px; }

  .nav-center { display: none; }
  .nav-inner  { padding: 0 var(--space-md); }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    padding: var(--space-2xl) var(--space-md);
    padding-top: calc(var(--nav-height) + var(--space-xl));
  }

  .hero-right { justify-content: center; }
  .hero-dashboard-preview { max-width: 100%; }

  .stats-inner {
    flex-wrap: wrap;
    gap: var(--space-md);
    padding: var(--space-lg);
  }

  .stat-divider { display: none; }
  .stat { flex: 0 0 calc(50% - var(--space-sm)); }

  .how-steps {
    flex-direction: column;
    gap: var(--space-md);
  }

  .how-connector { display: none; }

  .features-grid { grid-template-columns: 1fr; }
  .proof-grid    { grid-template-columns: 1fr; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .nav-actions .nav-link { display: none; }
}

/* ── Pricing compat aliases ─────────────────────────────────────── */
.pricing-badge-label {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-footer-note {
  text-align: center;
  margin-top: var(--space-xl);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Old pricing class compat */
.pricing-plan-name {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-check { color: var(--teal); font-weight: 700; }
.pricing-target { font-size: 0.875rem; color: var(--text-muted); }
.pricing-card-featured {
  background: linear-gradient(160deg, rgba(0,212,170,0.06) 0%, var(--bg-card) 60%);
  border-color: rgba(0,212,170,0.3);
  box-shadow: 0 0 40px rgba(0,212,170,0.08);
}
.pricing-cta-primary {
  background: var(--teal) \!important;
  border-color: var(--teal) \!important;
  color: var(--bg) \!important;
}
.pricing-cta-secondary {
  background: var(--bg-raised);
  border-color: var(--border-strong);
  color: var(--text-primary);
}
