:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --primary: #4f46e5;
  --secondary: #7c3aed;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --accent: #10b981;
  --border: #e2e8f0;
  --shadow-soft: 0 4px 20px -2px rgba(79, 70, 229, 0.1);
  --shadow-hover:
    0 10px 25px -5px rgba(79, 70, 229, 0.15),
    0 8px 10px -6px rgba(79, 70, 229, 0.1);
  --shadow-button: 0 4px 14px 0 rgba(79, 70, 229, 0.3);
  --gradient-main: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-soft:
    linear-gradient(135deg, rgba(224, 231, 255, 0.92), rgba(243, 232, 255, 0.92));
  --gradient-dark: linear-gradient(135deg, #312e81 0%, #0f172a 100%);
  --container-width: 1280px;
  --radius-card: 24px;
  --radius-md: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.08), transparent 30%),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.08), transparent 28%),
    var(--bg);
}

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

svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-root {
  position: relative;
  overflow: clip;
}

.background-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(72px);
  pointer-events: none;
  opacity: 0.48;
}

.orb-left {
  left: -140px;
  top: 120px;
  width: 360px;
  height: 360px;
  background: rgba(79, 70, 229, 0.32);
}

.orb-right {
  right: -120px;
  top: 380px;
  width: 420px;
  height: 420px;
  background: rgba(124, 58, 237, 0.24);
}

.container {
  width: min(calc(100% - 32px), var(--container-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(248, 250, 252, 0.74);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.nav-wrap,
.hero-panel-top,
.metric-row,
.insight-metrics,
.article-navigation,
.footer-grid,
.visual-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-wrap {
  min-height: 78px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--gradient-main);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: var(--shadow-button);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 0.98rem;
}

.brand-text span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 600;
  transition: all 200ms ease-out;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text-main);
  background: rgba(241, 245, 249, 0.92);
}

.nav-link-active {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: var(--shadow-button);
}

.hero,
.section {
  position: relative;
  padding: 72px 0;
}

.hero-grid,
.split-grid,
.article-layout,
.mini-card-grid,
.feature-grid,
.stats-grid,
.related-grid,
.visual-grid,
.check-list {
  display: grid;
  gap: 18px;
}

.hero-grid {
  align-items: center;
}

.eyebrow-pill,
.mini-card span,
.section-heading span,
.cta-label,
.insight-tag,
.sidebar-label,
.article-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow-pill {
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(199, 210, 254, 0.9);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.icon-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  margin-top: 20px;
  max-width: 11ch;
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  line-height: 1.08;
}

.hero-copy h1::after {
  content: "";
  display: block;
  width: 180px;
  height: 10px;
  margin-top: 18px;
  border-radius: 999px;
  background: var(--gradient-main);
}

.hero-copy p,
.section-heading p,
.feature-card p,
.insight-card p,
.article-card p,
.related-card p,
.site-footer p {
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-copy p {
  max-width: 640px;
  margin: 24px 0 0;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 200ms ease-out;
}

.button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
}

.button-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: var(--shadow-button);
}

.button-primary:hover,
.button-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 10px 24px rgba(79, 70, 229, 0.24),
    0 4px 14px rgba(79, 70, 229, 0.16);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  color: var(--text-main);
  box-shadow: var(--shadow-soft);
}

.button-secondary:hover,
.button-secondary:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-1px);
}

.button-light {
  background: #fff;
  color: #111827;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.button:focus-visible,
.nav-link:focus-visible,
.text-link:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(99, 102, 241, 0.3),
    0 0 0 5px rgba(255, 255, 255, 0.92);
}

.hero-panel-wrap {
  perspective: 2000px;
}

.hero-panel,
.feature-card,
.insight-card,
.stat-card,
.sidebar-card,
.article-card,
.related-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  padding: 28px;
  transform: rotateX(6deg) rotateY(-12deg);
  transform-style: preserve-3d;
  transition: transform 240ms ease-out, box-shadow 240ms ease-out;
}

.hero-panel:hover {
  transform: rotateX(3deg) rotateY(-8deg) translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.hero-panel-top {
  color: var(--text-muted);
  font-weight: 700;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.12);
}

.metric-row {
  margin-top: 24px;
  flex-wrap: wrap;
}

.metric-row small,
.visual-grid small {
  display: block;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.metric-row strong,
.stat-card strong,
.insight-metrics strong,
.visual-panel strong {
  font-size: 1.8rem;
  line-height: 1.1;
}

.mini-card-grid {
  margin-top: 24px;
}

.mini-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--gradient-soft);
  border: 1px solid rgba(199, 210, 254, 0.76);
}

.mini-card p {
  margin: 10px 0 0;
  font-weight: 700;
  color: var(--text-main);
}

.section-heading {
  max-width: 720px;
}

.section-heading h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.1;
}

.section-heading p {
  margin-top: 18px;
}

.feature-grid,
.related-grid {
  margin-top: 34px;
}

.feature-card,
.stat-card,
.related-card {
  padding: 24px;
  transition: all 200ms ease-out;
}

.feature-card:hover,
.stat-card:hover,
.related-card:hover,
.sidebar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature-card:nth-child(2) {
  transform: translateY(10px);
}

.feature-card:nth-child(2):hover {
  transform: translateY(6px);
}

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  background: rgba(224, 231, 255, 0.95);
  color: var(--primary);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.12);
}

.feature-card h3,
.insight-card h3,
.related-card h3 {
  margin-top: 18px;
  font-size: 1.28rem;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(224, 231, 255, 0.24));
}

.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(226, 232, 240, 0.82);
  box-shadow: var(--shadow-soft);
  color: var(--text-main);
  font-weight: 600;
}

.check-item .icon-inline {
  color: var(--primary);
}

.insight-card {
  padding: 28px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(238, 242, 255, 0.92)),
    var(--surface);
}

.insight-metrics {
  margin-top: 24px;
}

.insight-metrics div {
  flex: 1;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(199, 210, 254, 0.74);
}

.insight-metrics span,
.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
}

.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card {
  text-align: center;
}

.cta-banner {
  margin-top: 28px;
  padding: 32px;
  border-radius: 28px;
  background: var(--gradient-dark);
  color: #fff;
  display: grid;
  gap: 20px;
  align-items: center;
}

.cta-banner h2 {
  margin-top: 10px;
  max-width: 760px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.16;
}

.article-sidebar {
  display: grid;
  gap: 18px;
  align-self: start;
}

.sidebar-card {
  padding: 22px;
  transition: all 200ms ease-out;
}

.sidebar-meta,
.related-meta,
.article-kicker,
.sidebar-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-meta {
  margin-top: 16px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-weight: 600;
}

.sidebar-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.sidebar-list li {
  color: var(--text-main);
  font-weight: 600;
}

.article-card {
  padding: 30px;
}

.article-card h2 {
  margin-top: 18px;
  max-width: 16ch;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.08;
}

.article-lead {
  margin-top: 20px;
  font-size: 1.1rem;
}

.article-visual {
  margin-top: 28px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(49, 46, 129, 0.96), rgba(124, 58, 237, 0.92));
  color: #fff;
  transform: rotateX(4deg) rotateY(-8deg);
  box-shadow: 0 20px 36px rgba(79, 70, 229, 0.22);
}

.visual-panel span {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.visual-grid {
  margin-top: 20px;
}

.visual-grid div {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.visual-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.article-body {
  margin-top: 34px;
}

.article-body h3 {
  margin-top: 28px;
  font-size: 1.32rem;
}

.article-body blockquote {
  margin: 28px 0 0;
  padding: 22px 24px;
  border-left: 4px solid var(--primary);
  border-radius: 0 18px 18px 0;
  background: rgba(238, 242, 255, 0.88);
  color: #312e81;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.7;
}

.article-navigation {
  margin-top: 36px;
  flex-wrap: wrap;
}

.text-link {
  color: var(--primary);
  font-weight: 700;
}

.text-link svg,
.button svg {
  transition: transform 200ms ease-out;
}

.text-link:hover svg,
.text-link:focus-visible svg,
.button:hover svg,
.button:focus-visible svg {
  transform: translateX(4px);
}

.related-meta {
  color: var(--text-muted);
  font-weight: 700;
}

.site-footer {
  padding: 28px 0 36px;
}

.footer-grid {
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(226, 232, 240, 0.92);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text-muted);
  font-weight: 600;
}

@media (min-width: 768px) {
  .container {
    width: min(calc(100% - 48px), var(--container-width));
  }

  .feature-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visual-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .hero,
  .section {
    padding: 88px 0;
  }

  .hero-grid,
  .split-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cta-banner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .article-layout {
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 767px) {
  .brand-text span {
    display: none;
  }

  .nav-links {
    gap: 4px;
    padding: 4px;
  }

  .nav-link {
    padding: 0 12px;
  }

  .hero-panel,
  .feature-card:nth-child(2),
  .article-visual {
    transform: none;
  }

  .hero-copy h1,
  .article-card h2 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
