/* ==========================================================================
   LabScale — rebuilt with the Blue View design system
   Palette, type, nav, buttons, tags: blue-view.org
   Glass panels + radii: authentik Blue View glass theme
   ========================================================================== */

/* ---------- 0. FONTS (self-hosted DM Sans, SIL OFL 1.1: assets/fonts/DM-Sans-OFL.txt) ---------- */
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url("../fonts/dm-sans-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url("../fonts/dm-sans-latin-ext-opsz-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans"; font-style: italic; font-weight: 100 1000; font-display: swap;
  src: url("../fonts/dm-sans-latin-opsz-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans"; font-style: italic; font-weight: 100 1000; font-display: swap;
  src: url("../fonts/dm-sans-latin-ext-opsz-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 1. TOKENS ---------- */
:root {
  /* Blue View palette (light) */
  --ink: #0e0f14;
  --body: #4a4f65;
  --muted: #8b90a7;
  --bg: #f5f6fa;
  --card: #ffffff;
  --rule: #e2e4ef;
  --accent: #546ac1;
  --accent-dim: #3d4f99;
  --accent-rgb: 84, 106, 193;
  --on-accent: #ffffff;
  --tag-bg: #eceff8;
  --tag-text: #3d4f99;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: "DM Sans", system-ui, sans-serif;
  --maxw: 1040px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Dot texture + very soft glows behind the glass */
  --dot: rgba(14, 15, 20, 0.08);
  --glow-1: rgba(var(--accent-rgb), 0.16);
  --glow-2: rgba(139, 156, 240, 0.14);

  /* Glass (light): frosted white */
  --glass-tint: rgba(255, 255, 255, 0.55);
  --glass-tint-hover: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.80);
  --glass-sheen: linear-gradient(145deg, rgba(255, 255, 255, 0.60) 0%, rgba(255, 255, 255, 0.15) 60%, rgba(255, 255, 255, 0) 100%);
  --glass-border: rgba(var(--accent-rgb), 0.16);
  --glass-border-hover: rgba(var(--accent-rgb), 0.40);
  --glass-filter: blur(22px) saturate(160%);
  --glass-shadow: 0 8px 32px rgba(14, 15, 20, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.70);
  --glass-shadow-hover: 0 18px 40px -18px rgba(var(--accent-rgb), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.80);
  --nav-bg: rgba(255, 255, 255, 0.62);

  /* Status pills */
  --danger-rgb: 200, 50, 60;
  --ok-bg: #e3f5ea;  --ok-text: #1f7a45;
  --warn-bg: #fbf0dc; --warn-text: #94620f;

  /* Radii (from the glass theme) */
  --r-card: 20px;
  --r-row: 16px;
  --r-control: 12px;
  --r-small: 8px;
  --r-pill: 50px;

  color-scheme: light;
}

[data-theme="dark"] {
  --ink: #e7e9f2;
  --body: #b6bbcf;
  --muted: #9398b2;
  --bg: #0c0d12;
  --card: #15161f;
  --rule: #262838;
  --accent: #8b9cf0;
  --accent-dim: #6f82e0;
  --accent-rgb: 139, 156, 240;
  --on-accent: #0c0d12;
  --tag-bg: #1c1f2e;
  --tag-text: #aab6ec;

  --dot: rgba(255, 255, 255, 0.075);
  --glow-1: rgba(84, 106, 193, 0.20);
  --glow-2: rgba(139, 156, 240, 0.09);

  /* Glass (dark): smoked navy */
  --glass-tint: rgba(21, 22, 31, 0.50);
  --glass-tint-hover: rgba(28, 31, 46, 0.62);
  --glass-strong: rgba(21, 22, 31, 0.85);
  --glass-sheen: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 60%, rgba(255, 255, 255, 0) 100%);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-hover: rgba(var(--accent-rgb), 0.45);
  --glass-filter: blur(22px) saturate(135%) brightness(0.9);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --glass-shadow-hover: 0 18px 40px -18px rgba(var(--accent-rgb), 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  --nav-bg: rgba(18, 19, 26, 0.62);

  --danger-rgb: 240, 110, 120;
  --ok-bg: #143021;  --ok-text: #6fd693;
  --warn-bg: #322611; --warn-text: #e0b25a;

  color-scheme: dark;
}

/* ---------- 2. BASE ---------- */
*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
/* Keep the footer at the bottom of short pages (404, newsroom, terms) */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

/* Minimal dot grid (26px, 1px dots) — matches blue-view.org */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

/* Two very soft glows give the glass something to frost */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(55% 45% at 12% 8%, var(--glow-1) 0%, transparent 70%),
    radial-gradient(50% 40% at 92% 88%, var(--glow-2) 0%, transparent 70%);
}

a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-dim); }
.accent { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.84em;
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
}
.creds code { white-space: normal; overflow-wrap: anywhere; }
::selection { background: var(--accent); color: var(--on-accent); }

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 8px 14px; border-radius: var(--r-small);
}
.skip-link:focus { top: 1rem; color: var(--on-accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Logo swap: light artwork in light mode, dark artwork in dark mode */
.theme-dark { display: none !important; }
[data-theme="dark"] .theme-light { display: none !important; }
[data-theme="dark"] .theme-dark { display: block !important; }

/* ---------- 3. GLASS ---------- */
.glass {
  background: var(--glass-sheen), var(--glass-tint);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-card);
  box-shadow: var(--glass-shadow);
}

/* ---------- 4. NAV (blue-view, glassed) ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 64px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav-bg);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
  border-bottom: 1px solid var(--glass-border);
  transition: height .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
nav.shrink {
  height: 52px;
  box-shadow: 0 6px 24px -14px rgba(14, 15, 20, 0.35);
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 28px; width: auto; transition: height .3s var(--ease); }
nav.shrink .nav-logo img { height: 24px; }

.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  position: relative;
}
.nav-links a:not(.nav-badge)::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s var(--ease);
}
.nav-links a:not(.nav-badge):hover::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--ink); }

.nav-badge {
  background: var(--accent);
  color: var(--on-accent) !important;
  font-size: 12px !important;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--r-small);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.nav-badge:hover {
  transform: translateY(-1px);
  background: var(--accent-dim);
  box-shadow: 0 8px 18px -8px rgba(var(--accent-rgb), 0.7);
}

.theme-toggle {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted);
  background: var(--glass-sheen), var(--glass-tint);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-small);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--glass-border-hover); transform: translateY(-1px); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: inline-block; }

/* ---------- 5. HERO ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 5.5rem 2rem 3.5rem;
}
.hero-icon { margin-bottom: 1.75rem; }
.hero-icon img {
  height: 72px; width: auto;
  filter: drop-shadow(0 10px 24px rgba(var(--accent-rgb), 0.30));
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px; height: 1px;
  background: var(--muted);
}
.hero h1 {
  font-family: var(--mono);
  font-size: clamp(2rem, 5.4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 760px;
  margin-bottom: 1.35rem;
}
.hero h1 .accent { display: block; font-weight: 400; }
.hero-lede {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 2.1rem;
}
.hero-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 6. BUTTONS (blue-view, rounded like the glass theme) ---------- */
.btn-primary, .btn-secondary {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: var(--r-control);
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 100%), var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
  box-shadow: 0 10px 24px -14px rgba(var(--accent-rgb), 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover {
  color: var(--on-accent);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 100%), var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(var(--accent-rgb), 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary .arrow { transition: transform .2s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-secondary {
  background: var(--glass-sheen), var(--glass-tint);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
  color: var(--accent);
  border: 1px solid var(--glass-border-hover);
}
.btn-secondary:hover {
  color: var(--accent);
  background: var(--glass-sheen), var(--glass-tint-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- 7. SECTIONS ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 2rem 4.5rem;
}
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; gap: 8px;
}
.section-label::before { content: "//"; color: var(--accent); }

.section-title {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

/* Panels (larger glass blocks) */
.panel { padding: 2rem; }
.panel p { color: var(--body); line-height: 1.75; }
.panel p + p { margin-top: 0.85rem; }
.panel-title {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.panel strong { color: var(--ink); font-weight: 500; }

/* Cards (smaller glass blocks, lift on hover like blue-view project cards) */
.card {
  padding: 1.5rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.card:hover,
.cta:hover {
  background: var(--glass-sheen), var(--glass-tint-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-4px);
}
.card-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.card-title { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 0.5rem; }
.card-desc { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1.25rem; }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 3px 9px;
  border-radius: 6px;
  line-height: 1.5;
}

/* Status pills (blue-view) */
.card-status {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.card-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-active { background: var(--ok-bg); color: var(--ok-text); }
.status-active::before { animation: pulse 1.8s ease infinite; }
.status-planned { background: var(--warn-bg); color: var(--warn-text); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.75); }
}

/* ---------- 8. DASHBOARD ---------- */
.dash-intro { max-width: 640px; margin-bottom: 1.5rem; }
.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  margin-bottom: 1rem;
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-control);
}
.tab {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-small);
  padding: 7px 14px;
  cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] {
  color: var(--accent);
  background: var(--glass-strong);
  border-color: var(--glass-border);
  box-shadow: 0 2px 10px -4px rgba(var(--accent-rgb), 0.35);
}
.tab-panel {
  padding: 1.25rem 1.35rem;
  border-radius: var(--r-row);
  background: rgba(var(--accent-rgb), 0.04);
  border: 1px solid var(--glass-border);
  margin-bottom: 1.5rem;
  min-height: 118px;
  animation: fadeIn .3s var(--ease);
}
.tab-panel .creds { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tab-panel .note { font-size: 13.5px; color: var(--muted); }

/* ---------- 9. PLATFORM ---------- */
.proxmox img { width: 56px; margin-bottom: 1.1rem; }

/* ---------- 10. PROCESS ---------- */
.steps { list-style: none; display: grid; gap: 1rem; position: relative; }
.step { padding: 1.75rem 2rem; }
.step-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.step-num {
  flex: none;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 11px;
  box-shadow: 0 8px 18px -8px rgba(var(--accent-rgb), 0.8);
}
.step-title { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; flex: 1 1 auto; }
.step p { color: var(--body); line-height: 1.75; }
.step p + p { margin-top: 0.85rem; }
.step blockquote {
  margin-top: 1.1rem;
  background: var(--tag-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 0.9rem 1.2rem;
  font-size: 14px;
  line-height: 1.7;
  color: var(--tag-text);
}
.step-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.25rem; }
.mini-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.ticks, .flow { list-style: none; display: grid; gap: 0.5rem; }
.ticks li, .flow li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--body);
  font-size: 14px;
  line-height: 1.6;
}
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 0.35em;
  width: 14px; height: 14px;
  border-radius: 5px;
  background: rgba(var(--accent-rgb), 0.14);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.35);
}
.ticks li::after {
  content: "";
  position: absolute; left: 4.5px; top: calc(0.35em + 3px);
  width: 4px; height: 7px;
  border: solid var(--accent);
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}
.flow { counter-reset: flow; }
.flow li { counter-increment: flow; }
.flow li::before {
  content: counter(flow);
  position: absolute; left: 0; top: 0.2em;
  width: 18px; height: 18px;
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
  border-radius: 6px;
}

/* ---------- 11. FAQ ---------- */
.faq { display: grid; gap: 0.65rem; }
.faq-item {
  border-radius: var(--r-row);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.faq-item:hover, .faq-item[open] { border-color: var(--glass-border-hover); }
.faq-item[open] { background: var(--glass-sheen), var(--glass-tint-hover); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 3.25rem 1.05rem 1.35rem;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 1.1rem; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 400;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.10);
  border-radius: 8px;
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { content: "\2212"; background: rgba(var(--accent-rgb), 0.18); }
.faq-item p {
  padding: 0 1.35rem 1.2rem;
  color: var(--body);
  line-height: 1.75;
  font-size: 14.5px;
  max-width: 820px;
  animation: fadeIn .3s var(--ease);
}

/* ---------- 12. CTA ---------- */
.cta {
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.cta .ticks { margin-bottom: 1.6rem; }
.cta-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 0.75rem; }
.cta-top .card-kicker { margin-bottom: 0; }
.cta-foot { margin-top: auto; }

.contact-strip {
  margin-top: 1rem;
  padding: 1.15rem 1.5rem;
  border-radius: var(--r-row);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.contact-strip p { color: var(--body); }
.contact-strip .accent { font-weight: 500; }

/* ---------- 13. FOOTER (blue-view) ---------- */
footer {
  border-top: 1px solid var(--rule);
  margin-top: 1rem;
  background: var(--glass-tint);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.25rem 2rem;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap;
}
.footer-brand img { height: 26px; width: auto; margin-bottom: 0.75rem; }
footer p { font-size: 12px; color: var(--muted); max-width: 300px; }
.footer-cols { display: flex; gap: 3rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 12.5px; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

/* ---------- 13b. SHARED BITS ---------- */
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { transform: scaleX(1); }
.footer-links a[aria-current="page"] { color: var(--accent); }

.is-disabled {
  opacity: .6;
  cursor: default;
  pointer-events: none;
}
.dash-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tab-panel .note strong { color: var(--ink); font-weight: 500; }

/* Inner-page header (smaller hero) */
.page-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4.5rem 2rem 2.75rem;
}
.page-head h1 {
  font-size: clamp(1.9rem, 4.6vw, 2.75rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 1.1rem;
}
.page-head .hero-lede { margin-bottom: 0; }
.meta-line { margin-top: 1rem; font-size: 12px; color: var(--muted); }
.page-head .hero-animate:nth-child(2) { animation-delay: .06s; }
.page-head .hero-animate:nth-child(3) { animation-delay: .12s; }
.page-head .hero-animate:nth-child(4) { animation-delay: .18s; }

.lead-p { font-size: 16.5px; }

/* Empty states (newsroom, terms) */
.empty-state { text-align: left; }
.empty-state .card-status { margin-bottom: 1rem; }

/* About: founder */
.founder { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; }
.founder-meta { display: flex; flex-direction: column; gap: 0.9rem; }
.founder-avatar {
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 500; font-size: 20px; letter-spacing: 0.02em;
  color: var(--on-accent);
  background: linear-gradient(145deg, var(--accent), var(--accent-dim));
  border-radius: 18px;
  box-shadow: 0 10px 24px -12px rgba(var(--accent-rgb), 0.8);
}
.founder-name { font-weight: 500; color: var(--ink) !important; }
.founder-role { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted) !important; margin-top: 0 !important; }
.pull {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding: 0.2rem 0 0.2rem 1.1rem;
  margin-bottom: 1.25rem;
}
.signoff { color: var(--accent) !important; font-weight: 500; }
.principles .card:nth-child(4), .principles .card:nth-child(5) { grid-column: span 1; }

/* Legal docs */
.doc-layout { display: grid; grid-template-columns: 230px 1fr; gap: 1rem; align-items: start; }
.doc-layout > * { min-width: 0; }   /* long words/addresses can't push the grid wider than the screen */
.toc {
  position: sticky; top: 76px;
  padding: 1.1rem 1.1rem 1.2rem;
  border-radius: var(--r-row);
}
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: 0.15rem; }
.toc li { counter-increment: toc; }
.toc a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  padding: 5px 8px;
  border-radius: var(--r-small);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.toc a::before { content: counter(toc) "."; color: var(--accent); margin-right: 6px; font-size: 11px; }
.toc a:hover { color: var(--ink); background: rgba(var(--accent-rgb), 0.08); }

.prose h2 {
  font-size: 1.2rem; font-weight: 500; letter-spacing: -0.01em;
  margin: 2.2rem 0 0.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--glass-border);
  scroll-margin-top: 80px;
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 14px; font-weight: 500; color: var(--ink); margin: 1.3rem 0 0.5rem; }
.prose .num { color: var(--accent); font-weight: 500; margin-right: 0.4rem; }
.prose p { margin-top: 0.6rem; font-size: 14.5px; }
.prose ul { list-style: none; display: grid; gap: 0.4rem; margin: 0.6rem 0; }
.prose ul li { position: relative; padding-left: 1.3rem; color: var(--body); font-size: 14.5px; line-height: 1.6; }
.prose ul li::before {
  content: ""; position: absolute; left: 2px; top: 0.6em;
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.55);
}
.prose ul.check li::before, .prose ul.cross li::before {
  width: auto; height: auto; background: none; border-radius: 0;
  top: 0; left: 0; font-weight: 700; font-size: 13px;
}
.prose ul.check li::before { content: "✓"; color: var(--ok-text); }
.prose ul.cross li::before { content: "✕"; color: rgb(var(--danger-rgb)); font-size: 12px; }
.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; margin-top: 0.8rem; font-size: 14.5px; }
.contact-list dt { color: var(--muted); }
.contact-list dd { color: var(--body); }
.summary-box {
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--r-row);
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid var(--glass-border);
}

/* Investors */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.fact { padding: 1.1rem 1.25rem; border-radius: var(--r-row); }
.fact .mini-label { display: block; margin-bottom: 0.35rem; }
.fact p { font-weight: 500; color: var(--ink); }
.link-card { display: block; color: inherit; }
.link-card:hover { color: inherit; }
.link-card .card-title::after { content: " →"; color: var(--accent); transition: margin .2s var(--ease); }

/* Brand */
.logo-tile { overflow: hidden; padding: 0; }
.logo-stage {
  height: 170px;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  border-bottom: 1px solid var(--glass-border);
}
.logo-stage img { max-height: 64px; width: auto; }
.logo-stage img.icon-only { max-height: 84px; }
.stage-light { background: #f5f6fa; background-image: radial-gradient(rgba(14,15,20,.07) 1px, transparent 1px); background-size: 18px 18px; }
.stage-dark { background: #0c0d12; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 18px 18px; }
.logo-info { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; }
.logo-info .card-title { margin-bottom: 0.1rem; }
.dl { display: flex; gap: 6px; }
.dl .tag { transition: background .2s var(--ease), color .2s var(--ease); }
.dl .tag:hover { background: var(--accent); color: var(--on-accent); }

.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.swatch { padding: 1rem; border-radius: var(--r-row); }
.chip { display: block; height: 72px; border-radius: 12px; margin-bottom: 0.9rem; box-shadow: inset 0 0 0 1px rgba(127,127,127,.18); }
.swatch .card-title { margin-bottom: 0.2rem; }

.type-panel { display: flex; align-items: center; gap: 2rem; }
.type-sample { font-size: 5.5rem; font-weight: 500; line-height: 1; color: var(--accent) !important; letter-spacing: -0.04em; }
.type-panel .btn-secondary { margin-top: 1rem; }

.crosses { list-style: none; display: grid; gap: 0.5rem; }
.crosses li { position: relative; padding-left: 1.6rem; color: var(--body); font-size: 14px; line-height: 1.6; }
.crosses li::before {
  content: "✕"; position: absolute; left: 2px; top: 0.05em;
  font-size: 11px; font-weight: 700; color: rgb(var(--danger-rgb));
}

/* ---------- 14. MOTION ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.hero-animate { animation: fadeUp .8s var(--ease) both; }
.hero-animate:nth-child(2) { animation-delay: .06s; }
.hero-animate:nth-child(3) { animation-delay: .12s; }
.hero-animate:nth-child(4) { animation-delay: .18s; }
.hero-animate:nth-child(5) { animation-delay: .24s; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- 15. RESPONSIVE ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .step-cols { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; gap: 1.25rem; }
  .founder-meta { flex-direction: row; align-items: center; }
  .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .facts, .swatches { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  nav { padding: 0 1.25rem; }
  .nav-links { gap: 0.75rem; }
  .nav-links a:not(.nav-badge) { display: none; }
  .hero { padding: 3.5rem 1.5rem 2.5rem; }
  .section { padding: 0 1.25rem 3.25rem; }
  .panel, .step { padding: 1.4rem; }
  .footer-cols { gap: 2rem; }
  .tabs { display: flex; }
  .tab { flex: 1 1 auto; }
  .page-head { padding: 3rem 1.5rem 2rem; }
  .type-panel { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .logo-info { flex-direction: column; align-items: flex-start; }
}

/* Capacity note on partner card */
.cta-note { font-size: 13px; color: var(--muted) !important; line-height: 1.65; margin: -0.6rem 0 1.4rem; }

/* Proxmox mark next to the platform copy (light/dark variants swap via .theme-light/.theme-dark) */
.pve-logo { width: 56px; height: auto; margin-bottom: 1rem; }

/* 404 page */
.notfound { text-align: center; padding: 6rem 1.5rem 5rem; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .75rem; }
.notfound p { max-width: 34rem; margin: 0 auto 1.75rem; }
.notfound .hero-links { justify-content: center; }

/* ---------- 16. PRINT ---------- */
@media print {
  .js .reveal, .hero-animate { opacity: 1 !important; transform: none !important; animation: none !important; }
  nav, .backdrop, .theme-toggle, .skip-link, .toc { display: none !important; }
  body { background: #fff !important; }
  .glass, .panel { box-shadow: none !important; backdrop-filter: none !important; }
  a[href^="mailto:"]::after { content: " (" attr(href) ")"; font-size: 90%; }
}
