/* ==========================================================================
   CRIMSON V — Official Site Stylesheet
   Palette & type source: CalderaRP Press Kit (April 2026)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=Source+Code+Pro:wght@400;500;600&display=swap');

:root {
  /* Primary */
  --crimson: #8E3438;
  --crimson-light: #A84448;
  --black: #0A0A0A;
  --anthracite: #1A1A1A;

  /* Secondary */
  --slate: #5C6A7E;
  --violet: #3C3D55;

  /* Neutral */
  --steel: #616363;
  --silver: #8C8B8A;
  --ash: #DCDCDC;
  --white: #FFFFFF;

  /* Derived */
  --panel: #151515;
  --panel-border: rgba(220, 220, 220, 0.08);
  --panel-border-strong: rgba(220, 220, 220, 0.14);
  --crimson-glow: rgba(142, 52, 56, 0.45);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);

  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Source Code Pro', 'Cascadia Code', Consolas, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --maxw: 1180px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--black);
  color: var(--ash);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--slate); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--crimson-light); }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: .45em; }
h1, h2, h3, h4 { font-family: var(--font-body); color: var(--white); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
::selection { background: var(--crimson); color: var(--white); }

/* subtle background texture across whole page */
body {
  background-image:
    radial-gradient(circle at 15% 0%, rgba(142,52,56,0.10), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(60,61,85,0.14), transparent 40%);
  background-attachment: fixed;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--crimson);
  color: var(--white);
  box-shadow: 0 8px 24px var(--crimson-glow);
}
.btn-primary:hover { background: var(--crimson-light); color: var(--white); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--ash);
  border-color: var(--panel-border-strong);
}
.btn-outline:hover { border-color: var(--slate); color: var(--white); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ---------- Work-in-progress banner ---------- */
:root { --wip-h: 34px; --header-stack-h: calc(var(--wip-h) + 72px); }
.wip-banner {
  position: sticky;
  top: 0;
  z-index: 101;
  height: var(--wip-h);
  overflow: hidden;
  display: flex;
  align-items: center;
  background: repeating-linear-gradient(
    135deg,
    var(--crimson) 0px, var(--crimson) 26px,
    #1a0d0e 26px, #1a0d0e 52px
  );
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.wip-track {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  width: max-content;
  animation: wip-scroll 26s linear infinite;
}
.wip-track span {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  padding: 0 20px;
}
@keyframes wip-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .wip-track { animation: none; }
}

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: var(--wip-h);
  z-index: 100;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--panel-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .02em;
}
.brand img { height: 36px; width: auto; }
.brand-name { white-space: nowrap; }
.brand-name .v { color: var(--crimson-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { margin-top: 0; }
.nav-links a {
  color: var(--ash);
  font-size: 15.5px;
  font-weight: 700;
}
.nav-links a:hover { color: var(--crimson-light); }
.nav-links a[aria-current="page"] { color: var(--crimson-light); }
.nav-actions { display: flex; align-items: center; gap: 16px; }

/* ---------- Social icons ---------- */
.social-icons { display: flex; align-items: center; gap: 8px; }
.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--panel-border-strong);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.social-icons a:hover { background: var(--crimson); border-color: var(--crimson); transform: translateY(-2px); }
.social-icons img { width: 17px; height: 17px; object-fit: contain; display: block; }
.nav-social-mobile { display: none; }
.nav-social-mobile .social-icons { justify-content: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--panel-border-strong);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('img/crimsonvwallpaper2.png');
  background-size: cover;
  background-position: center top;
  filter: saturate(1.05);
}
.hero-bg::after { content: ''; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.55) 55%, var(--black) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }

.wip-ribbon {
  position: absolute;
  top: 34px;
  right: -84px;
  z-index: 3;
  transform: rotate(40deg);
  background: repeating-linear-gradient(
    135deg,
    var(--crimson) 0px, var(--crimson) 14px,
    #1a0d0e 14px, #1a0d0e 28px
  );
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  border-top: 1px solid rgba(255,255,255,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding: 7px 0;
  width: 320px;
  text-align: center;
}
.wip-ribbon span {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
@media (max-width: 640px) {
  .wip-ribbon { top: 22px; right: -96px; width: 300px; }
  .wip-ribbon span { font-size: 11.5px; }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 22px;
  padding: 8px 16px;
  border: 1px solid rgba(220, 220, 220, 0.3);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #6fd68a;
  box-shadow: 0 0 8px #6fd68a;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.7rem);
  font-weight: 800;
  margin-bottom: 18px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}
.hero h1 em {
  font-style: normal;
  color: var(--crimson-light);
}
.hero p.lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--ash);
  max-width: 560px;
  margin: 0 auto 34px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 46px;
}
.hero-stats {
  display: flex;
  gap: 34px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats div { text-align: center; }
.hero-stats strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--white);
}
.hero-stats span {
  font-size: 12px;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ---------- Sections ---------- */
section { padding: 92px 0; position: relative; }
section + section { border-top: 1px solid var(--panel-border); }
.tab-panel { scroll-margin-top: var(--header-stack-h); }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}
.eyebrow {
  display: inline-block;
  color: var(--crimson-light);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}
.section-head p {
  color: var(--silver);
  font-size: 15.5px;
}

/* ---------- Cards grid (Voraussetzungen / Features) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.card {
  background: linear-gradient(180deg, var(--panel), #101010);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--panel-border-strong); transform: translateY(-2px); }
.card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(142, 52, 56, 0.15);
  border: 1px solid rgba(142, 52, 56, 0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--crimson-light);
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--silver); font-size: 14px; margin-bottom: 14px; }
.card .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--silver);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 12px;
}

/* ---------- Steps (Erste Schritte) ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
}
.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(142,52,56,0.15);
  border: 1px solid rgba(142,52,56,0.35);
  color: var(--crimson-light);
  font-family: var(--font-mono);
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { color: var(--silver); font-size: 14.5px; margin: 0; }
.step code, .card p code, .callout code {
  font-family: var(--font-mono);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--panel-border);
  padding: 1px 7px;
  border-radius: 5px;
  color: var(--ash);
  font-size: .92em;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Callouts ---------- */
.callout {
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 14.5px;
  border: 1px solid;
  margin: 0 0 16px;
  line-height: 1.55;
}
.callout:last-child { margin-bottom: 0; }
.callout strong { color: var(--white); }
.callout-info {
  background: rgba(92, 106, 126, 0.12);
  border-color: rgba(92, 106, 126, 0.35);
  color: var(--ash);
}
.callout-success {
  background: rgba(111, 214, 138, 0.08);
  border-color: rgba(111, 214, 138, 0.3);
  color: var(--ash);
}
.callout-warning {
  background: rgba(200, 150, 40, 0.1);
  border-color: rgba(200, 150, 40, 0.35);
  color: var(--ash);
}
.callout-danger {
  background: rgba(142, 52, 56, 0.14);
  border-color: rgba(168, 68, 72, 0.45);
  color: var(--ash);
}
.callout-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: .8;
}

/* ---------- Rulebook accordions ---------- */
.rulebook-toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 40px;
}
.rulebook-toc a {
  display: block;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--ash);
  font-size: 13.5px;
  font-weight: 600;
}
.rulebook-toc a:hover { border-color: var(--crimson); color: var(--white); }
.rulebook-toc a span {
  display: block;
  color: var(--crimson-light);
  font-family: var(--font-mono);
  font-size: 11px;
  margin-bottom: 3px;
}

details.chapter {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  scroll-margin-top: 96px;
}
details.chapter[open] { border-color: var(--panel-border-strong); }
details.chapter > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 700;
  color: var(--white);
  font-size: 16.5px;
  user-select: none;
}
details.chapter > summary::-webkit-details-marker { display: none; }
details.chapter > summary .num {
  font-family: var(--font-mono);
  color: var(--crimson-light);
  font-size: 14px;
  background: rgba(142,52,56,0.15);
  border: 1px solid rgba(142,52,56,0.3);
  border-radius: 8px;
  padding: 5px 10px;
  flex-shrink: 0;
}
details.chapter > summary .chev {
  margin-left: auto;
  color: var(--silver);
  transition: transform .2s ease;
  flex-shrink: 0;
}
details.chapter[open] > summary .chev { transform: rotate(180deg); color: var(--crimson-light); }
details.chapter .chapter-body {
  padding: 4px 24px 28px;
  border-top: 1px solid var(--panel-border);
}
details.chapter .chapter-body { padding-top: 22px; }

.rule-block { margin-bottom: 28px; }
.rule-block:last-child { margin-bottom: 0; }
.rule-block h4 {
  font-size: 15.5px;
  color: var(--white);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--panel-border);
}
.rule-block h4 .id {
  font-family: var(--font-mono);
  color: var(--crimson-light);
  font-size: 12.5px;
  margin-right: 8px;
}
.rule-block ul { margin: 0; padding-left: 1.15em; }
.rule-block p { font-size: 14.5px; color: var(--ash); }
.rule-block li { font-size: 14.5px; color: var(--ash); }
.rule-block li::marker { color: var(--crimson-light); }
.rule-block .note {
  font-size: 12.5px;
  color: var(--silver);
  font-style: italic;
  margin-top: 8px;
}

/* Glossary (1.3 Begriffe) */
.glossary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.glossary .term {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.glossary .term dt {
  font-weight: 700;
  color: var(--crimson-light);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .03em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.glossary .term dd {
  margin: 0;
  font-size: 13.8px;
  color: var(--ash);
}

/* Changelog */
.changelog {
  display: grid;
  gap: 0;
  border-left: 2px solid var(--panel-border-strong);
  margin-left: 6px;
  padding-left: 26px;
}
.changelog-entry { position: relative; padding-bottom: 26px; }
.changelog-entry:last-child { padding-bottom: 0; }
.changelog-entry::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 0 4px rgba(142,52,56,0.2);
}
.changelog-date {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--crimson-light);
  margin-bottom: 4px;
  font-weight: 600;
}
.changelog-entry ul { margin: 4px 0 0; padding-left: 1.1em; }
.changelog-entry li { font-size: 13.8px; color: var(--silver); }

/* ---------- Commands ---------- */
.cmd-tabs { display: grid; gap: 14px; }
details.cmd-group {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  overflow: hidden;
}
details.cmd-group > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  color: var(--white);
  font-size: 15px;
}
details.cmd-group > summary::-webkit-details-marker { display: none; }
details.cmd-group > summary .badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--silver);
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  padding: 3px 10px;
}
details.cmd-group > summary .chev { margin-left: auto; color: var(--silver); transition: transform .2s ease; }
details.cmd-group[open] > summary .chev { transform: rotate(180deg); }
.cmd-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--panel-border);
  border-top: 1px solid var(--panel-border);
}
.cmd-row {
  background: var(--panel);
  padding: 13px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cmd-row code {
  font-family: var(--font-mono);
  color: var(--crimson-light);
  font-size: 13.5px;
}
.cmd-row span {
  color: var(--silver);
  font-size: 13px;
}

/* ---------- Roadmap ---------- */
.roadmap-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.roadmap-col {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 20px;
}
.roadmap-col h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.roadmap-col h3 .dot { width: 8px; height: 8px; border-radius: 50%; }
.roadmap-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.roadmap-col li {
  font-size: 13.8px;
  color: var(--ash);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.roadmap-col li b {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--silver);
  white-space: nowrap;
}

/* ---------- FAQ (Gut zu wissen) ---------- */
details.faq {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  padding: 4px 20px;
}
details.faq > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  color: var(--white);
  font-size: 14.5px;
  display: flex;
  gap: 12px;
  align-items: center;
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::before { content: '+'; color: var(--crimson-light); font-size: 18px; font-weight: 700; width: 18px; }
details.faq[open] > summary::before { content: '–'; }
details.faq p { padding-bottom: 16px; color: var(--silver); font-size: 14px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--anthracite);
  border-top: 1px solid var(--panel-border);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 32px; }
.footer-brand span { color: var(--white); font-weight: 800; font-size: 17px; }
.footer-col p { color: var(--silver); font-size: 14px; }
.footer-col h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--silver);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--ash); }
.footer-bottom {
  border-top: 1px solid var(--panel-border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--steel);
}
.footer-bottom a { color: var(--steel); }
.footer-bottom a:hover { color: var(--crimson-light); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--crimson);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 90;
  font-size: 18px;
}
.to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-social-desktop { display: none; }
  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--anthracite);
    padding: 20px 24px 26px;
    border-bottom: 1px solid var(--panel-border);
    gap: 18px;
  }
  body.nav-open .nav-social-mobile {
    display: block;
    padding-top: 6px;
    border-top: 1px solid var(--panel-border);
  }
  section { padding: 64px 0; }
  .hero { min-height: 80vh; padding-top: 100px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cmd-list { grid-template-columns: 1fr; }
}
