/* ============================================================
   CachePlex — Hub Homepage Styles
   ============================================================ */

:root {
  --primary:      #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light:#eff6ff;
  --accent:       #7c3aed;
  --success:      #10b981;
  --warning:      #f59e0b;
  --danger:       #ef4444;
  --dark:         #0f172a;
  --gray-900:     #1e293b;
  --gray-700:     #334155;
  --gray-500:     #64748b;
  --gray-300:     #cbd5e1;
  --gray-100:     #f1f5f9;
  --gray-50:      #f8fafc;
  --white:        #ffffff;
  --radius:       12px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:       0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Navbar ── */
.navbar { border-bottom: 1px solid rgba(0,0,0,.06); }
.brand-icon {
  width: 42px; height: 42px;
  background: linear-gradient(145deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37,99,235,.35), inset 0 1px 0 rgba(255,255,255,.18);
  position: relative; overflow: hidden;
}
.brand-icon::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, transparent 100%);
  border-radius: 12px 12px 0 0;
}
.brand-icon-cp {
  font-weight: 900; font-size: .82rem; letter-spacing: .08em;
  font-family: 'Inter', sans-serif; text-shadow: 0 1px 3px rgba(0,0,0,.3);
  position: relative; z-index: 1;
}
.brand-label { display: flex; flex-direction: column; line-height: 1; gap: 2px; }
.brand-text { font-weight: 800; font-size: 1.15rem; color: var(--dark); line-height: 1; }
.brand-tagline {
  font-size: .58rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gray-500); line-height: 1;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-link { font-weight: 500; color: var(--gray-700) !important; font-size: .92rem; }
.nav-link:hover, .nav-link.active { color: var(--primary) !important; }

/* ── Hero ── */
.hero {
  background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99,102,241,.25) 0%, transparent 70%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  color: #a5b4fc; font-size: .8rem; font-weight: 600; letter-spacing: .06em;
  padding: 6px 16px; border-radius: 100px; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.hero-title span {
  background: linear-gradient(135deg, #818cf8, #38bdf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem; color: #94a3b8;
  line-height: 1.7; margin-bottom: 36px;
  max-width: 540px;
}
.hero-cta-group { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; padding: 14px 28px; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(99,102,241,.4);
  transition: transform .2s, box-shadow .2s;
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99,102,241,.5); color: #fff; }
.btn-hero-secondary {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: #e2e8f0; padding: 14px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.14); color: #fff; }

/* Hero mockup card */
.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(12px);
}
.hero-card-inner {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.score-preview {
  display: flex; align-items: center; gap: 16px; margin-bottom: 16px;
}
.score-circle {
  width: 64px; height: 64px;
  background: conic-gradient(#10b981 0deg 270deg, #e2e8f0 270deg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.score-circle::after {
  content: '';
  width: 48px; height: 48px;
  background: #fff; border-radius: 50%;
  position: absolute;
}
.score-num { position: relative; z-index: 1; font-weight: 800; font-size: .95rem; color: #10b981; }
.mini-bar { height: 8px; border-radius: 4px; background: #e2e8f0; overflow: hidden; margin-bottom: 6px; }
.mini-bar-fill { height: 100%; border-radius: 4px; }
.mini-stat { font-size: .72rem; color: var(--gray-500); display: flex; justify-content: space-between; }

/* ── Stats Strip ── */
.stats-strip {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-300);
  padding: 20px 0;
}
.stat-item { text-align: center; }
.stat-number { font-size: 1.6rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: .78rem; color: var(--gray-500); font-weight: 500; margin-top: 2px; }

/* ── Section commons ── */
section { padding: 80px 0; }
.section-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-light); color: var(--primary);
  font-size: .76rem; font-weight: 700; letter-spacing: .07em;
  padding: 5px 14px; border-radius: 100px; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--dark); letter-spacing: -.02em; }
.section-subtitle { font-size: 1rem; color: var(--gray-500); max-width: 520px; margin: 12px auto 0; }

/* ── Featured Tool ── */
.featured-tool {
  background: linear-gradient(135deg, #f0f9ff, #eff6ff);
  border: 2px solid #bfdbfe;
  border-radius: var(--radius-xl);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.featured-tool::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(37,99,235,.12), transparent 70%);
  border-radius: 50%;
}
.tool-icon-lg {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.8rem; margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(37,99,235,.3);
}
.featured-label {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  padding: 4px 12px; border-radius: 100px; text-transform: uppercase;
  margin-bottom: 16px;
}
.free-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: #dcfce7; color: #166534;
  font-size: .72rem; font-weight: 700;
  padding: 4px 12px; border-radius: 100px;
  margin-left: 8px;
}
.feature-list { list-style: none; padding: 0; margin: 20px 0 28px; }
.feature-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: .92rem; color: var(--gray-700); margin-bottom: 10px;
}
.feature-list li i { color: var(--success); font-size: 1rem; flex-shrink: 0; }
.btn-tool {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  padding: 14px 28px; border-radius: var(--radius);
  font-weight: 700; font-size: .95rem; text-decoration: none;
  transition: background .2s, transform .2s;
  box-shadow: 0 4px 16px rgba(37,99,235,.3);
}
.btn-tool:hover { background: var(--primary-dark); transform: translateY(-2px); color: #fff; }

/* Tool screenshot mockup */
.tool-mockup {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--gray-300);
}
.mockup-bar {
  background: var(--gray-100);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--gray-300);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #28ca41; }
.mockup-body { padding: 20px; }
.mockup-input {
  display: flex; gap: 8px; margin-bottom: 16px;
}
.mockup-input-field {
  flex: 1; background: var(--gray-50); border: 1px solid var(--gray-300);
  border-radius: 8px; padding: 10px 14px; font-size: .85rem; color: var(--gray-500);
}
.mockup-btn {
  background: var(--primary); color: #fff;
  border: none; border-radius: 8px;
  padding: 10px 18px; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.mockup-score-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mockup-score-badge {
  width: 52px; height: 52px; background: #dcfce7;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: #166534;
}
.mockup-checks { display: flex; flex-direction: column; gap: 6px; }
.mockup-check {
  display: flex; align-items: center; gap: 8px;
  font-size: .78rem; color: var(--gray-700);
}
.mockup-check i { font-size: .85rem; }

/* ── Live Tool Cards ── */
.tool-card-live {
  border: 2px solid var(--gray-200, #e2e8f0);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tool-card-live:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.tool-feature-tag {
  display: inline-flex; align-items: center;
  background: var(--gray-100); color: var(--gray-700);
  font-size: .72rem; font-weight: 600; padding: 3px 10px;
  border-radius: 100px;
}
.tool-feature-tag .bi-check-circle-fill { color: #10b981; font-size: .7rem; }
.tool-card-cta {
  font-weight: 700; font-size: .88rem; color: var(--primary);
  display: flex; align-items: center;
}

/* ── Coming Soon Tools ── */
.tool-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  height: 100%;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #bfdbfe; }
.tool-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 16px;
}
.tool-card-title { font-weight: 700; font-size: 1rem; color: var(--dark); margin-bottom: 6px; }
.tool-card-desc { font-size: .85rem; color: var(--gray-500); line-height: 1.6; margin-bottom: 14px; }
.soon-badge {
  display: inline-block;
  background: var(--gray-100); color: var(--gray-500);
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  padding: 3px 10px; border-radius: 100px; text-transform: uppercase;
}
.paid-soon-badge {
  display: inline-block;
  background: #fef9c3; color: #854d0e;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  padding: 3px 10px; border-radius: 100px; text-transform: uppercase;
}

/* ── How It Works ── */
.how-bg { background: var(--gray-50); }
.step-card {
  text-align: center; padding: 20px;
}
.step-num {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.1rem;
  margin: 0 auto 16px;
}
.step-title { font-weight: 700; font-size: 1rem; color: var(--dark); margin-bottom: 8px; }
.step-desc { font-size: .88rem; color: var(--gray-500); line-height: 1.7; }
.step-connector {
  position: absolute; top: 26px; left: calc(50% + 40px);
  width: calc(100% - 80px); height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: .25;
}

/* ── Why Us ── */
.why-card {
  display: flex; gap: 16px; padding: 24px;
  background: var(--white); border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  transition: box-shadow .2s;
}
.why-card:hover { box-shadow: var(--shadow); }
.why-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.why-title { font-weight: 700; font-size: .95rem; color: var(--dark); margin-bottom: 4px; }
.why-desc { font-size: .83rem; color: var(--gray-500); line-height: 1.6; }

/* ── Pricing Teaser ── */
.pricing-bg {
  background: linear-gradient(160deg, #0f172a, #1e1b4b);
  color: var(--white);
}
.pricing-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: 36px;
  height: 100%;
}
.pricing-card.featured {
  background: linear-gradient(135deg, rgba(37,99,235,.3), rgba(124,58,237,.3));
  border-color: rgba(99,102,241,.5);
  position: relative;
}
.pricing-popular {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  padding: 4px 16px; border-radius: 100px; text-transform: uppercase;
  white-space: nowrap;
}
.pricing-plan { font-size: .85rem; font-weight: 600; color: #94a3b8; margin-bottom: 8px; }
.pricing-price { font-size: 2.4rem; font-weight: 800; color: var(--white); line-height: 1; }
.pricing-price span { font-size: 1rem; font-weight: 500; color: #94a3b8; }
.pricing-desc { font-size: .85rem; color: #94a3b8; margin: 10px 0 20px; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 24px; }
.pricing-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: .88rem; color: #cbd5e1; padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li i.bi-check-circle-fill { color: #34d399; }
.pricing-features li i.bi-lock-fill { color: #f59e0b; }
.btn-pricing {
  display: block; text-align: center;
  padding: 12px; border-radius: var(--radius);
  font-weight: 700; font-size: .95rem; text-decoration: none;
  transition: all .2s;
}
.btn-pricing-outline {
  border: 1px solid rgba(255,255,255,.2); color: #e2e8f0;
}
.btn-pricing-outline:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-pricing-solid {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,.4);
}
.btn-pricing-solid:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(99,102,241,.5); color: #fff; }

/* ── CTA ── */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 80px 0;
  text-align: center;
}
.cta-title { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: #fff; margin-bottom: 14px; }
.cta-sub { font-size: 1rem; color: rgba(255,255,255,.8); margin-bottom: 32px; }
.btn-cta-white {
  background: #fff; color: var(--primary);
  padding: 14px 32px; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  transition: transform .2s, box-shadow .2s;
}
.btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.2); color: var(--primary); }

/* ── Footer ── */
.footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 60px 0 30px;
}
.footer-brand { font-size: 1.2rem; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.footer-tagline { font-size: .85rem; color: #64748b; line-height: 1.6; max-width: 220px; }
.footer-heading { font-size: .8rem; font-weight: 700; color: var(--white); letter-spacing: .07em; text-transform: uppercase; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #64748b; text-decoration: none; font-size: .875rem; transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-divider { border-color: #1e293b; margin: 30px 0 20px; }
.footer-bottom { font-size: .8rem; color: #475569; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero { padding: 70px 0 60px; }
  .featured-tool { padding: 28px; }
  section { padding: 55px 0; }
}

/* ============================================================
   Inner-page CSS variables (aliases for seo-analyzer compat)
   ============================================================ */
:root {
  --border:     #cbd5e1;
  --text:       #1e293b;
  --text-muted: #64748b;
  --bg:         #f8fafc;
}

/* ============================================================
   Page Hero — About, Blog, Contact, Terms, Privacy
   ============================================================ */
.page-hero {
  background: linear-gradient(160deg, #ffffff 0%, #eff6ff 40%, #e0e7ff 100%);
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--border);
}
.page-hero .hero-title  { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--dark); }
.page-hero .hero-badge  {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-light); border: 1px solid #bfdbfe;
  color: var(--primary); font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; padding: 6px 16px; border-radius: 100px;
  text-transform: uppercase; margin-bottom: 24px;
}
.page-hero .hero-subtitle { font-size: 1rem; color: var(--text-muted); line-height: 1.7; }
.section-label {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 10px;
}

/* ============================================================
   Feature cards (About page)
   ============================================================ */
.feature-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #bfdbfe; }
.feature-icon {
  width: 48px; height: 48px; background: var(--primary-light);
  border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 1.3rem; color: var(--primary);
  margin-bottom: 14px;
}

/* ============================================================
   About page – stats, tech, roadmap
   ============================================================ */
.stat-pill {
  display: inline-flex; align-items: center; background: var(--bg);
  border: 1px solid var(--border); border-radius: 100px;
  padding: 6px 16px; font-size: .85rem; font-weight: 500;
}
.about-visual { padding: 20px; }
.about-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-stat-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s;
}
.mini-stat-card:hover { box-shadow: var(--shadow); }
.mini-stat-card i { font-size: 1.6rem; color: var(--primary); }
.mini-stat-num   { font-size: 1.4rem; font-weight: 800; color: var(--text); line-height: 1; }
.mini-stat-label { font-size: .75rem; color: var(--text-muted); margin-top: 3px; }
.tech-pill {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; transition: box-shadow .2s;
}
.tech-pill:hover { box-shadow: var(--shadow); }
.tech-icon {
  width: 40px; height: 40px; background: var(--primary-light); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.1rem; flex-shrink: 0;
}
.roadmap-item { padding: 20px; }
.roadmap-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin: 0 auto;
}
.roadmap-icon.done { background: #f0fdf4; color: #10b981; }
.roadmap-icon.soon { background: #fffbeb; color: #f59e0b; }
/* CTA box used inside inner pages (light blue, not the dark homepage strip) */
.cta-box {
  background: linear-gradient(135deg, #eff6ff, #e0e7ff);
  border-radius: var(--radius-lg); padding: 50px 30px;
  border: 1px solid #bfdbfe;
}

/* ============================================================
   Contact page
   ============================================================ */
.contact-info-box {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; height: 100%;
}
.contact-info-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-info-icon {
  width: 38px; height: 38px; background: var(--primary-light); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1rem; flex-shrink: 0;
}
.contact-success {
  background: white; border: 1px solid #bbf7d0;
  border-radius: var(--radius-lg); padding: 48px 36px; text-align: center;
}
.success-icon { font-size: 3.5rem; color: var(--success); margin-bottom: 16px; }

/* ============================================================
   Footer inner-page extras
   ============================================================ */
.footer-badge {
  font-size: .78rem; color: var(--text-muted); background: var(--bg);
  border: 1px solid var(--border); border-radius: 100px; padding: 4px 12px;
}
.footer-legal { transition: color .2s; }
.footer-legal:hover { color: var(--primary) !important; }

/* ============================================================
   Blog listing
   ============================================================ */
.blog-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all .2s; color: var(--text);
}
.blog-card:hover { box-shadow: var(--shadow); border-color: #bfdbfe; transform: translateY(-2px); }
.blog-card-featured { box-shadow: var(--shadow-sm); }
.blog-card-featured:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.blog-icon-lg {
  width: 80px; height: 80px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; margin: 0 auto;
}
.blog-card-header { padding: 24px 24px 0; }
.blog-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.blog-card-body { padding: 16px 24px; }
.blog-card-footer {
  padding: 14px 24px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.blog-category {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--primary); background: var(--primary-light);
  border-radius: 100px; padding: 3px 10px;
}
.blog-meta      { font-size: .8rem; color: var(--text-muted); }
.blog-title-lg  { font-size: 1.4rem; font-weight: 800; color: var(--text); line-height: 1.3; margin: 8px 0 10px; }
.blog-title     { font-size: 1.05rem; font-weight: 700; color: var(--text); line-height: 1.4; margin: 8px 0 10px; }
.blog-excerpt   { color: var(--text-muted); font-size: .875rem; line-height: 1.6; }
.blog-read-more { color: var(--primary); font-size: .85rem; font-weight: 600; }
.blog-cta {
  background: linear-gradient(135deg, #eff6ff, #e0e7ff);
  border: 1px solid #bfdbfe; border-radius: var(--radius-lg); padding: 28px 32px;
}

/* ============================================================
   Blog single post / article
   ============================================================ */
.article-title   { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.25; color: var(--text); }
.article-excerpt { font-size: 1.1rem; color: var(--text-muted); line-height: 1.6; margin-top: 12px; }
.author-avatar {
  width: 32px; height: 32px; background: var(--primary); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .85rem;
}
.article-body               { font-size: 1rem; line-height: 1.85; color: var(--text); }
.article-body h2            { font-size: 1.5rem; font-weight: 800; margin: 2.5rem 0 1rem; color: var(--text); }
.article-body h3            { font-size: 1.2rem; font-weight: 700; margin: 2rem 0 .75rem; color: var(--text); }
.article-body p             { margin-bottom: 1.25rem; }
.article-body ul,
.article-body ol            { margin: 0 0 1.25rem 1.5rem; padding: 0; }
.article-body li            { margin-bottom: .5rem; }
.article-body pre           {
  background: #0f172a; color: #e2e8f0; border-radius: var(--radius);
  padding: 20px; overflow-x: auto; margin: 1.5rem 0; font-size: .85rem; line-height: 1.6;
}
.article-body code:not(pre code) {
  background: #f1f5f9; color: var(--primary);
  border-radius: 4px; padding: 2px 6px; font-size: .88em;
}
.article-body a       { color: var(--primary); }
.article-body a:hover { color: var(--primary-dark); }
.article-cta {
  background: var(--primary-light); border: 1px solid #bfdbfe;
  border-radius: var(--radius); padding: 24px;
}
.article-cta-icon {
  width: 48px; height: 48px; background: var(--primary); color: white;
  border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 1.3rem; flex-shrink: 0;
}
.sidebar-box {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.sidebar-post-icon {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: .9rem;
}
.sidebar-post-link:hover .fw-semibold { color: var(--primary) !important; }

/* ============================================================
   Responsive inner pages
   ============================================================ */
@media (max-width: 768px) {
  .page-hero  { padding: 40px 0 32px; }
  .about-card-grid { grid-template-columns: 1fr 1fr; }
  .cta-box    { padding: 32px 20px; }
}
