/* ==========================================================================
   NETORYX – website
   Colours from the logo: navy #12305C, blue #1E5FBF (light) / #4C8DE8 (dark)
   ========================================================================== */

:root {
  --bg: #f5f7fb;
  --bg-2: #edf1f8;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --elev: #ffffff;
  --border: rgba(15, 32, 64, 0.10);
  --border-2: rgba(15, 32, 64, 0.20);
  --text: #2a3649;
  --heading: #0d2244;
  --muted: #5b6a80;
  --faint: #8794a8;
  --accent: #1E5FBF;
  --accent-2: #2f7be0;
  --accent-soft: rgba(30, 95, 191, 0.08);
  --accent-ring: rgba(30, 95, 191, 0.30);
  --grad: linear-gradient(100deg, #12305C 0%, #1E5FBF 48%, #0b8fd6 100%);
  --btn-bg: #1E5FBF;
  --btn-hover: #184f9f;
  --btn-text: #ffffff;
  --glow: rgba(30, 95, 191, 0.20);
  --glow-2: rgba(14, 165, 233, 0.14);
  --grid-line: rgba(15, 32, 64, 0.055);
  --header-bg: rgba(245, 247, 251, 0.78);
  --logo-bar: #12305C;
  --logo-accent: #1E5FBF;
  --chart-1: #1E5FBF;
  --chart-1-hover: #4a82d6;
  --term-bg: #0a0e15;
  --term-bar: #111824;
  --term-border: rgba(148, 163, 184, 0.16);
  --term-text: #e2e8f0;
  --term-dim: #7d8aa0;
  --term-prompt: #4C8DE8;
  --up: #16a34a;
  --warn: #d97706;
  --down: #dc2626;
  --paused: #64748b;
  --up-soft: rgba(22, 163, 74, 0.10);
  --warn-soft: rgba(217, 119, 6, 0.11);
  --down-soft: rgba(220, 38, 38, 0.10);
  --shadow-sm: 0 1px 2px rgba(13, 34, 68, 0.06);
  --shadow: 0 1px 2px rgba(13, 34, 68, 0.05), 0 10px 30px rgba(13, 34, 68, 0.07);
  --shadow-lg: 0 2px 6px rgba(13, 34, 68, 0.06), 0 40px 90px rgba(13, 34, 68, 0.18);

  --radius: 16px;
  --radius-sm: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-brand: "Arial Black", "Arial", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --header-h: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #05070b;
    --bg-2: #090d14;
    --surface: #0c1119;
    --surface-2: #101722;
    --elev: #131b27;
    --border: rgba(148, 163, 184, 0.12);
    --border-2: rgba(148, 163, 184, 0.24);
    --text: #c1ccdb;
    --heading: #f3f6fa;
    --muted: #8a97ab;
    --faint: #5f6b7e;
    --accent: #4C8DE8;
    --accent-2: #6aa6f5;
    --accent-soft: rgba(76, 141, 232, 0.12);
    --accent-ring: rgba(76, 141, 232, 0.45);
    --grad: linear-gradient(100deg, #4C8DE8 0%, #8ec2ff 50%, #22d3ee 100%);
    --btn-bg: #2F6FD0;
    --btn-hover: #3d7ddd;
    --glow: rgba(76, 141, 232, 0.30);
    --glow-2: rgba(34, 211, 238, 0.14);
    --grid-line: rgba(148, 163, 184, 0.055);
    --header-bg: rgba(5, 7, 11, 0.72);
    --logo-bar: #E2E8F0;
    --logo-accent: #4C8DE8;
    --chart-1: #4C8DE8;
    --chart-1-hover: #8ab6f2;
    --term-bg: #070a10;
    --term-bar: #0d131d;
    --up: #22c55e;
    --warn: #f59e0b;
    --down: #ef4444;
    --paused: #94a3b8;
    --up-soft: rgba(34, 197, 94, 0.12);
    --warn-soft: rgba(245, 158, 11, 0.13);
    --down-soft: rgba(239, 68, 68, 0.13);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.5), 0 40px 90px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #05070b;
  --bg-2: #090d14;
  --surface: #0c1119;
  --surface-2: #101722;
  --elev: #131b27;
  --border: rgba(148, 163, 184, 0.12);
  --border-2: rgba(148, 163, 184, 0.24);
  --text: #c1ccdb;
  --heading: #f3f6fa;
  --muted: #8a97ab;
  --faint: #5f6b7e;
  --accent: #4C8DE8;
  --accent-2: #6aa6f5;
  --accent-soft: rgba(76, 141, 232, 0.12);
  --accent-ring: rgba(76, 141, 232, 0.45);
  --grad: linear-gradient(100deg, #4C8DE8 0%, #8ec2ff 50%, #22d3ee 100%);
  --btn-bg: #2F6FD0;
  --btn-hover: #3d7ddd;
  --glow: rgba(76, 141, 232, 0.30);
  --glow-2: rgba(34, 211, 238, 0.14);
  --grid-line: rgba(148, 163, 184, 0.055);
  --header-bg: rgba(5, 7, 11, 0.72);
  --logo-bar: #E2E8F0;
  --logo-accent: #4C8DE8;
  --chart-1: #4C8DE8;
  --chart-1-hover: #8ab6f2;
  --term-bg: #070a10;
  --term-bar: #0d131d;
  --up: #22c55e;
  --warn: #f59e0b;
  --down: #ef4444;
  --paused: #94a3b8;
  --up-soft: rgba(34, 197, 94, 0.12);
  --warn-soft: rgba(245, 158, 11, 0.13);
  --down-soft: rgba(239, 68, 68, 0.13);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.5), 0 40px 90px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* Elements only in the light or dark colour scheme */
.only-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-light { display: none !important; }
  :root:not([data-theme="light"]) .only-dark { display: block !important; }
}
:root[data-theme="dark"] .only-light { display: none !important; }
:root[data-theme="dark"] .only-dark { display: block !important; }

/* ---------- Basics ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { color: var(--heading); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
ul { margin: 0; }
code {
  font-family: var(--mono); font-size: 0.86em;
  background: var(--accent-soft); color: var(--heading);
  padding: 0.12em 0.42em; border-radius: 6px; overflow-wrap: anywhere;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.i18n-pending body { visibility: hidden; }
::selection { background: var(--accent-ring); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.mono { font-family: var(--mono); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--btn-bg); color: var(--btn-text);
  padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 900px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

/* Grid background */
.grid-bg {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120; height: 2px;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px;
  border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: 0.95rem; letter-spacing: -0.005em;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary {
  background: var(--btn-bg); color: var(--btn-text);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 8px 24px -8px var(--glow);
}
.btn-primary:hover { background: var(--btn-hover); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 10px 30px -6px var(--glow); }
.btn-ghost { background: var(--surface); color: var(--heading); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--accent-ring); background: var(--surface-2); }
.btn-danger { background: transparent; color: var(--down); border-color: var(--down-soft); }
.btn-danger:hover { background: var(--down-soft); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 0.88rem; border-radius: 10px; }
.btn-xs { height: 32px; padding: 0 11px; font-size: 0.82rem; border-radius: 8px; gap: 6px; }
.btn-sm .icon, .btn-xs .icon { width: 17px; height: 17px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 1.02rem; border-radius: 14px; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; flex: none;
  border-radius: 11px; border: 1px solid var(--border);
  background: var(--surface); color: var(--heading); cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.icon-btn:hover { border-color: var(--border-2); background: var(--surface-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background-color .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; color: var(--heading); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; width: 38px; height: 38px; flex: none; }
.brand-mark .logo-bar { fill: var(--logo-bar); }
.brand-mark .logo-accent { fill: var(--logo-accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-brand); font-weight: 900; font-size: 1.32rem;
  letter-spacing: 0.02em; color: var(--logo-bar);
}
.brand-sub {
  margin-top: 4px; font-size: 0.56rem; font-weight: 700;
  letter-spacing: 0.32em; color: var(--logo-accent); white-space: nowrap;
}

.main-nav { display: flex; gap: 2px; margin: 0 auto; }
.main-nav a {
  color: var(--muted); font-weight: 550; font-size: 0.9rem;
  padding: 8px 9px; border-radius: 9px; white-space: nowrap;
  transition: color .15s, background-color .15s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--heading); background: var(--accent-soft); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.main-nav + .header-actions { margin-left: 0; }

.lang-switch {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--border); border-radius: 11px; background: var(--surface);
}
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 9px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted);
  font: inherit; font-size: 0.78rem; font-weight: 750; letter-spacing: 0.04em; cursor: pointer;
}
.lang-btn:hover { color: var(--heading); }
.lang-btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--heading); }
.flag { width: 20px; height: 14px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.12); display: block; }

.menu-btn { display: none; }
.menu-btn .icon { transition: transform .3s ease; }
.menu-btn[aria-expanded="true"] .icon { transform: rotate(90deg); }
/* Mobile menu: slides down from below the header (and back up when closing) */
.mobile-nav {
  display: none;
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
  max-height: calc(100svh - var(--header-h)); overflow-y: auto;
  background: var(--bg); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 12px 16px 20px;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .38s cubic-bezier(.2,.8,.2,1), visibility 0s linear .38s;
}
.mobile-nav.is-open {
  visibility: visible;
  clip-path: inset(0 0 -48px 0);
  transition: clip-path .42s cubic-bezier(.2,.8,.2,1), visibility 0s;
}
.mobile-nav a {
  display: block; padding: 13px 12px; border-radius: 10px;
  color: var(--heading); font-weight: 600; font-size: 1.02rem;
  opacity: 0; transform: translateY(-10px);
  transition: opacity .2s ease, transform .2s ease, background-color .15s;
}
.mobile-nav.is-open a { opacity: 1; transform: none; transition: opacity .3s ease, transform .3s ease, background-color .15s; }
.mobile-nav.is-open a:nth-child(2) { transition-delay: .03s, .03s, 0s; }
.mobile-nav.is-open a:nth-child(3) { transition-delay: .06s, .06s, 0s; }
.mobile-nav.is-open a:nth-child(4) { transition-delay: .09s, .09s, 0s; }
.mobile-nav.is-open a:nth-child(5) { transition-delay: .12s, .12s, 0s; }
.mobile-nav.is-open a:nth-child(6) { transition-delay: .15s, .15s, 0s; }
.mobile-nav.is-open a:nth-child(7) { transition-delay: .18s, .18s, 0s; }
.mobile-nav.is-open a:nth-child(8) { transition-delay: .21s, .21s, 0s; }
.mobile-nav.is-open a:nth-child(n+9) { transition-delay: .24s, .24s, 0s; }
.mobile-nav a:hover { background: var(--accent-soft); text-decoration: none; }
@media (prefers-reduced-motion: reduce) {
  .mobile-nav, .mobile-nav.is-open, .mobile-nav a, .mobile-nav.is-open a, .menu-btn .icon { transition: none; }
}

@media (max-width: 1320px) {
  .header-inner { gap: 14px; }
  .main-nav a { padding: 8px 8px; font-size: 0.88rem; }
  .brand-sub { display: none; }
}
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .main-nav + .header-actions { margin-left: auto; }
  .menu-btn { display: inline-grid; }
  .mobile-nav { display: block; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
  .brand-sub { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 1.18rem; }
  .lang-btn { padding: 0 6px; }
  .lang-btn .lang-code { display: none; }
  .header-actions { gap: 6px; }
  .header-inner { gap: 10px; }
}
@media (max-width: 360px) {
  .brand-name { display: none; }
}

/* ---------- Home ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 0 0 40px;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(800px 480px at 15% 42%, var(--glow), transparent 65%),
    radial-gradient(700px 460px at 95% 52%, var(--glow-2), transparent 65%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 62%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 62%, #000 30%, transparent 75%);
}
.hero-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; }

/* Large logo in the middle – fills the first screen. Space: Milky Way, three comets
   on orbits (passing behind the logo, then in front), planet with a heartbeat on the horizon
   and a sunrise on the left. main.js calculates orbits, stars and horizon to fit the size.
   Colours per mode via the --ix variables. */
.hero-intro {
  --ix-sky: #F5F8FD;
  --ix-band: rgba(30,95,191,.09); --ix-band-2: rgba(30,95,191,.04); --ix-band-core: rgba(255,255,255,.9);
  --ix-neb-1: rgba(14,165,150,.10); --ix-neb-2: rgba(110,120,220,.10);
  --ix-star: #7F9BC4; --ix-twinkle: #4C78B8;
  --ix-o1: #AFC3E2; --ix-o2: #9CCBC3; --ix-o3: #DCC594;
  --ix-c1: #1E5FBF; --ix-c2: #0E8A7A; --ix-c3: #D08600;
  --ix-h1: rgba(30,95,191,.45); --ix-h2: rgba(14,138,122,.4); --ix-h3: rgba(208,134,0,.45);
  --ix-planet: #12305C; --ix-glow-1: rgba(30,95,191,.32); --ix-glow-2: rgba(30,95,191,.16);
  --ix-glint: rgba(255,255,255,.95); --ix-line: #4C8DE8; --ix-pulse: #FFFFFF;
  --ix-warm: #F5A93B; --ix-warm-glow: #FFC978; --ix-sun-glow: rgba(255,214,140,.55); --ix-sun-glow-2: rgba(255,190,110,.18); --ix-flare: rgba(255,236,200,.9);
  --ix-hint: #C9D8EE;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center; align-content: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding: 32px 16px clamp(150px, 26svh, 250px); margin-bottom: 40px;
  background: var(--ix-sky);
  -webkit-mask-image: linear-gradient(#000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 56px), transparent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-intro {
    --ix-sky: #050B18;
    --ix-band: rgba(170,200,255,.17); --ix-band-2: rgba(120,160,240,.07); --ix-band-core: rgba(215,228,255,.13);
    --ix-neb-1: rgba(63,185,170,.12); --ix-neb-2: rgba(124,134,224,.12);
    --ix-star: #D6E4FF; --ix-twinkle: #FFFFFF;
    --ix-o1: #2E4A75; --ix-o2: #244F55; --ix-o3: #4A3F24;
    --ix-c1: #8EC0FF; --ix-c2: #6FE0C8; --ix-c3: #F2B53C;
    --ix-h1: #8EC0FF; --ix-h2: #6FE0C8; --ix-h3: #F2B53C;
    --ix-planet: #0A1830; --ix-glow-1: rgba(76,141,232,.5); --ix-glow-2: rgba(76,141,232,.2);
    --ix-glint: rgba(190,220,255,.5); --ix-line: #8EC0FF;
    --ix-warm: #FFD9A0; --ix-sun-glow: rgba(255,236,196,.5); --ix-sun-glow-2: rgba(255,200,140,.16); --ix-flare: rgba(255,244,222,.85);
    --ix-hint: #A7BAD4;
  }
}
:root[data-theme="dark"] .hero-intro {
  --ix-sky: #050B18;
  --ix-band: rgba(170,200,255,.17); --ix-band-2: rgba(120,160,240,.07); --ix-band-core: rgba(215,228,255,.13);
  --ix-neb-1: rgba(63,185,170,.12); --ix-neb-2: rgba(124,134,224,.12);
  --ix-star: #D6E4FF; --ix-twinkle: #FFFFFF;
  --ix-o1: #2E4A75; --ix-o2: #244F55; --ix-o3: #4A3F24;
  --ix-c1: #8EC0FF; --ix-c2: #6FE0C8; --ix-c3: #F2B53C;
  --ix-h1: #8EC0FF; --ix-h2: #6FE0C8; --ix-h3: #F2B53C;
  --ix-planet: #0A1830; --ix-glow-1: rgba(76,141,232,.5); --ix-glow-2: rgba(76,141,232,.2);
  --ix-glint: rgba(190,220,255,.5); --ix-line: #8EC0FF;
  --ix-warm: #FFD9A0; --ix-sun-glow: rgba(255,236,196,.5); --ix-sun-glow-2: rgba(255,200,140,.16); --ix-flare: rgba(255,244,222,.85);
  --ix-hint: #A7BAD4;
}
.hero-logo { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; animation: logo-in 1.1s cubic-bezier(.2,.7,.2,1) both; }

/* Sky */
.ix-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; animation: fade-in 1.8s ease-out both; }
@keyframes fade-in { from { opacity: 0; } }
.ix-sky > span { position: absolute; }
.ix-band { left: -26%; top: 9%; width: 152%; height: 40%; transform: rotate(-18deg); background: radial-gradient(closest-side, var(--ix-band), var(--ix-band-2) 55%, transparent); }
.ix-band-core { left: -14%; top: 22%; width: 128%; height: 12%; transform: rotate(-18deg); background: radial-gradient(closest-side, var(--ix-band-core), transparent); }
.ix-neb-1 { left: -4%; top: -8%; width: 45%; height: 50%; background: radial-gradient(closest-side, var(--ix-neb-1), transparent); }
.ix-neb-2 { left: 60%; top: 32%; width: 50%; height: 52%; background: radial-gradient(closest-side, var(--ix-neb-2), transparent); }
.ix-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.ix-star { fill: var(--ix-star); }
.ix-tw { fill: var(--ix-twinkle); animation: ix-tw 6s ease-in-out infinite; }
.ix-tw:nth-of-type(2n) { animation-duration: 8s; animation-delay: -3s; }
.ix-tw:nth-of-type(3n) { animation-duration: 10s; animation-delay: -6s; }
@keyframes ix-tw { 0%, 100% { opacity: .9; } 50% { opacity: .18; } }

/* Orbits and comets: first half behind the logo, second half in front (z-index 1 / 3) */
.ix-orbits { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ix-orbits path { fill: none; stroke-width: 1.1; }
.ix-back { z-index: 1; opacity: .85; }
.ix-front { z-index: 3; opacity: .55; }
.ix-o1 { stroke: var(--ix-o1); } .ix-o2 { stroke: var(--ix-o2); } .ix-o3 { stroke: var(--ix-o3); }
.ix-comets { position: absolute; inset: 0; pointer-events: none; }
.ix-c {
  position: absolute; left: 0; top: 0; border-radius: 50%; offset-rotate: 0deg;
  animation-name: ix-move; animation-timing-function: linear; animation-iteration-count: infinite;
}
.ix-c1 { background: var(--ix-c1); box-shadow: 0 0 var(--g, 5px) var(--ix-h1); }
.ix-c2 { background: var(--ix-c2); box-shadow: 0 0 var(--g, 5px) var(--ix-h2); }
.ix-c3 { background: var(--ix-c3); box-shadow: 0 0 var(--g, 5px) var(--ix-h3); }
@keyframes ix-move {
  0% { offset-distance: 0%; scale: .95; z-index: 1; }
  25% { scale: .68; }
  49.9% { z-index: 1; }
  50% { scale: .95; z-index: 3; }
  75% { scale: 1.32; }
  100% { offset-distance: 100%; scale: .95; z-index: 3; }
}

/* Planet with a heartbeat on the horizon, sunrise on the left */
.ix-ground { position: absolute; inset: 0; z-index: 4; pointer-events: none; animation: ix-rise 2.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes ix-rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.ix-ground > span { position: absolute; }
.ix-sun {
  left: calc(var(--ix-sx, 160px) - 20px); top: calc(var(--ix-sy, 700px) - 18px); width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle, #FFFBF0 0 35%, #FFE0A0 60%, rgba(255,210,140,0) 100%);
  animation: ix-sun 9s ease-in-out infinite;
}
.ix-planet {
  left: calc(50% - var(--ix-r, 1500px)); top: var(--ix-top, 80%); width: calc(var(--ix-r, 1500px) * 2); aspect-ratio: 1; border-radius: 50%;
  background: var(--ix-planet); box-shadow: 0 -18px 80px var(--ix-glow-1), 0 -90px 260px var(--ix-glow-2);
}
.ix-glint {
  left: calc(50% - 400px * var(--ix-s, 1)); top: calc(var(--ix-top, 80%) - 44px); width: calc(800px * var(--ix-s, 1)); height: 96px;
  background: radial-gradient(closest-side, var(--ix-glint), transparent);
}
.ix-horizon { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ix-horizon path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.ix-line { stroke: var(--ix-line); stroke-width: 1.8; opacity: .9; }
.ix-warm { stroke: var(--ix-warm); stroke-width: 2.3; opacity: .85; filter: drop-shadow(0 0 6px var(--ix-warm-glow)); }
.ix-pulse { stroke: var(--ix-pulse); stroke-width: 2.8; stroke-dasharray: 60 940; stroke-dashoffset: 1000; filter: drop-shadow(0 0 7px var(--ix-line)); animation: ix-run 6s linear 1.2s infinite; }
@keyframes ix-run { to { stroke-dashoffset: 0; } }
.ix-sunglow {
  left: calc(var(--ix-sx, 160px) - 280px * var(--ix-s, 1)); top: calc(var(--ix-sy, 700px) - 130px * var(--ix-s, 1));
  width: calc(560px * var(--ix-s, 1)); height: calc(260px * var(--ix-s, 1));
  background: radial-gradient(closest-side, var(--ix-sun-glow), var(--ix-sun-glow-2) 42%, transparent);
  animation: ix-sun 9s ease-in-out infinite;
}
.ix-flare {
  left: calc(var(--ix-sx, 160px) - 310px * var(--ix-s, 1)); top: calc(var(--ix-sy, 700px) - 1px); width: calc(620px * var(--ix-s, 1)); height: 2px;
  background: linear-gradient(90deg, transparent, var(--ix-flare) 50%, transparent);
}
@keyframes ix-sun { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
.hero-intro.is-paused *, .hero-intro.is-paused *::before, .hero-intro.is-paused *::after { animation-play-state: paused; }

.hero-logo-mark { width: clamp(88px, 11vw, 148px); height: auto; filter: drop-shadow(0 20px 60px var(--glow)); }
.hero-logo-mark .logo-bar { fill: var(--logo-bar); }
.hero-logo-mark .logo-accent { fill: var(--logo-accent); }
.hero-logo-name {
  margin-top: clamp(16px, 2.4vw, 26px); padding-left: 0.04em;
  font-family: var(--font-brand); font-weight: 900; font-size: clamp(3rem, 10.5vw, 7.4rem);
  letter-spacing: 0.04em; line-height: 1; color: var(--logo-bar);
}
.hero-logo-sub {
  margin-top: clamp(12px, 1.8vw, 20px); padding-left: 0.32em;
  font-size: clamp(1rem, 2.6vw, 1.9rem); font-weight: 700; letter-spacing: 0.32em; color: var(--logo-accent);
}
.hero-scroll {
  position: absolute; z-index: 5; bottom: 64px; left: 0; right: 0; width: max-content; margin: 0 auto;
  display: grid; justify-items: center; gap: 4px;
  color: var(--ix-hint); font-size: 0.78rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase;
  animation: logo-in 1.1s cubic-bezier(.2,.7,.2,1) .5s both;
}
.hero-scroll:hover { color: #ffffff; text-decoration: none; }
.hero-scroll .icon { width: 22px; height: 22px; transform: rotate(90deg); animation: nudge 2.2s ease-in-out infinite; }
@keyframes logo-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 6px; } }
@media (prefers-reduced-motion: reduce) {
  .ix-c { animation: none !important; offset-distance: 70%; z-index: 3; }
  .ix-pulse { animation: none !important; stroke-dasharray: none; opacity: .5; }
}
@media (max-width: 640px) {
  .hero-intro { padding: 28px 16px clamp(140px, 24svh, 200px); margin-bottom: 32px; }
  .hero-scroll { bottom: 60px; }
}

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px; align-items: center;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--heading); font-size: 0.8rem; font-weight: 600;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
a.chip:hover { text-decoration: none; border-color: var(--accent-ring); }
.chip .icon { width: 15px; height: 15px; }
.chip .flag { width: 16px; height: 11px; }
.pulse-dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--up); flex: none;
}
.pulse-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--up); opacity: 0; animation: ping 2s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 80%, 100% { transform: scale(1.8); opacity: 0; } }

.hero h1 {
  font-size: clamp(2.3rem, 4.3vw, 4rem);
  font-weight: 850; letter-spacing: -0.04em; line-height: 1.02;
}
.hero h1 .line { display: block; }
.lead {
  margin-top: 24px; max-width: 590px;
  font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--muted); line-height: 1.6;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none;
  color: var(--muted); font-size: 0.9rem;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .icon { width: 17px; height: 17px; color: var(--up); stroke-width: 2.4; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
}
@media (max-width: 520px) {
  .hero-cta .btn { flex: 1 1 100%; }
}

/* ---------- Terminal ---------- */
.terminal {
  position: relative;
  border-radius: 16px; overflow: hidden;
  background: var(--term-bg); border: 1px solid var(--term-border);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.02) inset;
  color: var(--term-text); font-family: var(--mono);
}
.terminal::before {
  content: ""; position: absolute; inset: -1px; border-radius: 16px; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(76,141,232,.6), transparent 40%, transparent 60%, rgba(34,211,238,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.terminal-bar {
  display: flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 14px; background: var(--term-bar);
  border-bottom: 1px solid var(--term-border);
}
.terminal-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #2b3444; }
.terminal-bar .dot:nth-child(1) { background: #ef4444aa; }
.terminal-bar .dot:nth-child(2) { background: #f59e0baa; }
.terminal-bar .dot:nth-child(3) { background: #22c55eaa; }
.terminal-title { margin-left: 10px; font-size: 0.74rem; color: var(--term-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.terminal-body {
  height: 430px; overflow: hidden; padding: 16px 18px;
  font-size: 0.8rem; line-height: 1.6; white-space: pre-wrap; word-break: break-all;
}
.terminal-body .t-line { display: block; min-height: 1.6em; }
.t-prompt { color: var(--term-prompt); }
.t-cmd { color: #f1f5f9; }
.t-dim { color: var(--term-dim); }
.t-step { color: #67e8f9; font-weight: 700; }
.t-ok { color: #4ade80; }
.t-warn { color: #fbbf24; }
.t-banner { color: #8ec2ff; font-weight: 700; }
.t-strong { color: #ffffff; font-weight: 700; }
.t-cursor {
  display: inline-block; width: 0.6em; height: 1.1em; vertical-align: -0.18em;
  background: #cbd5e1; animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 520px) {
  .terminal-body { height: 360px; font-size: 0.68rem; padding: 14px; }
}

/* ---------- Key figures ---------- */
.stats {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 64px; border: 1px solid var(--border); border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.stat { padding: 22px 24px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; }
.stat-num {
  display: block; font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 850;
  letter-spacing: -0.04em; line-height: 1; color: var(--heading);
  font-variant-numeric: tabular-nums;
}
.stat-label { display: block; margin-top: 8px; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-left: 0; border-top: 1px solid var(--border); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--border); }
  .stat:last-child { grid-column: 1 / -1; border-left: 0; }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative; overflow: hidden; padding: 22px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--heading);
  font-family: var(--mono); font-size: 0.82rem; font-weight: 600; white-space: nowrap;
}
.marquee-item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 120px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent); font-family: var(--mono); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.section-head h2 {
  font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 850; letter-spacing: -0.035em; line-height: 1.04;
}
.section-lead { margin-top: 18px; color: var(--muted); font-size: clamp(1.02rem, 1.8vw, 1.15rem); }
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
}

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

/* ---------- Cards in general ---------- */
.card {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  display: grid; gap: 12px; align-content: start; min-width: 0;
}
.card h3 { font-size: 1.15rem; font-weight: 750; }
.card > p { color: var(--muted); }
.spot { overflow: hidden; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 45%);
  transition: opacity .3s;
}
.spot:hover::before { opacity: 1; }
.spot:hover { border-color: var(--border-2); }
.icon-box {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.icon-box .icon { width: 22px; height: 22px; }

/* ---------- What is NETORYX ---------- */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.intro-copy h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 850; letter-spacing: -0.035em; line-height: 1.05; }
.intro-copy p { margin-top: 18px; color: var(--muted); font-size: 1.08rem; }
.intro-copy p strong { color: var(--heading); }
.audience { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.audience .chip { background: var(--surface); }
.wwh { display: grid; gap: 14px; }
.wwh .card { grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-items: start; }
.wwh .card h3 { margin-top: 2px; }
.wwh .card p { grid-column: 2; color: var(--muted); }
.wwh .icon-box { grid-row: span 2; }
@media (max-width: 900px) { .intro-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* ---------- Views ---------- */
.showcase-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  margin: 0 auto 26px; padding: 5px; width: fit-content; max-width: 100%;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
}
.showcase-tab {
  position: relative; overflow: hidden;
  font: inherit; font-size: 0.9rem; font-weight: 600; white-space: nowrap;
  color: var(--muted); background: transparent; border: 0; cursor: pointer;
  padding: 9px 16px; border-radius: 10px;
  transition: color .15s, background-color .15s;
}
.showcase-tab:hover { color: var(--heading); }
.showcase-tab[aria-selected="true"] { color: var(--heading); background: var(--accent-soft); }
.tab-progress {
  position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(0);
}
.showcase-tab[aria-selected="true"] .tab-progress.is-running { animation: tabprog var(--rotate-ms, 7000ms) linear forwards; }
@keyframes tabprog { to { transform: scaleX(1); } }

.showcase-stage { position: relative; perspective: 1600px; }
#ansichten { overflow-x: clip; } /* tilted window must not stick out at the side */
.window {
  position: relative; margin: 0;
  border: 1px solid var(--border-2); border-radius: 18px;
  background: var(--surface); box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotateX(var(--tilt, 0deg)); transform-origin: 50% 0;
  transition: transform .2s linear;
}
.window-bar {
  display: flex; align-items: center; gap: 7px;
  height: 42px; padding: 0 16px;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.window-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-2); }
.window-url {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 0 auto; transform: translateX(-26px);
  padding: 4px 14px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border);
  font-family: var(--mono); font-size: 0.74rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%;
}
.window-url .icon { width: 13px; height: 13px; color: var(--up); }
.window-body { position: relative; background: var(--bg); aspect-ratio: 16 / 9; }
.view { position: absolute; inset: 0; }
.view img { display: block; width: 100%; height: 100%; object-fit: cover; }
.view.is-active { animation: fadein .5s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.zoom-btn {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border-2);
  background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--heading);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: inherit; font-size: 0.8rem; font-weight: 600; cursor: zoom-in;
}
.zoom-btn .icon { width: 16px; height: 16px; }

.float-chip {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 15px; border-radius: 14px;
  background: color-mix(in srgb, var(--elev) 88%, transparent);
  border: 1px solid var(--border-2); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 0.82rem; color: var(--heading); white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float-chip strong { font-weight: 750; }
.float-chip .sub { display: block; font-size: 0.74rem; color: var(--muted); font-family: var(--mono); }
.float-chip .st { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.float-chip.c1 { left: -28px; top: 18%; }
.float-chip.c2 { right: -30px; top: 36%; animation-delay: -2s; }
.float-chip.c3 { left: 8%; bottom: -24px; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 1280px) { .float-chip.c1 { left: 12px; } .float-chip.c2 { right: 12px; } }
@media (max-width: 760px) { .float-chip { display: none; } }

.st-up { background: var(--up); box-shadow: 0 0 0 4px var(--up-soft); }
.st-warn { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.st-down { background: var(--down); box-shadow: 0 0 0 4px var(--down-soft); animation: blinkdown 1.4s ease-in-out infinite; }
@keyframes blinkdown { 50% { opacity: .45; } }

.showcase-info {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px;
  margin-top: 44px; align-items: start;
}
.showcase-info h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; }
.showcase-info p { margin-top: 10px; color: var(--muted); }
.check-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; color: var(--text); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.25em;
  width: 18px; height: 18px; border-radius: 6px; background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.check-list li::after {
  content: ""; position: absolute; left: 6px; top: calc(0.25em + 4px);
  width: 5px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.showcase-note { margin-top: 18px; text-align: center; font-size: 0.85rem; color: var(--faint); }
@media (max-width: 860px) { .showcase-info { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
@media (max-width: 640px) {
  .showcase-tabs { width: 100%; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .showcase-tabs::-webkit-scrollbar { display: none; }
  .window { border-radius: 12px; }
  .window-bar { height: 30px; gap: 5px; padding: 0 10px; }
  .window-dot { width: 8px; height: 8px; }
  .window-url { font-size: 0.66rem; padding: 1px 10px; transform: none; }
  .zoom-btn { right: 8px; bottom: 8px; padding: 6px 9px; font-size: 0.74rem; }
}

/* ---------- Features (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { grid-column: span 2; padding: 28px; }
.tile-wide { grid-column: span 3; }
.tile-big { grid-column: span 4; grid-row: span 2; }
.tile h3 { font-size: 1.12rem; font-weight: 750; }
.tile p { color: var(--muted); font-size: 0.95rem; }
.tile .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 7px;
  font-family: var(--mono); font-size: 0.74rem; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--heading);
}
.status-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 7px;
  margin-top: 14px; padding: 16px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.status-cell {
  aspect-ratio: 1; border-radius: 6px; background: var(--up);
  opacity: .85; transition: background-color .5s, transform .3s;
}
.status-cell.warn { background: var(--warn); }
.status-cell.down { background: var(--down); animation: blinkdown 1.2s ease-in-out infinite; }
.status-cell.paused { background: var(--paused); opacity: .5; }
.status-cell.flip { transform: scale(.7); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.8rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.spark { width: 100%; height: 90px; margin-top: 8px; display: block; }
.spark path.line { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; }
.spark path.area { fill: var(--accent-soft); stroke: none; opacity: 0; transition: opacity 1s .8s; }
.is-visible .spark path.line { animation: draw 2.2s ease forwards; }
.is-visible .spark path.area { opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.notif-mock {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center;
  margin-top: 10px; padding: 14px 16px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 0.85rem;
}
.notif-mock .st { width: 10px; height: 10px; border-radius: 50%; grid-row: span 2; }
.notif-mock strong { color: var(--heading); }
.notif-mock span { color: var(--muted); font-family: var(--mono); font-size: 0.76rem; }
.is-visible .notif-mock { animation: slidein .7s cubic-bezier(.2,.7,.2,1) .4s both; }
@keyframes slidein { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile-wide { grid-column: span 1; }
  .tile-big { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile { padding: 22px; }
  .status-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

/* ---------- Technology ---------- */
.arch {
  display: grid; grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1.35fr) 90px minmax(0, 1fr);
  align-items: center; margin-bottom: 72px;
}
.arch-col { display: grid; gap: 10px; }
.arch-title {
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
  font-family: var(--mono); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.arch-title .icon { width: 16px; height: 16px; }
.arch-box {
  padding: 14px 16px; border-radius: 13px; background: var(--surface); border: 1px solid var(--border);
}
.arch-box strong { display: block; color: var(--heading); font-size: 0.95rem; }
.arch-box span { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.arch-server {
  position: relative; padding: 18px; border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: linear-gradient(180deg, var(--accent-soft), transparent 60%), var(--surface);
  box-shadow: 0 0 0 6px var(--accent-soft), var(--shadow);
}
.arch-server .arch-title { color: var(--accent); }
.arch-server .arch-box { background: var(--surface-2); }
.arch-server .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.arch-link { position: relative; height: 2px; margin: 0 8px; background: linear-gradient(90deg, var(--border-2), var(--accent), var(--border-2)); }
.arch-link .lbl {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  font-family: var(--mono); font-size: 0.7rem; font-weight: 700; color: var(--accent); white-space: nowrap;
}
.arch-link .pkt {
  position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
  animation: pkt 2.4s linear infinite;
}
.arch-link .pkt.rev { animation-name: pktrev; animation-delay: -1.2s; background: var(--up); box-shadow: 0 0 12px var(--up); }
@keyframes pkt { from { left: 0; } to { left: calc(100% - 8px); } }
@keyframes pktrev { from { left: calc(100% - 8px); } to { left: 0; } }
@media (max-width: 1000px) {
  .arch { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .arch-link { width: 2px; height: 56px; margin: 8px auto; background: linear-gradient(180deg, var(--border-2), var(--accent), var(--border-2)); }
  .arch-link .lbl { left: 14px; bottom: auto; top: 50%; transform: translateY(-50%); }
  .arch-link .pkt { left: 50% !important; margin-left: -4px; top: 0; animation-name: pktv; }
  .arch-link .pkt.rev { animation-name: pktvrev; }
  @keyframes pktv { from { top: 0; } to { top: calc(100% - 8px); } }
  @keyframes pktvrev { from { top: calc(100% - 8px); } to { top: 0; } }
}

.stack-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.stack-card { padding: 32px; }
.stack-head { display: flex; align-items: center; gap: 14px; }
.stack-head h3 { font-size: 1.35rem; font-weight: 800; }
.stack-head .kicker { display: block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.stack-card .check-list { margin-top: 6px; }
.tech { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 14px; margin-top: 4px; border-top: 1px dashed var(--border-2); }
.between {
  margin-top: 18px; padding: 18px 22px; border-radius: 14px;
  display: flex; align-items: center; gap: 14px;
  border: 1px dashed var(--border-2); color: var(--muted); font-size: 0.95rem;
}
.between strong { color: var(--heading); }
@media (max-width: 860px) { .stack-grid { grid-template-columns: minmax(0, 1fr); } .stack-card { padding: 24px; } }

.flow-head { margin: 88px 0 34px; }
.flow-head h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 850; letter-spacing: -0.03em; }
.flow-head p { margin-top: 10px; color: var(--muted); max-width: 680px; }
.flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; counter-reset: flow; }
.flow-step { position: relative; padding-top: 58px; counter-increment: flow; }
.flow-step::before {
  content: counter(flow);
  position: absolute; top: 0; left: 0;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--accent); color: var(--accent); background: var(--bg);
  font-weight: 800; font-family: var(--mono);
}
.flow-step::after {
  content: ""; position: absolute; top: 22px; left: 52px; right: -6px; height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--border));
}
.flow-step:last-child::after { display: none; }
.flow-step h4 { font-size: 1.05rem; font-weight: 750; }
.flow-step p { margin-top: 6px; color: var(--muted); font-size: 0.88rem; }
.flow-step ul { list-style: none; padding: 10px 0 0; margin-top: 10px; border-top: 1px solid var(--border); display: grid; gap: 4px; font-size: 0.82rem; color: var(--text); }
@media (max-width: 1000px) { .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; } .flow-step:nth-child(3)::after { display: none; } }
@media (max-width: 600px) {
  .flow { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .flow-step { padding: 0 0 0 62px; }
  .flow-step::after { display: none; }
}

.incident {
  margin-top: 40px; padding: 24px; border-radius: var(--radius);
  background: var(--term-bg); border: 1px solid var(--term-border); color: var(--term-text);
}
.incident-title { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--term-dim); font-weight: 700; }
.incident-rows { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.incident-row {
  padding: 4px 0 4px 14px; border-left: 3px solid #22c55e;
  opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s;
}
.incident.is-visible .incident-row { opacity: 1; transform: none; }
.incident.is-visible .incident-row:nth-child(2) { transition-delay: .5s; }
.incident.is-visible .incident-row:nth-child(3) { transition-delay: 1s; }
.incident.is-visible .incident-row:nth-child(4) { transition-delay: 1.5s; }
.incident.is-visible .incident-row:nth-child(5) { transition-delay: 2s; }
.incident-row b { display: block; font-family: var(--mono); font-size: 0.86rem; }
.incident-row span { display: block; font-size: 0.82rem; color: #a7b3c4; margin-top: 3px; }
.incident-row.ok b { color: #4ade80; }
.incident-row.warn { border-color: #f59e0b; } .incident-row.warn b { color: #fbbf24; }
.incident-row.down { border-color: #ef4444; } .incident-row.down b { color: #f87171; }
@media (max-width: 900px) { .incident-rows { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* ---------- Gallery + lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gallery-item {
  position: relative; display: block; padding: 0; overflow: hidden; cursor: zoom-in; text-align: left;
  border-radius: 14px; border: 1px solid var(--border); background: var(--surface);
  font: inherit; color: inherit;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.gallery-item:hover { transform: translateY(-4px); border-color: var(--accent-ring); box-shadow: var(--shadow); }
.gallery-item .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .cap { display: block; padding: 12px 14px; }
.gallery-item .cap strong { display: block; color: var(--heading); font-size: 0.92rem; }
.gallery-item .cap span { display: block; color: var(--muted); font-size: 0.8rem; }
.gallery-item.wide { grid-column: span 2; }
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery { grid-template-columns: minmax(0, 1fr); } .gallery-item.wide { grid-column: auto; } }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; grid-template-rows: 1fr auto; place-items: center;
  padding: 56px 16px 20px;
  background: rgba(3, 6, 10, 0.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fadein .2s ease;
}
.lightbox img { max-width: min(1600px, 100%); max-height: calc(100vh - 140px); border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox-cap { color: #e2e8f0; margin-top: 14px; text-align: center; font-size: 0.95rem; }
.lightbox-cap span { color: #94a3b8; }
.lb-btn {
  position: absolute; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06); color: #fff; cursor: pointer;
}
.lb-btn:hover { background: rgba(255,255,255,.14); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; } }

/* ---------- Privacy ---------- */
.privacy-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.privacy-grid .card { padding: 24px; }
.privacy-grid .card h3 { font-size: 1.02rem; }
.privacy-grid .card p { font-size: 0.9rem; }
.law-band {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center;
  margin-top: 22px; padding: 26px 28px; border-radius: var(--radius);
  background: linear-gradient(110deg, var(--accent-soft), transparent 70%), var(--surface);
  border: 1px solid var(--border);
}
.law-badges { display: flex; gap: 8px; }
.law-badge {
  display: grid; place-items: center; width: 74px; height: 74px; border-radius: 16px;
  border: 1.5px solid var(--accent); color: var(--accent);
  font-weight: 900; font-size: 0.95rem; letter-spacing: 0.02em; background: var(--bg);
}
.law-band p { color: var(--muted); }
.law-band p strong { color: var(--heading); }
.sec-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.sec-list .card { padding: 22px 24px; }
.sec-list ul { list-style: none; padding: 0; display: grid; gap: 7px; font-size: 0.9rem; }
.sec-list li { display: flex; gap: 8px; }
.sec-list li::before { content: ""; width: 6px; height: 6px; margin-top: 0.55em; border-radius: 2px; background: var(--accent); flex: none; }
@media (max-width: 1000px) {
  .privacy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-list { grid-template-columns: minmax(0, 1fr); }
  .law-band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) { .privacy-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Download ---------- */
.os-picker { display: grid; gap: 14px; max-width: 1000px; margin: 0 auto 26px; }
.platforms {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.os-versions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.os-versions-label { font-size: 0.85rem; color: var(--muted); margin-right: 4px; }
.platform {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 15px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); color: var(--heading);
  font: inherit; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.platform:hover { border-color: var(--border-2); }
.platform .icon { width: 24px; height: 24px; color: var(--muted); }
.platform-text { display: flex; flex-direction: column; min-width: 0; }
.platform-name { font-weight: 650; font-size: 0.95rem; }
.platform-meta { font-size: 0.8rem; color: var(--muted); }
.platform[aria-checked="true"], .platform[aria-selected="true"] { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.platform[aria-checked="true"] .icon, .platform[aria-selected="true"] .icon { color: var(--accent); }
.platform[aria-checked="true"] .platform-meta, .platform[aria-selected="true"] .platform-meta { color: var(--accent); font-weight: 650; }
.platform-soon { cursor: default; border-style: dashed; background: transparent; color: var(--muted); }
.platform-soon:hover { border-color: var(--border); }
.platform-soon .platform-name { color: var(--muted); }
@media (max-width: 860px) { .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } .platform { padding: 12px; gap: 10px; } }
@media (max-width: 360px) { .platforms { grid-template-columns: minmax(0, 1fr); } }

.download-card {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  max-width: 1000px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow); overflow: hidden;
}
.download-main { padding: 38px; border-right: 1px solid var(--border); }
.download-side { padding: 38px; background: var(--surface-2); min-width: 0; }
.release-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.875rem; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
}
.badge-beta { background: var(--warn-soft); color: var(--warn); }
.release-title { margin-top: 14px; font-size: 1.9rem; font-weight: 850; letter-spacing: -0.03em; }
.release-for { margin-top: 6px; color: var(--muted); }
.release-for strong { color: var(--heading); font-weight: 650; }
.release-meta {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px 24px;
  margin: 26px 0; padding: 16px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.release-meta dt { font-size: 0.8rem; color: var(--muted); }
.release-meta dd { margin: 2px 0 0; font-weight: 650; color: var(--heading); }
.release-meta code { background: none; padding: 0; font-size: 0.9rem; }
details summary { cursor: pointer; color: var(--muted); font-weight: 550; width: fit-content; }
details summary:hover { color: var(--heading); }
.checksum { margin-top: 18px; font-size: 0.9rem; }
.hash { display: block; margin: 10px 0 8px; padding: 10px 12px; font-size: 0.76rem; line-height: 1.5; word-break: break-all; }
.side-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 750; }
.side-title .icon { color: var(--accent); }
.download-side > .muted { margin: 8px 0 16px; font-size: 0.94rem; }
.whatsnew { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.whatsnew h4 { font-size: 0.95rem; font-weight: 750; margin-bottom: 10px; }
.dot-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.dot-list li { position: relative; padding-left: 20px; font-size: 0.92rem; }
.dot-list li::before { content: ""; position: absolute; left: 3px; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@media (max-width: 860px) {
  .download-card { grid-template-columns: minmax(0, 1fr); }
  .download-main { border-right: 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 520px) { .download-main, .download-side { padding: 24px 20px; } }

.requirements {
  max-width: 1000px; margin: 20px auto 0; padding: 24px 28px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.req-title { font-size: 0.95rem; font-weight: 750; margin-bottom: 14px; }
.req-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; }
.req-grid dt { font-size: 0.8rem; color: var(--muted); }
.req-grid dd { margin: 2px 0 0; font-size: 0.92rem; font-weight: 550; color: var(--heading); }
@media (max-width: 860px) { .req-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .req-grid { grid-template-columns: minmax(0, 1fr); } .requirements { padding: 20px; } }
.fineprint { max-width: 1000px; margin: 18px auto 0; text-align: center; font-size: 0.85rem; color: var(--muted); }

/* ---------- Terminal blocks (commands) ---------- */
.code {
  display: flex; align-items: flex-start; min-width: 0;
  background: var(--term-bg); border: 1px solid var(--term-border);
  border-radius: 12px; color: var(--term-text);
}
.code pre {
  flex: 1; min-width: 0; margin: 0; padding: 13px 16px;
  font-family: var(--mono); font-size: 0.85rem; line-height: 1.75;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.code code { background: none; color: inherit; padding: 0; font-size: inherit; border-radius: 0; overflow-wrap: anywhere; }
.code [data-fill="url"] { word-break: break-all; }
.code .cmd::before { content: "$ "; color: var(--term-prompt); user-select: none; -webkit-user-select: none; }
.code .c { color: var(--term-dim); }
.copy-btn {
  flex: none; margin: 8px 8px 8px 0;
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 10px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.07);
  color: #cbd5e1; font: inherit; font-size: 0.78rem; font-weight: 550; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.copy-btn:hover { background: rgba(255,255,255,.15); color: #fff; }
.copy-btn .icon { width: 15px; height: 15px; }
.copy-btn.is-copied { color: #86efac; }
@media (max-width: 520px) {
  .code pre { padding: 12px 12px 12px 14px; font-size: 0.8rem; }
  .copy-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .copy-btn { width: 32px; padding: 0; justify-content: center; }
}

/* ---------- Installation ---------- */
.guide-controls { display: grid; gap: 16px; justify-items: center; margin-bottom: 44px; }
.guide-controls .os-picker { width: 100%; margin-bottom: 0; }
.mode-switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 5px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface);
}
.mode-btn {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 26px; border: 0; border-radius: 12px; background: transparent;
  font: inherit; font-weight: 700; font-size: 0.98rem; color: var(--muted); cursor: pointer;
  transition: color .2s;
}
.mode-btn[aria-selected="true"] { color: var(--btn-text); }
.mode-slider {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  border-radius: 12px; background: var(--btn-bg); box-shadow: 0 8px 22px -8px var(--glow);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.mode-switch[data-mode="update"] .mode-slider { transform: translateX(100%); }
@media (max-width: 480px) { .mode-btn { padding: 0 14px; font-size: 0.9rem; } }

.guide-intro { text-align: center; color: var(--muted); max-width: 680px; margin: -16px auto 36px; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step { position: relative; padding: 0 0 42px 70px; counter-increment: step; }
.step::before {
  content: counter(step);
  position: absolute; left: 0; top: -6px;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border-2);
  color: var(--accent); font-weight: 850; font-family: var(--mono); font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}
.step::after { content: ""; position: absolute; left: 22.5px; top: 48px; bottom: 4px; width: 1px; background: linear-gradient(var(--border-2), transparent); }
.step:last-child { padding-bottom: 8px; }
.step:last-child::after { display: none; }
.step-body { display: grid; gap: 12px; min-width: 0; }
.step-body h3 { font-size: 1.22rem; font-weight: 750; }
.callout {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: 12px;
  background: var(--accent-soft); color: var(--text); font-size: 0.92rem;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
.callout .icon { color: var(--accent); margin-top: 2px; }
.callout.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.callout.warn .icon { color: var(--warn); }
.callout.ok { background: var(--up-soft); border-color: color-mix(in srgb, var(--up) 25%, transparent); }
.callout.ok .icon { color: var(--up); }
.more { font-size: 0.94rem; }
.more[open] summary { margin-bottom: 10px; }
.more > p { margin-bottom: 10px; }
@media (max-width: 520px) {
  .step { padding-left: 56px; }
  .step::before { width: 38px; height: 38px; font-size: 0.92rem; border-radius: 11px; }
  .step::after { left: 18.5px; top: 40px; }
}

.update-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.way { padding: 30px; }
.way-head { display: flex; align-items: center; gap: 14px; }
.way-head h3 { font-size: 1.25rem; }
.way .badge { margin-left: auto; }
.badge-rec { background: var(--up-soft); color: var(--up); }
.mini-steps { list-style: none; padding: 0; margin: 8px 0 0; counter-reset: ms; display: grid; gap: 12px; }
.mini-steps li { position: relative; padding-left: 38px; counter-increment: ms; }
.mini-steps li::before {
  content: counter(ms); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 0.8rem; font-family: var(--mono);
}
.mini-steps .code { margin-top: 8px; }
.ui-mock {
  margin-top: 10px; padding: 18px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.ui-mock-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.85rem; color: var(--muted); }
.ui-mock-title strong { color: var(--heading); font-size: 0.92rem; }
.ui-bar { position: relative; height: 10px; margin-top: 12px; border-radius: 6px; background: var(--border); overflow: hidden; }
.ui-bar span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--accent), #22d3ee); transition: width .5s ease; }
.ui-bar.done span { background: var(--up); }
.ui-phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.ui-phase { font-size: 0.72rem; color: var(--faint); display: flex; align-items: center; gap: 5px; }
.ui-phase i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-2); flex: none; }
.ui-phase.active { color: var(--heading); } .ui-phase.active i { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ui-phase.done { color: var(--muted); } .ui-phase.done i { background: var(--up); }
.ui-detail { margin-top: 10px; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); min-height: 1.4em; }
@media (max-width: 900px) { .update-ways { grid-template-columns: minmax(0, 1fr); } .way { padding: 24px 20px; } }
@media (max-width: 480px) { .ui-phases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.guide-extra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
@media (max-width: 760px) { .guide-extra { grid-template-columns: minmax(0, 1fr); } }

/* ---------- License ---------- */
.license-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rule { padding: 26px; }
.rule .mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  font-weight: 900; font-size: 1.2rem;
}
.rule.yes .mark { background: var(--up-soft); color: var(--up); }
.rule.no .mark { background: var(--down-soft); color: var(--down); }
.rule .mark .icon { width: 22px; height: 22px; stroke-width: 2.6; }
.license-note { margin-top: 20px; text-align: center; color: var(--muted); font-size: 0.92rem; max-width: 760px; margin-left: auto; margin-right: auto; }
.license-group { font-size: 1.15rem; margin: 34px 0 14px; text-align: center; }
.license-group:first-of-type { margin-top: 8px; }
.license-host { display: grid; gap: 18px; max-width: 900px; margin: 0 auto; padding: 26px; }
.license-host-lead { color: var(--text); font-size: 1.02rem; text-align: center; }
.license-host-lead strong { color: var(--heading); }
.license-host-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.license-host-col { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); }
.license-host-col h3 { font-size: 0.95rem; margin-bottom: 10px; }
.license-host-col.yes h3, .license-host-col.yes .icon { color: var(--up); }
.license-host-col.no h3, .license-host-col.no .icon { color: var(--down); }
.license-host-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.license-host-col li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; font-size: 0.92rem; color: var(--text); }
.license-host-col li .icon { width: 16px; height: 16px; margin-top: 3px; stroke-width: 2.6; }
.license-company { color: var(--heading); font-weight: 600; }
.about-note { margin-top: 24px; text-align: center; color: var(--muted); }
@media (max-width: 640px) {
  .license-host { padding: 18px; }
  .license-host-grid { grid-template-columns: minmax(0, 1fr); }
}
.rule p code { font-family: var(--mono); font-size: 0.85em; }
.license-full { max-width: 900px; margin: 22px auto 0; padding: 16px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.license-full summary { cursor: pointer; font-weight: 650; color: var(--heading); }
.license-full pre {
  margin: 14px 0; padding: 18px 20px; max-height: 560px; overflow: auto; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-family: var(--mono); font-size: 0.8rem; line-height: 1.6; white-space: pre-wrap; color: var(--text);
}@media (max-width: 1000px) { .license-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .license-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Community ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cat-card { display: grid; gap: 10px; align-content: start; padding: 26px; color: inherit; text-decoration: none; transition: transform .25s, border-color .25s; }
.cat-card:hover { text-decoration: none; transform: translateY(-3px); }
.cat-card h3 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }
.cat-card h3 .icon { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; }
.cat-card:hover h3 .icon { transform: translateX(4px); color: var(--accent); }
.cat-card p { color: var(--muted); font-size: 0.93rem; }
.cat-card.secure { border-color: color-mix(in srgb, var(--down) 30%, transparent); }
.cat-card.secure .icon-box { background: var(--down-soft); color: var(--down); border-color: color-mix(in srgb, var(--down) 25%, transparent); }
.c-question { --c: #3b82f6; } .c-setup { --c: #0ea5e9; } .c-bug { --c: #f97316; }
.c-idea { --c: #a855f7; } .c-feature { --c: #22c55e; } .c-security { --c: #ef4444; }
.cat-card .icon-box { background: color-mix(in srgb, var(--c, var(--accent)) 12%, transparent); color: var(--c, var(--accent)); border-color: color-mix(in srgb, var(--c, var(--accent)) 25%, transparent); }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: minmax(0, 1fr); } }
.latest { margin-top: 36px; }
.latest h3 { font-size: 1rem; margin-bottom: 12px; }

/* ---------- About us ---------- */
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.team-card { grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; align-items: center; }
.avatar {
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 22px;
  background: var(--grad); color: #fff; font-weight: 900; font-size: 1.6rem; letter-spacing: 0.02em;
  box-shadow: 0 10px 30px -10px var(--glow);
}
.team-card h3 { font-size: 1.25rem; }
.team-card .role { color: var(--accent); font-weight: 650; font-size: 0.9rem; }
.team-card p { grid-column: 1 / -1; margin-top: 8px; }
.placeholder {
  position: relative; border-radius: 10px; padding: 12px 14px; margin-top: 4px;
  border: 1.5px dashed var(--border-2); color: var(--faint); font-size: 0.92rem; font-style: italic;
}
.placeholder-tag {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 6px; background: var(--warn-soft); color: var(--warn);
}
@media (max-width: 800px) { .about-grid, .team-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .team-card { grid-template-columns: minmax(0, 1fr); } .avatar { width: 64px; height: 64px; font-size: 1.25rem; } }

/* ---------- Closing band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 64px 48px; border-radius: 26px; text-align: center;
  background: #07101f; color: #e2e8f0;
  border: 1px solid rgba(76,141,232,.35);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(76,141,232,.45), transparent 70%),
    radial-gradient(500px 300px at 90% 100%, rgba(34,211,238,.25), transparent 70%);
}
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 850; letter-spacing: -0.035em; }
.cta-band p { margin: 16px auto 0; max-width: 560px; color: #a9b7cb; font-size: 1.08rem; }
.cta-band .hero-cta { justify-content: center; }
.cta-band .btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.2); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.12); }
@media (max-width: 560px) { .cta-band { padding: 44px 20px; border-radius: 20px; } }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 30px; border-top: 1px solid var(--border); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-brand p { margin-top: 14px; color: var(--muted); font-size: 0.92rem; max-width: 300px; }
.footer-col h3 { font-size: 0.78rem; font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--text); font-size: 0.93rem; }
.footer-col a:hover { color: var(--accent); }
.no-track {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border);
  font-size: 0.8rem; color: var(--muted); background: var(--surface);
}
.no-track .icon { width: 15px; height: 15px; color: var(--up); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--muted);
}
.footer-ai { flex-basis: 100%; font-size: 0.8rem; }@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .25s, transform .25s;
  box-shadow: var(--shadow);
}
.to-top.is-shown { opacity: 1; pointer-events: auto; transform: none; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 320;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 11px 18px; border-radius: 12px;
  background: var(--heading); color: var(--bg); font-weight: 600; font-size: 0.9rem;
  box-shadow: var(--shadow-lg); transition: opacity .25s, transform .25s;
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Sub-pages ---------- */
.page-hero { position: relative; overflow: hidden; padding: 72px 0 48px; isolation: isolate; }
/* Same background as at the top of the home page: glow, grid, network (canvas from main.js) */
.page-hero::before, .section.page-top::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 100%; max-height: 680px; z-index: -2; pointer-events: none;
  background:
    radial-gradient(800px 480px at 15% -10%, var(--glow), transparent 65%),
    radial-gradient(700px 460px at 95% 10%, var(--glow-2), transparent 65%);
}
.page-hero::after, .section.page-top::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 100%; max-height: 680px; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.page-canvas {
  bottom: auto; max-height: 680px; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 850; letter-spacing: -0.04em; line-height: 1.02; }
.page-hero .lead { max-width: 680px; }

/* Legal texts */
.legal { padding: 24px 0 110px; }
.legal h2 { font-size: 1.45rem; margin: 44px 0 12px; letter-spacing: -0.02em; }
.legal h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--text); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; margin: 10px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.92rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.legal th { color: var(--heading); font-weight: 650; background: var(--surface-2); }
.legal .table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.legal .table-wrap table { margin: 0; }
.legal .fill { background: var(--warn-soft); color: var(--warn); padding: 1px 6px; border-radius: 5px; font-style: normal; font-weight: 600; }
.legal .stand { color: var(--muted); font-size: 0.9rem; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.toc a { font-size: 0.85rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--heading); }
.toc a:hover { border-color: var(--accent-ring); text-decoration: none; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 650; font-size: 0.9rem; color: var(--heading); }
.field .opt { font-weight: 500; color: var(--faint); }
.input, .textarea, .select {
  width: 100%; font: inherit; font-size: 0.96rem; color: var(--heading);
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 11px;
  padding: 11px 13px; transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 170px; resize: vertical; line-height: 1.55; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hint { font-size: 0.8rem; color: var(--muted); }
.counter { font-size: 0.75rem; color: var(--faint); text-align: right; font-family: var(--mono); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--text); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cat-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cat-opt { position: relative; }
.cat-opt input { position: absolute; opacity: 0; }
.cat-opt label {
  display: flex; align-items: center; gap: 9px; height: 100%;
  padding: 11px 12px; border-radius: 11px; border: 1px solid var(--border-2);
  background: var(--surface); cursor: pointer; font-size: 0.88rem; font-weight: 600; color: var(--heading);
}
.cat-opt label .icon { width: 18px; height: 18px; color: var(--c, var(--accent)); }
.cat-opt input:checked + label { border-color: var(--c, var(--accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--accent)) 18%, transparent); }
.cat-opt input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 600px) { .cat-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 0.92rem; border: 1px solid var(--border); background: var(--surface-2); }
.notice .icon { margin-top: 1px; }
.notice.ok { background: var(--up-soft); border-color: color-mix(in srgb, var(--up) 30%, transparent); }
.notice.ok .icon { color: var(--up); }
.notice.err { background: var(--down-soft); border-color: color-mix(in srgb, var(--down) 30%, transparent); }
.notice.err .icon { color: var(--down); }
.notice.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.notice.warn .icon { color: var(--warn); }

/* Dialog */
.modal {
  width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 32px);
  padding: 0; border: 1px solid var(--border-2); border-radius: 20px;
  background: var(--bg); color: var(--text); box-shadow: var(--shadow-lg);
}
.modal::backdrop { background: rgba(3, 6, 10, 0.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .25s cubic-bezier(.2,.7,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg); z-index: 1; }
.modal-head h2 { font-size: 1.3rem; }
.modal-body { padding: 22px 24px 26px; }
@media (max-width: 520px) { .modal-head, .modal-body { padding-left: 16px; padding-right: 16px; } }

/* Community page */
.cq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; padding-bottom: 110px; }
.cq-toolbar { display: grid; gap: 12px; margin-bottom: 18px; }
.cq-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cq-row .input { flex: 1 1 240px; }
.cq-row .select { width: auto; flex: 0 0 auto; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border-2);
  background: var(--surface); color: var(--muted); font: inherit; font-size: 0.84rem; font-weight: 600; cursor: pointer;
}
.chip-btn i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); }
.chip-btn:hover { color: var(--heading); }
.chip-btn[aria-pressed="true"] { color: var(--heading); border-color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 10%, var(--surface)); }
.post-list { display: grid; gap: 10px; }
.post-card {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px;
  padding: 18px 20px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface);
  transition: border-color .2s, transform .2s;
}
.post-card:hover { border-color: var(--border-2); }
.post-card.pinned { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.vote {
  display: grid; justify-items: center; align-content: start; gap: 2px;
  padding: 8px 0; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--muted); font: inherit; cursor: pointer; height: fit-content;
}
.vote .icon { width: 18px; height: 18px; }
.vote b { font-size: 1rem; color: var(--heading); font-variant-numeric: tabular-nums; }
.vote:hover { border-color: var(--accent-ring); color: var(--accent); }
.vote[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.post-main { min-width: 0; }
.post-title { font-size: 1.08rem; font-weight: 700; color: var(--heading); line-height: 1.3; }
a.post-title:hover { color: var(--accent); text-decoration: none; }
.post-excerpt { margin-top: 6px; color: var(--muted); font-size: 0.92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; font-size: 0.8rem; color: var(--faint); }
.post-meta .icon { width: 14px; height: 14px; }
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.badge-cat { background: color-mix(in srgb, var(--c, var(--accent)) 12%, transparent); color: var(--c, var(--accent)); }
.badge-team { background: var(--accent-soft); color: var(--accent); }
.badge-label { background: var(--surface-2); color: var(--heading); border: 1px solid var(--border-2); }
.badge-label.done { background: var(--up-soft); color: var(--up); border-color: transparent; }
.badge-label.planned, .badge-label.in_progress { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.badge-label.declined { background: var(--down-soft); color: var(--down); border-color: transparent; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.empty-state { text-align: center; padding: 48px 20px; border: 1px dashed var(--border-2); border-radius: 16px; color: var(--muted); }
.empty-state .icon { width: 30px; height: 30px; color: var(--faint); margin-bottom: 8px; }
.cq-side { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 16px); }
.cq-side .card { padding: 22px; }
.cq-side h3 { font-size: 1rem; }
.cq-side ul { padding-left: 18px; display: grid; gap: 6px; font-size: 0.88rem; color: var(--muted); }
@media (max-width: 960px) { .cq-layout { grid-template-columns: minmax(0, 1fr); } .cq-side { position: static; } }
@media (max-width: 520px) { .post-card { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 14px; } }

.post-detail .back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; font-weight: 600; font-size: 0.9rem; }
.post-detail .back .icon { width: 16px; height: 16px; transform: rotate(180deg); }
.detail-card { padding: 26px; }
.detail-card h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -0.025em; }
.richtext { color: var(--text); overflow-wrap: anywhere; }
.richtext p + p { margin-top: 10px; }
.richtext pre {
  margin: 10px 0; padding: 12px 14px; border-radius: 10px; overflow-x: auto;
  background: var(--term-bg); color: var(--term-text); font-family: var(--mono); font-size: 0.84rem; white-space: pre;
}
.replies { display: grid; gap: 12px; margin-top: 22px; }
.replies h3 { font-size: 1.05rem; margin-bottom: 2px; }
.reply { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.reply.team { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: linear-gradient(120deg, var(--accent-soft), transparent 60%), var(--surface); }
.reply-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 0.85rem; color: var(--muted); }
.reply-head strong { color: var(--heading); }
.reply-mark { width: 22px; height: 22px; }
.reply-mark .logo-bar { fill: var(--logo-bar); } .reply-mark .logo-accent { fill: var(--logo-accent); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 0.82rem; color: var(--faint); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.link-btn:hover { color: var(--down); }
.link-btn .icon { width: 14px; height: 14px; }

/* Admin */
.admin-wrap { padding: 32px 0 110px; }
.admin-box { max-width: 460px; margin: 40px auto; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.kv { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.82rem; color: var(--muted); }
.kv b { color: var(--heading); font-weight: 600; }
.admin-sub { padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); display: grid; gap: 10px; }
.admin-sub .reply { background: var(--surface); }

/* Admin – layout: sidebar on the left, content on the right */
.adm { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 36px; align-items: start; }
.adm-nav { position: sticky; top: calc(var(--header-h) + 20px); }
.adm-nav nav { display: grid; gap: 2px; }
.adm-nav-group { margin: 18px 12px 6px; font-size: 0.7rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.adm-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; border-radius: 10px; color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.adm-nav a:hover { background: var(--surface-2); color: var(--heading); text-decoration: none; }
.adm-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--heading); }
.adm-nav a .icon { width: 18px; height: 18px; flex: none; color: var(--faint); }
.adm-nav a[aria-current="page"] .icon { color: var(--accent); }
.adm-nav b { margin-left: auto; min-width: 26px; padding: 1px 7px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; color: var(--faint); }
.adm-nav b.is-open { background: var(--btn-bg); color: var(--btn-text); }
.adm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 22px; }
.adm-head h1 { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 850; letter-spacing: -0.025em; }
.adm-head p { margin-top: 4px; max-width: 60ch; }

/* Overview */
.adm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.adm-tile { display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--muted); transition: border-color .2s; }
.adm-tile:hover { border-color: var(--border-2); text-decoration: none; }
.adm-tile .icon { width: 20px; height: 20px; color: var(--faint); margin-bottom: 8px; }
.adm-tile b { font-size: 2rem; font-weight: 750; line-height: 1.1; letter-spacing: -0.03em; color: var(--heading); font-variant-numeric: tabular-nums; }
.adm-tile span { font-weight: 650; color: var(--heading); }
.adm-tile small { font-size: 0.8rem; }
.adm-tile.is-open { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: linear-gradient(140deg, var(--accent-soft), transparent 70%), var(--surface); }
.adm-tile.is-open .icon { color: var(--accent); }
.adm-section { display: grid; gap: 12px; margin-top: 30px; }
.adm-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.adm-section-head h2 { font-size: 1.05rem; }
.adm .kpis, .adm .chart-grid { max-width: none; margin: 0; }
.adm-rows { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.adm-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; color: var(--muted); }
.adm-row + .adm-row { border-top: 1px solid var(--border); }
.adm-row:hover { background: var(--surface-2); text-decoration: none; }
.adm-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--heading); }
.adm-row small { font-size: 0.8rem; }
.adm-row > .icon { width: 16px; height: 16px; color: var(--faint); }
.adm-row-more { display: block; font-size: 0.86rem; font-weight: 600; color: var(--accent); }
.empty-state.compact { padding: 26px 20px; }
.empty-state.compact .icon { width: 24px; height: 24px; }

/* Post lists */
.adm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.adm-search { position: relative; flex: 1 1 280px; }
.adm-search .icon { position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.adm-search .input { padding-left: 38px; }
.adm-toolbar .select { width: auto; flex: 0 0 auto; }
.adm-result { margin-left: auto; font-size: 0.84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.adm-post { display: grid; gap: 10px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.adm-post + .adm-post { margin-top: 12px; }
.adm-post.is-focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.adm-post-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.adm-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-badges .icon { width: 12px; height: 12px; }
.adm-post-when { font-size: 0.8rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.adm-post h3 { font-size: 1.08rem; line-height: 1.35; }
.adm-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.83rem; color: var(--muted); }
.adm-meta span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.adm-meta .icon { width: 14px; height: 14px; flex: none; color: var(--faint); }
.adm-meta .is-warn, .adm-meta .is-warn .icon { color: var(--warn); }
.adm-meta .is-alert, .adm-meta .is-alert .icon { color: var(--down); }
.adm-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.adm-actions > div, .adm-reply-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-reply-actions { margin-top: 10px; }
.adm-actions .btn[aria-expanded="true"] { border-color: var(--accent); background: var(--accent-soft); }
.btn-xs.btn-icon { width: 32px; padding: 0; }
.adm-reports { display: grid; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.adm-reports .btn { justify-self: start; }
.badge-label.pending { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge-label.published { background: var(--up-soft); color: var(--up); border-color: transparent; }
.badge-label.rejected { background: var(--down-soft); color: var(--down); border-color: transparent; }
.badge-label.private { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

/* Website data */
.adm-alert { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 16px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); background: var(--warn-soft); color: var(--text); font-size: 0.9rem; }
.adm-alert:hover { border-color: var(--warn); text-decoration: none; }
.adm-alert > .icon { width: 18px; height: 18px; color: var(--warn); }
.adm-alert strong { color: var(--heading); }
.adm-content { display: grid; gap: 14px; }
.adm-group { display: grid; gap: 20px; padding: 22px; }
.adm-group-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.adm-group-head h2 { font-size: 1.1rem; }
.adm-group-head p { margin-top: 2px; }
.adm-group-side { display: flex; align-items: center; gap: 14px; }
.adm-group-side a { display: inline-flex; align-items: center; gap: 5px; }
.adm-group-side a .icon { width: 14px; height: 14px; }
.adm-field-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.adm-missing { display: none; padding: 1px 8px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: 0.72rem; font-weight: 700; }
.adm-field.is-missing .adm-missing { display: inline-block; }
.adm-en-missing { display: none; margin-left: 8px; padding: 0 7px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: 0.68rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.adm-field.is-en-missing .adm-en-missing { display: inline-block; }
.adm-field .textarea { min-height: 0; }
.adm-field > .checkbox { margin-top: 4px; font-weight: 500; color: var(--text); }
.adm-i18n { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.adm-i18n > div { display: grid; gap: 4px; align-content: start; }
.adm-lang { font-size: 0.7rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.adm-field.is-none .adm-i18n { opacity: 0.45; }
.adm-days { display: flex; align-items: center; gap: 10px; color: var(--text); }
.adm-days .input { width: 110px; }
.adm-savebar { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; border-radius: var(--radius); border: 1px solid var(--border-2); background: var(--elev); box-shadow: var(--shadow); }
.adm-savebar p { color: var(--muted); }
.adm-savebar p.is-dirty { color: var(--warn); font-weight: 650; }
.adm-savebar > p { flex: 1 1 auto; }
@media (max-width: 640px) {
  .adm-i18n { grid-template-columns: minmax(0, 1fr); }
  .adm-group { padding: 16px; }
}

/* Account */
.adm-settings { display: grid; gap: 14px; max-width: 560px; }
.adm-settings .card { padding: 22px; }
.adm-settings h2 { font-size: 1.05rem; margin-bottom: 12px; }
.adm-settings .muted { margin-bottom: 14px; }
.adm-settings .btn { width: auto; justify-self: start; }

@media (max-width: 1100px) { .adm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .adm { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .adm-nav { position: static; margin: 0 -24px; }
  .adm-nav nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 24px 4px; }
  .adm-nav nav::-webkit-scrollbar { display: none; }
  .adm-nav-group { display: none; }
  .adm-nav a { flex: none; padding: 7px 12px; border: 1px solid var(--border-2); border-radius: 999px; background: var(--surface); font-size: 0.86rem; }
  .adm-nav a[aria-current="page"] { border-color: var(--accent); }
  .adm-nav b { min-width: 0; margin-left: 0; }
  .adm-nav b:not(.is-open) { display: none; }
}
@media (max-width: 640px) {
  .adm-nav { margin: 0 -16px; }
  .adm-nav nav { padding: 2px 16px 4px; }
  .adm-post { padding: 16px; }
  .adm-actions { justify-content: flex-start; }
  .adm-result { margin-left: 0; }
}
@media (max-width: 480px) {
  .adm-tiles { gap: 10px; }
  .adm-tile { padding: 14px; }
  .adm-tile b { font-size: 1.7rem; }
  .adm-community { width: 38px; padding: 0; }
  .adm-community span { display: none; }
}

/* 404 */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 16px; }
.nf .code-big { font-family: var(--mono); font-size: clamp(4rem, 16vw, 9rem); font-weight: 900; line-height: 1; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* Form additions */
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form legend { padding: 0; margin-bottom: 8px; }
.cq-row .field { flex: 1 1 220px; min-width: 0; }
.cq-row .hint { flex: 1 1 auto; }
.cq-side .mini-steps { font-size: 0.88rem; color: var(--muted); }
.reply-form { margin-top: 18px; }
.report-box { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.report-box .input { flex: 1 1 220px; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.vote-inline { display: inline-flex; grid-auto-flow: column; align-items: center; gap: 8px; padding: 6px 12px; }
.vote-inline b { font-size: 0.9rem; }
.admin-body { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); font-size: 0.94rem; max-height: 240px; overflow: auto; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.admin-sub .admin-body { background: var(--surface); }
.admin-sub.form .select { max-width: 260px; }

.nf .chip { margin: 14px auto 22px; }
.nf .hero-cta { justify-content: center; }
.nf .lead { margin-left: auto; margin-right: auto; }
.nf .st { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.nf h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }

/* ---------- 1.6: large networks, news, server size ---------- */
.tile-full {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center;
  background: linear-gradient(120deg, var(--accent-soft), transparent 55%), var(--surface);
}
.scale-copy { display: grid; gap: 12px; }
.scale-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.scale-nums > div { padding: 18px 20px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.scale-nums .stat-num { font-size: clamp(1.6rem, 3vw, 2.2rem); }
/* Command line (1.7/1.8) */
.cli-mock { border-radius: 14px; background: var(--term-bg); border: 1px solid var(--border); overflow-x: auto; }
.cli-mock pre { margin: 0; padding: 18px 20px; font-family: var(--mono); font-size: 0.82rem; line-height: 1.7; color: #d7e0ee; white-space: pre; }
.cli-mock code { font-size: inherit; background: none; color: inherit; padding: 0; border-radius: 0; overflow-wrap: normal; }
.cli-mock .cli-p { color: #7aaaf0; }
.tile p code { font-family: var(--mono); font-size: 0.85em; padding: 1px 5px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--border); color: var(--heading); }@media (max-width: 1000px) { .tile-full { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .scale-nums { grid-template-columns: minmax(0, 1fr); } }

.news-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.news-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; font-size: 0.92rem; }
.news-list .ver {
  display: inline-block; margin-top: 1px; padding: 1px 8px; border-radius: 6px;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
  background: var(--accent-soft); color: var(--accent);
}

.sizing { display: grid; gap: 12px; }
.sizing .req-title { margin-bottom: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.size-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.size-table th, .size-table td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
.size-table th:first-child, .size-table td:first-child { text-align: left; }
.size-table th:last-child, .size-table td:last-child { text-align: left; }
.size-table th { background: var(--surface-2); color: var(--heading); font-weight: 650; font-size: 0.82rem; }
.size-table tbody tr:last-child td { border-bottom: 0; }
.size-table tbody tr:hover td { background: var(--accent-soft); }
.size-table b { color: var(--heading); }
/* ---------- Sub-pages ---------- */
.section.page-top { padding-top: 72px; isolation: isolate; overflow: hidden; }
.section.page-top .section-head h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 850; letter-spacing: -0.04em; line-height: 1.03;
}
@media (max-width: 640px) { .section.page-top { padding-top: 48px; } }
.noscript-nav { padding: 12px 16px; text-align: center; font-size: 0.9rem; }

/* Discover more */
.more-section { padding-top: 96px; }
.link-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.link-card { display: grid; gap: 10px; align-content: start; padding: 22px; color: inherit; text-decoration: none; transition: transform .25s, border-color .25s; }
.link-card:hover { text-decoration: none; transform: translateY(-3px); }
.link-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 1.02rem; }
.link-card h3 .icon { width: 16px; height: 16px; color: var(--muted); transition: transform .2s, color .2s; }
.link-card:hover h3 .icon { transform: translateX(4px); color: var(--accent); }
.link-card p { color: var(--muted); font-size: 0.9rem; }
body[data-page="home"] .link-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .link-grid, body[data-page="home"] .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .link-grid { grid-template-columns: minmax(0, 1fr); } }

/* Footer: contact */
.footer-mail { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.footer-mail .icon { width: 16px; height: 16px; color: var(--accent); }
.footer-mail a { font-weight: 600; }

/* Version archive */
.ver-warn { max-width: 1000px; margin: 0 auto 18px; }
.ver-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px; max-width: 1000px; margin: 0 auto 16px; }
.ver-note { max-width: 1000px; margin: 0 auto 14px; font-size: 0.9rem; color: var(--muted); }
[data-ver-tabs] .chip-btn b { margin-left: 2px; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
[data-ver-tabs] .chip-btn[aria-pressed="true"] b { color: var(--accent); }
.ver-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ver-list { display: grid; gap: 10px; max-width: 1000px; margin: 0 auto; }
.ver-group { font-size: 1.02rem; margin: 18px 0 2px; color: var(--heading); }
/* Archive as a folder tree: system → system version → NETORYX versions */
.ver-tree { display: grid; gap: 12px; max-width: 1000px; margin: 0 auto; }
.ver-folder { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.ver-folder[open] { border-color: var(--border-2); }
.ver-folder > summary, .ver-sub > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  width: auto; padding: 16px 18px; border-radius: 16px; color: inherit; font-weight: inherit;
}
.ver-folder > summary::-webkit-details-marker, .ver-sub > summary::-webkit-details-marker { display: none; }
.ver-folder > summary:hover, .ver-sub > summary:hover { background: var(--accent-soft); }
.ver-folder > summary:focus-visible, .ver-sub > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ver-folder > summary > .icon:not(.ver-chev) { width: 24px; height: 24px; color: var(--accent); flex: none; }
.ver-ftext { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; }
.ver-fname { font-weight: 750; font-size: 1.1rem; color: var(--heading); }
.ver-fmeta { font-size: 0.85rem; color: var(--muted); }
.ver-chev { width: 18px; height: 18px; margin-left: auto; flex: none; color: var(--muted); transition: transform .2s; }
details[open] > summary > .ver-chev { transform: rotate(90deg); }
.ver-folder-body { display: grid; gap: 10px; padding: 0 14px 14px; }
.ver-sub { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.ver-sub > summary { padding: 12px 14px; border-radius: 12px; }
.ver-sub-name { font-weight: 650; color: var(--heading); }
.ver-sub-body { display: grid; gap: 10px; padding: 0 10px 10px; }
.ver-folder-links { display: flex; align-items: center; gap: 8px; margin: 2px 4px 0; font-size: 0.88rem; }
.ver-folder-links .icon { width: 16px; height: 16px; color: var(--muted); }
@media (max-width: 640px) { .ver-folder-body { padding: 0 8px 10px; } .ver-sub-body { padding: 0 6px 8px; } }
.ver-group:first-child { margin-top: 0; }
.ver-log { color: var(--accent); text-align: right; }
.ver-item {
  display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; gap: 18px; align-items: start;
  padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
}
.ver-item.latest { border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ver-item.missing { opacity: .75; border-style: dashed; }
.ver-head { display: grid; gap: 6px; }
.ver-num { font-family: var(--mono); font-size: 1.35rem; font-weight: 800; color: var(--heading); letter-spacing: -0.02em; }
.ver-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.ver-date { font-size: 0.82rem; color: var(--muted); }
.ver-notes { font-size: 0.9rem; }
.ver-actions { display: grid; gap: 8px; justify-items: end; }
.ver-actions .btn { min-width: 150px; }
/* Copy buttons outside terminal blocks look like normal buttons */
.btn.copy-btn {
  margin: 0; height: 38px; padding: 0 14px; width: auto; border-radius: 10px;
  background: var(--surface); color: var(--heading); border: 1px solid var(--border-2); font-size: 0.85rem;
}
.btn.copy-btn:hover { background: var(--surface-2); color: var(--heading); }
.btn.copy-btn.is-copied { color: var(--up); }
.btn.copy-btn span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
.ver-sha { font-size: 0.8rem; text-align: right; }
.ver-sha .hash { max-width: 260px; text-align: left; }
@media (max-width: 860px) {
  .ver-item { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ver-head { grid-template-columns: auto 1fr auto; align-items: center; }
  .ver-actions { justify-items: start; grid-template-columns: repeat(2, minmax(0, max-content)); }
  .ver-sha { grid-column: 1 / -1; text-align: left; }
}

/* Contact */
.contact-card { grid-template-columns: auto minmax(0, 1fr); column-gap: 22px; padding: 32px; }
.contact-body { display: grid; gap: 12px; }
.contact-body h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 850; letter-spacing: -0.03em; }
.contact-mail a { font-family: var(--mono); font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 700; }
.contact-body .hero-cta { margin-top: 6px; }
@media (max-width: 560px) { .contact-card { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; } }
.cq-side .card .icon-box { width: 40px; height: 40px; }
/* Send the e-mail yourself (Outlook, Gmail …) */
.mail-choice { display: grid; gap: 10px; }
.mail-main { height: auto; min-height: 54px; padding: 10px 18px; justify-content: flex-start; white-space: normal; text-align: left; }
.mail-main-text { display: grid; line-height: 1.25; }
.mail-main-text small { font-weight: 500; opacity: .85; font-size: 0.78rem; }
.mail-alt { display: flex; flex-wrap: wrap; gap: 8px; }
.mail-note { margin-top: 2px; }
.cq-side .mail-alt .btn { flex: 1 1 auto; }
.cq-done { display: grid; gap: 16px; }
.cq-done .notice strong { display: block; color: var(--heading); margin-bottom: 2px; }
.cq-done-lead { color: var(--text); }
.cq-done > .btn { justify-self: start; }
.form .hint .icon { width: 14px; height: 14px; vertical-align: -2px; }
.contact-body .mail-choice { max-width: 560px; }
/* ---------- Download statistics ---------- */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 1000px; margin: 0 auto 16px; }
.kpi { display: grid; gap: 6px; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.kpi-label { font-size: 0.86rem; color: var(--muted); }
.kpi-value { font-size: clamp(1.8rem, 3.6vw, 2.4rem); font-weight: 750; letter-spacing: -0.03em; color: var(--heading); line-height: 1.1; }
.chart-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; max-width: 1000px; margin: 0 auto; }
.chart-card { margin: 0; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: grid; gap: 14px; align-content: start; min-width: 0; }
.chart-card figcaption h3 { font-size: 1.02rem; }
.chart { min-width: 0; }
.chart-table summary { font-size: 0.85rem; }
.chart-table[open] summary { margin-bottom: 10px; }
.chart-table .table-scroll { max-height: 320px; overflow: auto; }
@media (max-width: 860px) {
  .kpis { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .kpi { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px; }
  .kpi-value { font-size: 1.6rem; }
  .chart-grid { grid-template-columns: minmax(0, 1fr); }
}

.nxc { display: block; overflow: visible; }
.nxc-grid { stroke: var(--border); stroke-width: 1; shape-rendering: crispEdges; }
.nxc-axis { fill: var(--muted); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.nxc-val { fill: var(--heading); font-size: 11px; font-weight: 650; font-family: var(--font); font-variant-numeric: tabular-nums; }
.nxc-bar { fill: var(--chart-1); transition: fill .15s; }
.nxc-hit { fill: transparent; }
.nxc-col { outline: none; cursor: default; }
.nxc-col:hover .nxc-bar, .nxc-col:focus .nxc-bar { fill: var(--chart-1-hover); }
.nxc-col:focus-visible .nxc-hit { fill: var(--accent-soft); }
.nxc-tip {
  position: absolute; z-index: 400; pointer-events: none; opacity: 0;
  transform: translate(-50%, calc(-100% - 10px));
  display: grid; gap: 1px; padding: 7px 11px; border-radius: 9px; white-space: nowrap;
  background: var(--elev); border: 1px solid var(--border-2); box-shadow: var(--shadow); font-size: 0.8rem;
  transition: opacity .12s;
}
.nxc-tip.is-shown { opacity: 1; }
.nxc-tip strong { color: var(--heading); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.nxc-tip span { color: var(--muted); }
.nxc-bars { display: grid; gap: 8px; }
.nxc-brow { display: grid; grid-template-columns: var(--nxc-label, 64px) minmax(0, 1fr); gap: 10px; align-items: center; padding: 3px 4px; border-radius: 8px; outline: none; }
.nxc-brow:hover, .nxc-brow:focus-visible { background: var(--accent-soft); }
.nxc-blabel { font-family: var(--mono); font-size: 0.85rem; font-weight: 650; color: var(--heading); }
.nxc-bars.is-plain .nxc-blabel { font-family: var(--font); font-weight: 600; }
.nxc-btrack { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nxc-bfill { display: block; height: 14px; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--chart-1); transition: background-color .15s; }
.nxc-bfill.is-zero { min-width: 0; width: 0 !important; }
.nxc-brow:hover .nxc-bfill, .nxc-brow:focus-visible .nxc-bfill { background: var(--chart-1-hover); }
.nxc-bval { font-size: 0.85rem; color: var(--text); font-variant-numeric: tabular-nums; }
.ver-count { font-size: 0.8rem; color: var(--muted); }
/* Admin: download statistics */
.adm-dl { display: grid; gap: 14px; }
.adm-dl.is-loading .kpis, .adm-dl.is-loading .chart-card { opacity: .55; transition: opacity .15s; }

/* Downloads temporarily locked (website) */
.dl-lock { margin-bottom: 16px; }
.dl-lock-text { display: grid; gap: 2px; min-width: 0; }
.dl-lock-title { color: var(--heading); }
.dl-lock.warn > .icon { color: var(--warn); }
.dl-lock-big { padding: 18px 20px; gap: 14px; }
.dl-lock-big > .icon { width: 22px; height: 22px; }
.dl-lock-big .dl-lock-title { font-size: 1.15rem; margin-bottom: 2px; }
.dl-lock-note { margin-top: 6px; color: var(--text); }
.dl-paused [data-download-link], .dl-paused .ver-actions a.btn { opacity: 0.5; cursor: not-allowed; }

/* Admin: upload versions */
.rl { display: grid; gap: 14px; }
.rl .card h2 { font-size: 1.1rem; }
.rl-now { display: grid; gap: 14px; }
.rl-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.rl-tile { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.rl-tile-name { font-size: 0.84rem; color: var(--muted); }
.rl-tile-ver { font-size: 1.35rem; color: var(--heading); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.rl-drop {
  position: relative;
  display: grid; justify-items: center; gap: 4px;
  padding: 26px 18px; text-align: center;
  border: 1.5px dashed var(--border-2); border-radius: 14px;
  background: var(--surface-2); cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.rl-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.rl-drop .icon { width: 26px; height: 26px; color: var(--accent); }
.rl-drop strong { color: var(--heading); overflow-wrap: anywhere; }
.rl-drop small { color: var(--muted); font-size: 0.84rem; }
.rl-drop:hover, .rl-drop.is-over { border-color: var(--accent); }
.rl-drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.rl-drop.is-picked { border-style: solid; border-color: var(--accent-ring); }
.rl-drop.is-err { border-color: var(--down); }
.rl-drop.is-err small { color: var(--down); }
.rl-eds { margin: 0; padding: 0; border: 0; min-width: 0; }
.rl-eds .lk-quick { margin-bottom: 0; }
.rl-row { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 12px; }
.rl-row .input { font-variant-numeric: tabular-nums; }
.rl-target { font-size: 0.88rem; color: var(--muted); }
.rl-target code { color: var(--heading); }
.rl-target.is-err { color: var(--down); }
.rl-more { border: 1px solid var(--border); border-radius: 12px; padding: 0 14px; }
.rl-more > summary { padding: 12px 0; cursor: pointer; font-weight: 650; font-size: 0.9rem; color: var(--heading); }
.rl-more .opt { font-weight: 500; color: var(--faint); }
.rl-more-body { display: grid; gap: 16px; padding: 4px 0 16px; }
.rl-targets { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 6px; }
.rl-progress .ui-bar { margin-top: 0; margin-bottom: 6px; }
.rl-progress p { color: var(--muted); font-variant-numeric: tabular-nums; }
.rl-list { display: grid; gap: 12px; }
.rl-rows { display: grid; }
.rl-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.rl-item:first-child { border-top: 0; padding-top: 0; }
.rl-item-main { display: grid; gap: 3px; min-width: 0; flex: 1 1 320px; }
.rl-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--heading); }
.rl-item-main .muted { overflow-wrap: anywhere; }
.rl-item-news { color: var(--text); }
.rl-item-act { display: flex; gap: 8px; }
.rl-del:hover { color: var(--down); border-color: color-mix(in srgb, var(--down) 45%, transparent); }
@media (max-width: 560px) {
  .rl-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Notice for signed-in admins during maintenance / release ---------- */
.lock-banner {
  position: fixed; left: 50%; bottom: 16px; z-index: 300;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  width: max-content; max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 999px; border: 1px solid color-mix(in srgb, var(--warn) 55%, transparent);
  background: var(--elev); box-shadow: var(--shadow-lg);
  color: var(--heading); font-size: 0.86rem; font-weight: 600; line-height: 1.35;
}
.lock-banner::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--warn); }
.lock-banner:hover { text-decoration: none; border-color: var(--warn); }
@media (max-width: 560px) { .lock-banner { border-radius: 14px; bottom: 12px; } }
/* Admin: website update */
.up-plan { display: grid; gap: 12px; }
.up-files summary { cursor: pointer; color: var(--heading); font-size: 0.9rem; }
.up-files ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; max-height: 320px; overflow: auto; }
.up-files li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.up-files code { overflow-wrap: anywhere; font-size: 0.82rem; }
.up-confirm { display: grid; gap: 12px; }
.up-after { border: 0; padding: 0; margin: 0; }
.up-blist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.up-blist li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.up-rollback { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 14px; }
.up-rollback .field { flex: 1 1 220px; margin: 0; }

/* Team: profile photo instead of initials */
.avatar.has-photo { overflow: hidden; background: var(--surface-2); }
.avatar.has-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Admin: profile photos in the team group */
.adm-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.adm-photo { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.adm-photo .avatar { width: 64px; height: 64px; border-radius: 18px; font-size: 1.2rem; flex: none; }
.adm-photo-main { display: grid; gap: 6px; min-width: 0; }
.adm-photo-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-photo-btns label { position: relative; overflow: hidden; }
.adm-photo-btns input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
