:root {
  --brand: #a84b07;
  --brand-soft: #fbeadb;
  --bg: #fdfaf6;
  --surface: #ffffff;
  --text: #2a1d12;
  --muted: #6e5d4f;
  --border: #eadfd4;
  --hero-from: #f3a35a;
  --hero-to: #b9500a;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #f09a4a;
    --brand-soft: #3a2616;
    --bg: #17120e;
    --surface: #211a14;
    --text: #f4ebe2;
    --muted: #b3a294;
    --border: #3a2e24;
    --hero-from: #7a3606;
    --hero-to: #2a1608;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 650; font-size: 19px; }
.logo img { width: 30px; height: 30px; border-radius: 7px; }
.top nav { display: flex; gap: 18px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }

/* Hero */
.hero {
  background: radial-gradient(120% 140% at 20% 0%, var(--hero-from), var(--hero-to));
  color: #fff8f1;
}
.hero .top .logo, .hero .top nav a { color: #fff8f1; }
.hero .top nav a { opacity: .85; }
.hero .top nav a:hover { opacity: 1; }
.hero-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 56px 0 88px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  text-wrap: balance;
}
.hero p.lead { font-size: 20px; max-width: 34em; margin: 0 0 30px; opacity: .92; text-wrap: pretty; }
.hero-icon {
  width: 240px;
  height: 240px;
  border-radius: 54px;
  box-shadow: 0 30px 60px -20px rgba(40, 12, 0, .55), 0 0 0 1px rgba(255, 255, 255, .15) inset;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.btn-primary { background: #fff8f1; color: #8a3c05; }
.btn-primary:hover { background: #fff; }
.btn-ghost { color: #fff8f1; box-shadow: 0 0 0 1.5px rgba(255, 248, 241, .6) inset; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.req { margin-top: 18px; font-size: 14px; opacity: .8; }
.req a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.install-terminal { margin: 24px 0 0; }
.install-terminal code { display: block; margin-top: 8px; overflow-wrap: anywhere; }

/* Sections */
section { padding: 80px 0 0; }
section:last-of-type { padding-bottom: 80px; }
h2 { font-size: clamp(28px, 4vw, 36px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; }
.sub { color: var(--muted); margin: 0 0 36px; max-width: 40em; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3, .feature h3 { margin: 0 0 6px; font-size: 18px; }
.step p, .feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; }
.feature .ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.feature .ico svg { width: 22px; height: 22px; }

.status {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.status h2 { font-size: 28px; }
.status ul { margin: 0; padding-left: 20px; color: var(--muted); }
.status li { margin: 4px 0; }
.status li strong { color: var(--text); font-weight: 600; }
.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 650;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 12px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero-body { grid-template-columns: 1fr; padding: 28px 0 64px; gap: 28px; }
  .hero-icon { width: 120px; height: 120px; border-radius: 27px; order: -1; }
  .steps, .features, .status { grid-template-columns: 1fr; }
  .status { padding: 24px; }
  section { padding-top: 60px; }
}

@media (max-width: 480px) {
  .top nav a.hide-sm { display: none; }
  .hero p.lead { font-size: 18px; }
}

.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.shots figure { margin: 0; }
.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 24px 50px -24px rgba(60, 25, 0, .35), 0 0 0 1px var(--border);
}
.shots figcaption { margin-top: 12px; color: var(--muted); font-size: 15px; }

@media (max-width: 820px) {
  .shots { grid-template-columns: 1fr; }
}

/* Language menu */
.top nav { align-items: center; }
.lang { position: relative; }
.lang summary {
  list-style: none;
  cursor: pointer;
  color: #fff8f1;
  opacity: .85;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lang summary:hover, .lang[open] summary { opacity: 1; }
.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 10;
  margin: 0;
  padding: 6px;
  list-style: none;
  min-width: 170px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 40px -16px rgba(40, 12, 0, .45);
}
.hero .top .lang ul a {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--text);
  opacity: 1;
  text-decoration: none;
}
.hero .top .lang ul a:hover { background: var(--brand-soft); }
.hero .top .lang ul a[aria-current] { color: var(--brand); font-weight: 600; }

/* DirectX 12 guide */
.hero-small .hero-body { padding-bottom: 48px; }
.guide section { padding-top: 56px; }
.guide ul { color: var(--muted); padding-left: 22px; }
.guide li { margin: 6px 0; }
.howto { list-style: none; padding: 0; margin: 0; counter-reset: howto; display: grid; gap: 16px; }
.howto li {
  counter-increment: howto;
  position: relative;
  padding: 20px 22px 20px 64px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin: 0;
}
.howto li::before {
  content: counter(howto);
  position: absolute; left: 20px; top: 20px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px;
}
.howto h3 { margin: 2px 0 6px; font-size: 18px; color: var(--text); }
.howto p { margin: 0; color: var(--muted); font-size: 15.5px; }
.faq dt { font-weight: 600; margin-top: 18px; }
.faq dd { margin: 4px 0 0; color: var(--muted); }

.sketch { display: block; width: 100%; max-width: 560px; height: auto; margin-top: 14px; font-family: inherit; }
.sk-card { fill: var(--bg); stroke: var(--border); }
.sk-dot { fill: var(--border); }
.sk-line { stroke: var(--border); }
.sk-url { fill: var(--muted); font-size: 12px; }
.sk-take { fill: none; stroke: #2e9d57; stroke-width: 2; }
.sk-name { fill: var(--text); font-size: 14px; font-weight: 600; }
.sk-no { fill: var(--muted); text-decoration: line-through; }
.sk-ok { fill: #2e9d57; font-size: 13px; font-weight: 600; }
.sk-not { fill: var(--muted); font-size: 13px; font-weight: 600; }
.sk-link { fill: var(--text); font-size: 13px; font-weight: 600; }
.sk-file { fill: var(--brand); font-size: 13px; font-weight: 600; text-decoration: underline; }
.sk-pill { fill: var(--brand); }
.sk-pill-t { fill: #fff; font-size: 11px; font-weight: 700; }
