:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #eff6ff;
  --text: #0f172a;
  --text-soft: #475569;
  --line: #dbeafe;
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --accent: #0f766e;
  --radius: 20px;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --max: 1180px;
  --gradient-hero: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 50%, #fef3c7 100%);
  --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  --shadow-hover: 0 24px 48px rgba(15, 23, 42, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.section-gap { margin-top: 2.5rem; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(219, 234, 254, 0.9);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: var(--transition);
}
.brand:hover {
  opacity: 0.9;
}
.brand-logo {
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand-tagline {
  display: none;
  font-size: 0.75rem;
  color: var(--text-soft);
  font-weight: 500;
}
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}
.menu li {
  position: relative;
}
.menu a {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  transition: var(--transition);
}
.menu a:hover,
.menu a:focus-visible {
  color: var(--primary);
}
.menu li.active a {
  color: var(--primary);
  font-weight: 700;
}
.menu li.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}
.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.button-small,
.button-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.button-small {
  background: var(--surface-muted);
  color: var(--text-soft);
  border-color: var(--line);
}
.button-small:hover {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--primary);
}
.button-primary {
  background: var(--primary);
  color: white;
}
.button-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(29, 78, 216, 0.2);
}
.button-text {
  display: inline;
}
/* Trust section */
.trust-section {
  margin: 3rem 0;
}
.trust-subtitle {
  color: var(--text-soft);
  font-size: 1.1rem;
  max-width: 700px;
  margin-top: 0.5rem;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.trust-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}
.trust-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.trust-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
}
.trust-icon svg {
  width: 32px;
  height: 32px;
  stroke: white;
}
.trust-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.trust-item p {
  color: var(--text-soft);
  line-height: 1.6;
}
.trust-extra {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--surface-muted);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  text-align: center;
}
.trust-extra a {
  color: var(--primary);
  text-decoration: underline;
}
@media (max-width: 860px) {
  .brand-tagline {
    display: none;
  }
  .menu {
    gap: 1rem;
  }
  .header-actions .button-text {
    display: none;
  }
  .button-small,
  .button-primary {
    padding: 0.6rem;
  }
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
@media (max-width: 680px) {
  .main-nav {
    display: none;
  }
  .header-inner {
    gap: 1rem;
  }
}
.hero {
  padding: 5rem 0 3rem;
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 70%);
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 1.5rem;
  align-items: stretch;
}
.surface-card,
.post-card,
.sidebar-card,
.toc-card,
.author-box,
.newsletter-cta,
.legal-card,
.category-card,
.search-shell,
.page-shell,
.ad-slot {
  background: var(--surface);
  border: 1px solid rgba(219, 234, 254, .9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.hero-card {
  background: var(--gradient-card);
  border: 1px solid rgba(219, 234, 254, .9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.hero-copy,
.hero-card,
.legal-card,
.page-shell,
.search-shell { padding: 2rem; }
.hero-copy h1 { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05; margin: .6rem 0 1rem; }
.hero-copy p { color: var(--text-soft); font-size: 1.06rem; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.5rem; }
.button, button, .button-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  padding: .9rem 1.2rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}
.button, button { background: var(--primary); color: white; }
.button-secondary { background: white; border-color: var(--line); color: var(--text); }
.cards-grid { display: grid; gap: 1.2rem; }
.cards-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.post-card { overflow: hidden; }
.post-card-image img { aspect-ratio: 16 / 9; object-fit: cover; }
.post-card-body { padding: 1.1rem 1.2rem 1.3rem; }
.post-card h3 { margin: .7rem 0 .6rem; font-size: 1.2rem; line-height: 1.25; }
.post-card p, .meta-row { color: var(--text-soft); }
.badge {
  display: inline-flex;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--primary-dark);
  font-size: .84rem;
  font-weight: 700;
}
.meta-row { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .9rem; }
.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
}
.sidebar { display: flex; flex-direction: column; gap: 1rem; }
.sidebar-card { padding: 1.2rem; }
.simple-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.simple-list small { display: block; color: var(--text-soft); margin-top: .2rem; }
.breadcrumbs { margin: 1rem 0 1.5rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; color: var(--text-soft); font-size: .92rem; }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: .5rem; }
.page-intro { padding: 2rem 0 1rem; }
.page-intro h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; margin: .6rem 0 0; }
.article-shell { padding-bottom: 3rem; }
.article-header img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.article-header { display: grid; gap: 1.1rem; }
.article-header p { color: var(--text-soft); }
.article-meta { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--text-soft); font-size: .95rem; }
.article-content {
  background: var(--surface);
  border: 1px solid rgba(219, 234, 254, .9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.article-content h2, .article-content h3 { scroll-margin-top: 6rem; }
.article-content p, .article-content li { color: #1e293b; }
.article-content ul, .article-content ol { padding-left: 1.2rem; }
.toc-card { padding: 1.4rem; margin: 1.5rem 0; }
.toc-card ol { margin: 0; padding-left: 1rem; }
.toc-card .depth-3 { margin-left: .8rem; }
.author-box {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  padding: 1.4rem;
  align-items: center;
}
.author-box img { border-radius: 50%; }
.newsletter-cta {
  padding: 3rem;
  margin: 3rem 0;
  background: linear-gradient(135deg, var(--surface-muted), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.newsletter-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}
.newsletter-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.newsletter-title {
  font-size: 2.2rem;
  line-height: 1.1;
  margin: 0;
  color: var(--text);
}
.newsletter-subtitle {
  color: var(--text-soft);
  font-size: 1.1rem;
  line-height: 1.6;
}
.newsletter-benefits {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.newsletter-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}
.newsletter-benefits svg {
  color: var(--primary);
  flex-shrink: 0;
}
.trust-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-top: 1rem;
}
.trust-note svg {
  color: var(--accent);
  flex-shrink: 0;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.newsletter-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  font: inherit;
  background: white;
  font-size: 1rem;
  transition: var(--transition);
}
.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}
.button-large {
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.form-note {
  color: var(--text-soft);
  font-size: 0.85rem;
  text-align: center;
  margin: 0;
}
.form-note a {
  color: var(--primary);
  text-decoration: underline;
}
@media (max-width: 860px) {
  .newsletter-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .newsletter-title {
    font-size: 1.8rem;
  }
}
.newsletter-form input,
.contact-form input,
.contact-form textarea,
.search-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .9rem 1rem;
  font: inherit;
  background: white;
}
.contact-form { display: grid; gap: 1rem; }
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
}
.footer-top {
  padding: 3rem 0;
}
.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.footer-site-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}
.footer-tagline {
  display: block;
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}
.footer-description {
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 320px;
}
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-soft);
  transition: var(--transition);
}
.social-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}
.footer-column-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}
.footer-links a:hover {
  color: var(--primary);
  padding-left: 0.25rem;
}
.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.copyright {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin: 0;
}
.footer-legal-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.footer-legal-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-legal-links a:hover {
  color: var(--primary);
}
.separator {
  color: var(--line);
}
@media (max-width: 980px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    align-items: center;
  }
  .footer-description {
    max-width: 500px;
  }
}
@media (max-width: 580px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}
.ad-slot {
  min-height: 140px;
  display: grid;
  place-items: center;
  color: var(--text-soft);
  padding: 1rem;
  background-image: linear-gradient(135deg, rgba(219, 234, 254, .8), rgba(255,255,255,.96));
  text-align: center;
  border-style: dashed;
}
.ad-slot-sidebar { min-height: 280px; }
.category-card { padding: 1.3rem; }
.category-card p { color: var(--text-soft); }
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
}
.search-results { display: grid; gap: 1rem; margin-top: 1rem; }
.result-item { padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: white; }
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap th, .table-wrap td { border: 1px solid var(--line); padding: .75rem; text-align: left; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Hover effects for cards */
.post-card:hover,
.surface-card:hover,
.category-card:hover,
.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
/* Improved stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: var(--transition);
}
.stat:hover {
  background: var(--surface-muted);
  border-color: var(--primary);
}
.stat strong {
  display: block;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
/* Premium button styles */
.button, button {
  background: var(--primary);
  color: white;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.button:hover, button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(29, 78, 216, 0.2);
}
.button-secondary {
  background: white;
  border-color: var(--line);
  color: var(--text);
  transition: var(--transition);
}
.button-secondary:hover {
  border-color: var(--primary);
  background: var(--surface-muted);
  transform: translateY(-2px);
}
/* Trust badges */
.trust-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2rem 0;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
}
.trust-badge svg {
  width: 16px;
  height: 16px;
  fill: var(--primary);
}
/* Sidebar ad sticky */
.sidebar-ad {
  position: sticky;
  top: 120px;
  margin-left: 2rem;
}
/* Homepage layout */
.home-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}
.home-main {
  width: 100%;
}
.home-sidebar {
  position: sticky;
  top: 120px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sidebar-trust {
  flex-direction: column;
}
@media (max-width: 980px) {
  .hero-grid,
  .main-grid,
  .footer-grid,
  .newsletter-cta,
  .cards-grid-3,
  .cards-grid-4,
  .stats-strip,
  .home-container { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .author-box { grid-template-columns: 1fr; text-align: center; }
  .home-sidebar {
    display: none;
  }
}
@media (max-width: 760px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .menu { gap: .8rem; }
  .hero-copy, .hero-card, .article-content, .page-shell, .legal-card, .search-shell { padding: 1.2rem; }
}
