/* AegisBoard on whitegravity.net — faithful port of the approved glass mockup.
   Bespoke page CSS only: this file layers the White Gravity glassy design
   over the real AegisBoard app (css/style.css). It changes presentation
   only; no app behavior lives here. Tokens, fonts, hero, KPI strip, cards,
   engines panel and footer are taken from the approved mockup
   (aegisboard-glass-tools-mockup.html, approved 2026-11-23). Fonts and
   images are the site's own local files (assets/fonts/, assets/wg-logo.png,
   assets/persepolis-3d-v2.jpg) — the mockup embeds the exact same files. */

/* ---------- Mockup fonts (local, same files the mockup embeds) ---------- */
@font-face { font-family: "Archivo"; src: url("../../assets/fonts/archivo-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../../assets/fonts/archivo-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../../assets/fonts/geist-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../../assets/fonts/geist-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../../assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --canvas: #07090d;
  --surface: #0d1218;
  --ink: #e8eef6;
  --ink-soft: #8fa3b8;
  --ink-faint: #5f7288;
  --sapphire: #5b8def;
  --violet: #9b7bf5;
  --amber: #e8a33d;
  --red: #e5484d;
  --cyan: #22d3ee;
  --glass-bg: rgba(16, 23, 34, 0.55);
  --glass-bg-strong: rgba(13, 18, 24, 0.72);
  --glass-border: rgba(232, 238, 246, 0.12);
  --glass-border-bright: rgba(232, 238, 246, 0.28);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  --shadow-deep: 0 24px 60px rgba(0, 0, 0, 0.5);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  /* Remap the base app tokens onto the mockup palette */
  --bg: #07090d;
  --bg-2: #0d1218;
  --panel: rgba(16, 23, 34, 0.55);
  --panel-2: rgba(13, 18, 24, 0.72);
  --border: rgba(232, 238, 246, 0.12);
  --border-strong: rgba(232, 238, 246, 0.28);
  --text: #e8eef6;
  --text-2: #8fa3b8;
  --text-3: #5f7288;
  --accent: #5b8def;
  --accent-dim: rgba(91, 139, 239, 0.16);
  --radius: 20px;
  --font: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

/* ---------- Ambient colour field behind everything ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(52rem 30rem at 12% -6%, rgba(91, 139, 239, 0.16), transparent 62%),
    radial-gradient(44rem 28rem at 88% 8%, rgba(155, 123, 245, 0.13), transparent 60%),
    radial-gradient(38rem 26rem at 50% 108%, rgba(34, 211, 238, 0.08), transparent 60%),
    radial-gradient(30rem 20rem at 78% 62%, rgba(232, 163, 61, 0.06), transparent 60%),
    var(--canvas);
}
.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 238, 246, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 238, 246, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 78%);
}

html { scroll-behavior: smooth; }
body { background: var(--canvas); font-family: var(--font); font-size: 16px; }

/* ---------- Page layout: floating topbar + centred column (mockup) ---------- */
#app { display: block; height: auto; min-height: 100vh; overflow: visible; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

#topbar {
  position: sticky;
  top: 12px;
  z-index: 40;
  margin: 12px auto 0;
  max-width: 1180px;
  width: calc(100% - 24px);
  height: auto;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: var(--glass-highlight), var(--shadow-deep);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); min-height: 40px; flex: none; padding: 0; }
.brand img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.brand .wordmark { font-family: "Archivo", sans-serif; font-weight: 800; letter-spacing: 0.14em; font-size: 0.82rem; display: block; }
.brand .sub { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.22em; color: var(--ink-soft); display: block; margin-top: 1px; }

#nav { margin-left: auto; display: flex; align-items: center; gap: 4px; overflow-x: auto; flex: 1; min-width: 0; padding: 2px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, black 90%, transparent 100%); mask-image: linear-gradient(90deg, black 90%, transparent 100%); }
#nav::-webkit-scrollbar { display: none; }
.nav-section { display: none; }
.nav-item {
  white-space: nowrap;
  padding: 9px 13px;
  border-radius: 9px;
  min-height: 38px;
  font-size: 0.86rem;
  gap: 8px;
}
.nav-item:hover { color: var(--ink); background: rgba(232, 238, 246, 0.07); }
.topbar-ft { flex: none; }
.nav-item.active { background: var(--accent-dim); color: var(--ink); border-color: rgba(91, 139, 239, 0.4); }
.nav-item .nav-meta { display: none; }
.nav-dot { width: 8px; height: 8px; }

.status-pill-top {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.08);
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-pill-top .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.status-pill-top .dot.ok { background: var(--ok); box-shadow: 0 0 8px rgba(52, 211, 153, 0.8); }
.status-pill-top .dot.pulse { background: var(--amber); animation: pulse 1.6s ease-in-out infinite; }

#crumb {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 26px 0 0;
}
#crumb b { color: var(--ink); font-weight: 500; }

#view { flex: none; overflow: visible; padding: 0 0 34px; }

/* ---------- Glass primitives ---------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--shadow-deep);
}
.card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-highlight), var(--shadow-deep);
}

/* ---------- Hero (mockup) ---------- */
.hero-dash { position: relative; margin-top: 22px; border-radius: 26px; overflow: hidden; border: 1px solid var(--glass-border); box-shadow: var(--shadow-deep); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 9, 13, 0.52) 0%, rgba(7, 9, 13, 0.34) 42%, rgba(7, 9, 13, 0.88) 100%); }
.hero-inner { position: relative; padding: 64px 26px 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.hero-panel {
  border-radius: var(--radius-lg);
  padding: 30px 30px 28px;
  max-width: 640px;
  width: 100%;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--shadow-deep);
}
.hero-kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--cyan);
  margin: 0 0 14px;
}
.hero-panel h1 {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5.4vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.hero-panel h1 .thin { color: var(--ink-soft); font-weight: 700; }
.hero-sub { color: #c6d3e2; font-size: 1.05rem; line-height: 1.6; margin: 0 0 26px; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- KPI strip (mockup) ---------- */
.kpis {
  position: relative;
  margin: 22px 0 0;
  width: 100%;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--shadow-deep);
}
.kpi { padding: 20px 22px; text-align: left; }
.kpi + .kpi { border-left: 1px solid var(--glass-border); }
.kpi .num { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.9rem; line-height: 1; display: block; }
.kpi .lbl { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.2em; color: var(--ink-soft); display: block; margin-top: 7px; }
.kpi .num.c-cyan { color: var(--cyan); }
.kpi .num.c-sapphire { color: var(--sapphire); }
.kpi .num.c-violet { color: var(--violet); }
.kpi .num.c-amber { color: var(--amber); }

/* ---------- Sections (mockup) ---------- */
section { margin-top: 64px; }
.section-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.section-head h2 { font-family: "Archivo", sans-serif; font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 0; letter-spacing: -0.01em; }
.section-note { color: var(--ink-soft); margin: 6px 0 0; max-width: 44rem; }
.section-title { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; }
.section-sub { color: var(--ink-soft); }

/* ---------- Filter chips (mockup) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0 26px; }
.chip {
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--ink-soft);
  background: rgba(232, 238, 246, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 9px 17px;
  min-height: 42px;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { color: var(--ink); border-color: var(--glass-border-bright); transform: translateY(-1px); }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] {
  color: #06121f;
  background: linear-gradient(180deg, #7db4ff, var(--sapphire));
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 22px rgba(91, 139, 239, 0.4);
}
.chip .count { font-family: var(--mono); font-size: 0.7rem; opacity: 0.75; margin-left: 5px; }

/* ---------- Tool grid + cards (mockup) ---------- */
.grid.tools { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool-card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.3, 1.2), border-color 200ms ease, box-shadow 240ms ease;
  -webkit-tap-highlight-color: transparent;
}
.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px 200px at var(--mx) var(--my), color-mix(in srgb, var(--tc, var(--accent)) 16%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}
.card.hoverable.tool-card:hover,
.card.hoverable.tool-card:focus-visible {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--tc, var(--accent)) 55%, transparent);
  box-shadow: var(--glass-highlight), 0 26px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px color-mix(in srgb, var(--tc, var(--accent)) 25%, transparent), 0 12px 44px color-mix(in srgb, var(--tc, var(--accent)) 22%, transparent);
  outline: none;
}
.card.hoverable.tool-card:hover::before,
.card.hoverable.tool-card:focus-visible::before { opacity: 1; }
.card.hoverable.tool-card:active { transform: translateY(-2px) scale(0.985); transition-duration: 80ms; }
.tool-card[hidden] { display: none; }

.tool-card .tool-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; position: relative; }
.tool-card .tool-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--tc, var(--accent));
  background: color-mix(in srgb, var(--tc, var(--accent)) 13%, rgba(255, 255, 255, 0.03));
  border: 1px solid color-mix(in srgb, var(--tc, var(--accent)) 38%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 18px color-mix(in srgb, var(--tc, var(--accent)) 18%, transparent);
  transition: transform 220ms ease;
}
.tool-card .tool-icon svg { width: 26px; height: 26px; }
.tool-card:hover .tool-icon { transform: scale(1.07) rotate(-3deg); }
.tool-card .tool-arrow {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  border: 1px solid var(--glass-border);
  background: rgba(232, 238, 246, 0.04);
  transition: color 200ms ease, background 200ms ease, border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.tool-card .tool-arrow svg { width: 15px; height: 15px; }
.tool-card:hover .tool-arrow {
  color: #06121f;
  background: var(--tc, var(--accent));
  border-color: transparent;
  transform: rotate(45deg);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--tc, var(--accent)) 45%, transparent);
}
.tool-card .tool-name { display: block; font-family: "Archivo", sans-serif; font-weight: 700; font-size: 1.22rem; margin: 16px 0 3px; position: relative; }
.tool-card .tool-tag { display: block; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.18em; color: var(--tc, var(--accent)); margin: 0 0 10px; position: relative; }
.tool-card .tool-desc { display: block; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; margin: 0 0 18px; position: relative; min-height: 4.3em; }
.tool-card .tool-meta { display: flex; gap: 7px; flex-wrap: wrap; position: relative; align-items: center; }
.tool-card .tool-meta .status-pill { margin-left: auto; }

/* Static cards (AegisBoard + BlackEcho) are links, not workspaces */
a.tool-card { text-decoration: none; color: var(--ink); display: block; }
button.tool-card { background: var(--glass-bg); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); border: 1px solid var(--glass-border); box-shadow: var(--glass-highlight), var(--shadow-deep); }

/* ---------- Pills (mockup) ---------- */
.pill {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  border: 1px solid var(--glass-border);
  background: rgba(232, 238, 246, 0.05);
  padding: 5px 9px;
  border-radius: 999px;
}
.pill.live { color: var(--cyan); border-color: rgba(34, 211, 238, 0.4); background: rgba(34, 211, 238, 0.08); }
.status-pill { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; }
.status-pill.on { background: rgba(52, 211, 153, 0.13); color: var(--ok); border: 1px solid rgba(52, 211, 153, 0.3); }
.status-pill.off { background: rgba(248, 113, 113, 0.1); color: var(--crit); border: 1px solid rgba(248, 113, 113, 0.3); }

.empty-note { display: none; color: var(--ink-soft); text-align: center; padding: 30px 0; }
.empty-note.show { display: block; }

/* ---------- Engines panel (mockup) ---------- */
.engines-panel { border-radius: var(--radius-lg); padding: 28px; margin-top: 22px; }
.engine-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0 24px; }
.engine {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: rgba(232, 238, 246, 0.04);
  font-weight: 500; font-size: 0.95rem;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.engine:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, 0.45); background: rgba(34, 211, 238, 0.07); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35); }
.engine .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px rgba(34, 211, 238, 0.8); flex: none; }
.engine .dot.off { background: var(--crit); box-shadow: 0 0 10px rgba(248, 113, 113, 0.8); }
.engine .role { display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.14em; color: var(--ink-soft); margin-top: 2px; }

/* ---------- Footer (mockup) ---------- */
footer { margin: 70px 0 34px; }
.footer-card { border-radius: var(--radius-lg); padding: 24px 26px; display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.footer-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; max-width: 52rem; }
.footer-card strong { color: var(--ink); }
.footer-card a { color: var(--sapphire); }

/* ---------- Buttons (mockup) ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 20px;
  min-height: 48px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 200ms ease, background 160ms ease, border-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary {
  color: #06121f;
  background: linear-gradient(180deg, #7db4ff, var(--sapphire));
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 28px rgba(91, 139, 239, 0.38);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 16px 36px rgba(91, 139, 239, 0.5); }
.btn-primary:active { transform: translateY(0) scale(0.98); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-glass {
  color: var(--ink);
  background: rgba(232, 238, 246, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-color: var(--glass-border-bright);
  box-shadow: var(--glass-highlight);
}
.btn-glass:hover { transform: translateY(-2px); background: rgba(232, 238, 246, 0.14); box-shadow: var(--glass-highlight), 0 14px 30px rgba(0, 0, 0, 0.4); }
.btn-glass:active { transform: translateY(0) scale(0.98); }

/* ---------- Tool workspace: mockup tokens on the real layout ---------- */
.hero { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; margin-top: 22px; }
.hero-mark { width: 52px; height: 52px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-mark svg { width: 26px; height: 26px; }
.hero h1 { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.7rem; letter-spacing: -0.01em; }
.hero .domain { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.22em; }
.hero .tagline { font-size: 1rem; }
.action-card { border-radius: var(--radius-lg); }
.field input[type="text"], .field textarea, .field input[type="file"] { border-radius: var(--radius-sm); }
.field input:focus, .field textarea:focus { border-color: var(--sapphire); box-shadow: 0 0 0 3px rgba(91, 139, 239, 0.18); }
.json-view { border-radius: var(--radius-md); }

/* ---------- Backend-unreachable notice ---------- */
.move-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid rgba(232, 163, 61, 0.45);
  background: rgba(232, 163, 61, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 22px 0 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.move-note b { color: var(--ink); }
.move-note a { color: var(--cyan); }
.move-note .move-mark {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 17px;
  color: var(--amber);
  background: rgba(232, 163, 61, 0.13);
  border: 1px solid rgba(232, 163, 61, 0.35);
}

/* ---------- Toasts: glass ---------- */
.toast {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border-radius: var(--radius-md);
}

/* ---------- Responsive (mockup breakpoints) ---------- */
@media (max-width: 960px) {
  .grid.tools { grid-template-columns: repeat(2, 1fr); }
  .engine-grid { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(3) { border-left: none; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--glass-border); }
}
@media (max-width: 640px) {
  .grid.tools { grid-template-columns: 1fr; }
  .hero-inner { padding: 40px 14px 22px; }
  .hero-panel { padding: 24px 20px; }
  .kpis { margin-top: 16px; }
  .tool-desc { min-height: 0; }
  section { margin-top: 48px; }
  #topbar { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  #nav { flex: 1 1 100%; order: 3; }
  .status-pill-top { margin-left: auto; }
  .hero { flex-wrap: wrap; }
}

/* ---------- Reduced motion: depth stays static ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tool-card,
  .card.hoverable,
  .chip,
  .btn-primary,
  .btn-glass,
  .tool-icon,
  .tool-arrow,
  .engine { transition: none !important; }
  .card.hoverable.tool-card:hover,
  .card.hoverable.tool-card:focus-visible,
  .engine:hover { transform: none; }
  .dot.pulse { animation: none; }
}

/* ---------- DFIR tutorials section ---------- */
.tut-player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-lg); margin: 22px 0 26px; }
.tut-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.grid.tutorials { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tut-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 14px 14px 16px;
  overflow: hidden;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--shadow-deep);
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.3, 1.2), border-color 200ms ease, box-shadow 240ms ease;
  -webkit-tap-highlight-color: transparent;
}
.tut-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px 200px at 50% 0%, color-mix(in srgb, var(--tc, var(--accent)) 16%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}
.tut-card:hover,
.tut-card:focus-visible {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--tc, var(--accent)) 55%, transparent);
  box-shadow: var(--glass-highlight), 0 26px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px color-mix(in srgb, var(--tc, var(--accent)) 25%, transparent), 0 12px 44px color-mix(in srgb, var(--tc, var(--accent)) 22%, transparent);
  outline: none;
}
.tut-card:hover::before,
.tut-card:focus-visible::before { opacity: 1; }
.tut-card:active { transform: translateY(-2px) scale(0.985); transition-duration: 80ms; }
.tut-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--glass-border); }
.tut-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tut-dur { position: absolute; right: 8px; bottom: 8px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em; color: #fff; background: rgba(0, 0, 0, 0.75); border-radius: 6px; padding: 3px 7px; }
.tut-badge { display: block; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.18em; color: var(--tc, var(--accent)); margin: 14px 0 5px; position: relative; }
.tut-title { display: block; font-family: "Archivo", sans-serif; font-weight: 700; font-size: 1.05rem; line-height: 1.35; margin: 0 0 12px; position: relative; min-height: 2.7em; }
.tut-meta { display: flex; align-items: center; gap: 8px; position: relative; }
.tut-watch { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 500; color: var(--cyan); }
.tut-watch svg { width: 14px; height: 14px; }
.tut-playlist-link { margin-top: 18px; }
@media (max-width: 960px) {
  .grid.tutorials { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid.tutorials { grid-template-columns: 1fr; }
  .tut-title { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tut-card { transition: none !important; }
  .tut-card:hover,
  .tut-card:focus-visible { transform: none; }
}
