:root {
  --bg: #0b0f14;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.085);
  --line: rgba(255, 255, 255, 0.10);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --faint: rgba(255, 255, 255, 0.48);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);

  --accent: #8ad2ff;
  --accent2: #a6ffa5;
  --warn: #ffd68a;

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --drawer-reserved: 0px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 900px at 20% -10%, rgba(138, 210, 255, 0.12), transparent 60%),
    radial-gradient(900px 700px at 80% 0%, rgba(166, 255, 165, 0.10), transparent 55%),
    radial-gradient(900px 900px at 60% 110%, rgba(255, 214, 138, 0.08), transparent 50%),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.auth {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(900px 700px at 20% 0%, rgba(138, 210, 255, 0.10), transparent 60%),
    radial-gradient(800px 700px at 80% 10%, rgba(166, 255, 165, 0.08), transparent 60%),
    rgba(8, 11, 15, 0.92);
  backdrop-filter: blur(10px);
}

.auth[data-open="true"] {
  display: flex;
}

.auth__panel {
  width: min(440px, calc(100vw - 48px));
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(13, 18, 24, 0.80);
  box-shadow: var(--shadow);
  padding: 22px;
}

.auth__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 16px;
}

.auth__markWrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.auth__mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  opacity: 0.98;
}

.auth__title {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 18px;
}

.auth__sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  max-width: 320px;
}

.auth__form {
  display: grid;
  gap: 10px;
}

.auth__label {
  font-size: 12px;
  color: var(--faint);
  font-weight: 650;
  letter-spacing: 0.2px;
}

.auth__input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  outline: none;
}

.auth__input:focus {
  border-color: rgba(138, 210, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(138, 210, 255, 0.18);
}

.auth__error {
  min-height: 18px;
  font-size: 12px;
  color: rgba(255, 214, 138, 0.92);
}

.auth__btn {
  margin-top: 6px;
  width: 100%;
  justify-content: center;
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(11, 15, 20, 0.58);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand__logo {
  height: 26px;
  width: auto;
  display: block;
  opacity: 0.95;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

.brand__title {
  font-size: 14px;
  letter-spacing: 0.2px;
  font-weight: 600;
  line-height: 1.2;
}

.brand__sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
}

.hint {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.hint__kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px calc(120px + var(--drawer-reserved));
}

.hero {
  padding: 26px 0 18px;
}

.hero__headline {
  margin: 0;
  font-size: clamp(20px, 3.2vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 980px;
}

.hero__lede {
  margin: 10px 0 0;
  max-width: 880px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.roadmap {
  margin-top: 16px;
}

.matrix {
  display: grid;
  grid-template-columns: 200px repeat(3, 1fr);
  grid-template-rows: 58px repeat(3, 1fr);
  gap: 12px;
  align-items: stretch;
}

.matrix__corner {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.matrix__colhead {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.colhead__title {
  font-weight: 650;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.colhead__subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.matrix__rowhead {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 14px;
  display: flex;
  align-items: center;
}

.rowhead__title {
  font-weight: 650;
  letter-spacing: 0.2px;
  font-size: 13px;
}

.matrix__cellwrap {
  position: relative;
}

.cell {
  width: 100%;
  height: 100%;
  min-height: 124px;
  text-align: left;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  padding: 16px 16px 14px;
  color: var(--text);
  cursor: pointer;
  transition: transform 240ms var(--ease), border-color 240ms var(--ease), background 240ms var(--ease),
    box-shadow 240ms var(--ease), opacity 240ms var(--ease), filter 240ms var(--ease);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.20);
  outline: none;
  position: relative;
  overflow: hidden;
}

.cell::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(600px 200px at 20% 20%, rgba(138, 210, 255, 0.14), transparent 60%),
    radial-gradient(560px 200px at 85% 10%, rgba(166, 255, 165, 0.11), transparent 60%);
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 240ms var(--ease);
}

.cell > * {
  position: relative;
  z-index: 1;
}

.cell__kicker {
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--muted);
  text-transform: uppercase;
}

.cell__title {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.18;
}

.cell__micro {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.cell:focus-visible {
  box-shadow: 0 0 0 3px rgba(138, 210, 255, 0.25), 0 18px 70px rgba(0, 0, 0, 0.32);
  border-color: rgba(138, 210, 255, 0.35);
}

/* Spotlight system driven by JS toggling these attributes/classes */
.matrix[data-dim="true"] .cell:not([data-active="true"]) {
  opacity: 0.45;
  filter: saturate(0.9);
}

.cell[data-active="true"] {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(138, 210, 255, 0.38);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
}

.cell[data-active="true"]::before {
  opacity: 0.9;
}

.drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  transform: translateY(110%);
  transition: transform 420ms var(--ease);
  pointer-events: none;
}

.drawer[data-open="true"] {
  transform: translateY(0%);
  pointer-events: auto;
}

.drawer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 22px;
}

.drawer__inner::before {
  content: "";
  display: block;
  height: 18px;
}

.drawer__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.drawer__eyebrow {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.2px;
}

.drawer__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 180ms var(--ease), background 180ms var(--ease), transform 180ms var(--ease);
}

.btn:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(138, 210, 255, 0.25);
  border-color: rgba(138, 210, 255, 0.35);
}

.btn--ghost {
  background: rgba(0, 0, 0, 0.0);
}

.drawer__body {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(13, 18, 24, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 16px;
}

.drawer__title {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.drawer__oneLiner {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  border-radius: 999px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.chip__label {
  color: var(--faint);
  font-weight: 650;
  letter-spacing: 0.2px;
}

.chips--muted .chip {
  border-color: rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
}

.drawer__section {
  margin-top: 14px;
}

.drawer__sectionTitle {
  font-size: 12px;
  color: var(--faint);
  font-weight: 650;
  letter-spacing: 0.22px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.drawer__list {
  margin: 0;
  padding: 0 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.5;
}

.drawer__list li {
  margin: 7px 0;
}

.drawer__visual {
  display: flex;
  align-items: stretch;
}

.visual {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(135deg, rgba(138, 210, 255, 0.10), rgba(255, 255, 255, 0.03) 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  position: relative;
  overflow: hidden;
  min-height: 230px;
}

.visual__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
}

.visual__placeholder {
  position: absolute;
  inset: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.visual__cap {
  font-weight: 650;
  letter-spacing: -0.01em;
}

.visual__sub {
  color: var(--muted);
  margin-top: 4px;
  font-size: 12px;
}

.drawer__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 6px 0;
}

.drawer__meta {
  color: var(--muted);
  font-size: 12px;
}

/* Evidence image modal (lightbox) */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}

.modal[data-open="true"] {
  display: block;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.985);
  width: min(980px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(13, 18, 24, 0.86);
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}

.modal[data-open="true"] .modal__panel {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.modal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal__caption {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.2px;
}

.modal__body {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: calc(100vh - 120px);
}

.modal__img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.visual__img {
  cursor: zoom-in;
}

@media (max-width: 980px) {
  .matrix {
    grid-template-columns: 160px repeat(3, 1fr);
  }
  .hint {
    display: none;
  }
}

@media (max-width: 820px) {
  .matrix {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .matrix__corner {
    display: none;
  }
  .matrix__colhead {
    display: none;
  }
  .matrix__rowhead {
    padding: 16px 14px 10px;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.07);
  }
  .cell {
    min-height: 110px;
  }
  .drawer__body {
    grid-template-columns: 1fr;
  }
  .visual {
    min-height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cell,
  .drawer,
  .btn,
  .modal__panel {
    transition: none !important;
  }
}


