:root {
  --bg: #050812;
  --bg-panel: #0a1020;
  --bg-card: rgba(12, 19, 36, 0.88);
  --border: rgba(56, 118, 172, 0.30);
  --border-hi: rgba(0, 220, 255, 0.58);
  --cyan: #00dcff;
  --cyan-soft: #7ce8ff;
  --gold: #f5c443;
  --emerald: #34e88a;
  --violet: #c084fc;
  --amber: #fbbf24;
  --danger: #ff6655;
  --text: #f1f5f9;
  --muted: #a6b9cf;
  --subtle: #94a3b8;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Global WCAG AA/AAA Focus Ring + Skip Link */
:is(a, button, input, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 220, 255, 0.24);
}
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  background: var(--cyan);
  color: #031320;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Zero-GPU-blur ambient radial backdrops */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.bg-orb-cyan {
  width: 760px; height: 760px; top: -280px; right: -200px;
  background: radial-gradient(circle, rgba(0, 220, 255, 0.14) 0%, rgba(0, 220, 255, 0.03) 45%, transparent 72%);
}
.bg-orb-gold {
  width: 680px; height: 680px; bottom: 0; left: -240px;
  background: radial-gradient(circle, rgba(245, 196, 67, 0.09) 0%, rgba(245, 196, 67, 0.02) 45%, transparent 72%);
}

.container { width: min(1160px, 92vw); margin: 0 auto; }
.cyan { color: var(--cyan-soft); }
.gold { color: var(--gold); }
.emerald { color: var(--emerald); }
.violet { color: var(--violet); }

code {
  font-family: 'JetBrains Mono', Consolas, monospace;
  background: rgba(0, 220, 255, 0.11);
  border: 1px solid rgba(0, 220, 255, 0.24);
  color: var(--cyan-soft);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.87em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* STICKY 1-LINE NAV + MOBILE DRAWER */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 8, 18, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 1.8vw, 22px);
  padding: 11px 0;
  position: relative;
}
.brand-wrap { display: flex; align-items: center; gap: 10px; flex-shrink: 0; min-width: 0; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand-logo { width: 38px; height: 38px; filter: drop-shadow(0 0 10px rgba(0, 220, 255, 0.35)); }
.brand-logo-sm { width: 26px; height: 26px; }
.brand-name { font-family: 'Cinzel', Georgia, serif; font-weight: 800; font-size: 1.22rem; letter-spacing: 0.02em; white-space: nowrap; }
.version-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 24px); }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color .2s;
}
.nav-links a:hover { color: var(--cyan-soft); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  text-align: center;
  transition: transform .15s, box-shadow .2s, border-color .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: 0.84rem; line-height: 1.2; flex-shrink: 0; }
.btn-primary {
  background: linear-gradient(135deg, #42ecff 0%, #00c4f0 100%);
  color: #031320;
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.48);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #66f2ff 0%, #18d2fc 100%);
  box-shadow: 0 10px 28px rgba(0, 220, 255, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.62);
}
.btn-secondary {
  background: rgba(245, 196, 67, 0.13);
  color: var(--gold);
  border-color: rgba(245, 196, 67, 0.45);
}
.btn-secondary:hover { background: rgba(245, 196, 67, 0.22); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--border-hi); color: var(--cyan-soft); }
.lang-select {
  background: #0a1326;
  color: var(--cyan-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}
.lang-select:hover { border-color: var(--border-hi); }
.lang-select option { background: #0a1326; color: var(--text); }

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.96fr;
  gap: 38px;
  align-items: center;
  padding: 54px 0 42px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--cyan-soft);
  background: rgba(0, 220, 255, 0.08);
  border: 1px solid rgba(0, 220, 255, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  max-width: 100%;
  line-height: 1.35;
}
.dot-live { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px var(--emerald); }
h1 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(1.85rem, 3.6vw, 3.05rem);
  line-height: 1.15;
  letter-spacing: 0.015em;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff 40%, #a8d4f5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead { color: #b9cae0; font-size: 1.01rem; line-height: 1.62; margin-bottom: 22px; max-width: 560px; }
.hero-lead strong { color: #ffffff; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-link-explore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cyan-soft);
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 1px solid rgba(124, 232, 255, 0.30);
  transition: color .2s, border-color .2s, gap .2s;
}
.btn-link-explore:hover { color: #ffffff; border-color: var(--cyan); gap: 9px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.trust-chip {
  font-size: 0.74rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 6px;
  padding: 3px 9px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.stat-val { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.stat-lbl { display: block; font-size: 0.75rem; line-height: 1.3; color: var(--muted); }

/* INTERACTIVE HUD DEMO */
.hud-window {
  background: linear-gradient(180deg, #0b1326 0%, #050914 100%);
  border: 1px solid rgba(0, 210, 255, 0.38);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72), 0 0 42px rgba(0, 210, 255, 0.10), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}
.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 13px;
  background: linear-gradient(90deg, rgba(0, 180, 230, 0.14), rgba(10, 16, 32, 0.96));
  border-bottom: 1px solid var(--border);
}
.hud-title-group { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hud-title { font-weight: 700; color: var(--cyan-soft); font-size: 0.94rem; white-space: nowrap; }
.biome-tag { font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.biome-sand { color: #f0c068; background: rgba(240, 192, 104, 0.12); }
.biome-lava { color: #ff8754; background: rgba(255, 123, 71, 0.14); }
.biome-nature { color: #5ee69c; background: rgba(94, 230, 156, 0.12); }
.biome-corpse { color: #d8a4ff; background: rgba(216, 164, 255, 0.14); }

.hud-toggles { display: flex; gap: 5px; flex-wrap: wrap; }
.hud-btn {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.hud-btn:hover { color: var(--text); border-color: var(--border-hi); }
.hud-btn.active {
  background: rgba(0, 220, 255, 0.16);
  border-color: rgba(0, 220, 255, 0.55);
  color: var(--cyan-soft);
}

.demo-canvas-wrap {
  position: relative;
  background: radial-gradient(circle at 50% 45%, #091225 0%, #040710 75%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 28px;
}
#radarCanvas { width: 100%; max-width: 420px; aspect-ratio: 380 / 330; height: auto; display: block; }
.demo-overlay-hint {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--muted);
  background: rgba(5, 8, 18, 0.88);
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.demo-strat-bar {
  padding: 11px 14px;
  background: linear-gradient(180deg, rgba(14, 22, 42, 0.94), rgba(9, 14, 28, 0.98));
  border-top: 1px solid rgba(0, 220, 255, 0.24);
  border-bottom: 1px solid var(--border);
}
.strat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; flex-wrap: wrap; }
.role-tabs { display: flex; gap: 6px; }
.role-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}
.role-btn.active[data-role="T"] { color: var(--cyan-soft); border-color: var(--cyan); background: rgba(0, 220, 255, 0.14); }
.role-btn.active[data-role="H"] { color: var(--emerald); border-color: var(--emerald); background: rgba(52, 232, 138, 0.14); }
.role-btn.active[data-role="D"] { color: var(--amber); border-color: var(--amber); background: rgba(251, 191, 36, 0.14); }
.boss-focus-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(245, 196, 67, 0.12);
  border: 1px solid rgba(245, 196, 67, 0.34);
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}
.strat-text { font-size: 0.84rem; color: #f8fafc; min-height: 22px; }

.demo-switcher {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 12px;
  background: #070d1b;
}
.demo-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.demo-tab:focus-visible { outline-offset: -2px; }
.demo-tab:hover { color: var(--text); border-color: var(--border-hi); }
.demo-tab.active { color: #031320; background: var(--cyan); border-color: var(--cyan); font-weight: 700; }

/* SECTIONS */
.section { padding: 64px 0; }
.section-head { text-align: center; max-width: 740px; margin: 0 auto 38px; }
.section-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-head h2 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  margin-bottom: 10px;
}
.section-head p { color: var(--muted); }

/* FEATURE CARDS + SAFETY STRIP */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 23px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.card-icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 15px; }
.card-icon svg { width: 24px; height: 24px; }
.icon-cyan { background: rgba(0, 220, 255, 0.12); color: var(--cyan); border: 1px solid rgba(0, 220, 255, 0.3); }
.icon-gold { background: rgba(245, 196, 67, 0.12); color: var(--gold); border: 1px solid rgba(245, 196, 67, 0.3); }
.icon-violet { background: rgba(192, 132, 252, 0.14); color: var(--violet); border: 1px solid rgba(192, 132, 252, 0.32); }
.icon-emerald { background: rgba(52, 232, 138, 0.12); color: var(--emerald); border: 1px solid rgba(52, 232, 138, 0.3); }
.icon-amber { background: rgba(251, 191, 36, 0.12); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.3); }
.icon-blue { background: rgba(96, 165, 250, 0.12); color: #60a5fa; border: 1px solid rgba(96, 165, 250, 0.3); }
.card h3 { font-size: 1.04rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.9rem; }

.safety-strip {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  background: rgba(8, 15, 30, 0.92);
  border: 1px solid rgba(0, 220, 255, 0.24);
  border-radius: var(--radius);
  padding: 18px;
}
.safety-item { display: flex; align-items: flex-start; gap: 11px; }
.safety-badge {
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid currentColor;
}
.safety-item strong { display: block; font-size: 0.88rem; margin-bottom: 2px; }
.safety-item span { font-size: 0.79rem; color: var(--muted); line-height: 1.4; }

/* 38 INSTANCE EXPLORER */
.explorer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  background: var(--bg-card);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 15px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.filter-btn.active { background: rgba(0, 220, 255, 0.16); color: var(--cyan-soft); border-color: var(--cyan); }
.search-input {
  width: min(310px, 100%);
  background: #070d1b;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.9rem;
}
.search-input::placeholder { color: #9fb2c9; opacity: 1; }
.search-input:focus { border-color: var(--cyan); }
.instance-count { font-size: 0.82rem; color: var(--muted); margin-bottom: 12px; }

.instance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(256px, 100%), 1fr));
  gap: 12px;
}
.inst-card {
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: border-color .18s, transform .15s, background .18s;
}
.inst-card:hover {
  border-color: var(--border-hi);
  background: rgba(14, 25, 48, 0.96);
  transform: translateY(-2px);
}
.inst-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.inst-name { font-weight: 700; font-size: 0.93rem; }
.inst-tag { font-size: 0.69rem; font-weight: 800; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.tag-classic { background: rgba(148, 163, 184, 0.16); color: #cbd5e1; }
.tag-forever { background: rgba(245, 196, 67, 0.16); color: var(--gold); }
.tag-raid { background: rgba(192, 132, 252, 0.18); color: var(--violet); }
.inst-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.79rem; color: var(--muted); gap: 8px; }
.inst-hint { font-size: 0.72rem; color: var(--cyan-soft); opacity: 0.82; }
.biome-dot { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; white-space: nowrap; }
.biome-dot i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* COMPARISON TABLE */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.cmp-table th, .cmp-table td { padding: 13px 17px; text-align: left; border-bottom: 1px solid rgba(56, 118, 172, 0.18); font-size: 0.91rem; }
.cmp-table th { background: rgba(0, 220, 255, 0.06); font-weight: 700; }
.cmp-table tr:last-child td { border-bottom: none; }
.col-hl { background: rgba(0, 220, 255, 0.07); color: var(--cyan-soft); font-weight: 700; }
.yes { color: var(--emerald); font-weight: 800; }
.no { color: var(--subtle); }
.partial { color: var(--amber); font-weight: 600; }

/* FAQ ACCORDION */
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}
.faq-item[open] { border-color: var(--border-hi); }
.faq-item summary {
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::after { content: "+"; color: var(--cyan-soft); font-size: 1.2rem; font-weight: 700; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 10px; font-size: 0.89rem; color: var(--muted); line-height: 1.55; }

/* INSTALL BOX */
.install-box {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 30px;
  background: linear-gradient(135deg, rgba(10, 22, 44, 0.94), rgba(14, 14, 30, 0.94));
  border: 1px solid var(--border-hi);
  border-radius: 18px;
  padding: 34px;
}
.install-left h2 { font-family: 'Cinzel', Georgia, serif; font-size: 1.8rem; margin-bottom: 16px; }
.steps-list { margin: 0 0 18px 20px; color: var(--muted); display: flex; flex-direction: column; gap: 10px; font-size: 0.93rem; }
.steps-list strong { color: var(--text); }
.path-copy-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(5, 8, 18, 0.82);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 18px;
}
.path-copy-bar code { border: none; background: transparent; padding: 0; font-size: 0.8rem; }
.copy-btn {
  flex-shrink: 0;
  background: rgba(0, 220, 255, 0.14);
  color: var(--cyan-soft);
  border: 1px solid rgba(0, 220, 255, 0.42);
  border-radius: 7px;
  padding: 5px 11px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.copy-btn:hover { background: rgba(0, 220, 255, 0.24); }
.btn-share-guild {
  margin-top: 14px;
  background: transparent;
  border: 1px dashed rgba(245, 196, 67, 0.45);
  color: var(--gold);
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-share-guild:hover { background: rgba(245, 196, 67, 0.10); }

.install-right {
  background: rgba(5, 8, 18, 0.78);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.install-right h3 { font-size: 0.98rem; color: var(--gold); margin-bottom: 14px; }
.cmd-list { display: flex; flex-direction: column; gap: 8px; }
.cmd-list div { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.83rem; color: var(--muted); }
.cmd-copy {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.cmd-copy:hover code { border-color: var(--cyan); color: #ffffff; }

/* MODAL */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(3, 6, 14, 0.78);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal-backdrop[hidden] { display: none; }
.modal-card {
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: #0a1224;
  border: 1px solid var(--border-hi);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.75);
}
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.modal-head h3 { font-family: 'Cinzel', Georgia, serif; font-size: 1.35rem; margin-top: 6px; }
.modal-meta { font-size: 0.83rem; color: var(--muted); margin-top: 2px; }
.modal-close {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 32px; height: 32px;
  cursor: pointer;
  font-size: 1rem;
}
.modal-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.preset-btn {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.preset-btn.active { background: rgba(0, 220, 255, 0.16); color: var(--cyan-soft); border-color: var(--cyan); }
.modal-section-lbl { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin: 12px 0 8px; }
.modal-boss-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  margin-bottom: 14px;
}
.modal-boss-list li {
  font-size: 0.81rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 4px 9px;
}
.modal-boss-list li span { color: var(--gold); font-weight: 700; margin-right: 4px; }

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 46px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.footer-links a { color: var(--cyan-soft); text-decoration: none; font-size: 0.86rem; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.footer-note { font-size: 0.8rem; color: var(--subtle); max-width: 720px; }

/* BREAKPOINTS */
@media (max-width: 1140px) {
  .version-pill { display: none; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.86rem; }
}
@media (max-width: 960px) {
  .hero, .install-box, .faq-grid { grid-template-columns: 1fr; }
  .feature-grid, .safety-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(7, 13, 27, 0.98);
    border-bottom: 1px solid var(--border-hi);
    padding: 12px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 9px 10px; border-radius: 8px; }
  .nav-links a:hover { background: rgba(0, 220, 255, 0.08); }
}
@media (max-width: 768px) {
  .hero { padding: 34px 0 28px; gap: 26px; }
  .search-input { width: 100%; }
}
@media (max-width: 600px) {
  .feature-grid, .safety-strip { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-cta-row { width: 100%; flex-direction: column; }
  .hero-cta-row .btn { width: 100%; }
  .eyebrow { border-radius: 12px; }
  .install-box { padding: 20px 16px; gap: 22px; }
  .install-right { padding: 16px; }
  .cmd-list div { flex-direction: column; align-items: flex-start; gap: 4px; }
  .demo-overlay-hint { white-space: normal; text-align: center; max-width: calc(100% - 16px); font-size: 0.68rem; }
  .demo-switcher { grid-template-columns: repeat(2, 1fr); }
  .cmp-table { min-width: 520px; }
  .cmp-table th, .cmp-table td { padding: 10px 12px; font-size: 0.82rem; }
  .cmp-table th:first-child, .cmp-table td:first-child { position: sticky; left: 0; background: #0a1224; z-index: 1; max-width: 170px; }
  .brand-name { font-size: 1.06rem; }
  .brand-logo { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .btn:hover, .card:hover, .inst-card:hover { transform: none; }
}
