@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&family=DM+Mono:wght@400&display=swap');

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

:root {
  --obsidian:       #050A0F;
  --obsidian-mid:   #0d1520;
  --alabaster:      #f5f1eb;
  --equus-gold:     #c5a059;
  --equus-gold-dim: rgba(197,160,89,0.12);
  --equus-blue:     #3C5E7C;
  --white-dim:      rgba(255,255,255,0.6);
  --white-faint:    rgba(255,255,255,0.22);
  --divider:        rgba(255,255,255,0.07);
  --surface:        rgba(13,21,32,0.7);
  --green:          #34D399;
  --amber:          #F59E0B;
  --red:            #EF4444;
  --font-serif:     'Playfair Display', Georgia, serif;
  --font-sans:      'Inter', system-ui, sans-serif;
  --font-mono:      'DM Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--obsidian);
  color: var(--alabaster);
  font-family: var(--font-sans);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAV (matches PublicHeader) ── */
.blog-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 0 5vw;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
.blog-header.scrolled {
  background: rgba(5,10,15,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.blog-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.blog-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: white;
  text-decoration: none;
}
.blog-nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.blog-nav a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-nav a:hover,
.blog-nav a.active { color: var(--equus-gold); }
.blog-header-ctas { display: flex; gap: 10px; align-items: center; }
.ph-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.ph-btn.apple { background: white; color: #050A0F; }
.ph-btn.apple:hover { background: var(--equus-gold); }
.ph-btn.google { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.2); }
.ph-btn.google:hover { border-color: var(--equus-gold); color: var(--equus-gold); }

/* ── PAGE WRAPPER ── */
.blog-page { padding-top: 72px; }

/* ── HERO ── */
.blog-hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 5vw 48px;
}
.breadcrumb {
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  color: var(--white-dim);
  margin-bottom: 28px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a { color: var(--equus-gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.post-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--equus-gold);
  margin-bottom: 20px;
}
.blog-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: white;
  margin-bottom: 24px;
}
.blog-hero h1 em { font-style: italic; color: var(--equus-gold); }
.hero-meta {
  color: var(--white-dim);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--divider);
}
.hero-meta strong { color: var(--equus-gold); }

/* ── ARTICLE ── */
article {
  max-width: 820px;
  margin: 0 auto;
  padding: 52px 5vw 100px;
}
article h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 400;
  color: white;
  margin: 56px 0 18px;
  line-height: 1.2;
}
article h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: white;
  margin: 36px 0 12px;
}
article p {
  color: var(--white-dim);
  margin-bottom: 22px;
  font-size: 1rem;
  line-height: 1.75;
}
article p strong { color: var(--alabaster); font-weight: 600; }
article ul, article ol { padding-left: 24px; margin-bottom: 24px; }
article li { color: var(--white-dim); margin-bottom: 12px; line-height: 1.65; }
article li strong { color: var(--alabaster); }

/* ── CALLOUT ── */
.callout {
  background: rgba(197,160,89,0.06);
  border-left: 2px solid var(--equus-gold);
  padding: 22px 28px;
  margin: 36px 0;
}
.callout p { margin: 0; color: var(--alabaster); font-style: italic; font-size: 1.05rem; line-height: 1.65; }

/* ── GLASS CARD ── */
.glass-card {
  background: rgba(13,21,32,0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 24px;
}
.glass-card:hover {
  border-color: rgba(197,160,89,0.2);
  transform: translateY(-3px);
  transition: all 0.25s ease;
}

/* ── FEATURE GRID ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 32px 0;
}
.feature-card { padding: 22px; }
.feature-icon { font-size: 1.3rem; margin-bottom: 12px; }
.feature-card h4 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: white;
  margin-bottom: 8px;
}
.feature-card p { font-size: 0.84rem; margin: 0; }

/* ── STAT ROW ── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 32px 0;
}
.stat-box { text-align: center; padding: 28px 20px; }
.stat-value {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--equus-gold);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-top: 8px;
}

/* ── COMPARISON ── */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 32px 0;
}
.comparison-box { border-radius: 16px; padding: 24px; }
.comparison-box.bad { background: rgba(239,68,68,0.05); border: 1px solid rgba(239,68,68,0.15); }
.comparison-box.good { background: rgba(52,211,153,0.05); border: 1px solid rgba(52,211,153,0.15); }
.comparison-box h4 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 16px; }
.comparison-box.bad h4 { color: var(--red); }
.comparison-box.good h4 { color: var(--green); }
.comparison-box ul { padding-left: 18px; }
.comparison-box li { font-size: 0.85rem; margin-bottom: 8px; }

/* ── STEPS ── */
.steps { margin: 36px 0; display: flex; flex-direction: column; gap: 4px; }
.step { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--divider); align-items: flex-start; }
.step:last-child { border-bottom: none; }
.step-number {
  min-width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--equus-gold-dim);
  border: 1px solid rgba(197,160,89,0.25);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--equus-gold);
  flex-shrink: 0;
}
.step-content h4 { font-family: var(--font-serif); font-size: 1rem; color: white; margin-bottom: 6px; }
.step-content p { font-size: 0.9rem; margin: 0; }

/* ── SCORE DEMO ── */
.score-demo {
  display: flex; gap: 32px; align-items: center; flex-wrap: wrap;
  margin: 36px 0; padding: 32px;
}
.score-arc-wrap { text-align: center; flex-shrink: 0; }
.score-big {
  font-family: var(--font-mono);
  font-size: 3.8rem;
  color: var(--green);
  text-shadow: 0 0 32px rgba(52,211,153,0.35);
  display: block; line-height: 1;
}
.score-label { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--white-dim); margin-top: 8px; }
.score-breakdown { flex: 1; min-width: 220px; }
.score-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--divider); }
.score-row:last-child { border-bottom: none; }
.score-row-label { font-size: 0.85rem; color: var(--white-dim); }
.score-row-value { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 400; }
.score-row-value.high { color: var(--green); }
.score-row-value.mid { color: var(--amber); }
.score-row-value.low { color: var(--red); }

/* ── TIER GRID ── */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 28px 0; }
.tier-card { border-radius: 12px; padding: 18px 20px; }
.tier-card.high { background: rgba(52,211,153,0.05); border: 1px solid rgba(52,211,153,0.18); }
.tier-card.mid  { background: rgba(245,158,11,0.05);  border: 1px solid rgba(245,158,11,0.18);  }
.tier-card.low  { background: rgba(239,68,68,0.05);   border: 1px solid rgba(239,68,68,0.18);   }
.tier-card.pb   { background: rgba(197,160,89,0.05);  border: 1px solid rgba(197,160,89,0.18);  }
.tier-range { font-family: var(--font-mono); font-size: 1.3rem; display: block; margin-bottom: 4px; }
.tier-card.high .tier-range { color: var(--green); }
.tier-card.mid  .tier-range { color: var(--amber); }
.tier-card.low  .tier-range { color: var(--red);   }
.tier-card.pb   .tier-range { color: var(--equus-gold); }
.tier-name { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.15em; }
.tier-card.high .tier-name { color: var(--green); }
.tier-card.mid  .tier-name { color: var(--amber); }
.tier-card.low  .tier-name { color: var(--red);   }
.tier-card.pb   .tier-name { color: var(--equus-gold); }
.tier-desc { font-size: 0.82rem; color: var(--white-dim); margin-top: 8px; }

/* ── PILLAR LIST ── */
.pillar-list { margin: 24px 0; display: flex; flex-direction: column; gap: 10px; }
.pillar { padding: 20px; display: flex; gap: 16px; align-items: flex-start; }
.pillar-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.pillar h4 { font-family: var(--font-serif); font-size: 0.95rem; color: white; margin-bottom: 5px; }
.pillar p { font-size: 0.85rem; color: var(--white-dim); margin: 0; }

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(135deg, rgba(60,94,124,0.15), rgba(197,160,89,0.08));
  border: 1px solid rgba(197,160,89,0.15);
  border-radius: 20px;
  padding: 52px 40px;
  text-align: center;
  margin: 64px 0 0;
}
.cta-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: white;
  margin: 0 0 14px;
}
.cta-section p { color: var(--white-dim); font-size: 1rem; margin-bottom: 32px; }
.cta-btn {
  display: inline-block;
  background: white;
  color: var(--obsidian);
  padding: 14px 40px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s;
}
.cta-btn:hover { background: var(--equus-gold); transform: translateY(-2px); }

/* ── BLOG INDEX GRID ── */
.posts-grid {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 5vw 100px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}
.post-card {
  border-radius: 18px;
  padding: 30px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197,160,89,0.25);
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.post-card .post-tag { margin-bottom: 0; }
.post-card h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: white;
  line-height: 1.3;
}
.post-card p { font-size: 0.88rem; color: var(--white-dim); flex: 1; margin: 0; line-height: 1.6; }
.post-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--white-dim);
  display: flex;
  gap: 14px;
  margin-top: 4px;
}
.read-more { font-size: 11px; color: var(--equus-gold); letter-spacing: 0.05em; margin-top: 4px; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--divider);
  padding: 36px 5vw;
  text-align: center;
}
footer p { color: var(--white-faint); font-size: 11px; font-family: var(--font-mono); letter-spacing: 0.08em; }
footer a { color: var(--equus-gold); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .blog-nav { display: none; }
  .blog-header-ctas { display: none; }
  .comparison { grid-template-columns: 1fr; }
  .score-demo { flex-direction: column; gap: 20px; }
  .cta-section { padding: 36px 24px; }
}
