:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #f0f3fb;
  --text: #0f172a;
  --muted: #5b6475;
  --primary: #1d5cf2;
  --accent: #12c2e9;
  --accent-2: #f18f01;
  --border: #e5e7ef;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --space: clamp(16px, 1.2vw, 24px);
  --max-width: 1280px;
  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  color: var(--muted);
}

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

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

.site-content {
  display: block;
}

.section {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: calc(var(--space) * 3) var(--space);
}

.section--narrow {
  width: min(860px, 100%);
}

.section--center {
  text-align: center;
}

.section--split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space);
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: calc(var(--space) * 3) var(--space);
}

.section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space);
  margin-bottom: calc(var(--space) * 1.5);
}

.section__header h1,
.section__header h2,
.section__header h3,
.hero h1 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 6px 0 0;
}

.section__description {
  max-width: 640px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0;
}

h1 {
  font-size: clamp(34px, 3vw, 46px);
}

h2 {
  font-size: clamp(26px, 2.4vw, 34px);
}

h3 {
  font-size: clamp(20px, 1.8vw, 26px);
}

.lead {
  font-size: 18px;
  max-width: 640px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.button--primary {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: var(--shadow);
}

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

.button--ghost {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--primary);
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 600;
  font-size: 12px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  display: inline-block;
  margin: 0 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(246, 247, 251, 0.8);
  border-bottom: 1px solid rgba(229, 231, 239, 0.9);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow);
  background: rgba(246, 247, 251, 0.95);
}

.site-header__inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: var(--space);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--space);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.brand__mark {
  font-family: var(--font-display);
  font-size: 20px;
}

.brand__tagline {
  font-size: 12px;
  color: var(--muted);
}

.primary-nav .menu {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.primary-nav a {
  padding: 10px 0;
  font-weight: 600;
  color: var(--text);
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: auto;
  border-radius: 2px;
  background: var(--text);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__icon::before {
  top: -6px;
}

.nav-toggle__icon::after {
  top: 6px;
}

.nav-toggle.is-active .nav-toggle__icon {
  background: transparent;
}

.nav-toggle.is-active .nav-toggle__icon::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle__icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.header-cta {
  justify-self: end;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow);
}

.hero {
  width: min(100%, var(--max-width));
  margin: calc(var(--space) * 3) auto;
  padding: calc(var(--space) * 2) var(--space);
  border-radius: 28px;
  background: radial-gradient(circle at 15% 20%, rgba(18, 194, 233, 0.15), transparent 25%),
    radial-gradient(circle at 80% 0%, rgba(29, 92, 242, 0.18), transparent 30%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: calc(var(--space) * 2);
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
}

.hero__visual {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(29, 92, 242, 0.1), rgba(18, 194, 233, 0.18));
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__visual--placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: repeating-linear-gradient(
    135deg,
    rgba(29, 92, 242, 0.08),
    rgba(29, 92, 242, 0.08) 10px,
    rgba(18, 194, 233, 0.08) 10px,
    rgba(18, 194, 233, 0.08) 20px
  );
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: calc(var(--space) * 1.2);
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card__thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  overflow: hidden;
}

.card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__thumb--placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(29, 92, 242, 0.12), rgba(18, 194, 233, 0.12));
}

.card__body {
  padding: var(--space);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.card__title {
  margin: 4px 0 0;
  font-size: 20px;
}

.card__excerpt {
  margin: 0;
  color: var(--muted);
}

.card__link {
  margin-top: auto;
  font-weight: 700;
  color: var(--primary);
}

.pagination,
.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.pagination .page-numbers,
.nav-links a {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
}

.pagination .current {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
}

.panel {
  padding: calc(var(--space) * 2);
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel--accent {
  background: radial-gradient(circle at 12% 20%, rgba(18, 194, 233, 0.14), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(29, 92, 242, 0.16), transparent 35%),
    #0f172a;
  color: #f8fbff;
}

.panel--accent p {
  color: rgba(248, 251, 255, 0.7);
}

.panel--ghost {
  background: var(--surface-soft);
  border-style: dashed;
}

.article {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: calc(var(--space) * 3) var(--space);
}

.article__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
}

.article__hero {
  margin-top: 10px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article__content {
  margin-top: 20px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: calc(var(--space) * 2);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.04);
}

.article__content h2,
.article__content h3 {
  margin-top: 24px;
}

.article__content img {
  border-radius: 16px;
}

.article__footer {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space);
  flex-wrap: wrap;
}

.article__share {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.article__nav {
  width: 100%;
}

.article__nav .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.article__nav a {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.comment {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.comment-meta {
  font-weight: 600;
}

.comments__title {
  margin-top: 30px;
}

.site-footer {
  margin-top: calc(var(--space) * 4);
  background: #0f172a;
  color: #e8ecf9;
  padding: calc(var(--space) * 3) var(--space);
}

.site-footer .brand__tagline {
  color: rgba(232, 236, 249, 0.8);
}

.footer-cta {
  width: min(100%, var(--max-width));
  margin: 0 auto calc(var(--space) * 2);
  padding: calc(var(--space) * 2);
  border-radius: 24px;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space);
  flex-wrap: wrap;
}

.footer-cta p {
  color: rgba(255, 255, 255, 0.8);
}

.footer-cta__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-grid {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space);
  align-items: start;
}

.footer-menu .menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.footer-menu a {
  color: rgba(232, 236, 249, 0.8);
}

.footer-widgets {
  color: rgba(232, 236, 249, 0.8);
}

.footer-widget__title {
  color: #fff;
  margin-bottom: 10px;
}

.footer-bottom {
  width: min(100%, var(--max-width));
  margin: calc(var(--space) * 2) auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(232, 236, 249, 0.8);
}

.back-to-top {
  color: #fff;
  font-weight: 600;
}

.wp-caption {
  text-align: center;
}

@media (max-width: 900px) {
  .site-header__inner {
    grid-template-columns: 1fr auto auto;
  }

  .primary-nav {
    display: none;
    grid-column: 1 / -1;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav .menu {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
  }

  .nav-toggle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }

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

  .section__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

@media (min-width: 1100px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
