/* ==========================================================================
   WolfSec — Design System
   ========================================================================== */

:root {
  /* Brand */
  --ws-ink: #0e1116;
  --ws-ink-soft: #1a1f28;
  --ws-paper: #ffffff;
  --ws-paper-soft: #f4f6f8;
  --ws-line: #e4e8ec;
  --ws-text: #1a1f28;
  --ws-text-muted: #545e6b;
  --ws-text-on-dark: #f4f6f8;
  --ws-text-on-dark-muted: #a6b0bd;
  --ws-accent: #0013cf;
  --ws-accent-dark: #000a8f;
  --ws-accent-bright: #5b6fff;
  --ws-accent-ink: #ffffff;
  --ws-focus: #1a8acb;
  --ws-danger: #b0202b;

  /* Type */
  --ws-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing / shape */
  --ws-radius: 14px;
  --ws-radius-sm: 8px;
  --ws-shadow: 0 1px 2px rgba(14, 17, 22, 0.06), 0 8px 24px rgba(14, 17, 22, 0.06);
  --ws-shadow-hover: 0 4px 10px rgba(14, 17, 22, 0.08), 0 16px 40px rgba(14, 17, 22, 0.10);
  --ws-container: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ws-paper: #12151a;
    --ws-paper-soft: #171b21;
    --ws-line: #262c35;
    --ws-text: #eef1f4;
    --ws-text-muted: #9aa4b2;
    --ws-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --ws-shadow-hover: 0 4px 10px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.4);
    --ws-accent-dark: #5b6fff;
    --ws-danger: #ff7a7a;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--ws-font);
  color: var(--ws-text);
  background: var(--ws-paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
.container { max-width: var(--ws-container); margin: 0 auto; padding: 0 24px; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--ws-ink); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Live banner ---------- */
.live-banner { background: var(--ws-ink); }
.live-banner a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 0; color: var(--ws-text-on-dark-muted); text-decoration: none;
  font-size: 0.85rem; text-align: center;
}
.live-banner a:hover { color: #fff; }
.live-banner .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ws-accent-bright); flex: none;
  animation: sec-pulse 2s ease-in-out infinite;
}
.live-banner strong { color: #fff; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .live-banner .dot { animation: none; } }
@media (max-width: 700px) { .live-banner a { font-size: 0.76rem; padding: 8px 16px; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--ws-paper) 92%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--ws-line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: flex; align-items: center; gap: 0; text-decoration: none; color: var(--ws-text); white-space: nowrap; }
.logo img { height: 52px; width: auto; display: block; background: #fff; border-radius: 4px; padding: 2px 4px; }
.brand { font-family: "Century Gothic", "Questrial", "Segoe UI", Avenir, Futura, sans-serif; }
.logo.text-fallback { font-size: 1.5rem; color: #fff; font-family: "Century Gothic", "Questrial", "Segoe UI", Avenir, Futura, sans-serif; }
.logo.text-fallback b { font-weight: 800; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 10px 6px; border-radius: var(--ws-radius-sm);
  text-decoration: none; font-weight: 600; font-size: 0.92rem; color: var(--ws-text);
}
.main-nav > ul > li > a:hover, .main-nav > ul > li > a:focus-visible { background: var(--ws-paper-soft); }
.main-nav > ul > li > a .caret { font-size: 0.65em; opacity: 0.6; }

.nav-cta {
  margin-left: 8px; padding: 10px 18px; border-radius: 999px;
  background: var(--ws-ink); color: #fff !important; text-decoration: none;
  font-weight: 700; font-size: 0.9rem; white-space: nowrap;
}
.nav-cta:hover { background: var(--ws-accent-dark); }

.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  min-width: 280px; background: var(--ws-paper); border: 1px solid var(--ws-line);
  border-radius: var(--ws-radius); box-shadow: var(--ws-shadow-hover);
  padding: 10px; opacity: 0; visibility: hidden; translate: 0 6px;
  transition: opacity .15s ease, translate .15s ease, visibility .15s;
}
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel { opacity: 1; visibility: visible; translate: 0 0; }
.dropdown-panel a {
  display: block; padding: 10px 12px; border-radius: var(--ws-radius-sm);
  text-decoration: none; color: var(--ws-text); font-size: 0.92rem; font-weight: 500;
}
.dropdown-panel a:hover { background: var(--ws-paper-soft); }
.dropdown-panel a .desc { display: block; font-size: 0.8rem; color: var(--ws-text-muted); font-weight: 400; margin-top: 2px; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
  color: var(--ws-text);
}
.nav-toggle svg { width: 26px; height: 26px; }

.lang-switch {
  display: flex; align-items: center; gap: 2px; margin-left: 10px;
  font-size: 0.82rem; font-weight: 700;
}
.lang-switch a {
  color: var(--ws-text-muted); text-decoration: none; padding: 4px 7px;
  border-radius: var(--ws-radius-sm);
}
.lang-switch a:hover { background: var(--ws-paper-soft); color: var(--ws-text); }
.lang-switch a[aria-current="true"] { color: var(--ws-text); background: var(--ws-paper-soft); }

/* ---------- Mobile nav ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .lang-switch { margin-left: 4px; }
  .main-nav {
    position: fixed; inset: 72px 0 0 0; height: calc(100vh - 72px); background: var(--ws-paper);
    flex-direction: column; align-items: stretch; padding: 12px 20px 40px;
    overflow-y: auto; transform: translateX(100%); transition: transform .25s ease;
    z-index: 200;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; gap: 0; width: 100%; }
  .main-nav > ul > li > a { padding: 16px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--ws-line); }
  .dropdown-panel {
    position: static; transform: none; opacity: 1; visibility: visible; translate: 0;
    box-shadow: none; border: none; min-width: 0; padding: 0 0 8px 12px; display: none;
  }
  .dropdown.open .dropdown-panel { display: block; }
  .dropdown-caret-btn { background: none; border: none; padding: 8px; color: var(--ws-text); }
  .nav-cta { margin: 16px 8px 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 700; font-size: 0.95rem; padding: 13px 24px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .1s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ws-accent); color: var(--ws-accent-ink); }
.btn-primary:hover { background: var(--ws-accent-dark); color: #fff; }
.btn-dark { background: var(--ws-ink); color: #fff; }
.btn-dark:hover { background: var(--ws-accent-dark); }
.btn-ghost { background: transparent; border-color: var(--ws-line); color: var(--ws-text); }
.btn-ghost:hover { border-color: var(--ws-text); }
.btn-on-dark { background: #fff; color: var(--ws-ink); }
.btn-on-dark:hover { background: var(--ws-accent); color: #fff; }
.btn-ghost-on-dark { background: transparent; border-color: rgba(255,255,255,0.3); color: #fff; }
.btn-ghost-on-dark:hover { border-color: #fff; }
.btn-live {
  background: color-mix(in srgb, var(--ws-accent-bright) 14%, transparent);
  border-color: color-mix(in srgb, var(--ws-accent-bright) 45%, transparent);
  color: #fff;
}
.btn-live:hover { border-color: var(--ws-accent-bright); background: color-mix(in srgb, var(--ws-accent-bright) 22%, transparent); }
.btn-live .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ws-accent-bright); flex: none;
  animation: sec-pulse 2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .btn-live .dot { animation: none; } }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; }
.hero.dark { background: var(--ws-ink); color: var(--ws-text-on-dark); }

/* Rotating matrix-style background (pure CSS crossfade, no JS needed) */
.hero.matrix { position: relative; overflow: hidden; isolation: isolate; }
.hero.matrix .matrix-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1);
  transition: opacity 1.5s ease-in-out, transform 8s ease-out 1.5s;
}
.hero.matrix .matrix-bg.is-active {
  opacity: 1;
  transform: scale(1.06);
  transition: opacity 1.5s ease-in-out, transform 8s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .hero.matrix .matrix-bg { transition: opacity 1.5s ease-in-out; }
  .hero.matrix .matrix-bg.is-active { transform: scale(1); transition: opacity 1.5s ease-in-out; }
}
.hero.matrix .matrix-bg:nth-child(1) { background-image: url("../img/hero-bg-1.jpg"); }
.hero.matrix .matrix-bg:nth-child(2) { background-image: url("../img/hero-bg-2-turquoise.jpg"); }
.hero.matrix .matrix-bg:nth-child(3) { background-image: url("../img/hero-bg-3-blue.jpg"); }
/* No-JS / reduced-motion fallback: show the first image statically */
.hero.matrix .matrix-bg:first-child { opacity: 1; }
.hero.matrix::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,10,16,0.55), rgba(6,10,16,0.45) 55%, rgba(6,10,16,0.75));
}
.hero-eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ws-accent-dark); background: color-mix(in srgb, var(--ws-accent) 16%, transparent);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero.dark .hero-eyebrow {
  color: var(--ws-accent-bright); background: rgba(10,14,32,0.28);
  border: 1px solid rgba(91,111,255,0.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); max-width: 20ch; }
.hero .lede { font-size: 1.2rem; color: var(--ws-text-muted); max-width: 56ch; margin-bottom: 32px; }
.hero.dark .lede { color: var(--ws-text-on-dark-muted); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.breadcrumbs { font-size: 0.85rem; color: var(--ws-text-muted); margin-bottom: 18px; }
.breadcrumbs a { text-decoration: none; color: inherit; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
section.block { padding: 64px 0; }
section.block.soft { background: var(--ws-paper-soft); }
section.block.dark { background: var(--ws-ink); color: var(--ws-text-on-dark); }
.block-head { max-width: 62ch; margin-bottom: 40px; }
.block-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.block-head .lede { color: var(--ws-text-muted); font-size: 1.05rem; }
.block.dark .block-head .lede { color: var(--ws-text-on-dark-muted); }

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--ws-paper); border: 1px solid var(--ws-line); border-radius: var(--ws-radius);
  padding: 28px; box-shadow: var(--ws-shadow); transition: box-shadow .2s ease, transform .2s ease;
}
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { box-shadow: var(--ws-shadow-hover); transform: translateY(-2px); }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--ws-accent) 14%, transparent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 1.3rem;
}
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--ws-text-muted); font-size: 0.95rem; margin-bottom: 0; }
.card .card-link { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 0.9rem; color: var(--ws-accent-dark); text-decoration: none; }
.card .card-link:hover { text-decoration: underline; }

/* ---------- Knowledge / explainer boxes ---------- */
.knowledge { background: var(--ws-paper-soft); border-radius: var(--ws-radius); padding: 32px; margin: 32px 0; }
.knowledge h3 { font-size: 1.05rem; }
.knowledge dl { margin: 0; }
.knowledge dt { font-weight: 700; margin-top: 18px; }
.knowledge dt:first-child { margin-top: 0; }
.knowledge dd { margin: 4px 0 0; color: var(--ws-text-muted); }

.telegram-link a {
  display: inline-flex; align-items: center; gap: 14px; font-weight: 700;
  text-decoration: none; color: var(--ws-text);
}
.telegram-link a:hover span { text-decoration: underline; }
.telegram-link img { flex: none; }

.status-log { border: 1px solid var(--ws-line); border-radius: var(--ws-radius); overflow: hidden; }
.status-entry { display: flex; gap: 14px; padding: 20px 24px; }
.status-entry + .status-entry { border-top: 1px solid var(--ws-line); }
.status-dot { flex: none; width: 11px; height: 11px; border-radius: 50%; margin-top: 6px; }
.status-ok .status-dot { background: var(--ws-accent); }
.status-info .status-dot { background: var(--ws-text-muted); }
.status-date { font-size: 0.82rem; color: var(--ws-text-muted); }
.status-title { font-weight: 700; margin-top: 2px; }
.status-entry ul { margin: 10px 0 0; color: var(--ws-text-muted); }

.maintenance-window {
  border: 1px solid var(--ws-line); border-left: 4px solid var(--ws-accent);
  border-radius: var(--ws-radius); padding: 20px 24px; margin: 24px 0;
}
.maintenance-window strong { display: block; margin-bottom: 6px; }

.myth {
  border-left: 3px solid var(--ws-focus); background: color-mix(in srgb, var(--ws-focus) 8%, transparent);
  border-radius: 0 var(--ws-radius-sm) var(--ws-radius-sm) 0; padding: 18px 22px; margin: 24px 0;
}
.myth strong { display: block; margin-bottom: 4px; }

/* ---------- Benefit list ---------- */
.benefits { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.benefits li { display: flex; gap: 12px; align-items: flex-start; }
.benefits li::before {
  content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ws-accent); color: var(--ws-accent-ink); font-size: 0.8rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}

/* ---------- Two-column content ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Pricing ---------- */
.price-card { border: 1px solid var(--ws-line); border-radius: var(--ws-radius); padding: 32px; background: var(--ws-paper); box-shadow: var(--ws-shadow); }
.price-card.featured { border-color: var(--ws-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ws-accent) 22%, transparent); }
.price-card .tag { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ws-accent-dark); }
.price-card .amount { font-size: 2rem; font-weight: 800; margin: 10px 0 2px; }
.price-card .amount small { font-size: 0.95rem; font-weight: 500; color: var(--ws-text-muted); }
.price-card .setup { color: var(--ws-text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; font-size: 0.92rem; }
.price-card ul li { display: flex; gap: 8px; }
.price-card ul li::before { content: "—"; color: var(--ws-text-muted); flex: none; }

/* ---------- Tech-for-technicians ---------- */
.tech-details { margin-top: 56px; border-top: 1px solid var(--ws-line); padding-top: 32px; }
.tech-details > summary {
  cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none;
  display: flex; align-items: center; gap: 10px;
}
.tech-details > summary::-webkit-details-marker { display: none; }
.tech-details > summary::before { content: "▸"; color: var(--ws-accent-dark); transition: transform .15s; }
.tech-details[open] > summary::before { transform: rotate(90deg); }
.tech-details .tech-body { padding-top: 20px; color: var(--ws-text-muted); }
.tech-details .tech-body h4 { color: var(--ws-text); font-size: 0.95rem; margin-top: 20px; }
.tech-details .tech-body ul { font-size: 0.92rem; }

/* ---------- Quote / testimonial-ish ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 700px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat-row .num { font-size: 2.2rem; font-weight: 800; color: var(--ws-accent-dark); }
.hero.dark .stat-row .num, section.dark .stat-row .num { color: var(--ws-accent-bright); }
.stat-row .label { font-size: 0.88rem; color: var(--ws-text-muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ws-ink); color: #fff; border-radius: var(--ws-radius); padding: 48px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--ws-text-on-dark-muted); max-width: 56ch; margin: 0 auto 28px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row-2 { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--ws-line); border-radius: var(--ws-radius-sm);
  font-family: inherit; font-size: 0.98rem; background: var(--ws-paper); color: var(--ws-text);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--ws-focus); outline-offset: 1px; }
textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 0.85rem; color: var(--ws-text-muted); }
.form-banner { padding: 16px 20px; border-radius: var(--ws-radius-sm); margin-bottom: 24px; font-weight: 600; }
.form-banner.ok { background: color-mix(in srgb, var(--ws-accent) 18%, transparent); color: var(--ws-accent-dark); }
.form-banner.error { background: #fbe7e7; color: #5c1a1a; }
@media (prefers-color-scheme: dark) {
  .form-banner.ok { color: #c9cfff; }
  .form-banner.error { color: #ffd7d7; }
}

/* ---------- Profile photo ---------- */
.profile-photo {
  width: 180px; height: 180px; border-radius: 50%; object-fit: cover;
  box-shadow: var(--ws-shadow); margin-bottom: 24px; border: 3px solid var(--ws-paper);
  outline: 1px solid var(--ws-line);
}

/* ---------- Info list (contact/location) ---------- */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.info-list li { display: flex; gap: 14px; }
.info-list .k { flex: none; width: 120px; color: var(--ws-text-muted); font-size: 0.9rem; }
.info-list .v { font-weight: 600; }
.info-list a { text-decoration: none; }
.info-list a:hover { text-decoration: underline; }

.availability-table { border-collapse: collapse; font-weight: 400; width: 100%; table-layout: fixed; }
.availability-table td { padding: 3px 0; vertical-align: top; }
.availability-table td:first-child { color: var(--ws-text-muted); padding-right: 12px; width: 60%; }
.availability-table td:last-child { width: 40%; }
@media (max-width: 480px) {
  .availability-table, .availability-table tbody, .availability-table tr, .availability-table td { display: block; width: 100%; }
  .availability-table td:first-child { padding-right: 0; white-space: normal; font-weight: 600; color: var(--ws-text); margin-top: 8px; }
  .availability-table tr:first-child td:first-child { margin-top: 0; }
}

.pricing-table { width: 100%; border-collapse: collapse; }
.pricing-table td { padding: 10px 0; border-bottom: 1px solid var(--ws-line); vertical-align: top; }
.pricing-table td:first-child { padding-right: 20px; }
.pricing-table td:last-child { color: var(--ws-text-muted); text-align: right; width: 38%; }
@media (max-width: 560px) {
  .pricing-table, .pricing-table tbody { display: block; width: 100%; }
  .pricing-table tr { display: block; border-bottom: 1px solid var(--ws-line); padding-bottom: 8px; margin-bottom: 8px; }
  .pricing-table td { display: block; width: 100% !important; border-bottom: none; padding: 2px 0; }
  .pricing-table td:last-child { text-align: left; }
}

.partner-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.partner-table th, .partner-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--ws-line); }
.partner-table th { color: var(--ws-text-muted); font-size: 0.85rem; font-weight: 600; }
.partner-table a { color: var(--ws-text); text-decoration: none; font-weight: 600; }
.partner-table a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ws-ink); color: var(--ws-text-on-dark-muted); padding: 56px 0 28px; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.footer-logo-vertical { display: inline-block; background: #fff; border-radius: var(--ws-radius); padding: 14px 18px; margin-bottom: 16px; }
.footer-logo-vertical img { display: block; height: 120px; width: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.92rem; }
.footer-grid a { text-decoration: none; color: var(--ws-text-on-dark-muted); }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem;
}
.footer-bottom a { text-decoration: none; color: var(--ws-text-on-dark-muted); }
.footer-bottom a:hover { color: #fff; }
.footer-legal-links { display: flex; gap: 6px; flex-wrap: wrap; }
.footer-legal-links span { opacity: .4; }
.footer-nostalgia { text-align: center; margin-top: 16px; font-size: 0.75rem; opacity: .5; }
.footer-nostalgia a { text-decoration: none; color: var(--ws-text-on-dark-muted); }
.footer-nostalgia a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Misc content pages (legal, sitemap) ---------- */
.prose { max-width: 76ch; }
.prose h2 { margin-top: 2em; font-size: 1.3rem; }
.prose h3 { margin-top: 1.5em; font-size: 1.05rem; }
.prose ul { color: var(--ws-text); }

.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 780px) { .sitemap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .sitemap-grid { grid-template-columns: 1fr; } }
.sitemap-grid h3 { font-size: 0.95rem; }
.sitemap-grid ul { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 0.92rem; }
.sitemap-grid a { text-decoration: none; color: var(--ws-text-muted); }
.sitemap-grid a:hover { color: var(--ws-text); text-decoration: underline; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-muted { color: var(--ws-text-muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Security Status (live dashboard) ---------- */
.sec-updated {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--ws-text-muted);
  margin-bottom: 28px;
}
.sec-updated .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ws-accent);
  animation: sec-pulse 2s ease-in-out infinite;
}
.sec-updated.stale .dot { background: var(--ws-danger); animation: none; }
@keyframes sec-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .sec-updated .dot { animation: none; } }

.sec-peak-row { display: flex; gap: 20px; flex-wrap: wrap; }
.sec-peak {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  flex: 1; min-width: 260px; padding: 16px; border: 1px solid var(--ws-line); border-radius: var(--ws-radius-sm);
}
.sec-peak .num { font-size: 40px; font-weight: 800; color: var(--ws-text); line-height: 1; }
.sec-peak .num small { font-size: 18px; font-weight: 600; color: var(--ws-text-muted); }
.sec-peak .meta p { font-size: 18px; font-weight: 700; color: var(--ws-text); margin: 0; line-height: 1.4; }
.sec-peak-record .num { color: var(--ws-danger); }

.sec-windows { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 16px; margin-top: 20px; }
.sec-windows div { text-align: center; }
.sec-windows .n { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sec-windows .l { font-size: 0.78rem; color: var(--ws-text-muted); margin-top: 2px; }

.data-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.data-table th, .data-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--ws-line); font-size: 0.92rem; }
.data-table th { color: var(--ws-text-muted); font-size: 0.8rem; font-weight: 600; }
.data-table td.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .scrollx { overflow-x: auto; }

.sec-chart-note { font-size: 0.85rem; color: var(--ws-text-muted); margin-top: 10px; }
.sec-chart svg { display: block; width: 100%; height: auto; }
.sec-chart .grid-line { stroke: var(--ws-line); stroke-width: 1; }
.sec-chart .axis-label { fill: var(--ws-text-muted); font-size: 10px; }
.sec-chart .line-avg { fill: none; stroke: var(--ws-accent); stroke-width: 2; }
.sec-chart .line-peak { fill: none; stroke: var(--ws-danger); stroke-width: 1.4; stroke-dasharray: 3 3; opacity: 0.8; }
.sec-legend { display: flex; gap: 20px; margin-top: 6px; font-size: 0.82rem; color: var(--ws-text-muted); }
.sec-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sec-legend i { width: 14px; height: 2px; display: inline-block; }
.sec-legend .i-avg { background: var(--ws-accent); }
.sec-legend .i-peak { background: var(--ws-danger); opacity: 0.8; }

.sec-loading, .sec-error { padding: 40px 24px; text-align: center; color: var(--ws-text-muted); }
.sec-error { color: var(--ws-danger); }
.sec-card-title { font-size: 1.15rem; margin: 0 0 18px; }
.sec-stack > .card { margin-bottom: 24px; }
