:root {
  color-scheme: dark;
  --bg: #000;
  --ink: #f5f5f7;
  --muted: rgba(245, 245, 247, 0.72);
  --faint: rgba(245, 245, 247, 0.5);
  --line: rgba(245, 245, 247, 0.14);
  --panel: rgba(255, 255, 255, 0.055);
  --blue: #8fb7ff;
  --mint: #d9fff5;
  --font:
    -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: #000;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a,
button {
  font: inherit;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 34px);
  padding: 0 22px;
  background: rgba(20, 20, 22, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(245, 245, 247, 0.72);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.site-nav a {
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: #fff;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-weight: 760;
}

.mark img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

main {
  padding-top: 44px;
}

.blog-hero,
.blog-section,
.article-hero,
.article-layout,
.related-posts,
.final-cta {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

.blog-hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 44px;
  align-items: center;
  padding: clamp(74px, 9vw, 130px) 0 58px;
}

.blog-copy {
  position: relative;
  z-index: 2;
}

.kicker {
  margin: 0 0 14px;
  color: rgba(245, 245, 247, 0.62);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(58px, 8.2vw, 104px);
  line-height: 0.92;
  font-weight: 790;
}

.gradient-text {
  background: linear-gradient(105deg, #fff 8%, var(--mint) 46%, var(--blue) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.36;
}

.hero-visual {
  position: relative;
  min-height: 390px;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 72% 0%, rgba(129, 180, 255, 0.22), transparent 42%),
    radial-gradient(circle at 0% 70%, rgba(217, 255, 245, 0.11), transparent 36%), rgba(255, 255, 255, 0.035);
  box-shadow: 0 34px 130px rgba(0, 0, 0, 0.55);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.42)),
    radial-gradient(circle at 10% 100%, rgba(0, 0, 0, 0.52), transparent 48%);
  pointer-events: none;
}

.blog-section {
  padding: 30px 0 clamp(78px, 9vw, 116px);
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(38px, 5.6vw, 70px);
  line-height: 0.98;
}

.section-head p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.42;
}

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

.post-card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0%, var(--glow, rgba(129, 180, 255, 0.18)), transparent 44%),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.post-card:hover {
  border-color: rgba(245, 245, 247, 0.28);
  background:
    radial-gradient(circle at 18% 0%, var(--glow, rgba(129, 180, 255, 0.25)), transparent 48%),
    rgba(255, 255, 255, 0.065);
}

.post-card img {
  width: 100%;
  height: 220px;
  display: block;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.post-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
}

.meta {
  color: var(--faint);
  font-size: 13px;
  font-weight: 650;
}

.post-card h2 {
  margin: 14px 0 0;
  color: #fff;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.04;
}

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

.read-link {
  color: rgba(245, 245, 247, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.article-hero {
  padding: clamp(68px, 8vw, 108px) 0 34px;
}

.article-hero h1 {
  max-width: 980px;
}

.article-hero .lead {
  max-width: 760px;
}

.article-media {
  width: min(1180px, calc(100% - 44px));
  margin: 8px auto 0;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.article-media img {
  width: 100%;
  height: min(54vw, 520px);
  min-height: 260px;
  display: block;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 52px;
  align-items: start;
  padding: 58px 0 18px;
}

.article-body {
  max-width: 780px;
}

.article-body h2 {
  margin: 46px 0 14px;
  color: #fff;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.04;
}

.article-body h3 {
  margin: 30px 0 10px;
  color: #fff;
  font-size: 24px;
  line-height: 1.1;
}

.article-body p,
.article-body li {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.68;
}

.article-body p {
  margin: 0 0 20px;
}

.article-body a {
  color: #d9fff5;
  text-decoration-color: rgba(217, 255, 245, 0.42);
  text-underline-offset: 4px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 24px;
  padding-left: 22px;
}

.toc {
  position: sticky;
  top: 70px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
}

.toc strong {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-size: 14px;
}

.toc a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.3;
}

.toc a:hover {
  color: #fff;
}

.prompt-list,
.steps,
.cta-panel,
.example-card {
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 0%, rgba(129, 180, 255, 0.14), transparent 46%), rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.prompt-list,
.steps,
.example-card {
  margin: 26px 0;
  padding: 22px;
  border-radius: 24px;
}

.example-card p:last-child,
.prompt-list p:last-child {
  margin-bottom: 0;
}

.cta-panel {
  margin: 34px 0;
  padding: 26px;
  border-radius: 28px;
}

.cta-panel h2 {
  margin-top: 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  color: #050507;
  background: #fff;
  text-decoration: none;
  font-weight: 760;
}

.button.secondary {
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--line);
}

.related-posts {
  padding: 40px 0 clamp(82px, 9vw, 118px);
}

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

.related-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
}

.related-card:hover {
  border-color: rgba(245, 245, 247, 0.28);
}

.related-card h3 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.08;
}

.related-card span {
  color: var(--faint);
  font-size: 13px;
  font-weight: 700;
}

.final-cta {
  padding: 80px 0 110px;
  text-align: center;
}

.final-cta h2 {
  max-width: 820px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
}

.final-cta p {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.42;
}

.final-cta .button-row {
  justify-content: center;
}

footer {
  padding: 28px 22px 38px;
  color: rgba(245, 245, 247, 0.5);
  background: #000;
  font-size: 12px;
  text-align: center;
}

footer a {
  color: rgba(245, 245, 247, 0.68);
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

@media (max-width: 980px) {
  .site-nav {
    justify-content: space-between;
  }

  .site-nav a:not(.mark):not(.keep) {
    display: none;
  }

  .blog-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 56px;
    text-align: center;
  }

  .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    min-height: 260px;
  }

  .hero-visual img {
    min-height: 260px;
  }

  .post-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .toc {
    position: static;
    order: -1;
  }
}

@media (max-width: 640px) {
  .blog-hero,
  .blog-section,
  .article-hero,
  .article-layout,
  .related-posts,
  .final-cta,
  .article-media {
    width: min(100% - 36px, 560px);
  }

  h1 {
    font-size: clamp(48px, 13vw, 68px);
  }

  .blog-hero,
  .article-hero {
    padding-top: 52px;
  }

  .post-card {
    min-height: auto;
  }

  .post-card img {
    height: 190px;
  }

  .article-body p,
  .article-body li {
    font-size: 17px;
  }

  .button-row {
    display: grid;
  }

  .button {
    width: 100%;
  }
}
