:root {
  --bg: #eef2f7;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-faint: #64748b;
  --line: #dbe3ee;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #dbeafe;
  --dark: #0b1220;
  --dark-2: #121a2d;
  --success: #15803d;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.06);
  --radius: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1220px;
  --header-height: 88px;
  --transition: 0.22s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--brand-dark);
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.site-main {
  min-height: calc(100vh - var(--header-height));
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.logo:hover {
  color: #fff;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
}

.logo-text {
  font-size: 1.25rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a {
  color: rgba(255,255,255,0.88);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* Typography */

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
}

h3 {
  font-size: 1.24rem;
}

p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 0.79rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading > p {
  max-width: 420px;
}

/* Buttons */

.btn,
.btn-affiliate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 0.96rem;
  box-shadow: var(--shadow-soft);
}

.btn-primary,
.btn-affiliate {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover,
.btn-affiliate:hover {
  color: #fff;
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  background: #f8fbff;
  color: var(--ink);
}

.btn-block {
  width: 100%;
}

/* Hero */

.hero {
  background:
    radial-gradient(circle at top left, rgba(37,99,235,0.24), transparent 30%),
    radial-gradient(circle at top right, rgba(59,130,246,0.12), transparent 22%),
    linear-gradient(180deg, #0c1323 0%, #111a30 100%);
  color: #fff;
  padding: 82px 0 76px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  color: #fff;
  margin-bottom: 18px;
}

.hero-copy p {
  color: rgba(255,255,255,0.8);
  font-size: 1.08rem;
  max-width: 700px;
  margin-bottom: 24px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.badge {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.94);
  font-weight: 700;
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.hero-panel-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}

.hero-panel-card h3 {
  color: #fff;
  margin-bottom: 10px;
}

.hero-panel-card p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 0;
}

.hero-panel-label {
  display: inline-block;
  margin-bottom: 12px;
  color: #a5c8ff;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Cards */

.post-grid,
.product-grid,
.category-grid {
  display: grid;
  gap: 22px;
}

.post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.post-card,
.product-card,
.category-card,
.empty-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.post-card:hover,
.product-card:hover,
.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.post-card-media img,
.category-card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-card-body,
.category-card-body {
  padding: 22px;
}

.post-card-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-card h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
}

.post-card p {
  margin-bottom: 14px;
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink-faint);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.product-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px;
  margin-bottom: 16px;
}

.product-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.product-card .price {
  color: var(--success);
  font-weight: 800;
  margin-bottom: 14px;
}

.category-card {
  position: relative;
}

.category-card-body {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--brand-dark);
  font-weight: 900;
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.category-link {
  color: var(--brand-dark);
  font-weight: 800;
}

/* Home editorial banner */

.editorial-banner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(180deg, #0d1526 0%, #121d33 100%);
  color: #fff;
  border-radius: 30px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.editorial-banner h2 {
  color: #fff;
}

.editorial-banner p {
  color: rgba(255,255,255,0.78);
}

.editorial-banner-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 24px;
}

.editorial-banner-card strong {
  display: block;
  color: #fff;
  margin-bottom: 12px;
}

.editorial-banner-card ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.82);
}

.empty-box {
  padding: 26px;
}

/* Article */

.article-shell {
  padding: 44px 0 70px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.article-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  padding: 34px;
}

.article-tag {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.article-header h1 {
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink-faint);
  font-size: 0.94rem;
  margin-bottom: 16px;
}

.article-deck {
  font-size: 1.08rem;
  max-width: 850px;
  color: var(--ink-soft);
}

.article-cover {
  margin: 24px 0 28px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 8.4;
  object-fit: cover;
}

.article-intro {
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  border: 1px solid #dbeafe;
  margin-bottom: 28px;
}

.article-intro p {
  font-size: 1.06rem;
  margin-bottom: 0;
}

.decision-box,
.buy-box,
.context-box,
.toc-box,
.comparison-box,
.faq-section,
.related-section,
.mid-cta-box {
  margin-top: 34px;
}

.decision-box {
  background: linear-gradient(180deg, #0c1323 0%, #121d33 100%);
  color: #fff;
  padding: 28px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.decision-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.decision-head h2 {
  color: #fff;
}

.decision-head p {
  color: rgba(255,255,255,0.78);
  max-width: 420px;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.decision-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 18px;
}

.decision-item h3 {
  color: #fff;
  margin-bottom: 8px;
}

.decision-item p {
  color: rgba(255,255,255,0.78);
  margin-bottom: 0;
}

.decision-badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.buy-box-head,
.section-heading {
  margin-bottom: 18px;
}

.context-box,
.toc-box,
.comparison-box {
  padding: 28px;
  border-radius: 24px;
  background: #fbfdff;
  border: 1px solid var(--line);
}

.summary {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.summary li a {
  display: block;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font-weight: 700;
}

.summary li a:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.facts-section {
  margin-top: 28px;
}

.fact-block {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.fact-block + .fact-block {
  margin-top: 18px;
}

.fact-number {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--brand-dark);
  font-weight: 900;
  font-size: 1.1rem;
}

.fact-copy h2 {
  font-size: 1.38rem;
  margin-bottom: 10px;
}

.mid-cta-box {
  padding: 26px;
  border-radius: 26px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  border: 1px solid #dbeafe;
}

.comparison-table {
  display: grid;
  gap: 10px;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 180px 1.2fr;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  align-items: center;
}

.comparison-head {
  background: #eff6ff;
  border-color: #dbeafe;
  font-weight: 800;
  color: var(--ink);
}

.faq-item {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.faq-item + .faq-item {
  margin-top: 14px;
}

.faq-item h3 {
  margin-bottom: 8px;
}

.article-sidebar {
  min-width: 0;
}

.sidebar-card {
  position: sticky;
  top: 104px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.sidebar-card + .sidebar-card {
  margin-top: 18px;
}

.sidebar-cta {
  background: linear-gradient(180deg, #0d1526 0%, #131d33 100%);
  border-color: rgba(255,255,255,0.06);
}

.sidebar-cta h3 {
  color: #fff;
}

.sidebar-cta p {
  color: rgba(255,255,255,0.78);
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li + li {
  margin-top: 12px;
}

.sidebar-list a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
}

.sidebar-list a:hover {
  background: #eff6ff;
  border-color: #dbeafe;
}

/* Footer */

.site-footer {
  background: #0b1220;
  color: rgba(255,255,255,0.82);
  margin-top: 48px;
}

.footer-inner {
  padding: 54px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 900;
  margin-bottom: 14px;
}

.footer-description {
  color: rgba(255,255,255,0.72);
  margin-bottom: 16px;
}

.affiliate-disclosure {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.84);
}

.footer-nav-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.footer-nav-block h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: rgba(255,255,255,0.72);
}

.footer-nav a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255,255,255,0.58);
  font-size: 0.92rem;
}

/* Helpers */

.mb-0 {
  margin-bottom: 0;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

/* Responsive */

@media (max-width: 1120px) {
  .hero-inner,
  .editorial-banner,
  .footer-top,
  .article-layout,
  .decision-head,
  .section-heading {
    grid-template-columns: 1fr;
    display: grid;
    align-items: start;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-sidebar .sidebar-card {
    position: static;
    top: auto;
  }
}

@media (max-width: 920px) {
  .post-grid,
  .product-grid,
  .decision-grid {
    grid-template-columns: 1fr 1fr;
  }

  .header-inner {
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }

  .site-header {
    position: static;
  }

  .comparison-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(100% - 20px, var(--container));
  }

  .hero {
    padding: 56px 0 52px;
  }

  .hero-actions,
  .footer-bottom {
    flex-direction: column;
  }

  .post-grid,
  .product-grid,
  .category-grid,
  .decision-grid,
  .footer-nav-wrap {
    grid-template-columns: 1fr;
  }

  .article-box,
  .context-box,
  .toc-box,
  .comparison-box,
  .decision-box,
  .mid-cta-box,
  .sidebar-card,
  .post-card-body,
  .category-card-body {
    padding: 18px;
  }

  .fact-block {
    grid-template-columns: 1fr;
  }

  .fact-number {
    width: 52px;
    height: 52px;
  }

  .main-nav {
    justify-content: center;
  }

  .main-nav a {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
}