/* D2VP Vanilla+ onboarding — dark, Diablo-inspired theme */

:root {
  --bg:        #0b0a0d;
  --bg-2:      #121016;
  --panel:     #17141c;
  --panel-2:   #1e1a24;
  --line:      #2b2632;
  --text:      #e9e4ee;
  --muted:     #a79fb0;
  --faint:     #746c80;
  --blood:     #8f2b2b;
  --blood-2:   #b8433b;
  --ember:     #e0a34a;
  --gold:      #d9b46a;
  --maxw:      1120px;
  --radius:    14px;
  --shadow:    0 20px 50px -20px rgba(0,0,0,.8);
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(143,43,43,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(224,163,74,.08), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--ember); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd, pre { font-family: var(--mono); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--blood); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,10,13,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(145deg, var(--blood), #5c1a1a);
  color: #f3e7d0; font-weight: 800; font-size: 15px; letter-spacing: .5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), var(--shadow);
}
.brand-text { font-weight: 700; letter-spacing: .3px; font-size: 17px; }
.brand-text small { color: var(--muted); font-weight: 500; font-size: 12px; display: block; letter-spacing: 1px; text-transform: uppercase; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-size: 14.5px; }
.nav a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.nav .nav-cta {
  color: #1a1113; font-weight: 700; margin-left: 8px;
  background: linear-gradient(145deg, var(--ember), var(--gold));
}
.nav .nav-cta:hover { color: #1a1113; filter: brightness(1.05); }

.nav-toggle {
  display: none; margin-left: auto; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 30px; position: relative; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  text-transform: uppercase; letter-spacing: 2.4px; font-size: 12px; font-weight: 700;
  color: var(--ember); margin: 0 0 18px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.18); display: inline-block; }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.7rem); line-height: 1.05; margin: 0 0 22px;
  letter-spacing: -.5px; font-weight: 800;
}
.grad {
  background: linear-gradient(100deg, var(--ember), var(--blood-2) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--muted); font-size: 1.12rem; max-width: 56ch; margin: 0 0 28px; }
.lede em { color: var(--text); font-style: normal; font-weight: 600; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 11px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s, filter .12s, background .12s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(145deg, var(--blood-2), var(--blood)); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--faint); }
.btn-ghost-light { background: transparent; color: var(--text); border-color: rgba(255,255,255,.25); }
.ver {
  font-size: 11px; padding: 2px 7px; border-radius: 6px;
  background: rgba(255,255,255,.16); letter-spacing: .5px;
}

.hero-badges {
  list-style: none; padding: 0; margin: 30px 0 0; display: flex; gap: 22px; flex-wrap: wrap;
  color: var(--faint); font-size: 13.5px;
}
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges li::before { content: "◆"; color: var(--blood-2); font-size: 10px; }

.hero-repos { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-repos a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 10px; font-size: 14px; font-weight: 600;
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  transition: border-color .15s, background .15s;
}
.hero-repos a:hover { text-decoration: none; border-color: var(--faint); background: var(--panel-2); }
.hero-repos svg { color: var(--muted); flex: 0 0 auto; }

.hero-art { position: relative; }
.hero-art img {
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow); aspect-ratio: 16 / 9; object-fit: cover;
}
.hero-art-glow {
  position: absolute; inset: -30px; z-index: -1;
  background: radial-gradient(closest-side, rgba(184,67,59,.28), transparent 75%);
  filter: blur(20px);
}

.quickstart {
  list-style: none; padding: 0; margin: 52px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.quickstart li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px; color: var(--muted); font-size: 14.5px;
}
.quickstart strong { color: var(--text); }
.qs-num {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--blood), #5c1a1a); color: #f3e7d0; font-weight: 800;
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: linear-gradient(180deg, rgba(23,20,28,.6), rgba(11,10,13,0)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 16px; letter-spacing: -.4px; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-sub strong { color: var(--text); }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.fcard {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: transform .15s, border-color .15s, background .15s;
  display: flex; flex-direction: column;
}
.fcard:hover { transform: translateY(-3px); border-color: var(--blood); background: var(--panel-2); }
.fcard .ficon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  font-size: 21px; margin-bottom: 14px;
  background: linear-gradient(145deg, rgba(143,43,43,.35), rgba(224,163,74,.12));
  border: 1px solid var(--line);
}
.fcard h3 { margin: 0 0 8px; font-size: 16.5px; }
.fcard p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.fcard code {
  font-size: 11.5px; color: var(--gold); background: rgba(0,0,0,.3);
  padding: 2px 6px; border-radius: 5px; margin-top: 14px; align-self: flex-start;
  border: 1px solid var(--line);
}
.feature-foot { text-align: center; color: var(--faint); margin-top: 34px; font-size: 14px; }

/* ---------- Screens ---------- */
.screen-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.shot {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #000; box-shadow: var(--shadow);
}
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease; }
.shot:hover img { transform: scale(1.03); }
.shot-wide { grid-column: span 3; }
.shot-wide img { aspect-ratio: 21 / 9; }

/* ---------- Install ---------- */
.install-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li:first-child { padding-top: 0; }
.steps li:last-child { border-bottom: 0; }
.step-num {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--ember); font-weight: 800; font-size: 17px;
}
.steps h3 { margin: 2px 0 8px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); }

.install-aside { display: flex; flex-direction: column; gap: 18px; }
.code-card { background: #0a0910; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.code-card-head {
  display: flex; align-items: center; gap: 8px; padding: 11px 16px;
  background: var(--panel); border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 12.5px; letter-spacing: .5px; text-transform: uppercase;
}
.code-card pre { margin: 0; padding: 16px; overflow-x: auto; }
.code-card code { color: #d7e0c0; font-size: 13.5px; line-height: 1.7; }
.note {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--ember);
  border-radius: 10px; padding: 14px 16px; color: var(--muted); font-size: 14px;
}
.note strong { color: var(--text); }

/* ---------- Realm ---------- */
.realm-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.realm-info { padding: 32px; border-right: 1px solid var(--line); }
.realm-action { padding: 32px; background: var(--panel-2); }
.realm-label { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; color: var(--faint); margin: 0 0 12px; font-weight: 700; }
.realm-host {
  font-family: var(--mono); font-size: clamp(1.3rem, 2.6vw, 1.9rem); color: var(--ember);
  margin: 0 0 20px; word-break: break-all;
}
.realm-meta { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.realm-meta li { display: flex; gap: 12px; color: var(--text); font-size: 14.5px; }
.realm-meta span { color: var(--faint); min-width: 82px; }
.realm-repo { margin: 18px 0 0; }
.realm-repo a { font-size: 14px; font-weight: 600; }
.realm-hint { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.realm-hint.small { margin-top: 16px; margin-bottom: 0; font-size: 13px; }
.cmd {
  background: #0a0910; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; overflow-x: auto; margin: 0 0 14px;
}
.cmd code { color: #d7e0c0; font-size: 13px; white-space: nowrap; }
.btn-copy { padding: 10px 16px; font-size: 13.5px; }

.realm-details { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.realm-details details {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0 18px;
}
.realm-details summary {
  cursor: pointer; padding: 15px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.realm-details summary::-webkit-details-marker { display: none; }
.realm-details summary::after { content: "+"; color: var(--ember); font-size: 20px; font-weight: 400; }
.realm-details details[open] summary::after { content: "–"; }
.realm-details p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }

/* ---------- Config table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.config-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.config-table th, .config-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
.config-table thead th {
  background: var(--panel-2); color: var(--faint); text-transform: uppercase; letter-spacing: 1px; font-size: 12px;
  position: sticky; top: 0;
}
.config-table tbody tr:hover { background: var(--panel); }
.config-table td:first-child { font-weight: 600; color: var(--text); white-space: nowrap; }
.config-table td:nth-child(2) code { color: var(--gold); font-size: 12.5px; }
.config-table td:last-child { color: var(--muted); }
.config-table tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 0 20px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ember); font-size: 22px; flex: 0 0 auto; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 18px; color: var(--muted); }
kbd {
  background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; padding: 1px 7px; font-size: 12.5px; color: var(--text);
}

/* ---------- CTA ---------- */
.cta-section {
  text-align: center;
  background:
    radial-gradient(700px 300px at 50% 120%, rgba(143,43,43,.35), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.cta-inner h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 12px; letter-spacing: -.5px; }
.cta-inner p { color: var(--muted); font-size: 1.1rem; margin: 0 0 28px; }
.cta-inner .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #08070a; padding: 40px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; max-width: 420px; }
.footer-brand strong { font-size: 15px; }
.footer-brand p { margin: 4px 0 0; color: var(--faint); font-size: 13.5px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-base {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--faint); font-size: 12.5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .quickstart { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .install-grid { grid-template-columns: 1fr; }
  .realm-card { grid-template-columns: 1fr; }
  .realm-info { border-right: 0; border-bottom: 1px solid var(--line); }
  .realm-details { grid-template-columns: 1fr; }
  .screen-grid { grid-template-columns: repeat(2, 1fr); }
  .shot-wide { grid-column: span 2; }
  .nav {
    position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
    transform: translateY(-120%); transition: transform .25s ease; gap: 2px;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .nav-toggle { display: flex; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .screen-grid { grid-template-columns: 1fr; }
  .shot-wide { grid-column: span 1; }
  .section { padding: 60px 0; }
  .footer-base { flex-direction: column; gap: 8px; }
}