:root {
  --bg: #06060f;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.09);
  --text: rgba(255, 255, 255, 0.9);
  --muted: rgba(255, 255, 255, 0.62);
  --soft: rgba(255, 255, 255, 0.36);
  --accent: #a78bfa;
  --blue: #60a5fa;
  --pink: #f472b6;
  --green: #34d399;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(124, 58, 237, 0.24), transparent 28%),
    radial-gradient(circle at 90% 15%, rgba(37, 99, 235, 0.2), transparent 24%),
    radial-gradient(circle at 50% 95%, rgba(236, 72, 153, 0.13), transparent 30%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 22px 72px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0 42px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--white);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 42px rgba(37, 99, 235, 0.22);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 36px;
  align-items: end;
  padding: 36px 0 58px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 850;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  color: var(--white);
}

.hero-copy {
  margin: 24px 0 0;
  max-width: 710px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.insight-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035));
  border: 1px solid var(--border);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.insight-card:before {
  content: "";
  position: absolute;
  inset: -80px -70px auto auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.32), transparent 65%);
}

.insight-card strong {
  display: block;
  color: var(--white);
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.insight-card span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.65;
}

.topic-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.topic-strip a,
.tag {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 20px 0 20px;
}

.section-title h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-title p {
  margin: 0;
  max-width: 460px;
  color: var(--muted);
  line-height: 1.7;
}

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

.post-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.44);
  background: var(--panel-strong);
}

.post-card h2,
.post-card h3 {
  margin: 16px 0 12px;
  color: var(--white);
  font-size: 23px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
  font-size: 15px;
}

.post-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--soft);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.read-more {
  margin-top: auto;
  padding-top: 22px;
  color: #c4b5fd;
  font-weight: 850;
  font-size: 14px;
}

.article {
  display: grid;
  grid-template-columns: minmax(0, 740px) minmax(260px, 1fr);
  gap: 34px;
  align-items: start;
}

.article-main {
  padding: clamp(24px, 4vw, 42px);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
}

.article-main h1 {
  font-size: clamp(36px, 5.5vw, 62px);
}

.article-main h2 {
  margin: 40px 0 12px;
  color: var(--white);
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.article-main h3 {
  margin: 28px 0 10px;
  color: var(--white);
  font-size: 20px;
}

.article-main p,
.article-main li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.86;
}

.article-main ul,
.article-main ol {
  padding-left: 22px;
}

.article-main li {
  margin-bottom: 10px;
}

.lead {
  margin-top: 22px;
  font-size: 19px !important;
  color: rgba(255, 255, 255, 0.72) !important;
}

.toc,
.cta-panel {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
}

.toc {
  position: sticky;
  top: 22px;
}

.toc h2,
.cta-panel h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

.toc a {
  display: block;
  padding: 9px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.45;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.toc a:hover { color: var(--white); }

.cta-panel {
  margin-top: 18px;
}

.cta-panel p {
  color: var(--muted);
  line-height: 1.72;
}

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

.feature-list div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.feature-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
}

.footer {
  margin-top: 70px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--soft);
  font-size: 13px;
}

@media (max-width: 920px) {
  .hero,
  .article {
    grid-template-columns: 1fr;
  }

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

  .toc {
    position: static;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 22px 16px 54px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 28px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }

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

  .insight-card {
    padding: 22px;
  }
}
