/* ===== Score Vitals — Marketing Site ===== */

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

:root {
  --surface:       #0D1117;
  --surface-light:  #161B22;
  --surface-card:   #1C2128;
  --border:         #30363D;
  --text-primary:   #F0F6FC;
  --text-secondary: #8B949E;
  --text-muted:     #6E7681;
  --green:          #3FB950;
  --green-dim:      rgba(63,185,80,.12);
  --blue:           #58A6FF;
  --blue-dim:       rgba(88,166,255,.12);
  --amber:          #D29922;
  --amber-dim:      rgba(210,153,34,.12);
  --red:            #F85149;
  --red-dim:        rgba(248,81,73,.12);
  --radius:         12px;
  --radius-sm:      8px;
  --max-width:      1120px;
  --font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .85; }

img { max-width: 100%; display: block; }

/* ---------- Utilities ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.text-green { color: var(--green); }
.text-blue { color: var(--blue); }
.text-amber { color: var(--amber); }
.text-red { color: var(--red); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,17,23,.85);
  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;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo .logo-dot {
  width: 10px; height: 10px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--green);
}

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--text-secondary); font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text-primary); opacity: 1; }

.nav-cta {
  background: var(--green);
  color: var(--surface) !important;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .85rem;
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(63,185,80,.3); opacity: 1; }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(63,185,80,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  max-width: 720px;
  margin: 0 auto;
}

.hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 20px auto 0;
  line-height: 1.7;
}

.hero-score {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 40px;
  padding: 16px 32px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.hero-score .number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}

.hero-score .label {
  font-size: .9rem;
  color: var(--text-secondary);
  margin-left: 8px;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .85rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: border-color .2s;
}

.badge:hover { border-color: var(--text-muted); }

.badge svg { width: 18px; height: 18px; }

/* ---------- Section ---------- */
section { padding: 100px 0; }

.section-label {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--green);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-top: 16px;
  line-height: 1.7;
}

.section-subtitle.centered { margin-left: auto; margin-right: auto; }

/* ---------- Pillars Grid ---------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.pillar-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .25s, transform .25s;
}

.pillar-card:hover {
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.pillar-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.pillar-icon.green  { background: var(--green-dim);  color: var(--green); }
.pillar-icon.blue   { background: var(--blue-dim);   color: var(--blue); }
.pillar-icon.amber  { background: var(--amber-dim);  color: var(--amber); }
.pillar-icon.red    { background: var(--red-dim);     color: var(--red); }

.pillar-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.pillar-card p  { font-size: .88rem; color: var(--text-secondary); line-height: 1.6; }

.pillar-weight {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}

.pillar-weight.green { background: var(--green-dim); color: var(--green); }
.pillar-weight.blue  { background: var(--blue-dim);  color: var(--blue); }
.pillar-weight.amber { background: var(--amber-dim); color: var(--amber); }
.pillar-weight.red   { background: var(--red-dim);   color: var(--red); }

/* ---------- Features List ---------- */
.features-section { background: var(--surface-light); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.feature-card {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .25s;
}

.feature-card:hover { border-color: var(--text-muted); }

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-card h3 span {
  font-size: 1.2rem;
}

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

/* ---------- How It Works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 32px 28px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green);
  opacity: .25;
  line-height: 1;
  margin-bottom: 16px;
}

.step h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.step p  { font-size: .9rem; color: var(--text-secondary); line-height: 1.65; }

/* ---------- CTA Banner ---------- */
.cta-section {
  text-align: center;
  padding: 100px 0 120px;
}

.cta-box {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 64px 40px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(63,185,80,.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
}

.cta-box p {
  color: var(--text-secondary);
  margin-top: 12px;
  font-size: 1.05rem;
}

.btn-primary {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 36px;
  background: var(--green);
  color: var(--surface);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  transition: transform .2s, box-shadow .2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(63,185,80,.3);
  opacity: 1;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: .85rem;
  margin-top: 8px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-links { display: flex; gap: 48px; }

.footer-col h4 {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-secondary); font-size: .88rem; }
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: var(--text-muted);
}

/* ---------- Legal Pages ---------- */
.legal-page { padding: 120px 0 80px; }

.legal-content {
  max-width: 740px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-content .last-updated {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.legal-content h2:first-of-type { border-top: none; padding-top: 0; }

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-content p {
  color: var(--text-secondary);
  font-size: .92rem;
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-content ul, .legal-content ol {
  color: var(--text-secondary);
  font-size: .92rem;
  line-height: 1.75;
  margin-bottom: 14px;
  padding-left: 24px;
}

.legal-content li { margin-bottom: 6px; }

.legal-content strong { color: var(--text-primary); }

.legal-content a { color: var(--blue); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--surface-light);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 16px;
  }
  .pillars-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 64px; }
  section { padding: 64px 0; }
  .hero-badges { flex-direction: column; align-items: center; }
  .cta-box { padding: 40px 24px; }
  .footer-links { flex-direction: column; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
