:root {
  --bg: #f8f9fb;
  --bg-elevated: #ffffff;
  --text: #12151a;
  --text-muted: #5c6573;
  --border: #e3e8ef;
  --accent: #3d5570;
  --accent-soft: rgba(61, 85, 112, 0.1);
  --accent-hover: #2f4358;
  --hero-glow: rgba(61, 85, 112, 0.08);
  --shadow: 0 12px 40px rgba(18, 21, 26, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 920px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

html:has(#theme-dark:checked),
html[data-theme="dark"] {
  --bg: #0d1117;
  --bg-elevated: #161b22;
  --text: #eef2f7;
  --text-muted: #9aa4b2;
  --border: #2a3140;
  --accent: #8ba3bd;
  --accent-soft: rgba(139, 163, 189, 0.12);
  --accent-hover: #a8bdd3;
  --hero-glow: rgba(139, 163, 189, 0.12);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.theme-switch {
  position: fixed;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background 0.25s ease, color 0.25s ease;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  z-index: 1000;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav-switch {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-menu-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.nav-icon-close {
  display: none;
}

#nav-toggle:checked ~ .nav-menu-btn .nav-icon-open {
  display: none;
}

#nav-toggle:checked ~ .nav-menu-btn .nav-icon-close {
  display: block;
}

.site-nav .nav-download {
  display: none;
}

.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.site-nav a:not(.btn) {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn)[aria-current="page"] {
  color: var(--text);
  background: var(--accent-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lang-menu {
  position: relative;
  flex-shrink: 0;
}

.lang-toggle,
.theme-toggle {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 0;
  flex-shrink: 0;
  text-decoration: none;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.lang-toggle:hover,
.lang-menu.is-open .lang-toggle,
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 148px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 60;
}

.lang-dropdown[hidden] {
  display: none;
}

.lang-menu.is-open .lang-dropdown {
  display: block;
}

.lang-dropdown a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}

.lang-dropdown a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.lang-dropdown a.is-current {
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  pointer-events: none;
}

.lang-toggle svg,
.theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.lang-toggle svg circle,
.lang-toggle svg path,
.lang-toggle svg line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

html:has(#theme-dark:checked) .theme-toggle .icon-sun,
html[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

html:has(#theme-dark:checked) .theme-toggle .icon-moon,
html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.media-shot {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: radial-gradient(circle at 50% 0%, var(--hero-glow), transparent 55%), var(--bg-elevated);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.media-shot img {
  width: 100%;
  height: auto;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--text);
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.hero {
  text-align: center;
  padding: 32px 0 24px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}

.hero-shot {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: radial-gradient(circle at 50% 0%, var(--hero-glow), transparent 55%), var(--bg-elevated);
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow-anchor: none;
}

.carousel-viewport {
  display: grid;
  width: 100%;
  overflow: hidden;
}

.carousel-slide {
  grid-area: 1 / 1;
  width: 100%;
  margin: 0;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.85s ease-in-out;
}

.hero-carousel:not(:has(#hero-slide-2:checked)):not(:has(#hero-slide-3:checked)) .carousel-slide:nth-child(1),
.hero-carousel:has(#hero-slide-1:checked) .carousel-slide:nth-child(1),
.hero-carousel:has(#hero-slide-2:checked) .carousel-slide:nth-child(2),
.hero-carousel:has(#hero-slide-3:checked) .carousel-slide:nth-child(3) {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-slide {
    transition: none;
  }
}

.carousel-slide img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: filter 0.35s ease;
}

.carousel-radio {
  position: fixed;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
  top: auto;
  scroll-margin: 0;
}

.carousel-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 40%, transparent);
}

.carousel-btn {
  position: static;
  transform: none;
  z-index: 1;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.hero-carousel:not(:has(#hero-slide-2:checked)):not(:has(#hero-slide-3:checked)) .show-on-slide-1,
.hero-carousel:has(#hero-slide-1:checked) .show-on-slide-1 {
  display: inline-flex;
}

.hero-carousel:has(#hero-slide-2:checked) .show-on-slide-1 {
  display: none;
}

.hero-carousel:has(#hero-slide-2:checked) .show-on-slide-2 {
  display: inline-flex;
}

.hero-carousel:has(#hero-slide-3:checked) .show-on-slide-1 {
  display: none;
}

.hero-carousel:has(#hero-slide-3:checked) .show-on-slide-3 {
  display: inline-flex;
}

.hero-carousel:has(#hero-slide-1:checked) .show-on-slide-2,
.hero-carousel:has(#hero-slide-1:checked) .show-on-slide-3 {
  display: none;
}

.carousel-slide figcaption {
  padding: 10px 14px 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 40%, transparent);
}

.carousel-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.carousel-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-muted) 45%, transparent);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.hero-carousel:not(:has(#hero-slide-2:checked)):not(:has(#hero-slide-3:checked)) .carousel-dot[for="hero-slide-1"],
.hero-carousel:has(#hero-slide-1:checked) .carousel-dot[for="hero-slide-1"],
.hero-carousel:has(#hero-slide-2:checked) .carousel-dot[for="hero-slide-2"],
.hero-carousel:has(#hero-slide-3:checked) .carousel-dot[for="hero-slide-3"] {
  background: var(--accent);
  transform: scale(1.15);
}

.carousel-dot:hover {
  background: var(--accent);
}

.hero-shot img {
  transition: filter 0.35s ease;
}

html:has(#theme-dark:checked) .hero-shot img,
html[data-theme="dark"] .hero-shot img,
html:has(#theme-dark:checked) .media-shot img,
html[data-theme="dark"] .media-shot img,
html:has(#theme-dark:checked) .article-body img,
html[data-theme="dark"] .article-body img {
  filter: brightness(0.72) contrast(0.94) saturate(0.92);
}

.section {
  margin-top: 64px;
}

.section-head {
  margin: 0 auto 28px;
  max-width: 640px;
  text-align: center;
}

.section-features {
  margin-top: 72px;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 22px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  min-height: 100%;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.feature-card code {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  text-align: center;
}

.section-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.6;
}

.section-themes {
  margin-top: 72px;
  padding: 40px 32px 36px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, var(--accent-soft) 0%, transparent 42%),
    var(--bg-elevated);
  text-align: center;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.theme-card {
  padding: 20px 18px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 55%, var(--bg-elevated));
  text-align: center;
}

.theme-card-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.theme-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.theme-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.theme-card code {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.theme-shot {
  margin: 0 0 24px;
}

.theme-shot figcaption {
  padding: 10px 14px 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 40%, transparent);
}

.theme-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.section-intro + .grid,
.section-intro + .compare-table-wrap,
.section-intro + .post-list {
  margin-top: 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.compare-table th,
.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.compare-table th {
  background: var(--accent-soft);
  font-weight: 600;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.blog-hero {
  margin-bottom: 36px;
}

.blog-hero h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.blog-hero p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0;
  font-size: 1.05rem;
}

.post-list {
  display: grid;
  gap: 18px;
}

.post-card {
  display: grid;
  gap: 10px;
  padding: 22px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.post-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.post-card h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.post-card p {
  margin: 0;
  color: var(--text-muted);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.post-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.article-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.article-intro {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.article-body h2 {
  font-size: 1.35rem;
  margin: 36px 0 12px;
  letter-spacing: -0.02em;
}

.article-body h3 {
  font-size: 1.08rem;
  margin: 24px 0 8px;
}

.article-body p,
.article-body li {
  color: var(--text-muted);
}

.article-body ul,
.article-body ol {
  padding-left: 1.25rem;
}

.article-body blockquote {
  margin: 24px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 6px;
}

.article-cta {
  margin-top: 48px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--accent-soft), transparent 60%), var(--bg-elevated);
  text-align: center;
}

.article-cta h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.article-cta p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 20px 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .site-header-inner {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 10px;
  }

  .brand {
    flex: 1;
    min-width: 0;
  }

  .header-actions {
    order: 2;
  }

  .header-download {
    display: none;
  }

  .nav-menu-btn {
    display: inline-flex;
    order: 3;
  }

  .site-nav {
    display: none;
    order: 4;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
  }

  #nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .site-nav a:not(.btn) {
    display: block;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    text-align: left;
  }

  .site-nav .nav-download {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }

  .hero {
    padding-top: 20px;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }

  .hero-lead {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

  .hero-cta .btn {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .page {
    padding: 24px 16px 64px;
  }

  .section {
    margin-top: 48px;
  }

  .section-features,
  .section-themes {
    margin-top: 56px;
  }

  .section-themes {
    padding: 24px 16px 20px;
  }

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

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

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-controls {
    gap: 12px;
    padding: 10px 12px;
  }

  .btn {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .post-card {
    padding: 18px 16px;
  }

  .compare-table {
    font-size: 0.84rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 10px 10px;
  }

  .article-header h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .blog-hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.3rem);
  }
}

@media (max-width: 640px) {
  .page {
    padding-top: 24px;
  }
}
