/* ==========================================================================
   BLAIM 2.0 · 2027 — "neon intersection" theme on top of Bootstrap 5.3
   Dark by default; <html data-bs-theme="light"> switches to the light palette (see LIGHT THEME below).
   Each pillar owns a colour: B rose · L amber · A violet · I cyan · M emerald.
   ========================================================================== */
:root, [data-bs-theme="dark"] {
  --bg: #07070d;
  --bg-2: #0c0d18;
  --bg-3: #12142a;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --surface-3: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --line-3: rgba(255, 255, 255, .26);
  --text: #eef0fa;
  --text-2: #c3c7da;
  --muted: #8f94ad;
  --dim: #666b84;
  --hi: #fff; /* hover / active emphasis */

  /* theme-dependent surfaces */
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  --chrome: rgba(14, 15, 28, .55);
  --chrome-soft: rgba(14, 15, 28, .25);
  --chrome-strong: rgba(10, 11, 22, .82);
  --overlay: rgba(14, 15, 28, .95);
  --toast-bg: rgba(18, 20, 40, .92);
  --modal-bg: linear-gradient(180deg, #14162b, #0d0e1b);
  --field-bg: rgba(255, 255, 255, .035);
  --dot: rgba(255, 255, 255, .07);
  --scroll-thumb: #262a44;
  --scroll-thumb-hover: #3a3f63;
  --marquee-bg: rgba(10, 11, 22, .6);
  --footer-bg: linear-gradient(180deg, rgba(10, 11, 22, .4), #05050a);
  --cta-bg: #0b0c1a;
  --cta-veil: radial-gradient(70% 90% at 50% 0%, rgba(14, 15, 30, .55), rgba(7, 7, 13, .92));
  --card-shadow: 0 25px 50px -25px rgba(0, 0, 0, .9);

  /* the five pillars */
  --b: #ff5c8a;
  --l: #ffb020;
  --a: #8b5cf6;
  --a-text: #a78bfa;
  --i: #22d3ee;
  --m: #34d399;
  --grad: linear-gradient(100deg, #8b5cf6 0%, #22d3ee 50%, #ff5c8a 100%);
  --grad-human: linear-gradient(100deg, #ff5c8a, #ffb020);
  --grad-machine: linear-gradient(100deg, #8b5cf6, #22d3ee);
  --grad-gold: linear-gradient(180deg, #fff3c4, #ffb020 60%, #ff7a3d);

  /* states */
  --ok: #34d399; --warn: #fbbf24; --bad: #fb7185; --info: #60a5fa;

  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -25px rgba(0, 0, 0, .8);
  --glow: 0 10px 40px -10px rgba(139, 92, 246, .55);
  --focus: 0 0 0 3px rgba(139, 92, 246, .45);
  --header-h: 4.5rem;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* Bootstrap hooks */
  color-scheme: dark;
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text-2);
  --bs-body-font-family: var(--sans);
  --bs-emphasis-color: var(--text);
  --bs-border-color: var(--line);
  --bs-secondary-color: var(--muted);
  --bs-tertiary-bg: var(--bg-2);
  --bs-link-color: var(--i);
  --bs-link-color-rgb: 34, 211, 238;
  --bs-link-hover-color: var(--hi);
  --bs-link-hover-color-rgb: 255, 255, 255;
  --bs-primary: #8b5cf6;
  --bs-primary-rgb: 139, 92, 246;
  --bs-heading-color: var(--text);
}

/* pillar colour hooks: any element with .pc-B … .pc-M gets its pillar colour in --pc */
.pc-B { --pc: var(--b); }
.pc-L { --pc: var(--l); }
.pc-A { --pc: var(--a-text); }
.pc-I { --pc: var(--i); }
.pc-M { --pc: var(--m); }
.pc-X { --pc: var(--text); }
.pc-text { color: var(--pc) !important; }

/* the admin panel: a touch squarer, cyan-led */
.world-admin { --radius: 14px; --radius-sm: 10px; }

/* ---------- ground ---------- */
html { scroll-padding-top: calc(var(--header-h) + 1.5rem); overflow-x: clip; background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@view-transition { navigation: auto; }

body {
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text-2);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: clip; isolation: isolate;
}
main { flex: 1 0 auto; }
/* fixed ambient glow + a faint dot grid */
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; }
body::before {
  z-index: -2;
  background:
    radial-gradient(45% 40% at 8% 0%, rgba(139, 92, 246, .18), transparent 70%),
    radial-gradient(40% 40% at 100% 30%, rgba(34, 211, 238, .10), transparent 70%),
    radial-gradient(45% 40% at 50% 110%, rgba(255, 92, 138, .10), transparent 70%),
    var(--bg);
}
body::after {
  z-index: -1;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
}

::selection { background: rgba(139, 92, 246, .45); color: #fff; }
a { color: var(--i); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .2s; }
a:hover { color: var(--hi); }
:focus-visible { outline: 2px solid var(--a-text); outline-offset: 3px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }

/* scroll progress (added by common.js) */
#scrollProgress { position: fixed; left: 0; top: 0; z-index: 1100; height: 2px; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* ---------- type ---------- */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--text); text-wrap: balance; font-family: var(--display); letter-spacing: -.02em; }
h1, .h1 { font-weight: 700; font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.04; letter-spacing: -.035em; }
h2, .h2 { font-weight: 600; font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.12; }
h3, .h3 { font-weight: 600; font-size: 1.4rem; line-height: 1.2; }
h4, .h4 { font-weight: 600; font-size: 1.2rem; line-height: 1.25; }
h5, .h5 { font-weight: 600; font-size: 1.1rem; line-height: 1.3; }
h6, .h6 { font-weight: 600; font-size: .9rem; line-height: 1.4; }
.display-font { font-family: var(--display); }
.display-6 { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; }
strong, b { font-weight: 600; color: var(--text); }
p { text-wrap: pretty; }
.text-muted, .text-secondary { color: var(--muted) !important; }
.text-white { color: var(--text) !important; }
.text-info { color: var(--i) !important; }
.text-success { color: var(--ok) !important; }
.text-danger { color: var(--bad) !important; }
.text-warning { color: var(--warn) !important; }

/* gradient accents */
.text-gradient, .w-mid, .w-bio, .w-os {
  font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.w-bio { background-image: var(--grad-human); }
.w-os { background-image: var(--grad-machine); }
em.w-mid, em.w-bio, em.w-os { font-style: normal; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1rem;
  font: 500 .74rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: var(--grad); flex: none; }
.eyebrow .num { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.lede { font: 400 clamp(1.05rem, 1.5vw, 1.2rem)/1.6 var(--sans); color: var(--muted); }
.section { padding-block: clamp(4rem, 9vw, 7rem); position: relative; }
.section-title { font: 700 clamp(2rem, 4.4vw, 3.3rem)/1.05 var(--display); letter-spacing: -.035em; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; opacity: 1; }

/* ---------- preloader ---------- */
#preloader { position: fixed; inset: 0; z-index: 2000; background: var(--bg); display: grid; place-items: center; transition: opacity .5s ease, visibility .5s ease; }
#preloader.hide { opacity: 0; visibility: hidden; }
.loader-ring { width: 56px; height: 56px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 25%, #8b5cf6, #22d3ee, #ff5c8a); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); animation: spin .9s linear infinite; }
.loader-text { margin-top: 1.2rem; font: 500 .7rem/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: .6; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }

/* ---------- header: a floating glass pill ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; padding: .75rem clamp(.75rem, 3vw, 1.5rem) 0; transition: padding .3s var(--ease); }
.site-header.over-hero { position: fixed; left: 0; right: 0; }
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.6rem; max-width: 78rem; margin-inline: auto; padding: .4rem .5rem .4rem 1rem;
  background: var(--chrome); border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-header.over-hero:not(.scrolled) .site-header__bar { background: var(--chrome-soft); }
.site-header.scrolled .site-header__bar { background: var(--chrome-strong); border-color: var(--line-2); box-shadow: var(--card-shadow); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--hi); }
/* the BLAIM-2.0 logo image: one copy per theme */
.logo { display: inline-block; line-height: 0; flex: none; }
.logo img { display: block; width: auto; height: 100%; }
.logo__on-light { display: none !important; }
[data-bs-theme="light"] .logo__on-light { display: block !important; }
[data-bs-theme="light"] .logo__on-dark { display: none !important; }
.brand__logo { height: 2rem; transition: transform .4s var(--ease); }
.brand:hover .brand__logo { transform: scale(1.04); }
.brand__logo--footer { height: 2.4rem; }
.nav-primary ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav-link-bl {
  display: inline-flex; align-items: center; min-height: 2.4rem; padding: .3rem .85rem; border-radius: 999px;
  font: 500 .875rem/1.2 var(--sans); white-space: nowrap; color: var(--text-2); text-decoration: none; transition: color .2s, background .2s;
}
.nav-link-bl:hover { color: var(--hi); background: var(--surface-2); }
.nav-link-bl.active { color: var(--hi); background: var(--surface-3); }
.nav-actions { display: flex; align-items: center; gap: .4rem; position: relative; }
.nav-toggle {
  display: none; align-items: center; justify-content: center; gap: .55rem; min-height: 2.5rem; min-width: 2.5rem; padding: .35rem .9rem;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-2); color: var(--text); font: 500 .85rem/1 var(--sans);
}
.nav-toggle__icon { position: relative; width: 16px; height: 10px; }
.nav-toggle__icon::before, .nav-toggle__icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle__icon::before { top: 1px; }
.nav-toggle__icon::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { top: 4.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { top: 4.5px; transform: rotate(-45deg); }
.nav-menu {
  position: absolute; right: 0; top: calc(100% + .9rem); width: min(19rem, calc(100vw - 1.5rem));
  padding: 1rem; background: var(--overlay); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--shadow);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top right; transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.nav-menu.open { opacity: 1; visibility: visible; transform: none; }
.nav-menu__title { font: 500 .66rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin: .25rem .5rem .6rem; }
.nav-menu ul { list-style: none; margin: 0; padding: 0; }
.nav-menu li { opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .3s var(--ease); transition-delay: calc(var(--n) * 35ms); }
.nav-menu.open li { opacity: 1; transform: none; }
.nav-menu a { display: block; padding: .6rem .75rem; border-radius: 12px; font: 500 1.05rem/1.2 var(--display); color: var(--text); text-decoration: none; }
.nav-menu a:hover { background: var(--surface-2); color: var(--hi); }
@media (max-width: 1100px) {
  .nav-primary { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--surface-2); --btn-fg: var(--text); --btn-edge: var(--line-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.75rem; padding: .6rem 1.3rem;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-edge); border-radius: 999px;
  font: 600 .9rem/1.2 var(--sans); letter-spacing: 0;
  transition: background-color .2s, background-position .5s var(--ease), border-color .2s, color .2s, transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { color: var(--hi); border-color: var(--line-3); background-color: var(--surface-3); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn:focus-visible { box-shadow: var(--focus); outline: 0; }
.btn:disabled, .btn.disabled { opacity: .5; }
.btn .bi-arrow-right { transition: transform .25s var(--ease); }
.btn:hover .bi-arrow-right { transform: translateX(3px); }
.btn-glow, .btn-primary {
  --btn-fg: #fff; border: 0;
  background: linear-gradient(100deg, #7c3aed, #8b5cf6 30%, #22d3ee 70%, #ff5c8a) 0 0 / 200% 100%;
  box-shadow: 0 8px 30px -10px rgba(139, 92, 246, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-glow:hover, .btn-primary:hover { color: #fff; background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(34, 211, 238, .6), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-outline-glass { --btn-bg: var(--surface); --btn-edge: var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-outline-glass.active { --btn-bg: var(--surface-3); --btn-edge: var(--a-text); --btn-fg: var(--hi); }
.btn-danger { --btn-bg: rgba(251, 113, 133, .14); --btn-fg: #fda4af; --btn-edge: rgba(251, 113, 133, .4); }
.btn-danger:hover { background: #e11d48; border-color: #e11d48; color: #fff; }
.btn-success { --btn-bg: rgba(52, 211, 153, .14); --btn-fg: #6ee7b7; --btn-edge: rgba(52, 211, 153, .4); }
.btn-success:hover { background: #059669; border-color: #059669; color: #fff; }
.btn-outline-danger { --btn-bg: transparent; --btn-fg: #fda4af; --btn-edge: rgba(251, 113, 133, .4); }
.btn-outline-danger:hover { background: #e11d48; border-color: #e11d48; color: #fff; }
.btn-outline-warning { --btn-bg: transparent; --btn-fg: #fcd34d; --btn-edge: rgba(251, 191, 36, .4); }
.btn-outline-warning:hover { background: rgba(251, 191, 36, .15); color: #fde68a; }
.btn.border-0 { border-color: transparent; }
.btn-sm { min-height: 2.2rem; padding: .35rem .95rem; font-size: .82rem; }
.btn-lg { min-height: 3.3rem; padding: .85rem 1.8rem; font-size: 1rem; }
.btn-link-bl { padding: 0; border: 0; background: none; color: var(--i); text-decoration: underline; text-underline-offset: .2em; font: inherit; }
.btn-close { filter: invert(1) grayscale(1) brightness(2); opacity: .6; }
.btn-close-white { filter: invert(1) grayscale(1) brightness(2); }

/* ---------- panels: glass with a cursor spotlight ---------- */
.glass, .panel-bl {
  position: relative; isolation: isolate;
  background: var(--glass-bg);
  border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -200px), rgba(139, 92, 246, .14), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.glass:hover::before { opacity: 1; }
.glass.p-0, .table-wrap { overflow: hidden; }
.card-hover { transition: border-color .3s, box-shadow .4s var(--ease), transform .4s var(--ease); }
.card-hover::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(167, 139, 250, .9), rgba(34, 211, 238, .4) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .3s;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); }
.card-hover:hover::after { opacity: 1; }
.glow-border { border-top: 1px solid transparent; }
.glow-border::after { content: ""; position: absolute; left: 10%; right: 10%; top: -1px; height: 1px; background: var(--grad); pointer-events: none; }
.panel { padding: clamp(1.2rem, 2.4vw, 1.75rem); }
.icon-tile {
  --tile: var(--a-text);
  width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center; font-size: 1.2rem;
  color: var(--tile); background: color-mix(in srgb, var(--tile) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tile) 30%, transparent);
  box-shadow: 0 0 24px -6px color-mix(in srgb, var(--tile) 50%, transparent);
  transition: transform .5s var(--ease);
}
.card-hover:hover .icon-tile { transform: rotate(-8deg) scale(1.06); }
.icon-tile.cyan { --tile: var(--i); }
.icon-tile.pink { --tile: var(--b); }
.icon-tile.green { --tile: var(--m); }
.icon-tile.amber { --tile: var(--l); }
.chip {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 1.7rem; padding: .15rem .65rem;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
  font: 500 .72rem/1.2 var(--mono); letter-spacing: .02em; color: var(--text-2);
}
.chip-easy { color: #6ee7b7; border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .1); }
.chip-medium { color: #fcd34d; border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .1); }
.chip-hard { color: #fda4af; border-color: rgba(251, 113, 133, .35); background: rgba(251, 113, 133, .1); }

/* status badges */
.status {
  --c: var(--text-2);
  display: inline-flex; align-items: center; gap: .45rem; padding: .22rem .65rem; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c);
  font: 600 .74rem/1.3 var(--sans); white-space: nowrap; text-transform: capitalize;
}
.status::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status-pending, .status-submitted { --c: #fcd34d; }
.status-pending::before { animation: breathe 1.6s ease-in-out infinite; }
.status-approved, .status-evaluated { --c: #6ee7b7; }
.status-rejected { --c: #fda4af; }
.status-under_review { --c: #67e8f9; }

.alert-glass { --c: #fcd34d; padding: 1rem 1.15rem; border-radius: var(--radius-sm); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); background: color-mix(in srgb, var(--c) 9%, transparent); color: color-mix(in srgb, var(--c) 80%, white); }
.alert-glass.danger { --c: #fb7185; }
.alert-glass.success { --c: #34d399; }
.alert-glass.info { --c: #60a5fa; }
.alert-glass a { color: inherit; font-weight: 600; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state .bi { display: block; font-size: 2rem; margin-bottom: .6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- forms ---------- */
.form-control, .form-select {
  min-height: 2.85rem; padding: .65rem .9rem; background-color: var(--field-bg); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); font: 400 .975rem/1.4 var(--sans);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.form-select option { background: var(--bg-3); color: var(--text); }
.form-control-sm { min-height: 2.3rem; padding: .4rem .7rem; font-size: .9rem; }
.form-control:hover:not(:disabled), .form-select:hover:not(:disabled) { border-color: var(--line-3); }
.form-control:focus, .form-select:focus { background-color: rgba(139, 92, 246, .06); color: var(--text); border-color: var(--a); box-shadow: var(--focus); }
.form-control::placeholder { color: var(--dim); }
.form-control:disabled { background: var(--surface); opacity: .6; }
.form-control.is-invalid { border-color: var(--bad); background-color: rgba(251, 113, 133, .06); }
.form-label { font: 500 .875rem/1.35 var(--sans); color: var(--text); }
.form-text { color: var(--dim) !important; }
.form-check-input { border-color: var(--line-3); background-color: var(--field-bg); }
.form-check-input:checked { background-color: var(--a); border-color: var(--a); }
.form-check-input:focus { box-shadow: var(--focus); border-color: var(--a); }
.input-group-text { background: var(--surface-2); border-color: var(--line-2); color: var(--muted); border-radius: var(--radius-sm); }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; min-height: auto; }
.input-group:focus-within .input-group-text { color: var(--a-text); border-color: var(--a); }

.auth-wrap { position: relative; display: grid; place-items: center; padding: clamp(2.5rem, 6vw, 4.5rem) 1rem; }
.auth-wrap::before { content: ""; position: absolute; left: 50%; top: 45%; width: min(40rem, 90vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, .22), rgba(34, 211, 238, .08) 45%, transparent 70%); filter: blur(30px); z-index: -1; pointer-events: none; }
.auth-card { width: 100%; max-width: 31rem; padding: clamp(1.5rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
.auth-card.wide { max-width: 52rem; }
.auth-head { text-align: center; margin-bottom: 2rem; }
.auth-head h1 { margin: 1rem 0 .4rem; font-size: clamp(2rem, 4vw, 2.6rem); }
.auth-mark { height: 3.4rem; width: max-content; margin-inline: auto; display: block; filter: drop-shadow(0 0 18px rgba(139, 92, 246, .35)); animation: floatY 5s ease-in-out infinite; }
@keyframes floatY { 50% { transform: translateY(-6px); } }

.role-switch { padding: 4px; gap: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); }
.role-switch .nav-link { border-radius: 999px; padding: .55rem 1rem; font: 600 .85rem/1.2 var(--sans); color: var(--muted); transition: background .25s, color .25s, box-shadow .25s; }
.role-switch .nav-link:hover { color: var(--hi); }
.role-switch .nav-link.active { background: var(--grad-machine); color: #fff; box-shadow: var(--glow); }
.stepper { display: flex; gap: .4rem; margin-bottom: .75rem; }
.stepper .step { flex: 1; height: 4px; background: var(--line); position: relative; overflow: hidden; border-radius: 4px; }
.stepper .step::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.stepper .step.active::after { transform: scaleX(1); }
#stepLabel { font: 500 .72rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.form-step { display: none; }
.form-step.active { display: block; animation: rise .5s var(--ease); }
.member-row { animation: rise .35s var(--ease); }
.pw-meter { height: 4px; background: var(--line); margin-top: .5rem; border-radius: 4px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; transition: width .35s, background .35s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.dropzone {
  border: 1.5px dashed var(--line-3); border-radius: var(--radius); padding: 2.4rem 1rem; text-align: center; cursor: pointer;
  background: radial-gradient(60% 80% at 50% 0%, rgba(139, 92, 246, .08), transparent 70%), var(--surface);
  transition: background-color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--a); border-style: solid; transform: scale(1.005); box-shadow: 0 0 0 4px rgba(139, 92, 246, .12); }
.dropzone .bi { font-size: 2.2rem; display: inline-block; color: var(--a-text); animation: floatY 3s ease-in-out infinite; }
.progress { height: 6px; background: var(--line); border-radius: 6px; }
.progress-bar { background: var(--grad); box-shadow: 0 0 12px rgba(139, 92, 246, .6); }

/* ---------- tables ---------- */
.table-bl { --bs-table-bg: transparent; --bs-table-color: var(--text-2); --bs-table-border-color: var(--line); --bs-table-hover-bg: var(--surface); --bs-table-hover-color: var(--hi); --bs-table-active-bg: rgba(139, 92, 246, .14); --bs-table-active-color: var(--hi); --bs-table-striped-bg: transparent; margin: 0; font-variant-numeric: tabular-nums; }
.table-bl thead th { background: var(--surface); color: var(--muted); font: 500 .7rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; padding-block: .85rem; border-bottom-color: var(--line-2); }
.table-bl td { vertical-align: middle; padding-block: .9rem; }
.table-bl tbody tr { animation: rise .45s var(--ease) both; }

/* ---------- modals & toasts ---------- */
.modal-content { background: var(--modal-bg); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(139, 92, 246, .1); color: var(--text-2); }
.modal-header, .modal-footer { border-color: var(--line); }
.modal-title { font: 600 1.3rem/1.2 var(--display); color: var(--text); }
.modal-backdrop { --bs-backdrop-bg: #020206; }
.modal-backdrop.show { opacity: .75; }
.modal.fade .modal-dialog { transform: translateY(24px) scale(.97); transition: transform .4s var(--ease); }
.modal.show .modal-dialog { transform: none; }
.toast { background: var(--toast-bg); border: 1px solid var(--line-2); color: var(--text); border-radius: 14px; box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.toast.show { animation: rise .4s var(--ease); }

/* ---------- accordion (FAQ) ---------- */
.accordion-bl { --bs-accordion-bg: transparent; --bs-accordion-border-color: var(--line); --bs-accordion-btn-focus-box-shadow: var(--focus); --bs-accordion-active-bg: transparent; --bs-accordion-active-color: var(--hi); display: grid; gap: .75rem; }
.accordion-bl .accordion-item { border: 1px solid var(--line) !important; border-radius: var(--radius) !important; background: var(--surface); overflow: hidden; transition: border-color .3s, background .3s; }
.accordion-bl .accordion-item:has(.accordion-button:not(.collapsed)) { border-color: rgba(139, 92, 246, .45) !important; background: rgba(139, 92, 246, .06); }
.accordion-bl .accordion-button { padding: 1.2rem 1.4rem; background: transparent; color: var(--text); font: 600 1.08rem/1.3 var(--display); box-shadow: none; }
.accordion-bl .accordion-button::after {
  background-image: none; content: "+"; display: grid; place-items: center; width: 2rem; height: 2rem; flex: none; border-radius: 50%;
  border: 1px solid var(--line-2); font: 400 1.3rem/1 var(--sans); color: var(--text-2); transition: transform .35s var(--ease), background .3s, border-color .3s;
}
.accordion-bl .accordion-button:not(.collapsed)::after { transform: rotate(45deg); background: var(--a); border-color: var(--a); color: #fff; }
.accordion-bl .accordion-body { padding: 0 1.4rem 1.3rem; color: var(--muted); }

/* ---------- scroll reveal ---------- */
[data-reveal] { opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--delay, 0s); }
[data-reveal="up"] { transform: translateY(32px); }
[data-reveal="down"] { transform: translateY(-20px); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="zoom"] { transform: scale(.94); filter: blur(6px); }
[data-reveal="flip"] { transform: perspective(800px) rotateX(14deg) translateY(24px); }
[data-reveal].revealed { opacity: 1; transform: none; filter: none; }

body.page-leave main { opacity: .3; transition: opacity .2s; }

/* ==========================================================================
   HOME
   ========================================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; padding: calc(var(--header-h) + 3.5rem) 0 7rem; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__aurora { position: absolute; inset: 0; pointer-events: none; filter: blur(70px); opacity: .85; }
.hero__aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 18s ease-in-out infinite alternate; }
.hero__aurora span:nth-child(1) { width: 46vmax; height: 46vmax; left: -12vmax; top: -16vmax; background: radial-gradient(circle, rgba(139, 92, 246, .55), transparent 65%); }
.hero__aurora span:nth-child(2) { width: 40vmax; height: 40vmax; right: -14vmax; top: 0; background: radial-gradient(circle, rgba(34, 211, 238, .35), transparent 65%); animation-duration: 22s; animation-delay: -6s; }
.hero__aurora span:nth-child(3) { width: 36vmax; height: 36vmax; left: 30%; bottom: -22vmax; background: radial-gradient(circle, rgba(255, 92, 138, .35), transparent 65%); animation-duration: 26s; animation-delay: -12s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6vmax, 4vmax) scale(1.12); } 100% { transform: translate(-4vmax, 6vmax) scale(.95); } }
.hero__floor {
  position: absolute; left: -50%; right: -50%; bottom: -2%; height: 46%; pointer-events: none;
  background-image: linear-gradient(rgba(139, 92, 246, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(139, 92, 246, .35) 1px, transparent 1px);
  background-size: 64px 64px; transform: perspective(500px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%); mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  animation: floorMove 4s linear infinite;
}
@keyframes floorMove { to { background-position: 0 64px, 0 0; } }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }

.hero__inner { position: relative; z-index: 2; text-align: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.2rem; padding: .4rem .9rem .4rem .5rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--chrome); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 500 .82rem/1.2 var(--sans); color: var(--text-2); animation: rise .8s var(--ease) both;
}
.hero__badge .pill { padding: .2rem .55rem; border-radius: 999px; background: var(--grad); color: #fff; font: 700 .68rem/1 var(--mono); letter-spacing: .06em; }
.live-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--m); box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); } 100% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } }

/* the BLAIM-2.0 logo, big, with the five pillars spelled out beneath it */
.hero__title { display: flex; justify-content: center; margin: 0 0 1.8rem; }
.hero__logo {
  height: clamp(5rem, 17vw, 12.5rem); max-width: 100%;
  filter: drop-shadow(0 12px 40px rgba(139, 92, 246, .35));
  animation: letterIn 1.1s var(--ease) .15s both;
}
.hero__logo img { max-width: 100%; height: 100%; object-fit: contain; }
.hero__pillars { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; list-style: none; margin: 0 0 2.6rem; padding: 0; }
.hero__pillars li {
  display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .8rem .3rem .3rem; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--pc) 35%, transparent); background: color-mix(in srgb, var(--pc) 8%, var(--chrome));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--pc);
  animation: rise .8s var(--ease) both; animation-delay: calc(var(--n) * 80ms + .45s);
}
.hero__pillars b { display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--pc); color: var(--bg); font: 700 .78rem/1 var(--display); letter-spacing: 0; }
@keyframes letterIn { from { opacity: 0; transform: translateY(40%); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
.hero__tagline { max-width: 40rem; margin: 0 auto .7rem; font: 600 clamp(1.3rem, 2.6vw, 2rem)/1.2 var(--display); letter-spacing: -.02em; color: var(--text); animation: rise .9s var(--ease) .6s both; }
.hero__sub { max-width: 36rem; margin: 0 auto 1.8rem; color: var(--muted); animation: rise .9s var(--ease) .7s both; }
.hero__actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin: 0 0 2.4rem; animation: rise .9s var(--ease) .8s both; }
.hero__count { animation: rise .9s var(--ease) .95s both; }
.hero__count .eyebrow { margin-bottom: .8rem; }
.hero__count .eyebrow::before { display: none; }
.hero__meta { display: flex; gap: .4rem 1.2rem; justify-content: center; flex-wrap: wrap; margin: 1.4rem 0 0; font: 500 .8rem/1.4 var(--sans); color: var(--muted); }
.hero__meta .bi { color: var(--a-text); margin-right: .35rem; }
.hero__cue { position: absolute; left: 50%; bottom: 1.6rem; z-index: 2; transform: translateX(-50%); width: 24px; height: 38px; border: 1.5px solid var(--line-3); border-radius: 14px; }
.hero__cue::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--text); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 640px) {
  .hero__title { margin-bottom: 1.2rem; }
  .hero__pillars { margin-bottom: 1.8rem; }
  .hero__cue { display: none; }
}

/* countdown */
.countdown { display: flex; gap: .55rem; justify-content: center; flex-wrap: wrap; }
.countdown .cd-box { position: relative; min-width: 76px; padding: .75rem .5rem .6rem; text-align: center; border: 1px solid var(--line-2); border-radius: 16px; background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden; }
.countdown .cd-box::before { content: ""; position: absolute; left: 15%; right: 15%; top: 0; height: 1px; background: var(--grad); opacity: .8; }
.countdown .cd-num { display: block; font: 700 2.1rem/1 var(--display); color: var(--hi); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.countdown .cd-num.tick { animation: tick .45s var(--ease); }
.countdown .cd-label { display: block; margin-top: .35rem; font: 500 .6rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.countdown.compact { justify-content: flex-start; }
.countdown.compact .cd-box { min-width: 62px; }
.countdown.compact .cd-num { font-size: 1.6rem; }
@keyframes tick { from { opacity: 0; transform: translateY(-40%); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@media (max-width: 420px) { .countdown .cd-box { min-width: 64px; } .countdown .cd-num { font-size: 1.7rem; } }

/* marquee */
.marquee { position: relative; z-index: 2; overflow: hidden; padding: 1.1rem 0; border-block: 1px solid var(--line); background: var(--marquee-bg); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 1.6rem; padding-right: 1.6rem; font: 600 clamp(1.1rem, 2vw, 1.5rem)/1 var(--display); letter-spacing: -.01em; color: var(--text-2); white-space: nowrap; }
.marquee__item b { color: var(--pc); font-weight: 700; }
.marquee__item .star { color: var(--dim); font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* reading sections */
.reading { position: relative; z-index: 1; }
.shell { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.shell--narrow { max-width: 52rem; }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section__head .lede { margin-top: 1rem; }
.section__head.center { margin-inline: auto; text-align: center; }
.section__head.center .eyebrow { justify-content: center; }

/* 01 the idea */
.formula { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .15em .45em; font: 700 clamp(2.4rem, 7vw, 5rem)/1 var(--display); letter-spacing: -.04em; margin: 2.5rem 0 3rem; }
.formula > span:not(.op) { color: var(--pc, var(--hi)); text-shadow: 0 0 40px color-mix(in srgb, var(--pc, var(--hi)) 40%, transparent); }
.formula .op { font-weight: 300; font-size: .6em; color: var(--dim); }
.formula .total { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent !important; text-shadow: none !important; }
.pair { display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .pair { grid-template-columns: 1fr 1fr; } }
.pair__side { padding: clamp(1.6rem, 3.5vw, 2.6rem); overflow: hidden; }
.pair__side--human { background: radial-gradient(60% 70% at 100% 0%, rgba(255, 92, 138, .16), transparent 70%), radial-gradient(40% 50% at 70% 0%, rgba(255, 176, 32, .1), transparent 70%), var(--glass-bg); }
.pair__side--machine { background: radial-gradient(60% 70% at 100% 0%, rgba(34, 211, 238, .14), transparent 70%), radial-gradient(40% 50% at 70% 0%, rgba(139, 92, 246, .16), transparent 70%), var(--glass-bg); }
.side-label { display: inline-block; font: 700 .82rem/1 var(--mono); letter-spacing: .2em; background: var(--grad-human); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pair__side--machine .side-label { background-image: var(--grad-machine); }
.side-sub { display: block; margin-top: .7rem; font: 700 1.9rem/1.1 var(--display); letter-spacing: -.03em; color: var(--text); }
.pair__side p { margin: 1rem 0 0; color: var(--muted); }
.pair__icons { display: flex; gap: .5rem; margin-top: 1.4rem; }
.closing { margin-top: 2.2rem; text-align: center; font: 500 clamp(1.1rem, 1.8vw, 1.35rem)/1.5 var(--display); color: var(--text-2); }

/* 02 pillars: a bento grid */
.pillars { display: grid; gap: 1.1rem; grid-template-columns: repeat(6, 1fr); }
.pillar { grid-column: span 2; position: relative; padding: 1.7rem 1.6rem 1.6rem; overflow: hidden; min-height: 17rem; display: flex; flex-direction: column; }
.pillar:nth-child(1), .pillar:nth-child(2) { grid-column: span 3; }
@media (max-width: 991.98px) { .pillars { grid-template-columns: 1fr 1fr; } .pillar, .pillar:nth-child(1), .pillar:nth-child(2) { grid-column: span 1; } .pillar:last-child { grid-column: span 2; } }
@media (max-width: 575.98px) { .pillars { grid-template-columns: 1fr; } .pillar:last-child { grid-column: span 1; } }
.pillar__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; }
.pillar__icon { width: 3rem; height: 3rem; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; color: var(--pc); background: color-mix(in srgb, var(--pc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--pc) 35%, transparent); box-shadow: 0 0 30px -8px var(--pc); transition: transform .5s var(--ease); }
.pillar:hover .pillar__icon { transform: rotate(-10deg) scale(1.08); }
.pillar__letter { position: absolute; right: -.08em; top: -.18em; font: 700 10rem/1 var(--display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--pc) 28%, transparent); pointer-events: none; transition: transform .8s var(--ease), -webkit-text-stroke-color .5s; z-index: -1; }
.pillar:hover .pillar__letter { transform: translate(-6px, -6px) scale(1.05); -webkit-text-stroke-color: var(--pc); }
.pillar__name { display: inline-block; margin-top: 2.2rem; font: 600 .74rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--pc); }
.pillar h3 { margin: .4rem 0 .6rem; font-size: 1.5rem; max-width: 18rem; }
.pillar p { font-size: .95rem; color: var(--muted); margin: 0; max-width: 26rem; }
.pillar::before { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, -200px), color-mix(in srgb, var(--pc) 22%, transparent), transparent 45%) !important; }
.pillar .pillar__glow { position: absolute; left: -20%; bottom: -60%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--pc); filter: blur(70px); opacity: .12; pointer-events: none; z-index: -1; transition: opacity .5s; }
.pillar:hover .pillar__glow { opacity: .25; }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (max-width: 767.98px) { .stats { grid-template-columns: 1fr 1fr; } .stats > div:nth-child(3) { border-left: 0; } .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.stats > div { padding: 1.8rem 1rem; text-align: center; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; }
.stat-number { font: 700 clamp(2.4rem, 5vw, 3.6rem)/1 var(--display); letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat-label { margin-top: .55rem; font: 500 .72rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* tracks (problem cards) */
.problem-card { padding: 1.6rem; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.problem-card .desc { color: var(--muted); white-space: pre-line; font-size: .94rem; }
.problem-card h5, .problem-card h6 { font: 600 1.25rem/1.25 var(--display); }
.problem-card.selected { border-color: rgba(52, 211, 153, .6); box-shadow: 0 0 0 1px rgba(52, 211, 153, .4), 0 0 40px -10px rgba(52, 211, 153, .5); }
.problem-card .card-glow { position: absolute; right: -30%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: var(--pc, var(--a)); filter: blur(60px); opacity: .14; z-index: -1; pointer-events: none; transition: opacity .4s; }
.problem-card:hover .card-glow { opacity: .3; }
.track-letter { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; font: 700 1.5rem/1 var(--display); color: var(--pc, #fff); background: color-mix(in srgb, var(--pc, #fff) 13%, transparent); border: 1px solid color-mix(in srgb, var(--pc, #fff) 35%, transparent); box-shadow: 0 0 26px -8px var(--pc, #fff); flex: none; }
.filter-btn.active { --btn-bg: var(--surface-3); --btn-edge: var(--a-text); --btn-fg: var(--hi); box-shadow: 0 0 20px -6px rgba(139, 92, 246, .7); }
.card-arrow { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem; font: 600 .85rem/1 var(--sans); color: var(--text); }
.card-arrow .bi { transition: transform .3s var(--ease); }
.problem-card:hover .card-arrow .bi { transform: translateX(4px); }

/* timeline */
.timeline { position: relative; padding-left: 2.6rem; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--line); }
.timeline-progress { position: absolute; left: 11px; top: 8px; width: 2px; height: 0; border-radius: 2px; background: linear-gradient(var(--a), var(--i), var(--b)); box-shadow: 0 0 12px rgba(139, 92, 246, .8); transition: height .15s linear; }
.timeline-item { position: relative; padding-bottom: 1.1rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -2.6rem; top: 1.5rem; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--bg); display: grid; place-items: center; }
.timeline-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.timeline-item.done .timeline-dot { border-color: var(--a); }
.timeline-item.done .timeline-dot::after { background: var(--a-text); }
.timeline-item.current .timeline-dot { border-color: var(--i); box-shadow: 0 0 0 6px rgba(34, 211, 238, .12), 0 0 20px rgba(34, 211, 238, .6); }
.timeline-item.current .timeline-dot::after { background: var(--i); animation: breathe 2s ease-in-out infinite; }
.timeline-item.current .glass { border-color: rgba(34, 211, 238, .35); }
.timeline-item .glass h5 { font-size: 1.15rem; }

/* prizes */
.prize-card { text-align: center; padding: 2.4rem 1.5rem 2.2rem; overflow: hidden; }
.prize-card .rank { font: 700 4.6rem/1 var(--display); letter-spacing: -.05em; background: linear-gradient(180deg, var(--hi), var(--muted)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prize-card .rank sup { font: 600 .9rem/1 var(--mono); top: -2.6em; letter-spacing: 0; }
.prize-card .prize-icon { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; margin: 0 auto 1rem; border-radius: 50%; font-size: 1.35rem; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line-2); }
.prize-card.first { border-color: rgba(255, 176, 32, .45); background: radial-gradient(80% 60% at 50% 0%, rgba(255, 176, 32, .16), transparent 70%), var(--glass-bg); box-shadow: 0 30px 70px -30px rgba(255, 176, 32, .45); }
@media (min-width: 768px) { .prize-card.first { transform: translateY(-14px); } .prize-card.first.card-hover:hover { transform: translateY(-20px); } }
.prize-card.first .rank { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; }
.prize-card.first .prize-icon { color: #ffd166; background: rgba(255, 176, 32, .14); border-color: rgba(255, 176, 32, .45); box-shadow: 0 0 30px -6px rgba(255, 176, 32, .8); }
.prize-card .prize-label { font: 500 .72rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: .7rem 0 .8rem; }
.prize-card .prize-value { font: 700 1.6rem/1.2 var(--display); letter-spacing: -.02em; color: var(--text); margin: 0; }

/* criteria bars */
.bar-row { margin-bottom: 1.15rem; }
.bar-track { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 6px; background: var(--grad); box-shadow: 0 0 12px rgba(139, 92, 246, .5); transition: width 1.4s var(--ease); }
.rules-list { list-style: none; padding: 0; margin: 0; counter-reset: r; }
.rules-list li { position: relative; padding: .85rem 0 .85rem 2.8rem; border-top: 1px solid var(--line); color: var(--text-2); }
.rules-list li:first-child { border-top: 0; }
.rules-list li::before { counter-increment: r; content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: .85rem; display: grid; place-items: center; width: 1.9rem; height: 1.6rem; border-radius: 8px; background: rgba(139, 92, 246, .14); color: var(--a-text); font: 600 .72rem/1 var(--mono); }

.announce { padding: 1.3rem 1.4rem; overflow: hidden; }
.announce::after { content: ""; position: absolute; left: 0; top: 1.2rem; bottom: 1.2rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad-machine); }
.announce.high::after { background: var(--grad-human); }
.announce h6 { font: 600 1.1rem/1.3 var(--display); }
.announce .eyebrow::before { display: none; }

/* join */
.cta-panel { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(3rem, 8vw, 5.5rem) clamp(1.2rem, 4vw, 3rem); border-radius: 28px; border: 1px solid var(--line-2); background: var(--cta-bg); }
.cta-panel::before { content: ""; position: absolute; inset: -40%; z-index: -2; background: conic-gradient(from 0deg, transparent, rgba(139, 92, 246, .5), transparent 30%, rgba(34, 211, 238, .4), transparent 60%, rgba(255, 92, 138, .45), transparent 90%); animation: spin 14s linear infinite; filter: blur(50px); opacity: .7; }
.cta-panel::after { content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: inherit; background: var(--cta-veil); }
.cta-panel h2 { font: 700 clamp(2.4rem, 6.5vw, 4.6rem)/1 var(--display); letter-spacing: -.045em; }
.cta__text { max-width: 36rem; margin: 1.2rem auto 2rem; color: var(--text-2); }
.cta__actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin: 0; }
.cta .eyebrow { justify-content: center; }

/* ---------- inner pages ---------- */
.page-head { position: relative; padding: clamp(3rem, 7vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { margin-top: .3rem; }
.page-head .lede { margin-top: 1rem; max-width: 42rem; }

/* ---------- dashboards ---------- */
.dash { display: grid; grid-template-columns: 264px 1fr; gap: 1.75rem; padding: 2.2rem 0 4rem; }
.dash > * { min-width: 0; } /* let the scrolling tab strip scroll instead of widening the page */
.dash-side { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; padding: 1rem; }
.dash-user { display: flex; align-items: center; gap: .8rem; padding: .3rem .3rem 1rem; margin-bottom: .8rem; border-bottom: 1px solid var(--line); }
.avatar { position: relative; width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; font: 700 1.2rem/1 var(--display); box-shadow: var(--glow); }
.dash-nav { display: flex; flex-direction: column; gap: .2rem; }
.dash-nav button {
  position: relative; display: flex; align-items: center; gap: .75rem; width: 100%; padding: .7rem .85rem; border: 0; border-radius: 12px; background: transparent; text-align: left;
  font: 500 .9rem/1.2 var(--sans); color: var(--muted); transition: background .2s, color .2s;
}
.dash-nav button .bi { font-size: 1.05rem; }
.dash-nav button:hover { background: var(--surface-2); color: var(--hi); }
.dash-nav button.active { background: linear-gradient(90deg, rgba(139, 92, 246, .25), rgba(34, 211, 238, .08)); color: var(--hi); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .35); }
.dash-nav button.active::before { content: ""; position: absolute; left: -1rem; top: 25%; bottom: 25%; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad-machine); }
.world-admin .dash-nav button.active { background: linear-gradient(90deg, rgba(34, 211, 238, .2), rgba(139, 92, 246, .08)); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .35); }
.dash-nav .count { margin-left: auto; padding: .12rem .5rem; border-radius: 999px; background: var(--b); color: #fff; font: 700 .66rem/1.3 var(--mono); }
.dash-main h1, .dash-main h2 { font-weight: 700; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: rise .5s var(--ease); }
.tab-panel.active .stagger > * { animation: rise .55s var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: .06s !important; }
.stagger > *:nth-child(3) { animation-delay: .12s !important; }
.stagger > *:nth-child(4) { animation-delay: .18s !important; }
.stagger > *:nth-child(5) { animation-delay: .24s !important; }
.stagger > *:nth-child(6) { animation-delay: .3s !important; }
.stat-card { padding: 1.25rem; display: flex; gap: 1rem; align-items: center; height: 100%; }
.stat-card .value { font: 700 2rem/1.05 var(--display); letter-spacing: -.03em; color: var(--hi); font-variant-numeric: tabular-nums; }
.stat-card .label { font: 500 .7rem/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 991.98px) {
  .dash { grid-template-columns: 1fr; padding-top: 1.5rem; }
  .dash-side { position: static; padding: .45rem; }
  .dash-user { display: none; }
  .dash-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .dash-nav button { width: auto; white-space: nowrap; }
  .dash-nav button.active::before { display: none; }
}

/* ---------- footer ---------- */
.site-footer { position: relative; z-index: 1; margin-top: auto; border-top: 1px solid var(--line); background: var(--footer-bg); }
.site-footer::before { content: ""; position: absolute; left: 10%; right: 10%; top: -1px; height: 1px; background: var(--grad); opacity: .7; }
.site-footer__inner { max-width: 76rem; margin-inline: auto; padding: 3rem clamp(1rem, 4vw, 2.5rem) 2.2rem; display: grid; gap: 1.6rem; }
@media (min-width: 48rem) { .site-footer__inner { grid-template-columns: auto 1fr auto; align-items: center; } }
.site-footer__line { font: 600 1.05rem/1.35 var(--display); color: var(--text); margin: 0; }
.site-footer__small { margin: .4rem 0 0; font-size: .85rem; color: var(--muted); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.site-footer__links a { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); text-decoration: none; font-size: 1.05rem; transition: color .2s, border-color .2s, transform .3s var(--ease), box-shadow .3s; }
.site-footer__links a:hover { color: var(--hi); border-color: var(--a); transform: translateY(-3px); box-shadow: var(--glow); }

#backToTop { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 1000; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--chrome-strong); color: var(--text); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background .3s, box-shadow .3s; }
#backToTop:hover { background: var(--a); border-color: var(--a); color: #fff; box-shadow: var(--glow); }
#backToTop.show { opacity: 1; transform: none; pointer-events: auto; }

/* ==========================================================================
   MOTION LAYER (driven by js/fx.js)
   ========================================================================== */
/* once revealed, elements drop their stagger delay so hover and tilt respond at once */
[data-reveal].reveal-done { transition: opacity .4s, transform .45s var(--ease), border-color .3s, box-shadow .4s var(--ease), filter .4s; transition-delay: 0s; }
.is-tilting { transition: transform .12s ease-out, border-color .3s, box-shadow .4s var(--ease) !important; transition-delay: 0s !important; will-change: transform; }
.card-hover.is-tilting::after { opacity: 1; }

/* headings rise word by word */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .03em .2em; margin: -.04em -.03em -.2em; }
.sw__in { display: inline-block; transform: translateY(110%) rotate(6deg); transform-origin: 0 100%; opacity: 0; transition: transform 1s var(--ease), opacity .8s ease; transition-delay: calc(var(--w, 0) * 70ms + 120ms); }
.words-in .sw__in { transform: none; opacity: 1; }

/* gradient text slowly flows */
.w-mid, .text-gradient, .eyebrow .num, .formula .total, .stat-number, .hero__badge .pill {
  background-image: linear-gradient(100deg, #8b5cf6, #22d3ee 33%, #ff5c8a 66%, #8b5cf6); background-size: 200% 100%; animation: gradShift 8s linear infinite;
}
.w-bio { background-image: linear-gradient(100deg, #ff5c8a, #ffb020 50%, #ff5c8a); background-size: 200% 100%; animation: gradShift 6s linear infinite; }
.w-os { background-image: linear-gradient(100deg, #8b5cf6, #22d3ee 50%, #8b5cf6); background-size: 200% 100%; animation: gradShift 6s linear infinite; }
@keyframes gradShift { to { background-position: -200% 0; } }

/* hero: the logo follows the mouse a little, then floats gently */
.hero__logo {
  translate: calc(var(--mx, 0) * 28px) calc(var(--my, 0) * 18px);
  animation: letterIn 1.1s var(--ease) .15s both, floatY 6s ease-in-out 1.4s infinite;
}
.hero__aurora { translate: calc(var(--mx, 0) * -70px) calc(var(--my, 0) * -50px); }
.hero__floor { translate: calc(var(--mx, 0) * -60px) 0; }

/* shooting stars */
.meteor { position: absolute; top: var(--t); left: var(--l); z-index: 1; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px rgba(200, 190, 255, .8); opacity: 0; pointer-events: none; animation: meteor var(--dur, 10s) linear var(--del, 0s) infinite; }
.meteor::after { content: ""; position: absolute; left: 2px; top: 50%; width: 170px; height: 1px; transform: translateY(-50%); background: linear-gradient(90deg, rgba(220, 210, 255, .85), transparent); }
@keyframes meteor { 0% { opacity: 0; transform: rotate(215deg) translateX(0); } 2% { opacity: 1; } 11% { opacity: 0; transform: rotate(215deg) translateX(-720px); } 100% { opacity: 0; transform: rotate(215deg) translateX(-720px); } }

/* cursor light */
#cursorGlow { position: fixed; left: -280px; top: -280px; width: 560px; height: 560px; border-radius: 50%; z-index: -1; pointer-events: none; background: radial-gradient(circle, rgba(139, 92, 246, .15), rgba(34, 211, 238, .06) 40%, transparent 70%); opacity: 0; transition: opacity .6s; }
#cursorGlow.on { opacity: 1; }

/* buttons: a light sweep and a click ripple */
.btn { overflow: hidden; isolation: isolate; }
.btn-glow::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); pointer-events: none; }
.btn-glow:hover::after { animation: shine .8s var(--ease); }
.hero__actions .btn-glow::after, .cta__actions .btn-glow::after { animation: shineLoop 5s ease-in-out 2s infinite; }
@keyframes shine { from { left: -60%; } to { left: 130%; } }
@keyframes shineLoop { 0%, 75% { left: -60%; } 100% { left: 130%; } }
.ripple { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 70%); transform: scale(0); pointer-events: none; animation: ripple .7s ease-out forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* nav links: a gradient underline slides in */
.nav-link-bl { position: relative; }
.nav-link-bl::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav-link-bl:hover::after, .nav-link-bl.active::after { transform: scaleX(1); }

/* eyebrow rules draw in when their section reveals */
[data-reveal] .eyebrow::before, .eyebrow[data-reveal]::before { transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .35s; }
.revealed .eyebrow::before, .eyebrow.revealed::before { transform: none; }

/* timeline dots pop in */
.timeline-item .timeline-dot { transform: scale(0); transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--delay, 0s) + .25s); }
.timeline-item.revealed .timeline-dot { transform: none; }

/* small idle motions */
.pillar__icon i { display: inline-block; animation: floatY 4s ease-in-out infinite; }
.pillar:nth-child(2n) .pillar__icon i { animation-delay: -2s; }
.prize-card.first .prize-icon i { display: inline-block; animation: trophy 3s ease-in-out infinite; }
@keyframes trophy { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-12deg) scale(1.1); } 20% { transform: rotate(10deg) scale(1.1); } 30% { transform: none; } }
#backToTop:hover i { display: inline-block; animation: floatY 1s ease-in-out infinite; }
.accordion-bl .accordion-collapse.show .accordion-body, .accordion-bl .collapsing .accordion-body { animation: rise .45s var(--ease) both; }
.loader-text { animation: loaderIn 1s var(--ease) both; }
@keyframes loaderIn { from { letter-spacing: .9em; opacity: 0; } }
.stats > div { transition: background .3s; }
.stats > div:hover { background: var(--surface-2); }

@media (prefers-reduced-motion: reduce) {
  .sw__in { transform: none; opacity: 1; }
  .hero__logo { translate: none; }
  .meteor, #cursorGlow { display: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}

/* ---------- theme toggle (in the header, added by common.js) ---------- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-width: 2.4rem; height: 2.4rem; flex: none; padding: 0 .85rem;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--text);
  font: 600 .82rem/1 var(--sans); transition: background .2s, border-color .2s, color .2s;
}
.theme-toggle .bi { font-size: 1rem; }
@media (max-width: 575.98px) { .theme-toggle { padding: 0; } .theme-toggle__label { display: none; } }
.theme-toggle:hover { background: var(--surface-3); border-color: var(--line-3); color: var(--hi); }
.theme-toggle:focus-visible { box-shadow: var(--focus); outline: 0; }
.theme-toggle .bi { display: inline-block; transition: transform .5s var(--ease); }
.theme-toggle:hover .bi { transform: rotate(30deg); }
.theme-toggle .bi-sun { display: none; }
[data-bs-theme="light"] .theme-toggle .bi-sun { display: inline-block; }
[data-bs-theme="light"] .theme-toggle .bi-moon-stars { display: none; }
/* fade colours when the theme changes (class set briefly by common.js) */
.theme-fade, .theme-fade *, .theme-fade *::before, .theme-fade *::after { transition: background-color .35s, border-color .35s, color .35s, box-shadow .35s !important; }

/* ==========================================================================
   LIGHT THEME
   ========================================================================== */
:root[data-bs-theme="light"] {
  color-scheme: light;
  --bg: #f5f6fb;
  --bg-2: #eceef6;
  --bg-3: #ffffff;
  --surface: rgba(20, 24, 60, .03);
  --surface-2: rgba(20, 24, 60, .055);
  --surface-3: rgba(20, 24, 60, .085);
  --line: rgba(20, 24, 60, .1);
  --line-2: rgba(20, 24, 60, .16);
  --line-3: rgba(20, 24, 60, .3);
  --text: #12142a;
  --text-2: #363b5a;
  --muted: #5a6080;
  --dim: #858aa5;
  --hi: #0b0c1a;

  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .72));
  --chrome: rgba(255, 255, 255, .7);
  --chrome-soft: rgba(255, 255, 255, .5);
  --chrome-strong: rgba(255, 255, 255, .9);
  --overlay: rgba(255, 255, 255, .97);
  --toast-bg: rgba(255, 255, 255, .96);
  --modal-bg: linear-gradient(180deg, #ffffff, #f6f7fc);
  --field-bg: #ffffff;
  --dot: rgba(20, 24, 60, .09);
  --scroll-thumb: #c9ccdc;
  --scroll-thumb-hover: #a9adc4;
  --marquee-bg: rgba(255, 255, 255, .7);
  --footer-bg: linear-gradient(180deg, rgba(255, 255, 255, .5), #e9ebf4);
  --cta-bg: #ffffff;
  --cta-veil: radial-gradient(70% 90% at 50% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .9));
  --card-shadow: 0 25px 50px -25px rgba(20, 24, 60, .28);

  /* deeper pillar tones so text keeps its contrast on white */
  --b: #e11d63;
  --l: #b45309;
  --a: #7c3aed;
  --a-text: #6d28d9;
  --i: #0e7490;
  --m: #047857;
  --grad: linear-gradient(100deg, #7c3aed 0%, #0891b2 50%, #e11d63 100%);
  --grad-human: linear-gradient(100deg, #e11d63, #d97706);
  --grad-machine: linear-gradient(100deg, #7c3aed, #0891b2);
  --ok: #047857; --warn: #b45309; --bad: #e11d48; --info: #2563eb;

  --shadow: 0 20px 50px -25px rgba(20, 24, 60, .3);
  --glow: 0 10px 30px -10px rgba(124, 58, 237, .45);
  --bs-link-color-rgb: 14, 116, 144;
  --bs-link-hover-color-rgb: 11, 12, 26;
}
[data-bs-theme="light"] body::before {
  background:
    radial-gradient(45% 40% at 8% 0%, rgba(139, 92, 246, .12), transparent 70%),
    radial-gradient(40% 40% at 100% 30%, rgba(34, 211, 238, .1), transparent 70%),
    radial-gradient(45% 40% at 50% 110%, rgba(255, 92, 138, .08), transparent 70%),
    var(--bg);
}
[data-bs-theme="light"] ::selection { background: rgba(124, 58, 237, .22); color: var(--hi); }
[data-bs-theme="light"] .btn-close, [data-bs-theme="light"] .btn-close-white { filter: none; }
[data-bs-theme="light"] .modal-backdrop { --bs-backdrop-bg: #1a1c33; }
[data-bs-theme="light"] .modal-backdrop.show { opacity: .4; }
[data-bs-theme="light"] .modal-content { box-shadow: 0 40px 80px -30px rgba(20, 24, 60, .35), 0 0 0 1px rgba(124, 58, 237, .08); }

/* gradient text: the flowing versions use the deeper tones */
[data-bs-theme="light"] :is(.w-mid, .text-gradient, .eyebrow .num, .formula .total, .stat-number, .hero__badge .pill) {
  background-image: linear-gradient(100deg, #7c3aed, #0891b2 33%, #e11d63 66%, #7c3aed);
}
[data-bs-theme="light"] .w-bio { background-image: linear-gradient(100deg, #e11d63, #d97706 50%, #e11d63); }
[data-bs-theme="light"] .w-os { background-image: linear-gradient(100deg, #7c3aed, #0891b2 50%, #7c3aed); }

/* badges, chips and tinted buttons: darker ink on pale tints */
[data-bs-theme="light"] .chip-easy { color: #047857; }
[data-bs-theme="light"] .chip-medium { color: #b45309; }
[data-bs-theme="light"] .chip-hard { color: #be123c; }
[data-bs-theme="light"] :is(.status-pending, .status-submitted) { --c: #b45309; }
[data-bs-theme="light"] :is(.status-approved, .status-evaluated) { --c: #047857; }
[data-bs-theme="light"] .status-rejected { --c: #be123c; }
[data-bs-theme="light"] .status-under_review { --c: #0e7490; }
[data-bs-theme="light"] .alert-glass { --c: #b45309; color: color-mix(in srgb, var(--c) 85%, black); }
[data-bs-theme="light"] .alert-glass.danger { --c: #be123c; }
[data-bs-theme="light"] .alert-glass.success { --c: #047857; }
[data-bs-theme="light"] .alert-glass.info { --c: #1d4ed8; }
[data-bs-theme="light"] .btn-danger, [data-bs-theme="light"] .btn-outline-danger { --btn-fg: #be123c; }
[data-bs-theme="light"] .btn-success { --btn-fg: #047857; }
[data-bs-theme="light"] .btn-outline-warning { --btn-fg: #b45309; }
[data-bs-theme="light"] .btn-outline-warning:hover { color: #92400e; }
[data-bs-theme="light"] .prize-card.first .prize-icon { color: #b45309; }

/* hero: softer aurora and grid, no white meteors on a white sky */
[data-bs-theme="light"] .hero__aurora { opacity: .5; }
[data-bs-theme="light"] .hero__aurora span { mix-blend-mode: multiply; }
[data-bs-theme="light"] .hero__floor { background-image: linear-gradient(rgba(124, 58, 237, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 58, 237, .18) 1px, transparent 1px); }
[data-bs-theme="light"] .hero__logo { filter: drop-shadow(0 10px 30px rgba(124, 58, 237, .18)); }
[data-bs-theme="light"] .meteor { display: none; }
[data-bs-theme="light"] #cursorGlow { background: radial-gradient(circle, rgba(139, 92, 246, .1), rgba(34, 211, 238, .05) 40%, transparent 70%); }
[data-bs-theme="light"] .cta-panel::before { opacity: .45; }
