/* ───────────────────────────────────────────────────────────
   909 Development — design system
   Black & anthracite base, brushed-chrome type, logo crimson
   reserved for primary actions and focus. One family: Saira,
   whose width axis separates display (wide, slanted) from body.
   ─────────────────────────────────────────────────────────── */

:root {
  --black: #060607;
  --anthracite: #16171b;
  --anthracite-2: #1e2025;
  --line: #2c2f36;
  --line-strong: #3b3f48;

  --chrome-hi: #f4f5f7;
  --chrome-mid: #b9bdc6;
  --chrome-lo: #6f7480;

  --text: #e6e7ea;
  --text-dim: #a2a6b0;
  --text-faint: #767b86;

  --crimson: #a5151f;
  --crimson-hi: #d32b3b;
  --crimson-deep: #6e0d15;

  --ok: #4fb07f;
  --warn: #d6a24a;
  --err: #e2525d;

  --font: 'Saira', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Consolas, monospace;

  /* Modular type scale (1.25) */
  --fs-xs: 0.8rem;
  --fs-sm: 0.9rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.4rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.2rem;
  --fs-display: clamp(2.4rem, 1.2rem + 4vw, 4.1rem);

  --radius-sm: 3px;
  --radius: 6px;
  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 68px;

  /* Motion tokens — every animation in the site uses these, never ad-hoc numbers */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur-fast: 0.15s;
  --dur: 0.25s;
  --dur-slow: 0.6s;
  --dur-reveal: 0.8s;
  --stagger: 70ms;

  /* Light & depth */
  --glow-crimson: rgba(211, 43, 59, 0.38);
  --glow-chrome: rgba(214, 220, 232, 0.16);
  --glass-bg: rgba(20, 21, 25, 0.66);
  --glass-bg-solid: rgba(17, 18, 21, 0.92);
  --glass-edge: rgba(255, 255, 255, 0.07);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 14px 34px -18px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 30px 70px -28px rgba(0, 0, 0, 0.95);
  --focus-ring: 0 0 0 3px rgba(211, 43, 59, 0.2), 0 0 26px -6px var(--glow-crimson);

  /* License / state colors: one place, used by pills, dots and tooltips */
  --st-active: #4fb07f;
  --st-pending: #d6a24a;
  --st-suspended: #e0833c;
  --st-expired: #8a909c;
  --st-revoked: #e2525d;

  --chrome-gradient: linear-gradient(176deg, var(--chrome-hi) 0%, #d9dce2 38%, #8b909b 52%, #c4c8cf 64%, #f1f2f4 100%);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--black);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  font-stretch: 100%;
  line-height: 1.6;
  font-feature-settings: 'tnum' 0;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; outline: none; }

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; }
code, pre { font-family: var(--mono); font-size: 0.9em; }
button { font: inherit; }

::selection { background: var(--crimson); color: #fff; }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--chrome-hi); color: var(--black);
  padding: 0.6rem 1rem; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: 820px; }

.muted { color: var(--text-dim); }
.small { font-size: var(--fs-sm); }

/* ───────── Typography ───────── */

.display {
  font-size: var(--fs-display);
  font-weight: 800;
  font-style: italic;
  font-stretch: 125%;
  letter-spacing: -0.015em;
  line-height: 1.02;
  max-width: 14ch;
  background: var(--chrome-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em; /* italic overhang */
}
.display-sm { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); max-width: 20ch; }

.h2 {
  font-size: clamp(1.45rem, 1.1rem + 1.2vw, var(--fs-2xl));
  font-style: italic;
  font-stretch: 118%;
  font-weight: 700;
  color: var(--chrome-hi);
  letter-spacing: -0.005em;
}
.h3 { font-size: var(--fs-lg); font-stretch: 110%; font-weight: 650; color: var(--chrome-hi); }
.h4 { font-size: var(--fs-md); font-weight: 600; }

.lead {
  font-size: var(--fs-md);
  color: var(--text-dim);
  max-width: 60ch;
  margin-top: 1.25rem;
}

.text-link {
  color: var(--chrome-mid);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.text-link:hover { color: var(--chrome-hi); text-decoration-color: var(--crimson-hi); }

.link-button {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px;
}
.link-button:hover { color: var(--chrome-hi); }

/* ───────── Buttons: slanted like the logo ─────────
   Light sweep on hover, pressed state on active, spinner while a form submits.
   All motion is transform/opacity. */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--chrome-hi);
  --btn-border: var(--line-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.5rem;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-stretch: 108%;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transform: skewX(-12deg);
  border-radius: var(--radius-sm);
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur), color var(--dur),
    transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.btn > span { position: relative; display: inline-flex; align-items: center; gap: 0.6rem; transform: skewX(12deg); transition: opacity var(--dur-fast); }

/* light sweep */
.btn::before {
  content: '';
  position: absolute; inset: -1px auto -1px 0; width: 55%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: translateX(-130%);
  pointer-events: none;
  z-index: -1;
}
.btn-ghost::before { background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.1), transparent); }

/* secondary: a hairline fills in from the left on hover */
.btn-ghost::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--crimson), var(--crimson-hi));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
  pointer-events: none;
}

.btn-primary {
  --btn-bg: var(--crimson);
  --btn-border: var(--crimson);
  --btn-fg: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 26px -14px var(--glow-crimson);
}

@media (hover: hover) {
  .btn:hover { transform: skewX(-12deg) translateY(-1px); }
  .btn:hover::before { transform: translateX(260%); transition: transform 0.75s var(--ease-out); }
  .btn-primary:hover { --btn-bg: var(--crimson-hi); --btn-border: var(--crimson-hi); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 14px 34px -12px var(--glow-crimson); }
  .btn-ghost:hover { --btn-border: var(--chrome-mid); --btn-bg: rgba(255, 255, 255, 0.04); }
  .btn-ghost:hover::after { transform: scaleX(1); }
}
.btn:active { transform: skewX(-12deg) translateY(1px) scale(0.975); transition-duration: 0.06s; }
.btn:focus-visible { outline-offset: 4px; }

.btn-danger { --btn-border: rgba(226, 82, 93, 0.55); --btn-fg: #ffc9cd; }
.btn-danger.btn-solid, .btn-danger:hover { --btn-bg: var(--crimson); --btn-border: var(--crimson-hi); --btn-fg: #fff; }

.btn[aria-disabled='true'], .btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn[aria-disabled='true']:hover, .btn:disabled:hover { transform: skewX(-12deg); }
.btn[aria-disabled='true']::before, .btn:disabled::before { display: none; }

/* submitting: label hides, spinner takes its place, width stays the same (no layout shift) */
.btn.is-loading { cursor: progress; pointer-events: none; }
.btn.is-loading > span { opacity: 0; }
.btn.is-loading::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.28); border-top-color: #fff; border-radius: 50%;
  background: none; height: 16px; transform: none; transform-origin: 50% 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-sm { min-height: 40px; padding: 0 1.1rem; font-size: var(--fs-sm); }
.btn-block { width: 100%; }

/* ───────── Header ─────────
   The bar's height never changes (no layout shift). On scroll a glass layer fades in
   behind it and the bar contents tighten with transforms only. */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
}
.header-glass {
  position: absolute; inset: 0 0 auto 0; height: 100%;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--glass-edge);
  box-shadow: 0 12px 30px -22px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: scaleY(0.9);
  transform-origin: top;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  pointer-events: none;
}
.header-glass::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(211, 43, 59, 0.55), transparent);
  opacity: 0.7;
}
.is-scrolled .header-glass { opacity: 1; transform: none; }
.header-inner { position: relative; height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand img { transition: transform var(--dur-slow) var(--ease-out), filter var(--dur) var(--ease-out); transform-origin: left center; }
.is-scrolled .brand img { transform: scale(0.9); }

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; flex-shrink: 0; min-height: 44px; }
@media (hover: hover) { .brand:hover img { filter: drop-shadow(0 0 14px var(--glow-crimson)); } }
.brand img { width: 116px; height: auto; }
.brand-word {
  font-size: var(--fs-xs);
  font-stretch: 125%;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--chrome-lo);
  padding-left: 0.7rem;
  border-left: 1px solid var(--line-strong);
  line-height: 1.2;
}

.site-nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-links { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative;
  display: block;
  padding: 0.6rem 0.85rem;
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--dur-fast);
}
/* sliding underline: grows from the left on hover/focus, stays for the current page */
.nav-links a::after {
  content: ''; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.2rem; height: 2px;
  background: linear-gradient(90deg, var(--crimson), var(--crimson-hi));
  box-shadow: 0 0 12px var(--glow-crimson);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current='page'] { color: var(--chrome-hi); }
.nav-links a:hover::after, .nav-links a:focus-visible::after, .nav-links a[aria-current='page']::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.lang-switch { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-dim); text-decoration: none; font-size: var(--fs-sm); transition: color var(--dur-fast); }
.lang-switch:hover { color: var(--chrome-hi); }

/* account dropdown (disclosure pattern: button + panel, Esc and outside click close it) */
.account { position: relative; }
.account-toggle {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 44px; padding: 0 0.6rem 0 0.35rem;
  background: transparent; color: var(--chrome-hi);
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 500; cursor: pointer;
  transition: background-color var(--dur-fast), border-color var(--dur-fast);
}
.account-toggle img { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); }
.account-toggle svg { transition: transform var(--dur) var(--ease-out); opacity: 0.7; }
.account-toggle[aria-expanded='true'] svg { transform: rotate(180deg); }
@media (hover: hover) { .account-toggle:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--line); } }
.account-toggle[aria-expanded='true'] { background: rgba(255, 255, 255, 0.06); border-color: var(--line-strong); }

.account-menu {
  position: absolute; right: 0; top: calc(100% + 0.5rem); min-width: 220px; z-index: 60;
  display: flex; flex-direction: column; padding: 0.4rem;
  background: var(--glass-bg-solid);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-lg), var(--glass-hi);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98); transform-origin: top right;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.account-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.account-menu a, .account-menu button {
  display: flex; align-items: center; min-height: 42px; width: 100%; padding: 0 0.8rem;
  background: none; border: 0; border-radius: var(--radius-sm);
  color: var(--text); font: inherit; font-size: var(--fs-sm); text-align: left; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.account-menu a:hover, .account-menu button:hover, .account-menu a:focus-visible, .account-menu button:focus-visible { background: rgba(255, 255, 255, 0.06); color: #fff; }
.account-menu form { margin: 0; }
.account-menu .account-name { padding: 0.55rem 0.8rem 0.45rem; margin-bottom: 0.25rem; border-bottom: 1px solid var(--line); font-size: var(--fs-xs); color: var(--text-faint); }
.account-menu .account-name strong { display: block; color: var(--chrome-hi); font-size: var(--fs-sm); font-weight: 600; }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--chrome-hi); cursor: pointer;
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}
.menu-toggle[aria-expanded='true'] { border-color: var(--crimson-hi); background: rgba(211, 43, 59, 0.1); }
.menu-icon, .menu-icon::before, .menu-icon::after, .menu-icon span {
  display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto;
  transition: transform 0.22s var(--ease-out), opacity 0.15s;
}
.menu-icon { position: relative; background: transparent; }
.menu-icon::before, .menu-icon::after { content: ''; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-icon span { position: absolute; top: 0; left: 0; }
.menu-toggle[aria-expanded='true'] .menu-icon span { opacity: 0; }
.menu-toggle[aria-expanded='true'] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem var(--gutter) 1.75rem;
    background: #08080a; /* opaque: page text must never show through menu items */
    border-bottom: 1px solid var(--line-strong);
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease-out), transform var(--dur-slow) var(--ease-out), visibility 0s linear var(--dur-slow);
  }
  .site-nav.is-open {
    opacity: 1; transform: none; visibility: visible;
    transition: opacity var(--dur) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  }
  .nav-links { flex-direction: column; }
  .nav-links li { opacity: 0; transform: translateX(-10px); transition: opacity var(--dur) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
  .site-nav.is-open .nav-links li { opacity: 1; transform: none; }
  .site-nav.is-open .nav-links li:nth-child(1) { transition-delay: 60ms; }
  .site-nav.is-open .nav-links li:nth-child(2) { transition-delay: 110ms; }
  .site-nav.is-open .nav-links li:nth-child(3) { transition-delay: 160ms; }
  .site-nav.is-open .nav-links li:nth-child(4) { transition-delay: 210ms; }
  .nav-links a { padding: 0.95rem 0.25rem; min-height: 48px; font-size: var(--fs-md); border-bottom: 1px solid var(--line); }
  .nav-links a::after { left: 0; right: auto; width: 3rem; bottom: -1px; }
  .nav-actions { flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; }
  .nav-actions .btn { flex: 1; }
  .lang-switch { padding: 0.75rem 0.25rem; }
  /* account section is inline on mobile — no dropdown */
  .account { width: 100%; }
  .account-toggle { display: none; }
  .account-menu { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .account-menu a, .account-menu button { min-height: 48px; padding: 0 0.25rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: var(--fs-base); }
  body.menu-open { overflow: hidden; }
}

/* ───────── Hero ───────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(4rem, 9vw, 7.5rem);
  border-bottom: 0;
  background: radial-gradient(60rem 30rem at 85% -10%, rgba(165, 21, 31, 0.12), transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 3.5vw, 3.5rem);
  align-items: center;
}
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* The one memorable moment: the slash from the logo sweeps once on load. */
.hero-slash {
  position: absolute;
  left: -10%; right: -10%; bottom: 2.2rem;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--crimson) 18%, var(--crimson-hi) 50%, var(--crimson) 82%, transparent);
  transform: skewY(-1.2deg) scaleX(0);
  transform-origin: left center;
  animation: slash 1.1s var(--ease-out) 0.25s forwards;
  opacity: 0.85;
}
@keyframes slash { to { transform: skewY(-1.2deg) scaleX(1); } }

.console {
  margin: 0;
  background: #0b0c0e;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.console-bar {
  display: flex; align-items: center;
  height: 34px; padding: 0 0.9rem;
  border-bottom: 1px solid var(--line);
  background: var(--anthracite);
}
.console-title { font-family: var(--mono); font-size: var(--fs-xs); color: var(--text-faint); }
.console-body {
  margin: 0;
  padding: 1.1rem 1.1rem 1.3rem;
  font-size: 0.76rem;
  line-height: 1.8;
  white-space: normal;
  word-break: break-word;
  color: var(--chrome-mid);
}
.console-body .line { display: block; white-space: pre-wrap; opacity: 0; animation: line-in 0.35s var(--ease-out) forwards; }
.console-body .line:nth-child(1) { animation-delay: 0.35s; }
.console-body .line:nth-child(2) { animation-delay: 0.75s; }
.console-body .line:nth-child(3) { animation-delay: 0.95s; }
.console-body .line:nth-child(4) { animation-delay: 1.15s; }
.console-body .line:nth-child(5) { animation-delay: 1.35s; }
.console-body .line:nth-child(6) { animation-delay: 1.55s; }
.line-cmd { color: var(--chrome-hi); }
.line-ok { color: #8fd3ad; }
.line-dim { color: var(--text-faint); }
.caret::after {
  content: '';
  display: inline-block;
  width: 0.55em; height: 1.05em;
  vertical-align: -0.15em;
  background: var(--chrome-mid);
  animation: blink 1.1s steps(1) 1.8s infinite;
}
@keyframes line-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .display { max-width: 16ch; }
}

/* ───────── Announcement ───────── */

.announce { background: var(--crimson-deep); border-bottom: 1px solid var(--crimson); font-size: var(--fs-sm); }
.announce p { margin: 0; padding: 0.6rem 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; }
.announce a { color: #fff; }

/* ───────── Sections ───────── */

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tight { padding: 2.5rem 0 4rem; }
.section-tight > .wrap > .h3 { margin-bottom: 1rem; }
.section-alt { background: linear-gradient(180deg, rgba(22, 23, 27, 0.78), rgba(18, 19, 22, 0.82)); }
.section .h2 { margin-bottom: 1.75rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.section-head .h2 { margin-bottom: 0; }

.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; border-bottom: 1px solid var(--line); }

/* ───────── Plugin cards ───────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.card {
  position: relative;
  isolation: isolate;
  background: var(--glass-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--glass-hi), var(--shadow-sm);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}
/* chrome hairline along the top edge */
.card::before {
  content: '';
  position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--chrome-lo), transparent);
  opacity: 0.7;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--glass-hi), var(--shadow-md), 0 0 40px -22px var(--glow-crimson); }
.card:hover .card-title { color: #fff; }
.card:hover .monogram { transform: translateX(3px) skewX(-12deg); }

.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; border-radius: inherit; }
.card-media {
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(165, 21, 31, 0.55) 58% 61%, transparent 61%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 9px),
    var(--anthracite-2);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.monogram {
  font-size: 3.2rem;
  font-weight: 800;
  font-style: italic;
  font-stretch: 125%;
  background: var(--chrome-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: skewX(-12deg);
  transition: transform 0.25s var(--ease-out);
  padding-right: 0.1em;
}
.card-body { padding: 1.1rem 1.2rem 0.4rem; flex: 1; }
.card-title { font-size: var(--fs-lg); font-stretch: 112%; color: var(--chrome-hi); transition: color 0.15s; }
.card-tagline { margin: 0.45rem 0 0; color: var(--text-dim); font-size: var(--fs-sm); }
.card-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.9rem 1.2rem 1.1rem;
}
.card-figures { display: flex; align-items: baseline; gap: 0.8rem; white-space: nowrap; }
.ver { font-size: var(--fs-xs); color: var(--text-faint); font-variant-numeric: tabular-nums; }
.price { font-weight: 700; font-stretch: 110%; color: var(--chrome-hi); font-variant-numeric: tabular-nums; }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.12rem 0.55rem;
  font-size: var(--fs-xs);
  color: var(--chrome-mid);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.chip-tag:hover, .chip-removable:hover { border-color: var(--chrome-mid); color: var(--chrome-hi); }
.chip-muted { color: var(--text-faint); }

/* ───────── Steps (a real sequence, so numbered) ───────── */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
  counter-reset: step;
  border-top: 1px solid var(--line-strong);
}
.step {
  counter-increment: step;
  padding: 1.5rem 1.5rem 0.5rem 0;
  position: relative;
}
.step::before {
  content: counter(step);
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  font-style: italic;
  font-stretch: 125%;
  line-height: 1;
  margin-bottom: 0.9rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--chrome-lo);
}
.step:first-child::before { -webkit-text-stroke: 0; color: var(--crimson-hi); }
.step h3 { font-size: var(--fs-md); font-stretch: 108%; color: var(--chrome-hi); margin-bottom: 0.5rem; }
.step p { color: var(--text-dim); font-size: var(--fs-sm); max-width: 34ch; }

/* ───────── Newest list & timeline ───────── */

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(2.5rem, 6vw, 5rem); }

.row-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row-list li { border-bottom: 1px solid var(--line); }
.row-link {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 1rem 0.25rem; text-decoration: none;
  transition: background-color 0.15s, padding 0.2s var(--ease-out);
}
.row-link:hover { background: var(--anthracite); padding-inline: 0.75rem; }
.row-main { display: flex; flex-direction: column; min-width: 0; }
.row-title { font-weight: 600; color: var(--chrome-hi); }
.row-sub { color: var(--text-dim); font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; font-size: var(--fs-sm); flex-shrink: 0; }
.row-side time { color: var(--text-faint); font-size: var(--fs-xs); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 1.25rem; border-left: 1px solid var(--line-strong); }
.timeline li { position: relative; padding: 0 0 1.4rem; }
.timeline li::before {
  content: ''; position: absolute; left: calc(-1.25rem - 4px); top: 0.55rem;
  width: 7px; height: 7px; background: var(--chrome-lo); transform: skewX(-12deg);
}
.timeline li:first-child::before { background: var(--crimson-hi); }
.timeline time { display: block; font-size: var(--fs-xs); color: var(--text-faint); }
.timeline a { color: var(--chrome-hi); text-decoration: none; }
.timeline a:hover { text-decoration: underline; text-underline-offset: 3px; }
.timeline p { margin: 0.2rem 0 0; color: var(--text-dim); font-size: var(--fs-sm); }

.empty, .empty-inline { color: var(--text-dim); }
.empty {
  position: relative; overflow: hidden;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(20, 21, 25, 0.4);
  padding: 2rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem;
}
.empty p { margin: 0; max-width: 60ch; }
.empty::before {
  content: ''; flex-shrink: 0; width: 46px; height: 5px; margin-bottom: 0.25rem;
  background: linear-gradient(90deg, var(--crimson), var(--crimson-hi));
  box-shadow: 0 0 18px var(--glow-crimson);
  transform: skewX(-12deg); border-radius: 2px;
}

/* ───────── FAQ ───────── */

.faq details { border-bottom: 1px solid var(--line-strong); }
.faq details:first-child { border-top: 1px solid var(--line-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0;
  font-weight: 600; font-size: var(--fs-md); color: var(--chrome-hi);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex-shrink: 0; font-weight: 400; font-size: 1.4rem; line-height: 1;
  color: var(--chrome-lo); transition: transform 0.2s var(--ease-out), color 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--crimson-hi); }
.faq details p { color: var(--text-dim); padding: 0 2.5rem 1.2rem 0; margin: 0; max-width: 70ch; }

/* ───────── Support band ───────── */

.support-band {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  overflow: hidden;
}
.support-band::before {
  content: '';
  position: absolute; top: 0; bottom: 0; left: -4rem; width: 38%;
  background: linear-gradient(90deg, rgba(165, 21, 31, 0.22), transparent);
  transform: skewX(-12deg);
  pointer-events: none;
}
.support-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.support-inner p { color: var(--text-dim); max-width: 60ch; margin: 0.6rem 0 0; }

/* ───────── Store ───────── */

.store-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2.5rem;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  align-items: start;
}
.filters { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.filters > summary {
  display: none;
  cursor: pointer; list-style: none;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-weight: 600;
}
.filters > summary::-webkit-details-marker { display: none; }
.filter-form { display: flex; flex-direction: column; gap: 1.25rem; }

.field { display: flex; flex-direction: column; gap: 0.4rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: var(--fs-sm); color: var(--text-dim); padding: 0; margin-bottom: 0.4rem; }
input[type='search'], input[type='text'], select, textarea {
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  background: var(--anthracite);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  transition: border-color var(--dur-fast), box-shadow var(--dur) var(--ease-out), background-color var(--dur-fast);
}
input::placeholder { color: var(--text-faint); }
input:hover, select:hover, textarea:hover { border-color: var(--chrome-lo); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--crimson-hi); outline-offset: 0; border-color: transparent; box-shadow: var(--focus-ring); }

.segmented { display: flex; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.segmented label { flex: 1; margin: 0; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: block; text-align: center; padding: 0.5rem 0.4rem;
  font-size: var(--fs-sm); color: var(--text-dim); cursor: pointer;
  border-right: 1px solid var(--line-strong);
  transition: background-color 0.15s, color 0.15s;
}
.segmented label:last-child span { border-right: 0; }
.segmented input:checked + span { background: var(--anthracite-2); color: var(--chrome-hi); box-shadow: inset 0 -2px 0 var(--crimson); }
.segmented input:focus-visible + span { outline: 2px solid var(--crimson-hi); outline-offset: -2px; }

.filter-actions { display: flex; align-items: center; gap: 1rem; }

.results-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; min-height: 2rem; }
.results-head p { margin: 0; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 2.5rem; }

@media (max-width: 900px) {
  .store-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .filters { position: static; }
  .filters > summary { display: block; }
  .filters[open] > summary { margin-bottom: 1rem; }
}

/* ───────── Plugin page ───────── */

.plugin-head { padding: 2rem 0 2.25rem; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #0a0a0c, var(--black)); }
.crumbs { display: flex; gap: 0.5rem; font-size: var(--fs-sm); color: var(--text-faint); margin-bottom: 1rem; }
.crumbs a { color: var(--text-dim); text-decoration: none; }
.crumbs a:hover { color: var(--chrome-hi); }
.plugin-chips { margin-top: 1.25rem; }
.preview-flag { display: inline-block; font-size: var(--fs-xs); color: var(--warn); border: 1px solid var(--warn); padding: 0.1rem 0.5rem; border-radius: 999px; }

.plugin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  align-items: start;
}
.plugin-main > section { scroll-margin-top: calc(var(--header-h) + 3.5rem); padding-bottom: 2.25rem; margin-bottom: 2.25rem; border-bottom: 1px solid var(--line); }
.plugin-main > section:last-child { border-bottom: 0; }
.plugin-main .h3 { margin-bottom: 1rem; }

.toc {
  position: sticky; top: var(--header-h); z-index: 5;
  display: flex; flex-wrap: wrap; gap: 0 1.4rem; margin: 0 0 2rem; padding: 0.15rem 0;
  font-size: var(--fs-sm);
  background: rgba(6, 6, 8, 0.97);
  border-bottom: 1px solid var(--line);
}
.toc a { position: relative; color: var(--text-dim); text-decoration: none; padding: 0.7rem 0; min-height: 44px; display: inline-flex; align-items: center; transition: color var(--dur-fast); }
.toc a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--crimson), var(--crimson-hi));
  box-shadow: 0 0 10px var(--glow-crimson);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-slow) var(--ease-out);
}
.toc a:hover, .toc a[aria-current='true'] { color: var(--chrome-hi); }
.toc a:hover::after, .toc a[aria-current='true']::after { transform: scaleX(1); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; }
.gallery figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

.prose { max-width: 72ch; }
.prose p, .prose li { color: var(--text); }
.prose h3, .prose h4, .prose h5 { color: var(--chrome-hi); margin: 1.5rem 0 0.6rem; font-size: var(--fs-md); }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.3rem; }
.prose a { color: var(--chrome-hi); text-underline-offset: 3px; }
.prose code { background: var(--anthracite-2); border: 1px solid var(--line); padding: 0.05rem 0.35rem; border-radius: var(--radius-sm); }
.prose pre { background: #0b0c0e; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose strong { color: var(--chrome-hi); }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.6rem 1.5rem; }
.feature-list li { position: relative; padding-left: 1.2rem; color: var(--text); }
.feature-list li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 8px; height: 2px; background: var(--crimson-hi); transform: skewX(-12deg); }

.releases { list-style: none; margin: 0; padding: 0; }
.release { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1rem; margin-bottom: 0.5rem; }
.release-ver { font-weight: 700; font-stretch: 115%; font-style: italic; color: var(--chrome-hi); font-size: var(--fs-md); }
.release-latest .release-ver { color: #fff; }
.release-head time { color: var(--text-faint); font-size: var(--fs-sm); }
.release-notes { font-size: var(--fs-sm); }

.buy-box {
  position: sticky; top: calc(var(--header-h) + 1.5rem);
  isolation: isolate;
  background: var(--glass-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--glass-hi), var(--shadow-md);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.buy-price {
  margin: 0;
  font-size: var(--fs-2xl); font-weight: 800; font-style: italic; font-stretch: 120%;
  background: var(--chrome-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.facts { margin: 0; display: flex; flex-direction: column; }
.facts > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.facts dt { color: var(--text-faint); }
.facts dd { margin: 0; text-align: right; color: var(--text); }
.access-terms p { color: var(--text-dim); font-size: var(--fs-sm); margin: 0.4rem 0 0; }
.buy-ref p { font-size: var(--fs-xs); color: var(--text-faint); margin-bottom: 0.4rem; }
.copy-field { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; background: #0b0c0e; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.5rem 0.65rem; }
.copy-field code { font-size: var(--fs-xs); color: var(--chrome-mid); word-break: break-all; }
.copy-field .link-button { font-size: var(--fs-xs); flex-shrink: 0; }

@media (max-width: 960px) {
  .plugin-layout { grid-template-columns: 1fr; }
  .buy-box { position: static; order: -1; }
}

/* ───────── Auth & panel ───────── */

.auth { display: grid; place-items: center; padding: clamp(3rem, 10vw, 7rem) var(--gutter); }
.auth-panel {
  position: relative; isolation: isolate;
  width: 100%; max-width: 440px;
  background: var(--glass-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--glass-hi), var(--shadow-lg);
  padding: 2.25rem 2rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.auth-panel img { width: 140px; margin-bottom: 0.5rem; }
.auth-panel p { margin: 0; color: var(--text-dim); }
.btn-discord { margin-top: 0.5rem; }

.alert { padding: 0.75rem 1rem; border-radius: var(--radius-sm); border: 1px solid; font-size: var(--fs-sm); }
.alert-error { color: #ffc9cd; border-color: rgba(226, 82, 93, 0.6); background: rgba(226, 82, 93, 0.08); }

.panel-head { display: flex; align-items: center; gap: 1.25rem; }
.avatar { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line-strong); }
.inline-facts { display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; margin: 0.6rem 0 0; font-size: var(--fs-sm); }
.inline-facts > div { display: flex; gap: 0.5rem; }
.inline-facts dt { color: var(--text-faint); }
.inline-facts dd { margin: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass-bg); box-shadow: var(--glass-hi); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
.table th { color: var(--text-faint); font-weight: 500; background: rgba(22, 23, 27, 0.9); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color var(--dur-fast); }
.table tbody td:first-child { box-shadow: inset 0 0 0 var(--crimson-hi); transition: box-shadow var(--dur) var(--ease-out); }
@media (hover: hover) {
  .table tbody tr:hover { background: rgba(255, 255, 255, 0.035); }
  .table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--crimson-hi); }
}
.table a { color: var(--chrome-hi); }

/* License / request states. Colors come from --st-* tokens so every screen agrees. */
.status {
  --st: var(--text-faint);
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.12rem 0.6rem 0.12rem 0.5rem;
  border: 1px solid color-mix(in srgb, var(--st) 38%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--st) 11%, transparent);
  color: color-mix(in srgb, var(--st) 55%, #fff);
  font-size: var(--fs-xs); font-weight: 600; white-space: nowrap;
}
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--st); box-shadow: 0 0 8px color-mix(in srgb, var(--st) 70%, transparent); }
.status-active { --st: var(--st-active); }
.status-pending { --st: var(--st-pending); }
.status-suspended { --st: var(--st-suspended); }
.status-expired { --st: var(--st-expired); }
.status-revoked { --st: var(--st-revoked); }

@media (max-width: 640px) {
  .table thead { display: none; }
  .table tr { display: block; border-bottom: 1px solid var(--line); padding: 0.5rem 0; }
  .table td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: 0.4rem 1rem; }
  .table td::before { content: attr(data-label); color: var(--text-faint); }
}

/* ───────── Error page ───────── */

.error-page { padding: clamp(4rem, 12vw, 8rem) 0; }
.error-code {
  margin: 0 0 1rem;
  font-size: clamp(4rem, 2rem + 8vw, 8rem);
  font-weight: 800; font-style: italic; font-stretch: 125%; line-height: 1;
  background: var(--chrome-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-page p { color: var(--text-dim); max-width: 60ch; }

/* ───────── Toasts ───────── */

.toasts {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 80;
  display: flex; flex-direction: column; gap: 0.6rem;
  max-width: min(420px, calc(100vw - 2rem));
}
.toast {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--anthracite-2);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--chrome-mid);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.9rem 0.85rem 1rem;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: toast-in var(--dur-slow) var(--ease-spring);
}
.toast p { margin: 0; flex: 1; font-size: var(--fs-sm); }
.toast-success { border-left-color: var(--ok); }
.toast-error { border-left-color: var(--err); }
.toast-info { border-left-color: var(--chrome-mid); }
.toast.is-leaving { opacity: 0; transform: translateX(24px) scale(0.97); transition: opacity var(--dur) var(--ease-in-out), transform var(--dur) var(--ease-in-out); }
.toast-close { background: none; border: 0; color: var(--text-faint); cursor: pointer; font-size: 1.3rem; line-height: 1; min-width: 32px; min-height: 32px; margin: -0.3rem -0.3rem 0 0; border-radius: var(--radius-sm); transition: color var(--dur-fast), background-color var(--dur-fast); }
.toast-close:hover { color: var(--chrome-hi); background: rgba(255, 255, 255, 0.06); }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ───────── Footer ───────── */

.site-footer { border-top: 1px solid var(--line); background: rgba(6, 6, 8, 0.82); padding: 3rem 0 1.5rem; font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer-brand img { width: 96px; margin-bottom: 0.9rem; }
.footer-brand p { color: var(--text-dim); max-width: 30ch; }
.footer-col h2 { font-size: var(--fs-sm); font-weight: 600; color: var(--chrome-hi); margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.footer-col a { color: var(--text-dim); text-decoration: none; }
.footer-col a:hover { color: var(--chrome-hi); }
.footer-legal { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 2.5rem; padding-top: 1.25rem; color: var(--text-faint); font-size: var(--fs-xs); }
.footer-legal::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }
.footer-legal p { margin: 0; }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}


/* ───────── Monthly Rust update badge ───────── */

.card-signals { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; margin: 0.7rem 0 0; font-size: var(--fs-xs); }
.rust-badge { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--text-dim); }
.rust-badge::before, .rust-status-value::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); flex-shrink: 0; }
.rust-tested::before, .rust-fixed::before, .rust-tested .rust-status-value::before, .rust-fixed .rust-status-value::before { background: var(--ok); }
.rust-reviewing::before, .rust-reviewing .rust-status-value::before { background: var(--warn); }
.rust-broken::before, .rust-broken .rust-status-value::before { background: var(--err); }
.card-rating { color: var(--chrome-hi); font-variant-numeric: tabular-nums; }

.rust-status { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.85rem 0.95rem; display: flex; flex-direction: column; gap: 0.3rem; }
.rust-status p { margin: 0; }
.rust-status-label { font-size: var(--fs-xs); color: var(--text-faint); }
.rust-status-value { display: flex; align-items: baseline; gap: 0.5rem; font-weight: 600; color: var(--chrome-hi); }
.rust-status.rust-broken { border-color: rgba(226, 82, 93, 0.5); }

/* ───────── Video (click-to-load) ───────── */

.video-facade {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: #000;
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: 0.72; transition: opacity 0.2s; }
.video-facade:hover img { opacity: 0.9; }
.video-play {
  position: absolute; left: 1.25rem; bottom: 1.25rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 1.1rem; background: var(--crimson); color: #fff; font-weight: 600;
  transform: skewX(-12deg); border-radius: var(--radius-sm);
}
.video-play > * { transform: skewX(12deg); }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--radius); display: block; }
.video p { margin: 0.6rem 0 0; }

/* ───────── Reviews ───────── */

.reviews-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; margin-bottom: 1rem; }
.reviews-head .h3 { margin-bottom: 0 !important; }
.review-summary { display: flex; align-items: center; gap: 0.6rem; margin: 0; color: var(--text-dim); font-size: var(--fs-sm); }
.stars { display: inline-flex; gap: 1px; color: var(--line-strong); letter-spacing: 0; }
.stars .on { color: var(--chrome-hi); }
.review-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.review { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; font-size: var(--fs-sm); }
.review-meta img { width: 28px; height: 28px; border-radius: 50%; }
.review-author { font-weight: 600; color: var(--chrome-hi); }
.review-meta time { color: var(--text-faint); }
.chip-verified { color: var(--ok); border-color: rgba(79, 176, 127, 0.45); }
.review-body { margin: 0.6rem 0 0; max-width: 70ch; white-space: pre-line; }
.staff-reply { margin-top: 0.75rem; padding: 0.7rem 0.9rem; border-left: 2px solid var(--crimson); background: var(--anthracite); }
.staff-reply p { margin: 0; }

.review-form, .stack-form { display: flex; flex-direction: column; gap: 1.1rem; max-width: 640px; }
.review-form { margin-top: 1.5rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass-bg); box-shadow: var(--glass-hi); }
.review-form p { margin: 0; }
textarea { resize: vertical; line-height: 1.5; }

.rating-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 0.15rem; }
.rating-input input { position: absolute; opacity: 0; pointer-events: none; }
.rating-input label { cursor: pointer; font-size: 1.7rem; line-height: 1; color: var(--line-strong); padding: 0.1rem; margin: 0; transition: color 0.12s, transform 0.12s; }
.rating-input label:hover, .rating-input label:hover ~ label,
.rating-input input:checked ~ label { color: var(--chrome-hi); }
.rating-input input:checked + label { transform: scale(1.08); }
.rating-input input:focus-visible + label { outline: 2px solid var(--crimson-hi); outline-offset: 2px; border-radius: 2px; }

/* ───────── Store offers ───────── */

.store-main { min-width: 0; display: flex; flex-direction: column; gap: 2.5rem; }
.offers { display: flex; flex-direction: column; gap: 1.25rem; padding-bottom: 2.25rem; border-bottom: 1px solid var(--line); }
.offers .h3, .offers .h4 { margin: 0; }
.bundle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.bundle {
  position: relative; display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start;
  isolation: isolate;
  padding: 1.25rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: linear-gradient(115deg, transparent 0 82%, rgba(165, 21, 31, 0.28) 82% 84%, transparent 84%), var(--glass-bg);
  box-shadow: var(--glass-hi);
}
.bundle p { margin: 0; }
.bundle-top { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.bundle-name { font-size: var(--fs-lg); font-stretch: 112%; color: var(--chrome-hi); }
.bundle-price { font-weight: 800; font-style: italic; font-stretch: 118%; font-size: var(--fs-xl); color: var(--chrome-hi); }
.bundle-savings { font-size: var(--fs-sm); display: flex; gap: 0.75rem; color: var(--text-faint); }
.bundle-savings strong { color: var(--ok); font-weight: 600; }
.code-list { list-style: none; margin: 0.75rem 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.code-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.9rem; padding: 0.6rem 0.8rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); }
.code-list code { font-size: var(--fs-md); color: var(--chrome-hi); letter-spacing: 0.04em; }
.code-value { font-weight: 600; color: var(--chrome-hi); }
.code-list a { color: var(--chrome-mid); }

/* ───────── Server showcase ───────── */

.server-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.server { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 1rem 2.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.server-name { font-size: var(--fs-lg); font-stretch: 112%; font-style: italic; color: var(--chrome-hi); margin-bottom: 0.4rem; }
.server-main p { margin: 0.25rem 0 0.4rem; }
.server-links { display: flex; flex-direction: column; gap: 0.6rem; }
.server-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; font-size: var(--fs-sm); }
.servers-apply { margin-top: 1.5rem; }
@media (max-width: 760px) { .server { grid-template-columns: 1fr; } }

/* ───────── Legal ───────── */

.legal-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.legal-links a { color: var(--text-faint); }
.legal-links a:hover { color: var(--chrome-hi); }
.legal-body { margin-top: 2rem; }

/* ───────── License detail & forms ───────── */

.license-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-top: 2.5rem; padding-bottom: 4rem; }
.license-layout > section {
  position: relative; isolation: isolate;
  padding: 1.6rem clamp(1.1rem, 3vw, 1.9rem) 1.9rem;
  background: var(--glass-bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--glass-hi), var(--shadow-sm);
}
.license-layout > section > .h3 { margin-bottom: 1rem; }
.license-layout .facts { max-width: 640px; }
.license-layout .facts dd code { font-size: var(--fs-sm); }

.alert-warn { color: #f4dcae; border-color: rgba(214, 162, 74, 0.55); background: rgba(214, 162, 74, 0.08); }
.check { display: inline-flex; align-items: center; gap: 0.4rem; }
.check::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); }
.check-valid::before { background: var(--ok); }
.check-invalid::before, .check-error::before { background: var(--err); }

.form-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 150px)); gap: 1rem; }
.form-row:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-narrow { max-width: 260px; }
.field-error input, .field-error textarea, .field-error select { border-color: var(--err); }
.field-error label, .field-error legend { color: #ffc9cd; }
@media (max-width: 640px) { .form-row, .form-row:has(> :nth-child(2):last-child) { grid-template-columns: 1fr; } }

.checks { display: flex; flex-direction: column; gap: 0.45rem; }
.check-row { display: flex; align-items: center; gap: 0.6rem; color: var(--text) !important; margin: 0 !important; cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--crimson); }

.row-static { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.8rem 0.25rem; font-size: var(--fs-sm); }
.row-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.row-actions form { margin: 0; }
.move-list { margin-bottom: 1.5rem; }
.panel-extras { border-top: 1px solid var(--line); }
.panel-extras .h3 { margin-bottom: 1rem; }
.panel-extras .btn { margin-top: 0.5rem; }
.withdraw-form { margin-top: 1.25rem; }


/* ───────── Dashboard stat cards (real counts only) ───────── */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.stat {
  --st: var(--chrome-lo);
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; gap: 0.35rem;
  padding: 1.25rem 1.3rem 1.15rem 1.5rem;
  background: var(--glass-bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--glass-hi);
}
.stat::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--st); box-shadow: 0 0 18px var(--st);
}
.stat-value { font-size: var(--fs-2xl); font-weight: 800; font-style: italic; font-stretch: 120%; line-height: 1; color: var(--chrome-hi); font-variant-numeric: tabular-nums; }
.stat-label { color: var(--text-dim); font-size: var(--fs-sm); }
.stat-active { --st: var(--st-active); }
.stat-pending { --st: var(--st-pending); }
.stat-alert { --st: var(--crimson-hi); }

/* ───────── Confirmation dialog (native <dialog>) ───────── */

.dialog {
  padding: 0; margin: auto;
  width: min(440px, calc(100vw - 2rem));
  color: var(--text);
  background: var(--glass-bg-solid);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-lg), var(--glass-hi);
  opacity: 1; transform: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.dialog::backdrop {
  background: rgba(3, 3, 5, 0.66);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 1; transition: opacity var(--dur) var(--ease-out);
}
@starting-style {
  .dialog[open] { opacity: 0; transform: translateY(14px) scale(0.97); }
  .dialog[open]::backdrop { opacity: 0; }
}
.dialog.is-closing { opacity: 0; transform: translateY(8px) scale(0.98); }
.dialog.is-closing::backdrop { opacity: 0; }
.dialog-body { padding: 1.6rem 1.6rem 1.25rem; border-top: 2px solid var(--crimson-hi); border-radius: var(--radius) var(--radius) 0 0; }
.dialog[data-tone='neutral'] .dialog-body { border-top-color: var(--chrome-lo); }
.dialog-title { font-size: var(--fs-lg); font-style: italic; font-stretch: 112%; color: var(--chrome-hi); margin-bottom: 0.6rem; }
.dialog-text { margin: 0; color: var(--text-dim); }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.75rem; padding: 0 1.6rem 1.5rem; }

/* ───────── Tooltip (hover and keyboard focus) ───────── */

[data-tip] { position: relative; cursor: help; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: calc(100% + 9px); z-index: 30;
  width: max-content; max-width: min(260px, 70vw); padding: 0.55rem 0.75rem;
  background: var(--glass-bg-solid); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  color: var(--text); font-size: var(--fs-xs); font-weight: 400; line-height: 1.45; text-align: left; white-space: normal;
  translate: -50% 5px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out), translate var(--dur) var(--ease-out), visibility 0s linear var(--dur-fast);
}
[data-tip]:hover::after, [data-tip]:focus-visible::after { translate: -50% 0; opacity: 1; visibility: visible; transition-delay: 0.12s, 0.12s, 0s; }

/* ───────── Skeleton / image placeholder ───────── */

.skeleton, .is-pending { position: relative; overflow: hidden; }
.skeleton { background: var(--anthracite-2); border-radius: var(--radius-sm); min-height: 1em; }
.skeleton::after, .is-pending::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.07) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: shimmer 1.3s var(--ease-in-out) infinite;
}
.is-pending img { opacity: 0; }
.card-media img { transition: opacity var(--dur-slow) var(--ease-out), transform 0.9s var(--ease-out); }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ───────── Checkbox ───────── */

input[type='checkbox'] {
  appearance: none; -webkit-appearance: none;
  display: inline-grid; place-content: center; flex-shrink: 0;
  width: 20px; height: 20px; margin: 0;
  background: var(--anthracite); border: 1px solid var(--line-strong); border-radius: 4px; cursor: pointer;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur) var(--ease-out);
}
input[type='checkbox']::after {
  content: ''; width: 10px; height: 5px; margin-top: -2px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform var(--dur) var(--ease-spring);
}
input[type='checkbox']:hover { border-color: var(--chrome-lo); }
input[type='checkbox']:checked { background: var(--crimson); border-color: var(--crimson-hi); }
input[type='checkbox']:checked::after { transform: rotate(-45deg) scale(1); }
input[type='checkbox']:focus-visible { outline: 2px solid var(--crimson-hi); outline-offset: 2px; box-shadow: var(--focus-ring); }
.check-row { min-height: 44px; }

/* ───────── Link-style buttons while their form submits ───────── */

.link-button[aria-disabled='true'] { opacity: 0.5; cursor: progress; }
.error-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ───────── Motion preferences ───────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-slash { transform: skewY(-1.2deg) scaleX(1); }
  .console-body .line { opacity: 1; }
}

.inline-form { display: inline; margin-left: 0.6rem; }
