:root {
  color-scheme: dark;
  --bg: #050506;
  --panel: #101116;
  --panel-soft: #0b0c10;
  --line: #292b33;
  --text: #f5f5f7;
  --muted: #a8a8b2;
  --accent: #ff5a67;
  --accent-soft: rgba(255, 90, 103, .13);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(5,5,6,.88); backdrop-filter: blur(18px);
}
.site-header .wrap { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  background: var(--text); color: #08080a; text-decoration: none; font-weight: 800;
}
.hero { padding: 96px 0 64px; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { max-width: 900px; margin: 0; font-size: clamp(42px, 7vw, 78px); line-height: .98; letter-spacing: -.055em; }
.hero .lede { max-width: 760px; margin: 26px 0 0; color: var(--muted); font-size: clamp(18px, 2.4vw, 23px); line-height: 1.55; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; padding-bottom: 96px; }
.card {
  display: flex; min-height: 260px; flex-direction: column; justify-content: space-between;
  padding: 30px; border: 1px solid var(--line); border-radius: 26px;
  background: radial-gradient(100% 120% at 100% 0%, var(--accent-soft), transparent 58%), var(--panel);
  text-decoration: none;
}
.card:hover { border-color: rgba(255,90,103,.55); transform: translateY(-2px); }
.card .tag { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.card h2 { margin: 36px 0 12px; font-size: clamp(24px, 3vw, 34px); line-height: 1.08; letter-spacing: -.035em; }
.card p { margin: 0; color: var(--muted); line-height: 1.6; }
.article-hero { padding: 82px 0 50px; }
.article-hero h1 { max-width: 960px; }
.article-meta { margin-top: 24px; color: var(--muted); font-size: 14px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(220px, 1fr); gap: 64px; align-items: start; padding-bottom: 96px; }
.article { font-size: 18px; line-height: 1.75; }
.article h2 { margin: 52px 0 14px; font-size: 32px; line-height: 1.15; letter-spacing: -.035em; }
.article h3 { margin: 34px 0 10px; font-size: 22px; }
.article p, .article li { color: #d1d1d8; }
.article strong { color: var(--text); }
.article ul, .article ol { padding-left: 24px; }
.answer {
  margin: 0 0 38px; padding: 24px 26px; border-left: 3px solid var(--accent);
  border-radius: 0 18px 18px 0; background: var(--accent-soft);
  font-size: 19px; line-height: 1.65;
}
.callout { margin: 36px 0; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.context-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 30px 0; }
.context-card { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.context-card h3 { margin: 0 0 8px; font-size: 19px; }
.context-card p { margin: 0; font-size: 16px; line-height: 1.55; }
.comparison-table { width: 100%; margin: 30px 0; border-collapse: collapse; border: 1px solid var(--line); background: var(--panel-soft); }
.comparison-table th, .comparison-table td { padding: 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison-table th { color: var(--text); background: var(--panel); }
.comparison-table td { color: #d1d1d8; }
.sidebar { position: sticky; top: 96px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel-soft); }
.sidebar h2 { margin: 0 0 12px; font-size: 23px; }
.sidebar p { color: var(--muted); line-height: 1.55; }
.sidebar .button { width: 100%; margin-top: 8px; }
.related { border-top: 1px solid var(--line); padding: 58px 0 80px; }
.related h2 { margin: 0 0 22px; font-size: 30px; }
.related-links { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.related-links a { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); text-decoration: none; line-height: 1.4; }
.site-footer { padding: 28px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); text-decoration: none; }

@media (max-width: 780px) {
  .wrap { width: min(100% - 28px, 680px); }
  .site-header .wrap { min-height: 62px; }
  .nav > a:not(.button) { display: none; }
  .nav .button { min-height: 40px; padding: 0 15px; }
  .hero, .article-hero { padding-top: 64px; }
  .grid, .related-links { grid-template-columns: 1fr; }
  .context-grid { grid-template-columns: 1fr; }
  .comparison-table { display: block; overflow-x: auto; }
  .article-layout { grid-template-columns: 1fr; gap: 36px; }
  .sidebar { position: static; }
  .card { min-height: 220px; }
  .article { font-size: 17px; }
}
