:root {
  --bg: #07090d;
  --bg-2: #0d1118;
  --panel: #111823;
  --panel-2: #151f2b;
  --panel-3: #e8e1d2;
  --ink: #f4efe5;
  --ink-dark: #0b0f14;
  --muted: rgba(244, 239, 229, 0.66);
  --muted-dark: #69717d;
  --line: rgba(244, 239, 229, 0.12);
  --line-dark: rgba(11, 15, 20, 0.12);
  --teal: #30b6a6;
  --teal-soft: rgba(48, 182, 166, 0.14);
  --gold: #c8a44d;
  --copper: #b87945;
  --red: #d85f5f;
  --blue: #5b7cfa;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.38);
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: "Libre Baskerville", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), transparent 280px),
    linear-gradient(90deg, rgba(200,164,77,0.055) 0 1px, transparent 1px),
    linear-gradient(0deg, rgba(200,164,77,0.045) 0 1px, transparent 1px),
    var(--bg);
  background-size: auto, 56px 56px, 56px 56px, auto;
  font-family: var(--sans);
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7,9,13,0.1), rgba(7,9,13,0.86));
  z-index: -1;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(7, 9, 13, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.portal-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.portal-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-nav a:hover {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255,255,255,0.055);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink-dark);
  background: linear-gradient(135deg, var(--gold), var(--teal));
  border-radius: var(--radius);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(255,255,255,0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--ink-dark);
  background: linear-gradient(135deg, var(--teal), var(--gold));
  box-shadow: 0 16px 46px rgba(48, 182, 166, 0.2);
}

.btn-dark {
  color: var(--ink);
  background: #0b0f14;
  border-color: rgba(244,239,229,0.14);
}

.btn-light {
  color: var(--ink);
  background: rgba(255,255,255,0.075);
  border-color: var(--line);
}

.full {
  width: 100%;
}

main {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 64px 0 50px;
}

.signal,
.kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 10px;
  color: var(--teal);
  background: var(--teal-soft);
  border: 1px solid rgba(48, 182, 166, 0.24);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  letter-spacing: 0;
}

h1 {
  margin: 20px 0 18px;
  max-width: 710px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.1;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.mission-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin: 30px 0;
}

.mission-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 660px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.035);
  border-radius: var(--radius);
}

.mission-row span {
  min-height: 70px;
  padding: 14px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mission-row span:last-child {
  border-right: 0;
}

.mission-row strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  border: 1px solid rgba(244,239,229,0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--panel);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.08);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,9,13,0.05), rgba(7,9,13,0.32));
  pointer-events: none;
}

.command-overlay,
.visual-badge {
  position: absolute;
  z-index: 2;
  color: var(--ink);
  background: rgba(7, 9, 13, 0.78);
  border: 1px solid rgba(244,239,229,0.16);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.command-overlay {
  top: 22px;
  left: 22px;
  width: min(330px, calc(100% - 44px));
  padding: 16px;
}

.command-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.command-topline strong {
  color: var(--teal);
  font-size: 28px;
  letter-spacing: 0;
}

.command-bars {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.command-bars span {
  display: block;
  width: var(--w);
  height: 7px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: 999px;
}

.command-overlay dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.command-overlay div {
  min-width: 0;
}

.command-overlay dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.command-overlay dd {
  margin: 3px 0 0;
  font-size: 12px;
}

.visual-badge {
  right: 22px;
  bottom: 22px;
  width: min(295px, calc(100% - 44px));
  padding: 16px;
}

.visual-badge strong,
.visual-badge span {
  display: block;
}

.visual-badge strong {
  color: var(--gold);
}

.visual-badge span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.market-strip,
.expert,
.command-section {
  display: grid;
  grid-template-columns: minmax(270px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
  background: linear-gradient(135deg, rgba(17,24,35,0.98), rgba(11,15,20,0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.market-strip {
  margin-bottom: 42px;
}

.market-strip strong {
  display: block;
  margin-top: 12px;
  font-size: 22px;
  line-height: 1.25;
}

.market-strip p,
.expert p,
.command-copy p {
  margin: 0;
  color: var(--muted);
}

.command-section {
  align-items: stretch;
  margin: 0 0 42px;
}

.command-copy {
  display: grid;
  align-content: center;
  gap: 12px;
}

.command-copy h2 {
  margin-bottom: 0;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.metric-tile {
  display: grid;
  align-content: end;
  min-height: 180px;
  padding: 16px;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric-tile.strong {
  background: linear-gradient(180deg, rgba(48,182,166,0.18), rgba(255,255,255,0.045));
}

.metric-tile.alert {
  background: linear-gradient(180deg, rgba(216,95,95,0.18), rgba(255,255,255,0.045));
}

.metric-tile small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric-tile strong {
  color: var(--ink);
  font-size: 46px;
  line-height: 1;
}

.metric-tile span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.section {
  padding: 58px 0;
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.section-head.compact {
  margin-bottom: 20px;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  display: grid;
  gap: 12px;
  min-height: 218px;
  padding: 18px;
  text-align: left;
  color: var(--ink);
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(48,182,166,0.34);
}

.service-card.active {
  color: var(--ink-dark);
  background: var(--panel-3);
  border-color: rgba(200,164,77,0.5);
}

.service-card strong {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.18;
}

.service-card small {
  color: inherit;
  opacity: 0.7;
  font-size: 13px;
}

.service-tag {
  width: fit-content;
  padding: 5px 8px;
  color: var(--gold);
  background: rgba(200,164,77,0.1);
  border: 1px solid rgba(200,164,77,0.18);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-card.active .service-tag {
  color: var(--ink-dark);
  background: rgba(11,15,20,0.06);
  border-color: rgba(11,15,20,0.12);
}

.sample-lab {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
  align-items: center;
  padding: 28px;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sample-lab h2 {
  margin: 12px 0;
}

.sample-lab p {
  margin-bottom: 0;
  color: var(--muted);
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sample-grid a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(7,9,13,0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 900;
}

.sample-grid a:hover {
  border-color: rgba(48,182,166,0.42);
  background: rgba(48,182,166,0.08);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 20px;
  align-items: stretch;
}

.instant-panel,
.result-panel,
.dash-tile {
  background: rgba(255,255,255,0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(0,0,0,0.18);
}

.instant-panel,
.result-panel {
  padding: 24px;
}

.diagnostic-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.diagnostic-form label,
.auth-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.diagnostic-form label:nth-child(4),
.diagnostic-form .btn {
  grid-column: 1 / -1;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(7,9,13,0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

input::file-selector-button {
  min-height: 34px;
  margin-right: 12px;
  color: var(--ink-dark);
  background: var(--gold);
  border: 0;
  border-radius: 6px;
  font-weight: 800;
}

input:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(48,182,166,0.14);
}

.result-panel {
  display: grid;
  gap: 18px;
}

.status-pill {
  width: fit-content;
  padding: 6px 9px;
  color: var(--teal);
  background: var(--teal-soft);
  border: 1px solid rgba(48,182,166,0.18);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-panel h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
}

.score-ring {
  display: grid;
  place-items: center;
  width: 154px;
  height: 154px;
  margin: 0 auto;
  border-radius: 50%;
  color: var(--ink);
  background:
    radial-gradient(circle at center, var(--bg) 0 58%, transparent 59%),
    conic-gradient(var(--teal) 0 72%, rgba(244,239,229,0.12) 72% 100%);
}

.score-ring span {
  margin-top: 12px;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.score-ring small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.result-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.result-list div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.result-list dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-list dd {
  margin: 4px 0 0;
  font-size: 14px;
}

.expert {
  margin-top: 20px;
}

.expert h2 {
  color: var(--ink);
}

.appointment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.appointment p,
.appointment .btn {
  grid-column: 1 / -1;
}

.slot {
  min-height: 50px;
  color: var(--ink);
  background: rgba(255,255,255,0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
}

.slot.active {
  color: var(--ink-dark);
  background: var(--gold);
}

.proof-flow {
  padding: 58px 0 14px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.flow-steps div {
  min-height: 150px;
  padding: 18px;
  background: rgba(255,255,255,0.045);
  border-right: 1px solid var(--line);
}

.flow-steps div:last-child {
  border-right: 0;
}

.flow-steps strong,
.flow-steps span {
  display: block;
}

.flow-steps strong {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.flow-steps span {
  color: var(--muted);
  font-size: 14px;
}

.dashboard {
  padding-bottom: 90px;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dash-tile {
  display: grid;
  gap: 8px;
  min-height: 166px;
  padding: 18px;
}

.dash-tile strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dash-tile span {
  color: var(--ink);
  font-size: 48px;
  font-weight: 900;
}

.dash-tile small {
  color: var(--muted);
  font-size: 13px;
}

.client-console {
  margin-top: 16px;
  padding: 18px;
  background: rgba(255,255,255,0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.client-console-head,
.client-dossier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.client-console-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.client-console-head strong {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-console-head span,
.empty-state {
  color: var(--muted);
  font-size: 13px;
}

.client-dossier-list {
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.client-dossier {
  min-height: 72px;
  padding: 12px;
  background: rgba(7,9,13,0.66);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.client-dossier strong,
.client-dossier span {
  display: block;
}

.client-dossier strong {
  font-size: 14px;
}

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

.client-dossier-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-dossier-actions a {
  color: var(--ink-dark);
  text-decoration: none;
  padding: 6px 9px;
  background: var(--gold);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.admin-page .section-head h1,
.legal-shell h1 {
  font-size: clamp(38px, 5vw, 64px);
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  background: rgba(255,255,255,0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-login label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-shell {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.legal-shell .brand {
  margin-bottom: 42px;
}

.legal-shell section {
  margin-top: 18px;
  padding: 22px;
  background: rgba(255,255,255,0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal-shell h2 {
  margin-bottom: 8px;
  font-size: 28px;
}

.legal-shell p {
  margin-bottom: 0;
  color: var(--muted);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.legal-nav a {
  color: var(--ink-dark);
  text-decoration: none;
  padding: 10px 12px;
  background: var(--gold);
  border-radius: var(--radius);
  font-weight: 900;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7,9,13,0.72);
  backdrop-filter: blur(12px);
}

.auth-modal[hidden] {
  display: none;
}

.auth-card {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(450px, 100%);
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-card h2 {
  margin-bottom: 0;
  font-size: 30px;
}

.auth-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-actions .demo-auth {
  grid-column: 1 / -1;
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  font-size: 20px;
}

@media (max-width: 1060px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-nav {
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .hero,
  .workspace,
  .market-strip,
  .expert,
  .command-section,
  .sample-lab {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .dash-grid,
  .command-grid,
  .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-steps div:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 680px) {
  main {
    width: min(100% - 24px, 1220px);
  }

  .hero {
    padding-top: 38px;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 390px;
  }

  .mission-row,
  .service-grid,
  .dash-grid,
  .diagnostic-form,
  .admin-login,
  .command-grid,
  .flow-steps,
  .appointment,
  .sample-grid {
    grid-template-columns: 1fr;
  }

  .client-console-head,
  .client-dossier,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .mission-row span,
  .flow-steps div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mission-row span:last-child,
  .flow-steps div:last-child {
    border-bottom: 0;
  }

  h1 {
    font-size: 40px;
  }
}

body.portal-home {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.98) 0%, rgba(7, 9, 13, 0.9) 42%, rgba(7, 9, 13, 0.48) 100%),
    linear-gradient(180deg, rgba(200, 164, 77, 0.1), transparent 260px),
    url("./global-proof-map.png") center right / cover fixed no-repeat,
    var(--bg);
  background-color: var(--bg);
}

body.portal-home::before {
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.02), rgba(7, 9, 13, 0.7)),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: auto, 78px 78px, 78px 78px;
}

.portal-header {
  background: rgba(5, 7, 11, 0.82);
}

.portal-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 8px 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(48, 182, 166, 0.12);
}

.portal-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.76fr);
  gap: clamp(30px, 6vw, 92px);
  align-items: center;
  min-height: calc(100svh - 76px);
  padding: clamp(54px, 8vh, 96px) 0 clamp(34px, 6vh, 72px);
}

.portal-copy {
  max-width: 760px;
}

.portal-copy h1 {
  margin: 20px 0 16px;
  font-size: clamp(54px, 8vw, 104px);
  line-height: 0.94;
}

.portal-copy .lead {
  max-width: 680px;
  color: rgba(244, 239, 229, 0.76);
  font-size: clamp(17px, 1.8vw, 21px);
}

.portal-actions {
  margin: 34px 0 0;
}

.portal-access-grid {
  display: grid;
  gap: 12px;
}

.portal-access {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 136px;
  padding: 18px;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  appearance: none;
  background: rgba(8, 12, 18, 0.78);
  border: 1px solid rgba(244, 239, 229, 0.14);
  border-left-width: 4px;
  border-radius: var(--radius);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.portal-access::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 42%);
  opacity: 0;
  transition: opacity 160ms ease;
}

.portal-access:hover {
  transform: translateY(-2px);
  background: rgba(11, 17, 25, 0.92);
}

.portal-access:hover::after {
  opacity: 1;
}

.portal-access small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portal-access strong {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.12;
}

.portal-access span {
  max-width: 34ch;
  color: rgba(244, 239, 229, 0.68);
  font-size: 13px;
  font-weight: 700;
}

.accent-gold {
  border-left-color: var(--gold);
}

.accent-teal {
  border-left-color: var(--teal);
}

.accent-blue {
  border-left-color: var(--blue);
}

.accent-red {
  border-left-color: var(--red);
}

.portal-footer-line {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(244, 239, 229, 0.14);
  border-radius: var(--radius);
  background: rgba(5, 7, 11, 0.68);
}

.portal-footer-line span {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 10px 12px;
  color: var(--muted);
  border-right: 1px solid rgba(244, 239, 229, 0.12);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-align: center;
  text-transform: uppercase;
}

.portal-footer-line span:last-child {
  border-right: 0;
}

@media (max-width: 1060px) {
  .portal-header {
    align-items: center;
    flex-flow: row wrap;
  }

  .portal-entry {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 54px;
  }

  .portal-access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body.portal-home {
    background:
      linear-gradient(180deg, rgba(7, 9, 13, 0.94) 0%, rgba(7, 9, 13, 0.84) 58%, rgba(7, 9, 13, 0.96) 100%),
      url("./global-proof-map.png") center top / auto 680px no-repeat,
      var(--bg);
  }

  .portal-header {
    gap: 12px;
  }

  .portal-status {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .portal-copy h1 {
    font-size: clamp(48px, 16vw, 70px);
  }

  .portal-actions,
  .portal-actions .btn,
  .portal-access-grid,
  .portal-footer-line {
    width: 100%;
  }

  .portal-actions .btn {
    flex: 1 1 210px;
  }

  .portal-access-grid,
  .portal-footer-line {
    grid-template-columns: 1fr;
  }

  .portal-footer-line span {
    border-right: 0;
    border-bottom: 1px solid rgba(244, 239, 229, 0.12);
  }

  .portal-footer-line span:last-child {
    border-bottom: 0;
  }
}
