/* =====================================================================
   Alpha Crews HQ - shared design system
   Calm, soft, welcoming. One neutral base; each crew adds an accent.
   No inline styles anywhere (strict CSP), so every visual lives here.
   ===================================================================== */

@font-face { font-family: "Orbitron"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/orbitron-700.woff2") format("woff2"); }
@font-face { font-family: "Orbitron"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/orbitron-900.woff2") format("woff2"); }
@font-face { font-family: "Rajdhani"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/rajdhani-600.woff2") format("woff2"); }
@font-face { font-family: "Rajdhani"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/rajdhani-700.woff2") format("woff2"); }

/* ---------- tokens: light ---------- */
:root {
  --bg: #f5f4fb;
  --bg-soft: #eeedf8;
  --surface: #ffffff;
  --surface-2: #f8f7fd;
  --text: #1a1c33;
  --muted: #5a5e7e;
  --faint: #646886;   /* 4.7:1 or better on every light surface */
  --line: rgba(26, 28, 51, .10);
  --line-strong: rgba(26, 28, 51, .18);
  --shadow-sm: 0 1px 2px rgba(20, 22, 50, .06);
  --shadow: 0 1px 2px rgba(20, 22, 50, .05), 0 10px 30px rgba(20, 22, 50, .07);
  --shadow-lg: 0 2px 6px rgba(20, 22, 50, .06), 0 24px 60px rgba(20, 22, 50, .12);
  --ok: #0f8a5f;  --ok-bg: #e3f6ee;
  --warn: #9a6200; --warn-bg: #fdf1dc;
  --bad: #b4233c; --bad-bg: #fce8ec;
  --info-bg: #ebeafe;

  --a1: #7b5fe8; --a2: #3fb5ff; --accent-ink: #5b3fd0;   /* HQ default */

  --display: "Orbitron", "Segoe UI", system-ui, sans-serif;
  --label: "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;

  --wrap: 1140px;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ---------- tokens: dark (device preference unless the visitor chose light) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1130; --bg-soft: #11163a; --surface: #151b43; --surface-2: #1a2150;
    --text: #eceeff; --muted: #a9aeda; --faint: #7e84b8;
    --line: rgba(255, 255, 255, .09); --line-strong: rgba(255, 255, 255, .16);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 12px 32px rgba(0, 0, 0, .28);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 28px 70px rgba(0, 0, 0, .4);
    --ok: #4fd8a2; --ok-bg: rgba(79, 216, 162, .12);
    --warn: #f5c26b; --warn-bg: rgba(245, 194, 107, .12);
    --bad: #ff8298; --bad-bg: rgba(255, 130, 152, .12);
    --info-bg: rgba(123, 95, 232, .16);
    --accent-ink: #b9a8ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1130; --bg-soft: #11163a; --surface: #151b43; --surface-2: #1a2150;
  --text: #eceeff; --muted: #a9aeda; --faint: #7e84b8;
  --line: rgba(255, 255, 255, .09); --line-strong: rgba(255, 255, 255, .16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 12px 32px rgba(0, 0, 0, .28);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 28px 70px rgba(0, 0, 0, .4);
  --ok: #4fd8a2; --ok-bg: rgba(79, 216, 162, .12);
  --warn: #f5c26b; --warn-bg: rgba(245, 194, 107, .12);
  --bad: #ff8298; --bad-bg: rgba(255, 130, 152, .12);
  --info-bg: rgba(123, 95, 232, .16);
  --accent-ink: #b9a8ff;
  color-scheme: dark;
}

/* ---------- crew accents ---------- */
.crew-hq, .crew-accounts { --a1: #7b5fe8; --a2: #3fb5ff; }
.crew-pc   { --a1: #7b5fe8; --a2: #ff4fa3; }
.crew-vpn  { --a1: #12b39a; --a2: #38bdf8; }
.crew-tech { --a1: #3b82f6; --a2: #22d3ee; }
.crew-lab  { --a1: #8b5cf6; --a2: #f59e0b; }
:root:not([data-theme="dark"]) .crew-pc   { --accent-ink: #6b3fd6; }
:root:not([data-theme="dark"]) .crew-vpn  { --accent-ink: #0b7a69; }
:root:not([data-theme="dark"]) .crew-tech { --accent-ink: #1d5fd1; }
:root:not([data-theme="dark"]) .crew-lab  { --accent-ink: #6d3fd9; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .crew-pc   { --accent-ink: #d7a8ff; }
  :root:not([data-theme="light"]) .crew-vpn  { --accent-ink: #6fe3cf; }
  :root:not([data-theme="light"]) .crew-tech { --accent-ink: #8cc4ff; }
  :root:not([data-theme="light"]) .crew-lab  { --accent-ink: #d2b8ff; }
}
:root[data-theme="dark"] .crew-pc   { --accent-ink: #d7a8ff; }
:root[data-theme="dark"] .crew-vpn  { --accent-ink: #6fe3cf; }
:root[data-theme="dark"] .crew-tech { --accent-ink: #8cc4ff; }
:root[data-theme="dark"] .crew-lab  { --accent-ink: #d2b8ff; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* soft ambient light behind every page, tinted by the crew accent */
body::before {
  content: ""; position: fixed; inset: -20vh -10vw auto; height: 90vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 55% at 18% 20%, color-mix(in srgb, var(--a1) 20%, transparent), transparent 70%),
    radial-gradient(38% 50% at 82% 10%, color-mix(in srgb, var(--a2) 16%, transparent), transparent 70%);
  filter: blur(10px);
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 750; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 720; }
h3 { font-size: 1.2rem; font-weight: 680; }
p { margin: 0 0 1em; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.center { text-align: center; }
.mono { font-family: var(--mono); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: color-mix(in srgb, var(--a1) 30%, transparent); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--a1) 70%, white); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: .6rem 1rem; background: var(--surface); border-radius: 10px; }
.skip:focus { left: 12px; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(720px, calc(100% - 40px)); margin-inline: auto; }
/* highlighted headline words: the crew's own colour as solid text (readable at any size; no gradient-clipped text) */
.gradient-text { color: var(--accent-ink); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- icons ---------- */
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-bubble {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  color: #fff; background: linear-gradient(135deg, var(--a1), var(--a2));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--a1) 30%, transparent);
}
.icon-bubble .icon { width: 24px; height: 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--text); text-decoration: none; margin-right: auto; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-mark .m1 { stop-color: var(--a1); } .brand-mark .m2 { stop-color: var(--a2); }
/* transparent mascot head used as the brand logo (no frame, no background) */
.brand-logo { height: 50px; width: auto; flex: none; display: block; }
.foot .brand-logo { height: 44px; }
@media (max-width: 860px) { .brand-logo { height: 44px; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--display); font-weight: 900; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.brand-sub { font-family: var(--label); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a, .nav .linkish {
  color: var(--muted); text-decoration: none; font-weight: 560; font-size: .97rem;
  padding: .5rem .8rem; border-radius: 10px; transition: background .2s var(--ease), color .2s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--bg-soft); }
.nav-tools { display: flex; align-items: center; gap: .4rem; margin-left: .5rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer;
  transition: color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.menu-btn { display: none; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; } :root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
}
.user-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .7rem .35rem .4rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-weight: 700; font-size: .8rem; background: linear-gradient(135deg, var(--a1), var(--a2)); text-transform: uppercase; }
.avatar svg { width: 16px; height: 16px; }
.chip-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-block { margin-top: 1.5rem; }
.signin-rules { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); gap: .7rem; }
.signin-rules h4 { margin: 0; }
.tg-link-alt { display: grid; justify-items: start; gap: .6rem; margin: 1.2rem 0 .8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.qr.qr-small { width: 160px; margin: 0; }
.bullets { margin: 0; padding-inline-start: 1.2rem; display: grid; gap: .55rem; color: var(--muted); }
.result-count { margin: 1.5rem 0 .6rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: .25rem; }
.choice-row .check { padding: .55rem .9rem; align-items: center; cursor: pointer; }
.choice-row .check input { margin-top: 0; }
.choice-row .btn { margin-inline-start: auto; }
input[readonly] { opacity: .8; cursor: default; }
.inline-row { display: flex; gap: .5rem; align-items: center; }
.inline-row input { flex: 1; min-width: 0; }
.label-form { margin-bottom: .2rem; }
/* the username is a sign-in secret: shown only when the owner deliberately opens this */
.reveal-username { margin: .2rem 0 1rem; }
.reveal-username summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.reveal-username .secret { margin-top: .5rem; }

@media (max-width: 860px) {
  .menu-btn { display: inline-grid; }
  .nav {
    position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); flex-direction: column; align-items: stretch;
    padding: .6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 1rem; }
}

/* ---------- buttons ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--h); padding: 0 1.25rem; border-radius: 14px; border: 1px solid transparent;
  font: 650 1rem/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
/* --btn1/--btn2 are each crew's two hues deepened until white text reaches 4.6:1 (set in the "pass 2" block below) */
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--btn1), var(--btn2)); box-shadow: 0 6px 16px color-mix(in srgb, var(--btn1) 24%, transparent); }
.btn-primary:hover { box-shadow: 0 9px 22px color-mix(in srgb, var(--btn1) 32%, transparent); }
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--a1) 45%, var(--line-strong)); }
.btn-quiet { color: var(--muted); background: transparent; }
.btn-quiet:hover { color: var(--text); background: var(--bg-soft); }
.btn-danger { color: #fff; background: var(--bad); }
.btn-small { --h: 36px; padding: 0 .9rem; font-size: .92rem; border-radius: 11px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
form.inline { display: inline; }
button.linkish { background: none; border: 0; cursor: pointer; font: inherit; }

/* ---------- layout blocks ---------- */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--label); font-weight: 700; font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--a1), var(--a2)); }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: linear-gradient(180deg, var(--bg), var(--bg-soft) 18%, var(--bg-soft) 82%, var(--bg)); }
.section-head { max-width: 680px; margin-bottom: 2.4rem; }
.section-head.center { margin-inline: auto; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .hero-grid, .split { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- cards ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: .9rem; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; color: inherit; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--a1) 35%, var(--line)); }
.card-soft { background: var(--surface-2); box-shadow: none; }
.stat { font-size: 2rem; font-weight: 750; letter-spacing: -.02em; }
.stat-label { color: var(--muted); font-size: .92rem; }

/* crew cards on HQ: each card carries its own crew colours */
.crew-card { overflow: hidden; padding: 1.7rem; }
.crew-card::after { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--a1), var(--a2)); }
.crew-card .crew-name { font-family: var(--display); font-weight: 900; letter-spacing: .06em; text-transform: uppercase; font-size: 1.05rem; margin: 1rem 0 .4rem; }
.crew-card .go { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-weight: 650; color: var(--accent-ink); }
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 650; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
.pill-accent { background: color-mix(in srgb, var(--a1) 14%, transparent); color: var(--accent-ink); border-color: transparent; }
.pill-ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.pill-warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.pill-bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.pill-live { background: #ff3b6b; color: #fff; border-color: transparent; }
.pill-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- hero visual (HQ orbit of crews) ---------- */
.orbit { position: relative; width: 100%; aspect-ratio: 1; max-width: 440px; margin-inline: auto; }
.orbit-ring { position: absolute; inset: 8%; border-radius: 50%; border: 1px dashed var(--line-strong); }
.orbit-ring.r2 { inset: 24%; }
.orbit-glow { position: absolute; inset: 12%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--a1) 26%, transparent), transparent 64%); filter: blur(12px); }
.orbit-base { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); width: 44%; height: 6%; z-index: 1;
  background: radial-gradient(ellipse at center, rgba(8, 8, 20, .34), transparent 72%); filter: blur(4px); }
.orbit-mascot { position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%); height: 99%; width: auto; z-index: 2;
  filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .35)); }
.orbit-node { position: absolute; width: 20%; aspect-ratio: 1; border-radius: 28%; display: grid; place-items: center; z-index: 3;
  color: #fff; background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 12px 30px color-mix(in srgb, var(--a1) 35%, transparent); }
.orbit-node .icon { width: 44%; height: 44%; }
.orbit-node.n1 { left: 0; top: 4%; } .orbit-node.n2 { right: 0; top: 4%; }
.orbit-node.n3 { right: 0; bottom: 4%; } .orbit-node.n4 { left: 0; bottom: 4%; }
@media (prefers-reduced-motion: no-preference) { .orbit-node { animation: float 6s ease-in-out infinite; } .orbit-node.n2 { animation-delay: -1.5s; } .orbit-node.n3 { animation-delay: -3s; } .orbit-node.n4 { animation-delay: -4.5s; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { counter-increment: step; }
.step::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 750; color: var(--accent-ink); background: color-mix(in srgb, var(--a1) 14%, transparent); margin-bottom: .6rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- PC Crew ---------- */
.monitor { border-radius: 22px; padding: 12px; background: linear-gradient(160deg, #1b2150, #0d1130); box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .08); }
.monitor-bar { display: flex; justify-content: space-between; align-items: center; padding: .25rem .5rem .6rem; color: #cfd3ff; font-family: var(--label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.screen { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #070a1f; }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.platforms { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.platform { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; }
.platform .p-name { font-weight: 700; }
.platform .p-desc { color: var(--muted); font-size: .95rem; }
.platform .p-cta { margin-left: auto; font-weight: 650; color: var(--accent-ink); font-size: .92rem; }
.p-badge { display: grid; place-items: center; width: 50px; height: 50px; flex: none; border-radius: 14px; }
.p-badge svg { width: 26px; height: 26px; }
.p-twitch { background: #9146ff; } .p-kick { background: #53fc18; } .p-youtube { background: #ff0000; }
.p-tiktok { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); } .p-facebook { background: #0866ff; }
.p-kick svg { fill: #0b1a04; } .p-twitch svg, .p-youtube svg, .p-tiktok svg, .p-facebook svg { fill: #fff; }
.games { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.games li { display: flex; justify-content: space-between; gap: 1rem; padding: .95rem 1.15rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.games span { color: var(--muted); text-align: right; }
.specs { margin: 0; display: grid; gap: .1rem; }
.specs div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); } .specs dd { margin: 0; font-weight: 600; text-align: right; }
.pc-figure { height: clamp(240px, 38vw, 340px); width: auto; max-width: 100%; display: block; margin-bottom: 1rem;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .28)); }
@media (max-width: 520px) { .games li { flex-direction: column; gap: .1rem; } .games span { text-align: left; } }

/* ---------- Luxor: the animated mascot ---------- */
.luxor-split { align-items: center; }
/* the stage fills its column (so he can walk in from the story's edge); .luxor-spot is the place he stands,
   his height wide and tall, centred in the stage. Everything of him is positioned against it. */
.luxor-stage { position: relative; display: flex; justify-content: center; }
.luxor-spot { position: relative; height: clamp(320px, 40vw, 470px); aspect-ratio: 397 / 900; }
.luxor-aura { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); width: 96%; aspect-ratio: 1;
  border-radius: 50%; z-index: 0; filter: blur(22px); animation: luxor-pulse 4s ease-in-out infinite;
  background: radial-gradient(circle, color-mix(in srgb, var(--a1) 34%, transparent), transparent 62%); }
.luxor-base { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); width: 56%; height: 26px; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(8, 8, 20, .42), transparent 72%); filter: blur(5px); }
@keyframes luxor-pulse { 0%, 100% { opacity: .5; transform: translate(-50%, -50%) scale(1); } 50% { opacity: .85; transform: translate(-50%, -50%) scale(1.07); } }
.luxor-creed { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.luxor-creed li { padding: .32rem .85rem; border-radius: 999px; font-weight: 650; font-size: .85rem; letter-spacing: .02em;
  color: var(--accent-ink); background: color-mix(in srgb, var(--a1) 14%, transparent); }
.prose-lead p { font-size: 1.08rem; }
.prose-lead p:first-of-type { font-size: 1.2rem; color: var(--text); }

/* ---------- VPN Crew ---------- */
.plan { display: flex; flex-direction: column; gap: .4rem; padding: 1.8rem; }
.plan.featured { border-color: color-mix(in srgb, var(--a1) 50%, var(--line)); box-shadow: 0 20px 50px color-mix(in srgb, var(--a1) 18%, transparent); }
/* corner ribbon: absolutely positioned, so it never shifts the card's content rows */
.ribbon { position: absolute; top: 0; right: 0; width: 132px; height: 132px; overflow: hidden; border-top-right-radius: var(--radius); pointer-events: none; }
.ribbon span { position: absolute; top: 22px; right: -38px; width: 160px; padding: 6px 0; transform: rotate(45deg); text-align: center;
  background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; font: 700 .7rem/1.1 var(--label); letter-spacing: .08em;
  text-transform: uppercase; box-shadow: 0 6px 16px color-mix(in srgb, var(--a1) 40%, transparent); }
.plan .term { font-family: var(--label); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plan .price { font-size: 2.2rem; font-weight: 780; letter-spacing: -.02em; margin: .2rem 0; }
.plan .price.tbd { font-size: 1.35rem; color: var(--muted); font-weight: 650; }
.plan ul { list-style: none; padding: 0; margin: .8rem 0 1.2rem; display: grid; gap: .45rem; }
.plan li { display: flex; gap: .5rem; align-items: flex-start; color: var(--muted); }
.plan li .icon { color: var(--ok); margin-top: .15em; }
.plan .btn { margin-top: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-ink); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: .7rem 0 0; color: var(--muted); }
.code-display { font-family: var(--mono); font-size: 1.6rem; letter-spacing: .12em; padding: 1rem 1.2rem; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--line-strong); text-align: center; }

/* ---------- Tech Crew ---------- */
.article-card { display: flex; flex-direction: column; gap: .5rem; height: 100%; }
.article-card .thumb { aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; margin: -.4rem -.4rem .6rem; background: linear-gradient(135deg, var(--a1), var(--a2)); display: grid; place-items: center; color: rgba(255, 255, 255, .9); }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-card .thumb .icon { width: 42px; height: 42px; }
.article-card h3 { margin: 0; }
.meta { color: var(--faint); font-size: .88rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.prose { font-size: 1.1rem; line-height: 1.75; }
.prose h2 { margin-top: 2rem; font-size: 1.55rem; } .prose h3 { margin-top: 1.6rem; }
.prose blockquote { margin: 1.4rem 0; padding: .4rem 1.2rem; border-left: 3px solid var(--a1); color: var(--muted); background: var(--surface-2); border-radius: 0 12px 12px 0; }
.prose code { font-family: var(--mono); font-size: .9em; padding: .12em .4em; border-radius: 6px; background: var(--bg-soft); }
.prose pre { overflow: auto; padding: 1rem 1.2rem; border-radius: 14px; background: #0f1433; color: #e6e8ff; }
.prose pre code { background: none; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.2rem 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; }
.video { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); margin: 1.5rem 0 2rem; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.editor textarea { min-height: 420px; font-family: var(--mono); font-size: .95rem; line-height: 1.6; }
.preview-box { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 1.5rem; background: var(--surface-2); }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.1rem; }
/* align-content: start - in a row of fields, a taller neighbour (help text) must not stretch this field's box */
.field { display: grid; gap: .4rem; align-content: start; }
select, input[type="date"] { height: 48px; }
.field label, .label { font-weight: 620; font-size: .95rem; }
.help { color: var(--muted); font-size: .88rem; }
input[type="text"], input[type="password"], input[type="search"], input[type="number"], input[type="email"],
input[type="date"], input[type="tel"], input[type="url"], textarea, select {
  width: 100%; min-height: 48px; padding: .75rem .95rem; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: color-mix(in srgb, var(--a1) 70%, var(--line-strong)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a1) 18%, transparent); }
.check { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: .15rem; flex: none; accent-color: var(--a1); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 3.2rem; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pw-toggle:hover { color: var(--text); background: var(--bg-soft); }
.otp { font-family: var(--mono); font-size: 1.5rem !important; letter-spacing: .4em; text-align: center; }

/* ---------- auth pages ---------- */
.auth-shell { display: grid; place-items: center; padding: clamp(2.5rem, 7vw, 5rem) 20px; }
.auth-card { width: min(460px, 100%); padding: clamp(1.6rem, 4vw, 2.4rem); }
.auth-card h1 { font-size: 1.8rem; margin-bottom: .3rem; }
.auth-card .sub { color: var(--muted); margin-bottom: 1.6rem; }
.auth-foot { margin-top: 1.4rem; text-align: center; color: var(--muted); font-size: .95rem; }
.codes { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.codes li { font-family: var(--mono); font-size: 1.02rem; letter-spacing: .06em; text-align: center; padding: .55rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
/* QR for 2FA: a fixed, square box (no fit-content <-> max-width loop that can collapse it to nothing); the SVG has a
   viewBox, so it scales to the box with its quiet zone intact. White in every theme: scanners need dark-on-light. */
.qr { display: block; box-sizing: content-box; width: min(232px, 70vw); aspect-ratio: 1 / 1; padding: .6rem; background: #fff;
      border-radius: 16px; margin: 1rem auto; }
.qr svg { display: block; width: 100%; height: 100%; max-width: none; }
.secret { font-family: var(--mono); font-size: 1rem; letter-spacing: .08em; padding: .6rem .8rem; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--line-strong); word-break: break-all; text-align: center; }

/* ---------- alerts ---------- */
.alert { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: 14px; margin-bottom: 1.2rem; font-size: .97rem; background: var(--info-bg); border: 1px solid var(--line); }
.alert .icon { margin-top: .15em; }
.alert-ok { background: var(--ok-bg); color: var(--ok); } .alert-ok p, .alert-bad p, .alert-warn p { color: var(--text); }
.alert-bad { background: var(--bad-bg); color: var(--bad); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.alert strong { color: inherit; }

/* ---------- account area ---------- */
.page-head { padding: clamp(2rem, 5vw, 3rem) 0 1.2rem; }
.page-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: 1.6rem; padding: .3rem; border-radius: 14px; background: var(--bg-soft); width: fit-content; }
.tabs a { padding: .5rem 1rem; border-radius: 11px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.tabs a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.stack { display: grid; gap: 1.25rem; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list li:last-child { border-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th, table.data td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th { font-weight: 650; color: var(--muted); background: var(--surface-2); font-size: .85rem; letter-spacing: .02em; }
table.data tr:last-child td { border-bottom: 0; }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }

/* ---------- legal ---------- */
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; align-items: start; padding: 2.5rem 0 4rem; }
.legal-nav { position: sticky; top: 90px; display: grid; gap: .2rem; }
.legal-nav a { padding: .55rem .8rem; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 560; font-size: .95rem; }
.legal-nav a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.legal-note { font-size: .92rem; }
@media (max-width: 860px) { .legal-layout { grid-template-columns: 1fr; } .legal-nav { position: static; grid-auto-flow: column; overflow-x: auto; } }

/* ---------- footer ---------- */
.site-footer { margin-top: 3rem; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg-soft) 60%, transparent); }
.foot { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 2rem; padding: 3rem 0 2rem; }
.foot h4 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: .8rem; font-family: var(--label); font-weight: 700; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.foot a { color: var(--muted); text-decoration: none; } .foot a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 0 2rem; border-top: 1px solid var(--line); color: var(--faint); font-size: .9rem; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } }

/* ---------- errors ---------- */
.error-page { text-align: center; padding: clamp(4rem, 12vw, 8rem) 0; }
.error-code { font-family: var(--display); font-weight: 900; font-size: clamp(4rem, 14vw, 7rem); line-height: 1; margin-bottom: 1rem; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- language switcher: a single circular flag for the OTHER language, no frame ---------- */
.lang-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  transition: transform .2s var(--ease); }
/* beat the generic `.nav a` padding, which otherwise squeezes the flag and pushes it down */
.nav .lang-toggle, .nav .lang-toggle:hover { padding: 0; background: none; flex: none; }
.lang-toggle img { width: 34px; height: 34px; max-width: none; display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .28)); }
.lang-toggle:hover { transform: translateY(-1px); }
.lang-toggle:hover img { filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .32)); }

/* ---------- right-to-left (Arabic) ---------- */
[dir="rtl"] .brand { margin-right: 0; margin-left: auto; }
[dir="rtl"] .platform .p-cta { margin-left: 0; margin-right: auto; }
[dir="rtl"] .pw-wrap input { padding-right: .95rem; padding-left: 3.2rem; }
[dir="rtl"] .pw-toggle { right: auto; left: 6px; }
[dir="rtl"] .btn .icon, [dir="rtl"] .go .icon, [dir="rtl"] .eyebrow::before { transform: scaleX(-1); }
[dir="rtl"] .mono, [dir="rtl"] .code-display, [dir="rtl"] .secret, [dir="rtl"] .otp, [dir="rtl"] table.data .mono { direction: ltr; }
[dir="rtl"] .ribbon { right: auto; left: 0; border-top-right-radius: 0; border-top-left-radius: var(--radius); }
[dir="rtl"] .ribbon span { right: auto; left: -38px; transform: rotate(-45deg); }
[dir="rtl"] .list li, [dir="rtl"] .row, [dir="rtl"] .specs div, [dir="rtl"] .games li { text-align: right; }
[dir="rtl"] .games span, [dir="rtl"] .specs dd { text-align: left; }

/* Sign in with Google - Google's branding rules: white button, the full-colour G, neutral text, never recoloured */
.btn-google { color: #1f1f1f; background: #fff; border: 1px solid #747775; font-family: Roboto, Arial, system-ui, sans-serif; font-weight: 500; gap: .7rem; }
.btn-google:hover { background: #f8faff; }
.btn-google img { width: 18px; height: 18px; flex: none; }
.auth-or { display: flex; align-items: center; gap: .8rem; margin: 1.2rem 0; color: var(--muted); font-size: .9rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }

/* =====================================================================
   Design refresh 2026-10 (design-taste pass): exact-fit grids, fewer boxes, one label per page area.
   ===================================================================== */

/* HQ crew cards: each one carries a soft wash of its own crew colour, so the three read as different places */
.crew-card { background: linear-gradient(165deg, color-mix(in srgb, var(--a1) 10%, var(--surface)), var(--surface) 62%); }

/* "One account" steps: a numbered line, not three identical boxes */
.steps-line { list-style: none; margin: 0; padding: 0; }
.steps-line .step { position: relative; padding-top: 1.3rem; border-top: 1px solid var(--line-strong); }
.steps-line .step::after { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 2px; background: linear-gradient(90deg, var(--a1), var(--a2)); }
[dir="rtl"] .steps-line .step::after { left: auto; right: 0; }
.steps-line h3 { margin-top: .2rem; }

/* VPN features: a two-column list with small tinted icons instead of six equal cards */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3.5rem; }
.feature-list li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.feature-list h3 { margin: 0 0 .3rem; font-size: 1.1rem; }
.feature-list p { margin: 0; max-width: 46ch; }
.feature-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--accent-ink);
  background: color-mix(in srgb, var(--a1) 14%, transparent); }
.feature-icon .icon { width: 22px; height: 22px; }
@media (max-width: 720px) { .feature-list { grid-template-columns: 1fr; gap: 1.6rem; } }

/* VPN plans: shared features stated once above the cards */
.plan-includes { list-style: none; margin: -1rem auto 2.2rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; color: var(--muted); }
.plan-includes li { display: inline-flex; align-items: center; gap: .45rem; }
.plan-includes .icon { color: var(--ok); }
.plan .per-month { margin-bottom: 1.4rem; }

/* PC platforms: exactly one cell per platform. 3 per row; a last row of 2 shares the width, a last single fills it */
.platforms { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.platforms > * { grid-column: span 2; }
.platforms > :nth-child(3n+1):nth-last-child(2), .platforms > :nth-child(3n+1):nth-last-child(2) + * { grid-column: span 3; }
.platforms > :nth-child(3n+1):last-child { grid-column: 1 / -1; }
@media (max-width: 960px) {
  .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platforms > *, .platforms > :nth-child(3n+1):nth-last-child(2), .platforms > :nth-child(3n+1):nth-last-child(2) + * { grid-column: auto; }
  .platforms > :nth-child(odd):last-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) { .platforms { grid-template-columns: 1fr; } .platforms > :nth-child(odd):last-child { grid-column: auto; } }

/* PC games: tiles in two columns rather than a stack of boxed rows */
.games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.games li { flex-direction: column; justify-content: center; gap: .15rem; padding: 1rem 1.15rem; }
.games span { text-align: left; font-size: .93rem; }
[dir="rtl"] .games span { text-align: right; }
@media (max-width: 620px) { .games { grid-template-columns: 1fr; } }

/* Tech Crew: the newest story leads at full width; only real pictures, never placeholder blocks */
.article-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-card .article-body { display: flex; flex-direction: column; gap: .5rem; }
.article-card.lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding: 1.6rem; }
.article-card.lead .thumb { margin: 0; }
.article-card.lead h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.article-card.lead .go { display: inline-flex; align-items: center; gap: .35rem; margin-top: .4rem; font-weight: 650; color: var(--accent-ink); }
.thumb.thumb-brand { background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--a2) 30%, transparent), transparent 70%),
  linear-gradient(135deg, color-mix(in srgb, var(--a1) 22%, var(--surface)), color-mix(in srgb, var(--a2) 18%, var(--surface))); }
.thumb.thumb-brand img { width: auto; height: 82%; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .25)); }
@media (max-width: 960px) { .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .article-card.lead { grid-template-columns: 1fr; gap: 1rem; } }
@media (max-width: 620px) { .article-grid { grid-template-columns: 1fr; } }
.plan-terms { margin-top: 1.6rem; }

/* =====================================================================
   Design refresh 2026-10, pass 2: contrast and hierarchy (WCAG AA), same brand colours.
   ===================================================================== */
/* Button/ribbon/avatar stops: each crew's own two hues, deepened just enough that white text reaches 4.6:1 */
:root, .crew-hq, .crew-accounts { --btn1: #795ee4; --btn2: #3179af; }
.crew-pc   { --btn1: #795ee4; --btn2: #c64287; }
.crew-vpn  { --btn1: #158379; --btn2: #2c7ba7; }
.crew-tech { --btn1: #3672d7; --btn2: #1e7f98; }
.crew-lab  { --btn1: #8458ea; --btn2: #9d6a1b; }
.ribbon span, .avatar { background: linear-gradient(135deg, var(--btn1), var(--btn2)); }
.pill-live { background: #d63561; }
/* dark mode: a soft neutral lift instead of coloured glows */
:root[data-theme="dark"] .btn-primary, :root[data-theme="dark"] .btn-primary:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary, :root:not([data-theme="light"]) .btn-primary:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
}

/* comfortable reading measure */
.lede { max-width: 58ch; }
.faq details p { max-width: 68ch; }

/* featured plan: a tighter, quieter lift */
.plan.featured { box-shadow: 0 10px 28px color-mix(in srgb, var(--a1) 14%, transparent); }

/* footer column titles are real h2s now (correct heading order); same look as before */
.foot h2 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 0 0 .8rem; font-family: var(--label); font-weight: 700; line-height: 1.2; }
/* HQ About points: small inline icon beside the title, not a stacked tile */
.about-point { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: start; }
.about-point .feature-icon { grid-row: span 2; }
.about-point h3 { margin: .35rem 0 .3rem; }

/* =====================================================================
   Alive pass 2026-10: one authored moment per page (Luxor "powering up"), a breathing background,
   responsive cards, lists that arrive as lists, and themed browser surfaces. Everything here is
   switched off by the global prefers-reduced-motion rule, and every default state is fully visible.
   ===================================================================== */

/* browser surfaces carry the crew colour */
html { accent-color: var(--a1); caret-color: var(--a1); scrollbar-color: color-mix(in srgb, var(--a1) 45%, var(--line-strong)) transparent; }

/* the page breathes: the crew-colour light behind every page drifts very slowly */
body::before { animation: ambient-drift 26s ease-in-out infinite alternate; will-change: transform; }
@keyframes ambient-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(3vw, 2vh, 0) scale(1.06); }
  100% { transform: translate3d(-2vw, 4vh, 0) scale(1.02); }
}

/* signature moment: like Luxor's circuits lighting up, a soft band of crew colour switches on behind the
   highlighted headline words when the page opens (a highlight, not a line, so it never reads as a link) */
.gradient-text {
  background: linear-gradient(90deg, color-mix(in srgb, var(--a1) 22%, transparent), color-mix(in srgb, var(--a2) 26%, transparent))
    no-repeat 0 86% / 100% .42em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .08em; margin: 0 -.08em; border-radius: .12em;
  animation: circuit-light 1.1s cubic-bezier(.16, 1, .3, 1) .45s both;
}
[dir="rtl"] .gradient-text { background-position: 100% 86%; }

/* HQ headline: "home" and "crew" glow like neon in the crew colours, breathing in and out together.
   With reduced motion they keep a steady glow. */
.glow-word {
  color: var(--accent-ink);
  text-shadow: 0 0 .14em color-mix(in srgb, var(--a1) 55%, transparent), 0 0 .5em color-mix(in srgb, var(--a2) 30%, transparent);
  animation: word-glow 3.4s ease-in-out infinite;
}
@keyframes word-glow {
  0%, 100% { text-shadow: 0 0 .1em color-mix(in srgb, var(--a1) 30%, transparent), 0 0 .3em color-mix(in srgb, var(--a2) 14%, transparent); }
  50% { text-shadow: 0 0 .12em color-mix(in srgb, var(--a1) 75%, transparent), 0 0 .38em color-mix(in srgb, var(--a1) 48%, transparent),
         0 0 .9em color-mix(in srgb, var(--a2) 28%, transparent); }
}
/* on the dark theme the words themselves light up brighter, like the neon on Luxor's jacket */
:root[data-theme="dark"] .glow-word { color: color-mix(in srgb, var(--a1) 55%, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .glow-word { color: color-mix(in srgb, var(--a1) 55%, #fff); } }
@keyframes circuit-light { from { background-size: 0% .42em; } to { background-size: 100% .42em; } }

/* hero copy settles in once, in reading order (fast: nobody waits for it) */
.hero h1, .hero .lede, .hero .actions { animation: settle .7s cubic-bezier(.16, 1, .3, 1) both; }
.hero .lede { animation-delay: .08s; }
.hero .actions { animation-delay: .16s; }
@keyframes settle { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
.hero h1 { font-weight: 780; letter-spacing: -.03em; }

/* HQ: Luxor powers up and the four crews come out of him to their corners; the rings keep turning */
.orbit-mascot { animation: luxor-rise .9s cubic-bezier(.16, 1, .3, 1) .1s both; }
@keyframes luxor-rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
.orbit-node { animation: node-out .8s cubic-bezier(.16, 1, .3, 1) both, float 6s ease-in-out .9s infinite; }
.orbit-node.n1 { --fx: 120%; --fy: 110%; animation-delay: .35s, .9s; }
.orbit-node.n2 { --fx: -120%; --fy: 110%; animation-delay: .45s, -.6s; }
.orbit-node.n3 { --fx: -120%; --fy: -110%; animation-delay: .55s, -2.1s; }
.orbit-node.n4 { --fx: 120%; --fy: -110%; animation-delay: .65s, -3.6s; }
@keyframes node-out { from { opacity: 0; scale: .4; translate: var(--fx) var(--fy); } to { opacity: 1; scale: 1; translate: 0 0; } }
.orbit-ring { animation: ring-turn 90s linear infinite; }
.orbit-ring.r2 { animation-duration: 60s; animation-direction: reverse; }
@keyframes ring-turn { to { rotate: 360deg; } }

/* lists arrive as lists (only groups prepared by app.js below the fold; capped stagger) */
.arrive-ready > * { opacity: 0; translate: 0 22px; }
.arrive-ready.arrived > * { opacity: 1; translate: 0 0;
  transition: opacity .55s cubic-bezier(.16, 1, .3, 1), translate .7s cubic-bezier(.16, 1, .3, 1); }
.arrive-ready.arrived > :nth-child(2) { transition-delay: 60ms; }
.arrive-ready.arrived > :nth-child(3) { transition-delay: 120ms; }
.arrive-ready.arrived > :nth-child(4) { transition-delay: 180ms; }
.arrive-ready.arrived > :nth-child(5) { transition-delay: 240ms; }
.arrive-ready.arrived > :nth-child(n+6) { transition-delay: 300ms; }

/* Luxor's lens: a soft light follows the pointer on cards; cards answer with a small lift */
.card-link, .plan { isolation: isolate; }
.card-link::before, .plan::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--glow, var(--a1)) 16%, transparent), transparent 70%); }
.card-link:hover::before, .plan:hover::before { opacity: 1; }
.plan { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--a1) 35%, var(--line)); }

/* bolder crew cards: bigger icon, stronger crew colour, the icon wakes up on hover */
.crew-card { background: linear-gradient(165deg, color-mix(in srgb, var(--a1) 16%, var(--surface)), var(--surface) 66%); }
.crew-card .icon-bubble { width: 56px; height: 56px; border-radius: 16px; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.crew-card .icon-bubble .icon { width: 28px; height: 28px; }
.crew-card:hover .icon-bubble { transform: rotate(-6deg) scale(1.08); }
.crew-card .go .icon, .btn .icon { transition: translate .25s cubic-bezier(.16, 1, .3, 1); }
.crew-card:hover .go .icon, .btn:hover .icon { translate: 4px 0; }
[dir="rtl"] .crew-card:hover .go .icon, [dir="rtl"] .btn:hover .icon { translate: -4px 0; }

/* PC platforms glow in their own colour */
.platform:has(.p-twitch) { --glow: #9146ff; } .platform:has(.p-kick) { --glow: #53fc18; }
.platform:has(.p-youtube) { --glow: #ff0000; } .platform:has(.p-tiktok) { --glow: #25f4ee; } .platform:has(.p-facebook) { --glow: #0866ff; }
.platform .p-badge { transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.platform:hover .p-badge { transform: scale(1.1) rotate(-4deg); }
.platform:hover { border-color: color-mix(in srgb, var(--glow) 45%, var(--line)); }

/* the alternating section bands carry a touch of the crew colour */
.section-alt { background: linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--a1) 7%, var(--bg-soft)) 18%,
  color-mix(in srgb, var(--a1) 7%, var(--bg-soft)) 82%, var(--bg)); }

/* the header gains depth once you scroll */
.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }
.site-header { transition: box-shadow .3s ease, background-color .3s ease; }
.site-header.raised { box-shadow: 0 10px 30px rgba(20, 22, 50, .08); }
:root[data-theme="dark"] .site-header.raised { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-header.raised { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); } }

/* Tech lead story: the picture leans in when you point at the story */
.article-card .thumb img { transition: scale .6s cubic-bezier(.16, 1, .3, 1); }
.article-card:hover .thumb img { scale: 1.04; }

/* ---------- Luxor, live (HQ "Meet Luxor"), from the two transparent clips made by Tools/luxor_video.py ----------
   - luxor-still.png: the first frame of the breathing loop. It is what everyone sees without JavaScript, with
     reduced motion, or in a browser that can't show a transparent WebM (Safari), and while the clips load.
   - luxor-hello.webm: he walks out from behind the story, waves and stops (played once, only if it is ready
     the moment his section comes into view; otherwise he simply stands there).
   - luxor-idle.webm: the breathing loop he settles into.
   app.js classes on the stage: .luxor-await (still below the fold: he is out of sight), .luxor-video-on (the walk is
   playing), .luxor-settled (he has reached his spot), .luxor-idle-on (the loop has taken over).
   Each picture is sized and placed from the numbers the script prints for the frame where they meet: his height as
   a share of the frame, where his boots are, and the centre of his head and body, so nothing jumps between them. */
.luxor-still, .luxor-video { position: absolute; left: 50%; bottom: 0; z-index: 1; pointer-events: none;
  width: auto; max-width: none; transition: opacity .35s ease; }
.luxor-video { opacity: 0; }
.luxor-clip-hello { height: calc(clamp(320px, 40vw, 470px) / .9406); translate: -29.28% 2.97%; }
.luxor-clip-idle, .luxor-still { height: calc(clamp(320px, 40vw, 470px) / .95); translate: -41.33% 2.34%; }
.luxor-video-on .luxor-clip-hello { opacity: 1; transition: none; }
.luxor-idle-on .luxor-clip-idle { opacity: 1; }
.luxor-idle-on .luxor-clip-hello { opacity: 0; transition: opacity .35s ease .1s; }
/* the still steps aside while a clip shows him (and stays hidden while he waits to walk in) */
.luxor-await .luxor-still, .luxor-video-on .luxor-still { opacity: 0; transition: none; }
.luxor-idle-on .luxor-still { opacity: 0; transition: opacity .35s ease .35s; }
/* his glow and ground shadow wait at the spot he walks to, and appear as he settles there */
.luxor-await .luxor-base, .luxor-video-on .luxor-base { opacity: 0; transition: opacity .8s ease; }
.luxor-video-on.luxor-settled .luxor-base { opacity: 1; }
/* (the aura already animates its opacity, so it fades through its filter instead) */
.luxor-await .luxor-aura, .luxor-video-on .luxor-aura { filter: blur(22px) opacity(0); transition: filter .8s ease; }
.luxor-video-on.luxor-settled .luxor-aura { filter: blur(22px) opacity(.8); }
/* he walks in from the story's edge: the part of the clip beyond his column stays hidden */
.luxor-video-on { overflow-x: clip; }
/* he turns towards the visitor's pointer (app.js sets --ry / --rx); the 3D turn is on only while the pointer is
   near, because a standing 3D layer draws him slightly soft */
.luxor-stage { transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
.luxor-stage.luxor-tilt { transform: perspective(1100px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); }
@media (prefers-reduced-motion: reduce) { .luxor-stage { transform: none; } }

/* ---- chat bubble (partials/chat.html) ---- */
.chatw { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 60; }
.chatw-bubble { position: relative; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: var(--shadow-lg); display: grid; place-items: center;
  transition: transform .2s var(--ease, ease); }
.chatw-bubble:hover { transform: translateY(-2px); }
.chatw-bubble svg { width: 26px; height: 26px; }
.chatw.is-open .chatw-bubble { display: none; }
.chatw-badge { position: absolute; top: -3px; inset-inline-end: -3px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: #e5484d; color: #fff; font-size: .78rem; font-weight: 700; display: grid; place-items: center; }
.chatw-badge[hidden], .chatw-panel[hidden] { display: none; }
.chatw-panel { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.chatw-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .8rem .9rem .8rem 1rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--a1) 14%, var(--surface)), color-mix(in srgb, var(--a2) 10%, var(--surface)));
  border-bottom: 1px solid var(--line); }
.chatw-head strong { display: block; }
.chatw-sub { display: block; font-size: .8rem; color: var(--muted); }
.chatw-log { flex: 1; overflow-y: auto; padding: .9rem; display: flex; flex-direction: column; gap: .5rem; }
.chatw-msg { max-width: 85%; padding: .55rem .8rem; border-radius: 14px; font-size: .93rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chatw-team { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-end-start-radius: 4px; }
.chatw-you { align-self: flex-end; background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; border-end-end-radius: 4px; }
.chatw-quick { display: flex; flex-wrap: wrap; gap: .4rem; padding: .5rem .9rem .3rem; border-top: 1px solid var(--line); max-height: 116px; overflow-y: auto; }
.chatw-chip { border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); border-radius: 999px; padding: .32rem .7rem;
  font: inherit; font-size: .8rem; cursor: pointer; }
.chatw-chip:hover { border-color: var(--a1); }
.chatw-chip-person { border-color: color-mix(in srgb, var(--a1) 55%, var(--line)); font-weight: 600; }
.chatw-form { padding: .5rem .9rem .7rem; display: grid; gap: .4rem; }
.chatw-form input, .chatw-form textarea { min-height: 40px; padding: .5rem .7rem; font-size: .93rem; border-radius: 10px; }
.chatw-form input[hidden] { display: none; }
.chatw-row { display: flex; gap: .5rem; align-items: flex-end; }
.chatw-row textarea { flex: 1; resize: none; max-height: 120px; }
.chatw-note { margin: 0; font-size: .74rem; color: var(--muted); }
@media (max-width: 520px) { .chatw { inset-inline-end: 12px; bottom: 12px; } }

/* HQ hero title (2026-10): one line beside Luxor on wide screens (sized to its column), evenly balanced lines on phones - never "crew." alone */
.hero-title { text-wrap: balance; }
@media (min-width: 861px) {
  .hero-grid:has(.hero-title) { grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr); }   /* text gets the room, Luxor a bit smaller */
  .hero-grid:has(.hero-title) .orbit { max-width: 400px; }
  .hero-grid > div:has(> .hero-title) { container-type: inline-size; }
  .hero-title { font-size: clamp(2.1rem, 8cqi, 3.6rem); white-space: nowrap; }
  .hero-grid:has(.hero-title) .lede { max-width: 36em; }
}