:root {
  --bg: #07111f;
  --bg-soft: #0d1930;
  --panel: rgba(10, 20, 39, 0.92);
  --panel-solid: #0a1427;
  --text: #e9f3ff;
  --muted: #9db3cb;
  --line: rgba(119, 173, 255, 0.16);
  --line-strong: rgba(119, 231, 255, 0.28);
  --blue-1: #77e7ff;
  --blue-2: #4aa8ff;
  --blue-3: #1d58c9;
  --gold: #ffd166;
  --green: #78ffbb;
  --error: #ff9c9c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(119, 231, 255, 0.14), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(74, 168, 255, 0.13), transparent 28%),
    radial-gradient(circle at 52% 100%, rgba(29, 88, 201, 0.18), transparent 30%),
    linear-gradient(180deg, #040b15 0%, #07111f 42%, #081428 100%);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  max-width: 100%;
}

.container {
  width: min(var(--max), calc(100% - 1rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(4, 11, 21, 0.64);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-mark {
  width: 144px;
  height: 64px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(119, 231, 255, 0.22), rgba(29, 88, 201, 0.24)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(119, 231, 255, 0.16);
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 25px rgba(30, 87, 201, 0.18);
  overflow: hidden;
}

.brand-mark img {
  height: 100px;
  margin-top: -1rem;
  filter: drop-shadow(0 0 10px rgba(119, 231, 255, 0.18));
}

.brand-text strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.brand-text span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 0;
  border-radius: 14px;
  background: rgba(119, 231, 255, 0.08);
  border: 1px solid rgba(119, 231, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.button,
button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  padding: 0.92rem 1.25rem;
  font: inherit;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--blue-1), var(--blue-2) 55%, var(--blue-3));
  color: #02111c;
  box-shadow: 0 16px 40px rgba(41, 133, 255, 0.32);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border: 1px solid rgba(119, 231, 255, 0.18);
}

.hero {
  padding: 1.15rem 0 1rem;
}

.hero-wrap {
  width: min(95vw, 1600px);
  margin: 0 auto;
}

.shell,
.card,
.contact-panel,
.meta-panel,
.media-card,
.tree-card,
.tier-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-shell {
  border-radius: 28px;
  width: 100%;
  padding: clamp(1.2rem, 2vw, 1.9rem) clamp(1.15rem, 2.2vw, 2.4rem) clamp(1.45rem, 2.4vw, 2.2rem);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(119, 231, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(12, 22, 40, 0.94), rgba(8, 17, 32, 0.98));
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: clamp(1.2rem, 3vw, 2.6rem);
  align-items: center;
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.82rem;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #cce7ff;
  background: rgba(119, 231, 255, 0.09);
  border: 1px solid rgba(119, 231, 255, 0.16);
  white-space: nowrap;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 2.2vw, 2.2rem);  line-height: 0.94;
  letter-spacing: -0.045em;
  max-width: 12ch;
  text-wrap: balance;
}

.hero h1 .accent,
.gradient-text {
  background: linear-gradient(135deg, #eef9ff, var(--blue-1) 40%, var(--blue-2) 72%, #7f8cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--muted);
  font-size: 1.06rem;
  margin: 1.1rem 0 0;
  max-width: 78ch;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.65rem;
}

.hero-visual {
  border-radius: 24px;
  padding: 0.8rem;
  background:
    radial-gradient(circle at 20% 0%, rgba(119, 231, 255, 0.16), transparent 25%),
    rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(119, 231, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 28px 80px rgba(0, 0, 0, 0.35);
}

.media-frame {
  position: relative;
  min-height: 330px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(119, 231, 255, 0.08), rgba(29, 88, 201, 0.10)),
    #07111f;
  border: 1px solid rgba(119, 231, 255, 0.12);
  display: grid;
  place-items: center;
}

.media-frame video,
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame::before {
  content: "Dashboard's 3D lattice viewer";
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 2;
  color: var(--blue-1);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(119, 231, 255, 0.18);
  background: rgba(4, 11, 21, 0.72);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.media-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  color: var(--muted);
  text-align: center;
  pointer-events: none;
}

.media-placeholder strong {
  display: block;
  color: var(--text);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}



/* ================================
Hero viewer toggle
================================ */

.hero--viewer-toggle {
  position: relative;
  overflow: hidden;
  min-height: clamp(720px, 92vh, 980px);
  background:
    radial-gradient(circle at 78% 24%, rgba(69, 142, 255, 0.20), transparent 34rem),
    radial-gradient(circle at 18% 72%, rgba(42, 209, 200, 0.12), transparent 28rem),
    linear-gradient(135deg, #05080d 0%, #08101b 48%, #030509 100%);
  color: #e8eef7;
}

.hero--viewer-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 84%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(1480px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(520px, 1.15fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.hero__copy {
  max-width: 660px;
}

.hero__eyebrow,
.hero__viewer-kicker {
  color: #6fd9ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__copy h1 {
  margin: 1rem 0 1.1rem;
  font-size: clamp(3rem, 6vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
  color: #f4f8ff;
}

.hero__lead {
  max-width: 58ch;
  margin: 0;
  color: #aeb9ca;
  font-size: clamp(1.02rem, 1.25vw, 1.22rem);
  line-height: 1.72;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.hero__button:hover {
  transform: translateY(-1px);
}

.hero__button--primary {
  color: #041018;
  background: linear-gradient(135deg, #83e7ff, #7da7ff);
  box-shadow: 0 18px 42px rgba(69, 142, 255, 0.24);
}

.hero__button--secondary {
  color: #dce9f9;
  border: 1px solid rgba(140, 171, 210, 0.32);
  background: rgba(255, 255, 255, 0.045);
}

.hero__viewer-card {
  position: relative;
  border: 1px solid rgba(130, 169, 215, 0.22);
  border-radius: 28px;
  padding: clamp(1rem, 1.8vw, 1.35rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(3, 8, 14, 0.76);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.hero__viewer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero__viewer-header h2 {
  margin: 0.28rem 0 0;
  color: #eef5ff;
  font-size: clamp(1.15rem, 1.8vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.hero__toggle {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  width: min(300px, 42%);
  padding: 0.35rem;
  border: 1px solid rgba(130, 169, 215, 0.22);
  border-radius: 18px;
  background: rgba(4, 10, 18, 0.72);
}

.hero__toggle-button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0.68rem 0.78rem;
  color: #9eabba;
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.1;
  text-align: left;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.hero__toggle-button:hover {
  color: #e6f3ff;
  background: rgba(255, 255, 255, 0.045);
}

.hero__toggle-button.is-active {
  color: #06111a;
  background: linear-gradient(135deg, #86e9ff, #7d9fff);
  border-color: rgba(255, 255, 255, 0.22);
}

.hero__stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(118, 150, 190, 0.24);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 50%, rgba(78, 151, 255, 0.10), transparent 38%),
    #02060b;
}

/*
  object-fit: contain is intentional.
  It scales the smaller microstate canvas proportionally and leaves controlled
  empty space on the longer dimension instead of cropping scientific content.
*/
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transform: scale(0.985);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  pointer-events: none;
}

.hero__video.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero__stage[data-active-viewer="microstate"] .hero__video--microstate {
  padding: clamp(0.75rem, 2vw, 1.5rem);
}

.hero__stage-label {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(130, 169, 215, 0.24);
  border-radius: 16px;
  color: #cbd7e8;
  background: rgba(2, 6, 11, 0.72);
  font-size: 0.82rem;
  line-height: 1.35;
  backdrop-filter: blur(14px);
}

@media (max-width: 1120px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    max-width: 820px;
  }

  .hero__viewer-card {
    max-width: 980px;
  }
}

@media (max-width: 720px) {
  .hero--viewer-toggle {
    min-height: auto;
    padding-top: 4.5rem;
  }

  .hero__viewer-header {
    display: grid;
  }

  .hero__toggle {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .hero__toggle-button {
    text-align: center;
  }

  .hero__stage {
    aspect-ratio: 1 / 1;
    min-height: 320px;
  }

  .hero__stage-label {
    font-size: 0.76rem;
  }
}

@media (max-width: 460px) {
  .hero__toggle {
    grid-template-columns: 1fr;
  }

  .hero__stage {
    min-height: 280px;
  }
}







.proof-grid,
.grid-3,
.grid-2,
.contact-shell,
.field-grid,
.viewer-grid,
.tier-grid {
  display: grid;
  gap: 1rem;
}

.proof-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.2rem;
}

section {
  padding: 1.05rem 0;
}

.section-head {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
  max-width: 72ch;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-head p,
.card p,
.meta-panel p,
.meta-item span,
.tier-card p,
.form-note,
.status,
.fine-print {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.card,
.meta-panel,
.contact-panel,
.media-card,
.tree-card,
.tier-card {
  border-radius: var(--radius);
  padding: 1.35rem;
  background: linear-gradient(180deg, rgba(12, 22, 40, 0.94), rgba(8, 17, 32, 0.98));
  color: var(--text);
}

.card-icon {
  width: 58px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(119, 231, 255, 0.09);
  border: 1px solid rgba(119, 231, 255, 0.14);
  margin-bottom: 0.9rem;
  color: var(--blue-1);
  font-size: 1rem;
  font-weight: 800;
}

.card h3,
.tier-card h3,
.media-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  color: white;
}

.grid-3,
.tier-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.viewer-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: stretch;
}

.media-card img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(119, 231, 255, 0.12);
  background: #07111f;
  display: block;
  margin-top: 0.85rem;
}

.feature-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "•";
  color: var(--blue-1);
  font-size: 1.4rem;
  line-height: 0.8;
}

.tree-card pre {
  margin: 0;
  overflow: auto;
  white-space: pre;
  color: #cce7ff;
  font-size: 0.88rem;
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(119, 231, 255, 0.10);
  border-radius: 16px;
  padding: 1rem;
}

.tier-card {
  position: relative;
  overflow: hidden;
}

.tier-card.featured {
  border-color: var(--line-strong);
}

.tier-label {
  display: inline-flex;
  margin-bottom: 0.8rem;
  color: var(--blue-1);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.tier-card ul {
  margin: 0.9rem 0 0;
  padding-left: 1.05rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.private-band {
  border-radius: 28px;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 18%, rgba(119, 231, 255, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(12, 22, 40, 0.94), rgba(8, 17, 32, 0.98));
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 1.5rem;
  align-items: center;
}

.private-band h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.private-band p {
  color: var(--muted);
  margin: 0.9rem 0 0;
}

.meta-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.meta-item {
  border-radius: 16px;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(119, 231, 255, 0.1);
}

.meta-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.18rem;
}

.contact-shell {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
}

form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 0.38rem;
  font-size: 0.92rem;
  color: #dcecff;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(119, 173, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0.9rem 1rem;
  font: inherit;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

select option {
  color: #061120;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(119, 231, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(119, 231, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.status.success {
  color: var(--green);
}

.status.error {
  color: var(--error);
}

.hidden-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

.footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
}

@media (max-width: 1120px) {

  .hero-main,
  .viewer-grid,
  .private-band,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .proof-grid,
  .grid-3,
  .grid-2,
  .tier-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 1rem, var(--max));
  }

  .header-inner {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
  }

  .brand-mark {
    width: 122px;
    height: 54px;
  }

  .brand-mark img {
    height: 84px;
  }

  .brand-text {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    width: min(280px, calc(100vw - 2rem));
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0.6rem;
    border-radius: 18px;
    background: rgba(7, 17, 31, 0.96);
    border: 1px solid rgba(119, 231, 255, 0.16);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    display: block;
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    color: var(--text);
  }

  .nav a:hover {
    background: rgba(119, 231, 255, 0.08);
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.3rem, 12vw, 4rem);
  }

  .media-frame {
    min-height: 250px;
  }

  .hero-shell,
  .card,
  .meta-panel,
  .contact-panel,
  .media-card,
  .tree-card,
  .tier-card,
  .private-band {
    border-radius: 22px;
  }
}

/* —— Login —— */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.login-shell {
  width: min(440px, 100%);
  display: grid;
  gap: 1.5rem;
}

.login-brand {
  justify-content: center;
}

.login-panel {
  padding: 1.75rem;
}

.login-panel h1 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
}

.login-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.login-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.login-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(4, 11, 21, 0.55);
  color: var(--text);
  font: inherit;
}

.login-form input:focus {
  outline: 2px solid rgba(119, 231, 255, 0.35);
  outline-offset: 2px;
}

.login-error {
  margin: 0.75rem 0 0;
}

/* —— Repository catalog (authenticated) —— */
.repo-catalog {
  padding: 2.5rem 0 4rem;
}

.repo-catalog-head {
  margin-bottom: 2rem;
}

.repo-catalog-head h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.nav-user {
  color: var(--muted);
  font-size: 0.88rem;
  margin-right: 0.5rem;
}

.nav-user strong {
  color: var(--text);
}

.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.repo-card {
  border-radius: var(--radius);
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(12, 22, 40, 0.94), rgba(8, 17, 32, 0.98));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.repo-card h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #fff;
}

.repo-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.repo-card__badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(120, 255, 187, 0.12);
  color: var(--green);
  border: 1px solid rgba(120, 255, 187, 0.28);
}

.repo-card__badge--muted {
  background: rgba(157, 179, 203, 0.1);
  color: var(--muted);
  border-color: rgba(157, 179, 203, 0.2);
}

.repo-card__meta {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.repo-card--active {
  border-color: var(--line-strong);
}

.repo-card--disabled {
  opacity: 0.55;
  filter: grayscale(0.35);
  pointer-events: none;
  user-select: none;
}

.repo-card__disabled-btn {
  display: inline-block;
  text-align: center;
  opacity: 0.7;
  cursor: not-allowed;
}
