:root {
  --primary: #6558f5;
  --primary-hover: #5146d8;
  --primary-light: #f1f0ff;
  --ink: #111827;
  --body: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --surface: #f8f8fc;
  --page: #fff;
  --hero-base: #fbfbff;
  --hero-spot: rgba(101, 88, 245, 0.14);
  --quote: #f1f0ff;
  --conclusion: #f4f2ff;
  --code: #f3f4f6;
}
body.dark {
  --primary: #948bff;
  --primary-hover: #aea8ff;
  --primary-light: #25233d;
  --ink: #f4f3ff;
  --body: #d1d0da;
  --muted: #aaa8b8;
  --line: #302e3d;
  --surface: #1b1a24;
  --page: #121118;
  --hero-base: #161520;
  --hero-spot: rgba(148, 139, 255, 0.18);
  --quote: #201e31;
  --conclusion: #211f35;
  --code: #29263b;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--page);
  color: var(--body);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
a {
  color: inherit;
}
button {
  font: inherit;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-80px);
  border-radius: 8px;
  background: var(--ink);
  padding: 12px 16px;
  color: #fff;
  font-weight: 700;
}
.skip-link:focus {
  transform: none;
}
:focus-visible {
  outline: 3px solid rgba(101, 88, 245, 0.45);
  outline-offset: 3px;
}
.theme-toggle {
  position: fixed;
  z-index: 20;
  top: 92px;
  right: 18px;
  display: inline-flex;
  min-width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 24px -16px rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(12px);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}
.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}
.theme-toggle svg {
  width: 19px;
  height: 19px;
}
.theme-toggle .sun-icon {
  display: none;
}
.dark .theme-toggle .moon-icon {
  display: none;
}
.dark .theme-toggle .sun-icon {
  display: block;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 125%, var(--hero-spot), transparent 34%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 55px,
      rgba(101, 88, 245, 0.05) 56px
    ),
    var(--hero-base);
  padding: 88px 16px 76px;
}
.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  left: 50%;
  content: "";
  border: 1px solid rgba(101, 88, 245, 0.12);
  border-radius: 50%;
  transform: translateX(-50%);
}
.hero::before {
  bottom: -318px;
  width: 640px;
  height: 640px;
}
.hero::after {
  bottom: -230px;
  width: 460px;
  height: 460px;
}
.hero-inner {
  max-width: 900px;
  margin: auto;
  text-align: center;
}
.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero-lede {
  max-width: 760px;
  margin: 24px auto 0;
  color: var(--body);
  font-size: 18px;
  line-height: 1.65;
  text-wrap: balance;
}
.article-byline {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.article-byline span + span::before {
  content: "•";
  margin-right: 12px;
  color: var(--muted);
}
.content-layout {
  display: grid;
  width: min(calc(100% - 48px), 1120px);
  margin: auto;
  grid-template-columns: minmax(0, 800px) 240px;
  gap: 64px;
  align-items: start;
}
.article {
  min-width: 0;
  padding: 72px 0 96px;
  font-size: 18px;
  line-height: 1.78;
}
.article p {
  margin: 0 0 24px;
}
.article h2 {
  margin: 64px 0 20px;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  scroll-margin-top: 24px;
}
.article h2:first-of-type {
  margin-top: 52px;
}
.article h3 {
  margin: 40px 0 16px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.article ul {
  margin: 0 0 28px;
  padding-left: 28px;
}
.article li {
  margin: 10px 0;
  padding-left: 4px;
}
.article li::marker {
  color: var(--primary);
}
.article strong {
  color: var(--ink);
}
.article a {
  color: var(--primary);
  font-weight: 650;
  text-decoration: none;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color 0.18s ease;
}
.article a:hover,
.article a:focus-visible {
  color: var(--primary-hover);
  text-decoration: underline;
}
.article code {
  border-radius: 6px;
  background: var(--code);
  padding: 2px 6px;
  color: var(--primary);
  font-size: 0.9em;
}
blockquote {
  margin: 36px 0;
  border-left: 4px solid var(--primary);
  background: var(--quote);
  padding: 24px 28px;
}
blockquote p {
  color: var(--ink);
  font-size: 19px;
}
blockquote cite {
  display: block;
  margin: -10px 0 28px;
  color: var(--muted);
  font-size: 15px;
}
blockquote cite:last-child {
  margin-bottom: 0;
}
.article-figure {
  margin: 32px 0 48px;
}
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0d0c12;
}
.video {
  margin: 32px 0 48px;
}
.video video {
  display: block;
  width: 100%;
  border-radius: 16px;
  background: #101018;
  box-shadow: 0 18px 45px -28px rgba(17, 24, 39, 0.45);
}
.article .conclusion-section {
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--conclusion);
  padding: 28px 32px;
}
.article .conclusion-section h2 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.article .conclusion-section p:last-child {
  margin-bottom: 0;
}
.table-wrap {
  margin: 28px 0 48px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.comparison-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}
.comparison-table th,
.comparison-table td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 12px;
  text-align: left;
  vertical-align: middle;
}
.comparison-table th:last-child,
.comparison-table td:last-child {
  border-right: 0;
}
.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}
.comparison-table th {
  background: var(--surface);
  color: var(--ink);
  font-weight: 750;
}
.comparison-table tbody tr:first-child {
  background: var(--primary-light);
}
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--page);
}
.faq-item summary {
  display: flex;
  min-height: 64px;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  color: var(--muted);
  font-size: 24px;
  font-weight: 400;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-answer {
  border-top: 1px solid var(--line);
  padding: 20px;
}
.faq-answer p {
  margin: 0;
}
.toc {
  position: sticky;
  top: 96px;
  align-self: start;
  margin-top: 72px;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.toc-title {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.toc li + li {
  margin-top: 4px;
}
.toc a {
  display: block;
  border-radius: 7px;
  padding: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}
.toc a:hover,
.toc a:focus-visible {
  background: var(--primary-light);
  color: var(--ink);
}
.latest-articles {
  width: min(calc(100% - 48px), 1120px);
  margin: 0 auto 112px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.latest-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 56px 0 28px;
}
.latest-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  letter-spacing: -0.025em;
}
.all-articles {
  color: var(--body);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}
.all-articles:hover {
  color: var(--primary);
}
.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.latest-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  padding-bottom: 24px;
}
.latest-image {
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface);
  aspect-ratio: 16 / 10;
}
.latest-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s ease;
}
.latest-card:hover .latest-image img {
  transform: scale(1.035);
}
.latest-card h3 {
  margin: 18px 0 12px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.latest-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 20px;
  color: var(--body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.latest-date {
  margin-top: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
@media (max-width: 959px) {
  .content-layout {
    display: block;
    width: min(calc(100% - 32px), 800px);
  }
  .toc {
    display: none;
  }
  .article {
    padding-top: 56px;
  }
  .latest-articles {
    width: min(calc(100% - 32px), 800px);
  }
  .latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 639px) {
  .theme-toggle {
    top: 92px;
    right: 12px;
  }
  .hero {
    padding: 72px 16px 56px;
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero-lede {
    font-size: 17px;
  }
  .article {
    padding-bottom: 72px;
    font-size: 17px;
  }
  .article h2 {
    margin-top: 52px;
    font-size: 28px;
  }
  .article h3 {
    font-size: 22px;
  }
  blockquote,
  .article .conclusion-section {
    padding: 20px;
  }
  .article .conclusion-section h2 {
    font-size: 22px;
  }
  .latest-articles {
    margin-bottom: 72px;
  }
  .latest-heading {
    margin: 44px 0 24px;
  }
  .latest-heading h2 {
    font-size: 26px;
  }
  .latest-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}
