/* ==========================================================================
   Blind Killers — الموقع الرسمي
   Main stylesheet | RTL-first | Accessibility-first (WCAG 2.2 AA)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Palette — dark (default) */
  --bg:            #070a12;
  --bg-2:          #0d1220;
  --surface:       #131a2b;
  --surface-2:     #1b2437;
  --surface-3:     #253048;
  --border:        #2b3750;
  --border-strong: #3d4c6b;

  --text:          #f2f5fb;
  --text-muted:    #b6c0d6;
  --text-faint:    #8b97b0;

  --accent:        #8b6cff;
  --accent-2:      #35e6ff;
  --accent-3:      #ff5c8a;
  --success:       #3ddc97;
  --warning:       #ffc861;
  --danger:        #ff6b6b;

  --focus:         #ffd166;

  --grad-brand: linear-gradient(120deg, #8b6cff 0%, #35e6ff 55%, #ff5c8a 100%);
  --grad-text:   linear-gradient(100deg, #ffffff 0%, #c9bcff 45%, #8ee9ff 100%);

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

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .35);
  --shadow:    0 12px 34px rgba(0, 0, 0, .45);
  --shadow-lg: 0 26px 70px rgba(0, 0, 0, .55);

  --container: 1200px;
  --header-h:  72px;

  --step--1: clamp(.82rem, .79rem + .16vw, .9rem);
  --step-0:  clamp(1rem, .96rem + .22vw, 1.1rem);
  --step-1:  clamp(1.2rem, 1.13rem + .38vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.32rem + .65vw, 1.85rem);
  --step-3:  clamp(1.8rem, 1.55rem + 1.15vw, 2.5rem);
  --step-4:  clamp(2.15rem, 1.72rem + 2vw, 3.4rem);

  --font-body: "Segoe UI", "Noto Kufi Arabic", "Noto Naskh Arabic", Tahoma,
               "Dubai", "Cairo", "Arial", sans-serif;
  --font-display: "Segoe UI Semibold", "Noto Kufi Arabic", "Impact",
                  "Arial Black", var(--font-body);

  --t-fast: .16s ease;
  --t-med:  .28s cubic-bezier(.4, 0, .2, 1);
}

/* Light theme */
[data-theme="light"] {
  color-scheme: light;
  --bg:            #f4f6fb;
  --bg-2:          #ffffff;
  --surface:       #ffffff;
  --surface-2:     #eef1f8;
  --surface-3:     #e0e6f2;
  --border:        #cfd7e6;
  --border-strong: #aab6cc;
  --text:          #10162a;
  --text-muted:    #44506b;
  --text-faint:    #5d6985;
  --accent:        #5b3df0;
  --accent-2:      #0077a8;
  --accent-3:      #c92563;
  --success:       #0f7a4d;
  --warning:       #8a5b00;
  --danger:        #b3261e;
  --focus:         #7a4d00;
  --grad-brand: linear-gradient(120deg, #5b3df0 0%, #0077a8 55%, #c92563 100%);
  --grad-text:   linear-gradient(100deg, #10162a 0%, #3c2a9c 50%, #005b80 100%);
  --shadow-sm: 0 2px 8px rgba(16, 22, 42, .08);
  --shadow:    0 12px 30px rgba(16, 22, 42, .12);
  --shadow-lg: 0 24px 60px rgba(16, 22, 42, .16);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1100px 600px at 85% -10%, rgba(139, 108, 255, .18), transparent 60%),
    radial-gradient(900px 520px at 5% 0%, rgba(53, 230, 255, .13), transparent 55%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Text-size preference toggle (applied on <html>) */
html[data-font="lg"] { font-size: 112.5%; }
html[data-font="xl"] { font-size: 125%; }

img, svg, video { display: block; max-width: 100%; height: auto; }

a { color: var(--accent-2); text-decoration-thickness: 2px; text-underline-offset: .22em; }
a:hover { color: var(--accent); }

button, input, select, textarea { font: inherit; color: inherit; }

/* --------------------------------------------------------------------------
   3. Accessibility primitives
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Visible focus for every interactive element */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 999;
  background: var(--accent);
  color: #fff;
  padding: .8rem 1.4rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: top var(--t-fast);
}
.skip-link:focus { top: 0; color: #fff; }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

main { display: block; min-height: 55vh; }

.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--alt { background: linear-gradient(180deg, transparent, rgba(139,108,255,.07), transparent); }

.section__head { max-width: 62ch; margin-bottom: 2.5rem; }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--accent-2);
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

.lead { font-size: var(--step-1); color: var(--text-muted); max-width: 65ch; }
.muted { color: var(--text-muted); }
.text-grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-grad-fallback { color: var(--text); }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .text-grad { color: transparent; }
}

.visually-hidden-heading {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .75rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-weight: 700;
  font-size: var(--step-0);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast),
              background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad-brand);
  background-size: 200% 100%;
  color: #fff;
  box-shadow: 0 10px 26px rgba(139, 108, 255, .35);
}
.btn--primary:hover { color: #fff; box-shadow: 0 14px 34px rgba(139, 108, 255, .5); background-position: 100% 0; }

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--text); background: var(--surface-2); }

.btn--lg { min-height: 56px; padding-inline: 2rem; font-size: var(--step-1); }
.btn--block { width: 100%; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn__icon { width: 1.15em; height: 1.15em; flex: none; }

/* --------------------------------------------------------------------------
   6. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(7, 10, 18, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .site-header { background: rgba(255, 255, 255, .86); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-1);
  letter-spacing: .02em;
  padding: .35rem;
  border-radius: var(--radius-sm);
}
.brand:hover { color: var(--text); }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { text-transform: uppercase; letter-spacing: .06em; }
.brand__sub { font-size: .62rem; letter-spacing: .26em; color: var(--accent-2); font-weight: 700; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: .35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.primary-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
  position: relative;
}
.primary-nav__link:hover { color: var(--text); background: var(--surface-2); }
.primary-nav__link[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
}
.primary-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: 1rem;
  bottom: .3rem;
  height: 3px;
  border-radius: 3px;
  background: var(--grad-brand);
}

.header-tools { display: flex; align-items: center; gap: .4rem; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast), background-color var(--t-fast);
}
.icon-btn:hover { color: var(--text); border-color: var(--accent); background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn[aria-pressed="true"] { color: var(--accent-2); border-color: var(--accent-2); }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 7rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .18;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; gap: 3rem; }
.hero__content { max-width: 46rem; }
.hero__title { margin-block: .3rem .9rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.stat__value { font-family: var(--font-display); font-size: var(--step-2); font-weight: 900; color: var(--accent-2); }
.stat__label { font-size: var(--step--1); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   8. Cards & grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
}
.card--link { display: flex; flex-direction: column; gap: .8rem; text-decoration: none; color: inherit; }
.card--link:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); color: inherit; }
.card--link:hover .card__title { color: var(--accent-2); }

.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--accent-2);
  border: 1px solid var(--border);
}
.card__icon svg { width: 26px; height: 26px; }
.card__title { font-size: var(--step-1); transition: color var(--t-fast); }
.card__text { color: var(--text-muted); font-size: var(--step--1); }

.card__cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 700; color: var(--accent-2);
}
.card__cta svg { width: 18px; height: 18px; transition: transform var(--t-fast); }
.card--link:hover .card__cta svg { transform: translateX(-4px); }

/* Game card */
.game-card__media {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
}
.game-card__media img { width: 100%; height: 100%; object-fit: cover; }

.tag-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .2rem; }
.tag {
  font-size: .78rem;
  font-weight: 700;
  padding: .25rem .7rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.tag--ok { color: var(--success); border-color: rgba(61, 220, 151, .45); background: rgba(61, 220, 151, .12); }
.tag--soon { color: var(--warning); border-color: rgba(255, 200, 97, .45); background: rgba(255, 200, 97, .12); }
.tag--new { color: var(--accent-2); border-color: rgba(53, 230, 255, .45); background: rgba(53, 230, 255, .12); }

/* --------------------------------------------------------------------------
   9. Toolbar / filter (games page)
   -------------------------------------------------------------------------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 2rem;
}
.field { display: flex; flex-direction: column; gap: .35rem; flex: 1 1 260px; }
.field__label { font-weight: 700; font-size: var(--step--1); }
.field__hint { font-size: .8rem; color: var(--text-faint); }

.input, .select {
  min-height: 48px;
  width: 100%;
  padding: .6rem .9rem;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
}
.input::placeholder { color: var(--text-faint); }

.results-status {
  margin-block: 1rem 1.5rem;
  color: var(--text-muted);
  font-size: var(--step--1);
}
.results-status strong { color: var(--text); }

.empty-state {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   10. Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs { padding-block: 1.25rem .25rem; }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  list-style: none; padding: 0; margin: 0;
  font-size: var(--step--1); color: var(--text-faint);
}
.breadcrumbs li { display: flex; align-items: center; gap: .5rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--border-strong); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-2); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 700; }

/* --------------------------------------------------------------------------
   11. Game detail page
   -------------------------------------------------------------------------- */
.game-hero {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
}
.game-hero__banner {
  aspect-ratio: 21 / 9;
  background:
    radial-gradient(900px 320px at 20% 10%, rgba(139,108,255,.35), transparent 60%),
    radial-gradient(700px 300px at 90% 90%, rgba(53,230,255,.28), transparent 60%),
    var(--surface-2);
  display: grid; place-items: center;
  position: relative;
}
.game-hero__banner::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.game-hero__logo { position: relative; z-index: 1; width: min(320px, 60%); }
.game-hero__body { padding: clamp(1.5rem, 4vw, 2.5rem); }

.meta-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0; margin: 1.5rem 0 0;
}
.meta-list div {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1rem;
}
.meta-list dt { font-size: .78rem; color: var(--text-faint); font-weight: 700; letter-spacing: .04em; }
.meta-list dd { margin: 0; font-weight: 700; }

.content-layout { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
  .content-layout--sidebar { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.panel + .panel { margin-top: 1.5rem; }
.panel__title {
  display: flex; align-items: center; gap: .6rem;
  font-size: var(--step-1); margin-bottom: 1rem;
}
.panel__title svg { width: 22px; height: 22px; color: var(--accent-2); flex: none; }

.prose p + p { margin-top: 1rem; }
.prose ul { margin: 1rem 0 0; padding-inline-start: 1.35rem; }
.prose li + li { margin-top: .5rem; }
.prose strong { color: var(--text); }

.mode-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.mode-list li {
  display: flex; gap: .8rem; align-items: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
}
.mode-list li::before {
  content: "";
  flex: none;
  width: 10px; height: 10px; margin-top: .55rem;
  border-radius: 3px;
  background: var(--grad-brand);
}

/* Download rows */
.download-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.download-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}
.download-item__icon {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--accent-2);
}
.download-item__icon svg { width: 24px; height: 24px; }
.download-item__body { flex: 1 1 220px; min-width: 0; }
.download-item__title { font-weight: 800; font-size: var(--step-0); }
.download-item__meta { font-size: var(--step--1); color: var(--text-faint); }
.download-item__action { flex: 0 0 auto; }
.download-item--soon { border-style: dashed; }
.download-item--soon .download-item__icon { color: var(--warning); }

.notice {
  display: flex; gap: .85rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--accent-2);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  color: var(--text-muted);
  font-size: var(--step--1);
}
.notice svg { width: 22px; height: 22px; flex: none; color: var(--accent-2); margin-top: .2rem; }
.notice--warn { border-inline-start-color: var(--warning); }
.notice--warn svg { color: var(--warning); }

/* Requirements table */
.table-wrap { overflow-x: auto; }
table.spec { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
table.spec caption {
  text-align: start;
  font-weight: 700;
  padding-bottom: .75rem;
  color: var(--text-muted);
}
table.spec th, table.spec td { padding: .75rem 1rem; text-align: start; border-bottom: 1px solid var(--border); }
table.spec thead th { background: var(--surface-2); font-weight: 800; color: var(--text); }
table.spec tbody th { font-weight: 600; color: var(--text-muted); }

/* Sidebar TOC */
.toc { position: sticky; top: calc(var(--header-h) + 1.25rem); }
.toc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.toc__link {
  display: block;
  padding: .55rem .9rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 600;
  border-inline-start: 3px solid transparent;
}
.toc__link:hover { background: var(--surface-2); color: var(--text); }
.toc__link[aria-current="true"] { color: var(--accent-2); border-inline-start-color: var(--accent-2); background: var(--surface-2); }

/* --------------------------------------------------------------------------
   12. About page
   -------------------------------------------------------------------------- */
.team-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.team-card__avatar {
  width: 82px; height: 82px; margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(139, 108, 255, .35);
}
.team-card h3 { font-size: var(--step-1); margin-bottom: .35rem; }
.team-card p { color: var(--text-muted); font-size: var(--step--1); }

.value-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.value-list li {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
}
.value-list svg { width: 26px; height: 26px; flex: none; color: var(--accent-2); margin-top: .25rem; }

.quote {
  border-inline-start: 4px solid var(--accent);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  font-size: var(--step-1);
  color: var(--text);
}
.quote footer { margin-top: .75rem; font-size: var(--step--1); color: var(--text-faint); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute; inset-inline-start: 11px; top: .5rem; bottom: .5rem;
  width: 2px; background: var(--border);
}
.timeline li { position: relative; padding-inline-start: 2.75rem; padding-bottom: 1.75rem; }
.timeline li::before {
  content: "";
  position: absolute; inset-inline-start: 4px; top: .35rem;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline h3 { font-size: var(--step-1); }
.timeline p { color: var(--text-muted); font-size: var(--step--1); }

/* --------------------------------------------------------------------------
   13. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  background:
    radial-gradient(700px 260px at 50% 0%, rgba(139,108,255,.24), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow);
}
.cta-band .btn-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.75rem; }

/* Server status widget */
.server-box {
  display: inline-flex; align-items: center; gap: .75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .5rem .5rem .5rem 1.1rem;
  font-size: var(--step--1);
}
.server-box code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--text); font-weight: 700; }
.status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, .2);
  flex: none;
}
.copy-btn {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 999px;
  min-height: 36px;
  padding: 0 1rem;
  cursor: pointer;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--text-muted);
}
.copy-btn:hover { color: var(--text); border-color: var(--accent); }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding-block: 3rem 1.5rem;
}
.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.site-footer h2 {
  font-size: var(--step-0);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 1rem;
  color: var(--text);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent-2); text-decoration: underline; }
.site-footer p { color: var(--text-muted); font-size: var(--step--1); }

.social-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.social-link {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.social-link:hover { color: var(--accent-2); border-color: var(--accent); transform: translateY(-2px); }
.social-link svg { width: 20px; height: 20px; }

.copyright {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--step--1);
}
.copyright strong { color: var(--text); }

/* --------------------------------------------------------------------------
   15. Toast (live feedback)
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  inset-block-end: 1.5rem;
  inset-inline-start: 50%;
  transform: translateX(50%) translateY(150%);
  z-index: 200;
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: .75rem 1.5rem;
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  font-size: var(--step--1);
  transition: transform var(--t-med);
  max-width: 90vw;
  text-align: center;
}
.toast.is-visible { transform: translateX(50%) translateY(0); }

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    inset-block-start: var(--header-h);
    inset-inline: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.5rem;
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav__list { flex-direction: column; align-items: stretch; gap: .25rem; }
  .primary-nav__link { min-height: 48px; font-size: var(--step-1); }
  .primary-nav__link[aria-current="page"]::after { inset-inline: .5rem auto; width: 4px; height: calc(100% - 1rem); bottom: .5rem; }
  .header-tools .icon-btn[data-tool="font"] { display: none; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 1.75rem, var(--container)); }
  .hero__actions .btn { width: 100%; }
  .card { padding: 1.35rem; }
  .download-item__action .btn { width: 100%; }
  .brand__sub { display: none; }
}

/* --------------------------------------------------------------------------
   17. Motion & print preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .card--link:hover, .btn:hover, .social-link:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .toolbar, .hero__actions, .toast, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

@media (forced-colors: active) {
  .btn, .card, .panel, .tag, .download-item { border: 1px solid CanvasText; }
  :where(a, button, input, select, textarea):focus-visible { outline: 3px solid Highlight; }
}
