:root {
  --navy: #0A1628;
  --navy-2: #10213A;
  --navy-3: #132A49;
  --ink: #182235;
  --muted: #667085;
  --line: rgba(10, 22, 40, 0.12);
  --line-light: rgba(255, 255, 255, 0.13);
  --gold: #B8974A;
  --gold-2: #D4B86A;
  --paper: #F7F4ED;
  --white: #FFFFFF;
  --soft: #EEF1F5;
  --success: #2F855A;
  --danger: #B42318;
  --shadow: 0 18px 45px rgba(10, 22, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  background: var(--white);
  color: var(--navy);
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand img {
  width: 184px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 650;
}

.nav-links a {
  padding: 10px 0;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--white);
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 4px auto;
}

.cta-small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 6px;
}

.cta-small:hover {
  border-color: var(--gold-2);
}

.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.hero.has-texture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/hero-texture.png") center/cover no-repeat;
  opacity: 0.08;
  mix-blend-mode: luminosity;
  pointer-events: none;
}

.hero-inner,
.section-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  min-height: 620px;
  display: grid;
  align-items: center;
  padding: 82px 0 68px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
}

.hero-grid-premium {
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.06;
}

h1 {
  font-size: clamp(42px, 5vw, 64px);
  max-width: 760px;
  font-weight: 720;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 730;
  color: var(--navy);
}

h3 {
  font-size: 22px;
  color: var(--navy);
}

.hero p.lead,
.lead {
  font-size: clamp(17px, 1.45vw, 20px);
  color: rgba(255, 255, 255, 0.72);
  max-width: 700px;
  margin-top: 22px;
}

.section-lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 760px;
  margin-top: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-actions {
  max-width: 670px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
  font-size: 14px;
  cursor: pointer;
}

.button.primary {
  background: var(--gold-2);
  color: var(--navy);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.24);
}

.button.dark {
  background: var(--navy);
  color: var(--white);
}

.button.ghost {
  border-color: var(--line);
  color: var(--navy);
  background: transparent;
}

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

.capital-system {
  position: relative;
  min-height: 472px;
  padding: 26px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    rgba(255, 255, 255, 0.045);
  background-size: 38px 38px, 38px 38px, auto;
  overflow: hidden;
}

.capital-system::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(212, 184, 106, 0.16);
  border-radius: 6px;
  pointer-events: none;
}

.capital-system::after {
  content: "";
  position: absolute;
  width: 1px;
  top: 18px;
  bottom: 18px;
  left: 31%;
  background: linear-gradient(transparent, rgba(212, 184, 106, 0.48), transparent);
  pointer-events: none;
}

.system-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.system-head span {
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.system-head strong {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gate-flow {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.gate-flow::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 7%;
  right: 7%;
  height: 1px;
  background: rgba(212, 184, 106, 0.36);
}

.gate-node {
  position: relative;
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 0;
}

.gate-node span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.64);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.gate-node strong {
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.25;
}

.gate-node.raw span {
  border-style: dashed;
  color: rgba(255, 255, 255, 0.44);
}

.gate-node.capital span {
  border-color: rgba(212, 184, 106, 0.76);
  color: var(--gold-2);
}

.gate-node.capital strong {
  color: var(--gold-2);
}

.capital-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 36px;
  padding: 16px 0 0;
}

.stack-layer {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 14px;
  align-items: center;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 22, 40, 0.68);
}

.stack-layer span {
  color: var(--white);
  font-size: 13px;
  font-weight: 760;
}

.stack-layer em {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-style: normal;
}

.layer-1 { margin-left: 0; }
.layer-2 { margin-left: 22px; }
.layer-3 { margin-left: 44px; }
.layer-4 {
  margin-left: 66px;
  border-color: rgba(212, 184, 106, 0.42);
}

.system-matrix {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.08);
}

.system-matrix span {
  min-height: 24px;
  background: rgba(10, 22, 40, 0.66);
}

.system-matrix span:nth-child(2),
.system-matrix span:nth-child(5),
.system-matrix span:nth-child(8) {
  background: rgba(184, 151, 74, 0.16);
}

.home-page {
  background: #F4F1EA;
}

.home-hero .hero-inner {
  min-height: 560px;
  padding: 64px 0 58px;
}

.home-hero .hero-grid {
  grid-template-columns: minmax(0, 0.96fr) minmax(390px, 0.86fr);
  gap: clamp(38px, 5vw, 72px);
}

.home-hero .hero-copy {
  max-width: 670px;
}

.home-hero h1 {
  max-width: 650px;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.02;
}

.home-hero .lead {
  max-width: 630px;
  margin-top: 18px;
}

.home-hero .hero-actions {
  margin-top: 24px;
}

.home-gates {
  position: relative;
  min-width: 0;
}

.gates-frame {
  position: relative;
  min-height: 430px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    rgba(255, 255, 255, 0.035);
  background-size: 34px 34px, 34px 34px, auto;
  overflow: hidden;
}

.gates-frame::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(212, 184, 106, 0.15);
  border-radius: 6px;
  pointer-events: none;
}

.gates-frame::after {
  content: "";
  position: absolute;
  top: 96px;
  right: 42px;
  bottom: 62px;
  width: 1px;
  background: linear-gradient(transparent, rgba(212, 184, 106, 0.5), transparent);
  pointer-events: none;
}

.gates-header,
.gates-core,
.gates-matrix,
.gates-footer {
  position: relative;
  z-index: 1;
}

.gates-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.gates-header span {
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gates-header strong {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-align: right;
  text-transform: uppercase;
}

.gates-core {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(138px, 0.92fr);
  gap: 20px;
  margin-top: 22px;
}

.gate-list {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.gate-list::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 11px;
  width: 1px;
  background: rgba(212, 184, 106, 0.32);
}

.gate-item {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 13px 14px 13px 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 22, 40, 0.6);
}

.gate-item::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 6px;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(212, 184, 106, 0.7);
  background: var(--navy);
  transform: rotate(45deg);
}

.gate-item span {
  color: var(--gold-2);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.gate-item strong {
  color: var(--white);
  font-size: 17px;
  line-height: 1.08;
}

.gate-item em {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.gate-item-capital {
  border-color: rgba(212, 184, 106, 0.38);
  background: rgba(184, 151, 74, 0.1);
}

.dossier-panel {
  position: relative;
  min-height: 326px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(212, 184, 106, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.dossier-panel > span {
  display: block;
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dossier-lines {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.dossier-lines i {
  display: block;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.dossier-lines i:nth-child(1),
.dossier-lines i:nth-child(4) {
  width: 76%;
}

.dossier-lines i:nth-child(2) {
  width: 54%;
  background: rgba(212, 184, 106, 0.54);
}

.dossier-lines i:nth-child(3) {
  width: 88%;
}

.dossier-lines i:nth-child(5) {
  width: 64%;
}

.connection-map {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.connection-map b {
  position: relative;
  display: block;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 22, 40, 0.45);
}

.connection-map b::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(212, 184, 106, 0.7);
  background: var(--navy);
  transform: translateX(-50%) rotate(45deg);
}

.gates-matrix {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
}

.gates-matrix span {
  min-height: 18px;
  background: rgba(10, 22, 40, 0.68);
}

.gates-matrix span:nth-child(3),
.gates-matrix span:nth-child(8),
.gates-matrix span:nth-child(12) {
  background: rgba(184, 151, 74, 0.18);
}

.gates-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gates-footer i {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 184, 106, 0.2), rgba(212, 184, 106, 0.72), rgba(212, 184, 106, 0.2));
}

.home-problem {
  border-bottom: 1px solid rgba(10, 22, 40, 0.08);
}

.problem-layout h2 {
  max-width: 560px;
}

.problem-copy .section-lead {
  max-width: 640px;
}

.diagnostic-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  border: 1px solid rgba(10, 22, 40, 0.1);
  background: rgba(10, 22, 40, 0.1);
}

.diagnostic-strip span {
  min-height: 54px;
  padding: 15px 14px;
  background: #FBFAF7;
  color: rgba(10, 22, 40, 0.72);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.capital-view-section {
  position: relative;
  background:
    linear-gradient(90deg, rgba(10, 22, 40, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(10, 22, 40, 0.035) 1px, transparent 1px),
    #F3EFE6;
  background-size: 72px 72px, 72px 72px, auto;
}

.capital-view-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.capital-view {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(42px, 6vw, 76px);
  align-items: start;
}

.capital-view-intro h2 {
  max-width: 520px;
}

.capital-view-intro .section-lead {
  max-width: 540px;
}

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

.capital-module {
  position: relative;
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(10, 22, 40, 0.12);
  background: rgba(255, 255, 255, 0.68);
}

.capital-module::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24px;
  width: 46px;
  height: 1px;
  background: var(--gold);
}

.capital-module span {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.16em;
  margin-bottom: 30px;
}

.capital-module h3 {
  max-width: 250px;
  font-size: 24px;
  line-height: 1.08;
}

.capital-module p {
  max-width: 330px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

.home-routes {
  position: relative;
  overflow: hidden;
}

.home-routes::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 54px 54px;
  pointer-events: none;
}

.route-grid {
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.route-panel.card.dark {
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.035);
  padding: 30px;
}

.route-panel.card.dark:last-child {
  border-right: 0;
}

.route-panel-featured.card.dark {
  background: rgba(255, 255, 255, 0.065);
}

.route-panel h3 {
  font-size: 25px;
  line-height: 1.12;
}

.route-panel p {
  margin-bottom: 28px;
}

.home-principle .notice {
  border: 1px solid rgba(10, 22, 40, 0.1);
  border-left: 3px solid var(--gold);
  background: #FAF8F3;
  padding: 24px;
}

.home-next {
  background: #F4F1EA;
}

.home-next .profile-card {
  border-top: 2px solid rgba(184, 151, 74, 0.58);
  background: rgba(255, 255, 255, 0.78);
}

.panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 28px;
}

.panel.light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.panel h3 {
  color: inherit;
}

.panel-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.panel-list div {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.panel.light .panel-list div {
  border-top-color: var(--line);
}

.kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.section {
  padding: 86px 0;
}

.section.white {
  background: var(--white);
}

.section.navy {
  background: var(--navy);
  color: var(--white);
}

.section.navy h2,
.section.navy h3 {
  color: var(--white);
}

.section.navy .section-lead,
.section.navy p,
.section.navy li {
  color: rgba(255, 255, 255, 0.74);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: start;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 18px;
}

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

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

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
}

.card.dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.card.dark h3,
.card.dark strong {
  color: var(--white);
}

.card p,
.card li {
  color: var(--muted);
}

.card.dark p,
.card.dark li {
  color: rgba(255, 255, 255, 0.74);
}

.number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: rgba(184, 151, 74, 0.13);
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 18px;
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}

.plain-list li {
  display: flex;
  gap: 10px;
  color: var(--muted);
}

.plain-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 9px;
  flex: 0 0 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

.hero .plain-list li,
.hero .plain-list li p,
.hero .panel p,
.section.navy .plain-list li {
  color: rgba(255, 255, 255, 0.76);
}

.route-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.route-table th,
.route-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.route-table th {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.route-table tr:last-child td {
  border-bottom: 0;
}

.profile-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.profile-card .button {
  margin-top: auto;
}

.portrait {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
  width: 100%;
  border-radius: 8px;
  background: var(--navy);
}

.form-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
}

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

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--navy);
  font-size: 13px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(10, 22, 40, 0.18);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  padding: 12px 13px;
  font: inherit;
}

textarea {
  min-height: 116px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(184, 151, 74, 0.32);
  border-color: var(--gold);
}

.form-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}

.form-status {
  min-height: 22px;
  font-size: 14px;
  font-weight: 700;
  margin-top: 12px;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--danger);
}

.footer {
  background: #071120;
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 34px;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 36px;
}

.footer img {
  width: 176px;
}

.footer h4 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 13px;
}

.footer a:hover {
  color: var(--white);
}

.footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  color: var(--muted);
  background: var(--white);
}

.section.navy .badge {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.74);
}

.compact-hero .hero-inner {
  min-height: 470px;
}

.lp-header .nav-links {
  display: none;
}

.notice {
  border-left: 3px solid var(--gold);
  background: rgba(184, 151, 74, 0.1);
  padding: 18px;
  border-radius: 6px;
  color: var(--ink);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 0;
  }

  .cta-small {
    justify-content: center;
    margin-top: 10px;
  }

  .hero-grid,
  .split,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .home-hero .hero-grid,
  .capital-view {
    grid-template-columns: 1fr;
  }

  .home-hero .hero-inner {
    min-height: auto;
    padding: 58px 0 50px;
  }

  .home-hero .hero-copy,
  .home-hero h1,
  .home-hero .lead {
    max-width: 680px;
  }

  .home-gates {
    max-width: 680px;
  }

  .capital-view-intro h2,
  .capital-view-intro .section-lead {
    max-width: 680px;
  }

  .route-panel.card.dark {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  }

  .route-panel.card.dark:last-child {
    border-bottom: 0;
  }

  .hero-inner {
    min-height: auto;
    padding: 70px 0 54px;
  }

  .capital-system {
    min-height: auto;
    padding: 22px;
  }

  .gate-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 18px;
  }

  .gate-flow::before {
    display: none;
  }

  .gates-core {
    grid-template-columns: 1fr;
  }

  .dossier-panel {
    min-height: 230px;
  }

  .capital-stack {
    margin-top: 28px;
  }

  .layer-1,
  .layer-2,
  .layer-3,
  .layer-4 {
    margin-left: 0;
  }

  .section {
    padding: 66px 0;
  }
}

@media (max-width: 700px) {
  .brand img {
    width: 158px;
  }

  .grid-2,
  .field-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner,
  .section-inner,
  .nav-wrap,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .hero-inner {
    padding: 52px 0 46px;
  }

  .panel,
  .card,
  .form-box {
    padding: 22px;
  }

  h1 {
    font-size: clamp(34px, 10.5vw, 46px);
  }

  .hero p.lead,
  .lead {
    font-size: 16px;
    margin-top: 18px;
  }

  .actions {
    gap: 10px;
    margin-top: 24px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .capital-system {
    margin-top: 8px;
  }

  .system-head {
    padding-bottom: 16px;
  }

  .system-head {
    flex-direction: column;
    gap: 5px;
  }

  .gate-node span {
    width: 38px;
    height: 38px;
  }

  .gate-node strong {
    font-size: 9px;
  }

  .stack-layer {
    grid-template-columns: 1fr;
    gap: 2px;
    min-height: auto;
  }

  .system-matrix {
    display: none;
  }

  .home-hero .hero-inner {
    padding: 44px 0 40px;
  }

  .home-hero h1 {
    font-size: clamp(32px, 9.5vw, 42px);
  }

  .home-hero .lead {
    line-height: 1.48;
  }

  .home-hero .eyebrow {
    margin-bottom: 16px;
  }

  .home-hero .hero-actions {
    gap: 8px;
    margin-top: 20px;
  }

  .home-hero .hero-actions .button {
    min-height: 42px;
    padding: 10px 13px;
    font-size: 13px;
  }

  .home-gates {
    margin-top: 4px;
  }

  .gates-frame {
    min-height: auto;
    padding: 18px;
  }

  .gates-frame::after,
  .gates-matrix {
    display: none;
  }

  .gates-header {
    flex-direction: column;
    gap: 5px;
    padding-bottom: 14px;
  }

  .gates-header strong {
    text-align: left;
  }

  .gate-item {
    min-height: auto;
  }

  .dossier-panel {
    min-height: 176px;
  }

  .connection-map {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .connection-map b {
    min-height: 36px;
  }

  .diagnostic-strip,
  .capital-modules {
    grid-template-columns: 1fr;
  }

  .capital-module {
    min-height: auto;
    padding: 22px;
  }

  .capital-module span {
    margin-bottom: 22px;
  }

  .route-panel.card.dark {
    padding: 24px;
  }
}
