/* ============================================================
   BeDiscovered GEO — Design System
   Dark navy theme, Inter font, electric blue accent
   ============================================================ */

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

:root {
  --bg: #0A0F1C;
  --bg-elevated: #111827;
  --bg-card: #151C2E;
  --bg-card-hover: #1A2340;
  --border: rgba(255,255,255,0.08);
  --border-focus: rgba(59,130,246,0.5);

  --text: #FFFFFF;
  --text-secondary: #E5E5E5;
  --text-muted: #B0B8CC;

  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --accent-glow: rgba(59,130,246,0.15);
  --teal: #14B8A6;

  --red: #EF4444;
  --amber: #F59E0B;
  --green: #10B981;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  --container: 1120px;
  --section-pad: 120px;
  --section-pad-mobile: 72px;
}

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

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

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text); }

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

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

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); letter-spacing: -0.01em; }

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 20px;
  max-width: 680px;
}

.section-desc {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 56px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  padding: 12px 24px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 0 24px 4px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.btn-lg { padding: 16px 32px; font-size: 1rem; border-radius: var(--radius); }
.btn-full { width: 100%; }

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  background: rgba(10,15,28,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--accent) !important; }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; }
.nav-cta.active { background: var(--accent-hover) !important; box-shadow: 0 0 16px 2px var(--accent-glow); }

.nav-get-started {
  border: 1px solid var(--accent) !important;
  color: var(--accent) !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}
.nav-get-started:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

.main-nav a.active {
  color: var(--text);
  position: relative;
}
.main-nav a.active:not(.nav-cta):not(.nav-get-started)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 180px 0 var(--section-pad);
  text-align: center;
  overflow: hidden;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(59,130,246,0.3);
  background: rgba(59,130,246,0.08);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-sub em {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-proof {
  margin-top: 8px;
}

.proof-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.proof-tag {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.proof-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.proof-sep {
  color: rgba(255,255,255,0.2);
}

/* --- Problem Section --- */
.problem {
  padding: var(--section-pad) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.stat-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.stat-card-accent {
  border-color: rgba(59,130,246,0.3);
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(20,184,166,0.05));
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.problem-context {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  max-width: 720px;
}

.context-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: 10px;
  color: var(--accent);
}

.problem-context p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.problem-context em {
  color: var(--text);
  font-style: normal;
  font-weight: 500;
}

/* --- How AI Decides --- */
.how-ai {
  position: relative;
  padding: var(--section-pad) 0;
  background: var(--bg-elevated);
}

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

.factors-grid .factor-card:nth-child(4),
.factors-grid .factor-card:nth-child(5) {
  /* Center the last two cards in a 3-col grid */
}

.factor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: border-color 0.3s, transform 0.3s;
}

.factor-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.factor-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: 12px;
  color: var(--accent);
  margin-bottom: 20px;
}

.factor-card h3 {
  margin-bottom: 10px;
  font-size: 1.125rem;
}

.factor-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --- Service Timeline --- */
.service {
  padding: var(--section-pad) 0;
}

.timeline {
  position: relative;
  padding-left: 48px;
  max-width: 720px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--teal));
  border-radius: 2px;
}

.timeline-step {
  position: relative;
  padding-bottom: 56px;
}

.timeline-step:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -48px;
  top: 0;
}

.timeline-week {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 50%;
  font-size: 0;
  color: transparent;
  box-shadow: 0 0 0 4px var(--bg), 0 0 16px var(--accent-glow);
}

.timeline-week::after {
  content: '';
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.timeline-content > p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.timeline-step .timeline-marker .timeline-week + span,
.timeline-content::before {
  display: none;
}

/* Show week label */
.timeline-step:nth-child(1) .timeline-content::before { content: 'Week 1'; }
.timeline-step:nth-child(2) .timeline-content::before { content: 'Week 2'; }
.timeline-step:nth-child(3) .timeline-content::before { content: 'Week 3'; }
.timeline-content::before {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.timeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-list li {
  padding-left: 20px;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.timeline-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* --- Results / Case Studies --- */
.results {
  position: relative;
  padding: var(--section-pad) 0;
  background: var(--bg-elevated);
}

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

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s;
}

.result-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.result-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 12px;
}

.result-card h3 {
  font-size: 1.125rem;
  margin-bottom: 20px;
}

.result-metrics {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}

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

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

.metric-value {
  font-size: 0.875rem;
  font-weight: 600;
}

.metric-bad { color: var(--red); }
.metric-good { color: var(--green); }

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

/* --- FAQ --- */
.faq {
  padding: var(--section-pad) 0;
}

.faq-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item:hover { border-color: rgba(255,255,255,0.12); }

.faq-item + .faq-item { margin-top: 8px; }

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-answer {
  padding: 0 24px 20px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.faq-answer em {
  color: var(--text);
  font-style: italic;
}

/* --- Get Started Form --- */
.get-started {
  position: relative;
  padding: var(--section-pad) 0;
  background: var(--bg-elevated);
}

.intake-form {
  max-width: 720px;
  position: relative;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.req { color: var(--accent); }

.form-group input,
.form-group select {
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.form-group input::placeholder {
  color: rgba(255,255,255,0.25);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23B0B8CC' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--bg-card);
  color: var(--text);
}

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

.form-submit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

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

.form-success {
  text-align: center;
  padding: 48px 0;
}

.success-icon {
  color: var(--green);
  margin-bottom: 20px;
}

.form-success h3 {
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto;
}

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

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-brand { max-width: 300px; }
.footer-tagline {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 8px;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

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

/* ============================================================
   SCORE CHECKER PAGE
   ============================================================ */

.score-hero {
  position: relative;
  padding: 160px 0 var(--section-pad);
  min-height: 100vh;
}

.score-form-wrap {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.score-form-header { margin-bottom: 40px; }
.score-form-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 16px; }
.score-form-header p { color: var(--text-secondary); font-size: 1.0625rem; }

.score-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.score-form .form-group input,
.score-form .form-group select {
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}

.score-form .form-group input::placeholder { color: rgba(255,255,255,0.25); }
.score-form .form-group input:focus,
.score-form .form-group select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.score-form .form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23B0B8CC' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* --- Loading Animation --- */
.score-loading {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding-top: 40px;
}

.loading-animation {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 48px;
}

.loading-ring {
  position: absolute;
  inset: 0;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.loading-step {
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0.3;
  transition: opacity 0.4s;
}

.loading-step.active { opacity: 1; }
.loading-step.done { opacity: 0.6; }

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background 0.3s;
}

.loading-step.active .step-dot { background: var(--accent); animation: pulse-dot 1s ease infinite; }
.loading-step.done .step-dot { background: var(--green); }

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(59,130,246,0); }
}

.loading-step span {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* --- Score Results --- */
.score-results {
  max-width: 800px;
  margin: 0 auto;
}

.results-header {
  text-align: center;
  margin-bottom: 48px;
}

.results-header h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }
.results-location { color: var(--text-muted); font-size: 0.9375rem; }

.results-main {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.score-circle-wrap {
  text-align: center;
}

.score-circle {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
}

.score-ring { width: 100%; height: 100%; }

.score-arc {
  transition: stroke-dashoffset 1.5s ease, stroke 0.3s;
}

.score-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.score-number {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.score-max {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.score-label {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.competitor-avg {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.competitor-avg strong {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.score-breakdown h3 {
  margin-bottom: 20px;
  font-size: 1.125rem;
}

.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.breakdown-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

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

.breakdown-score {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.breakdown-bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}

.breakdown-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
  width: 0;
}

/* --- Recommendations --- */
.recommendations {
  margin-bottom: 56px;
}

.recommendations h3 {
  margin-bottom: 20px;
  font-size: 1.125rem;
}

.rec-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
}

.rec-number {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--accent);
  flex-shrink: 0;
}

.rec-content h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 6px;
}

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

.rec-score-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red);
  margin-top: 8px;
  display: inline-block;
}

/* --- Results CTA --- */
.results-cta {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
}

.results-cta h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.results-cta p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.results-cta .btn + .btn {
  margin-left: 12px;
}

/* ============================================================
   BLOG PAGE
   ============================================================ */

.blog-hero {
  position: relative;
  padding: 160px 0 64px;
  text-align: center;
}

.hero-sub-sm {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 16px auto 0;
}

.blog-listing {
  padding: 0 0 var(--section-pad);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  color: var(--text);
}

.blog-card-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.blog-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(59,130,246,0.1);
  padding: 4px 10px;
  border-radius: 4px;
}

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

.blog-card h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

.blog-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  flex: 1;
}

.blog-read-time {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* --- Blog Article --- */
.blog-article {
  padding: 140px 0 var(--section-pad);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.back-link:hover { color: var(--text); }

.article-content {
  max-width: 680px;
}

.article-content .article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 32px;
}

.article-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

.article-content h2 {
  font-size: 1.375rem;
  margin: 40px 0 16px;
}

.article-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.75;
}

.article-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.article-content li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

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

.article-cta {
  margin-top: 64px;
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.article-cta h3 { margin-bottom: 8px; }
.article-cta p { color: var(--text-secondary); margin-bottom: 20px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.2s; }
.animate-in:nth-child(4) { animation-delay: 0.3s; }
.animate-in:nth-child(5) { animation-delay: 0.4s; }

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

@media (max-width: 768px) {
  :root {
    --section-pad: var(--section-pad-mobile);
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-elevated);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 20px;
    transition: right 0.3s;
    border-left: 1px solid var(--border);
    z-index: 99;
  }

  .main-nav.open { right: 0; }

  .mobile-toggle { display: flex; z-index: 101; }

  .hero { padding: 140px 0 80px; }
  .hero h1 br { display: none; }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stat-card { padding: 28px 24px; }

  .factors-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .results-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .results-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    flex-direction: column;
    gap: 32px;
  }

  .results-cta .btn + .btn {
    margin-left: 0;
    margin-top: 12px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .score-hero { padding-top: 120px; }

  .blog-hero { padding-top: 120px; }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn { width: 100%; }

  .score-circle { width: 160px; height: 160px; }
  .score-number { font-size: 2.75rem; }
}
