/* ============================================================
   TBP CORRIDOR TRUST BANK — DESIGN TOKENS
   ============================================================ */
:root {
  /* Color */
  --ink: #070D17;          /* deepest sections */
  --navy: #0B1729;         /* base institutional navy */
  --navy-soft: #122439;    /* lighter navy for cards on navy bg */
  --gold: #C9A35D;         /* champagne / credibility accent */
  --gold-bright: #E0BC7C;
  --teal: #3FB8AF;         /* corridor / movement accent */
  --teal-dim: #2C8B85;
  --paper: #F5F3EE;        /* light section background */
  --paper-card: #FFFFFF;
  --slate: #8B97A8;        /* secondary text on dark */
  --ink-soft: #4A5568;     /* secondary text on light */
  --line: rgba(201, 163, 93, 0.25);
  --line-dark: rgba(255,255,255,0.08);

  /* Type */
  --font-display: 'Source Serif 4', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1180px;
  --container-narrow: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

a { color: inherit; text-decoration: none; }
sup { font-size: 0.55em; top: -0.8em; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ============================================================
   SIGNATURE ELEMENT — CORRIDOR LINE (runs the length of the page)
   ============================================================ */
.corridor-line-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}
.corridor-line { width: 100%; height: 100%; overflow: visible; }
.corridor-line path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-dasharray: 1 14;
  stroke-linecap: round;
  animation: corridor-travel 14s linear infinite;
}
@keyframes corridor-travel {
  to { stroke-dashoffset: -300; }
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-dim);
  margin: 0 0 1.1rem;
  display: inline-block;
  position: relative;
  padding-left: 1.6rem;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 1.1rem; height: 1px;
  background: var(--teal-dim);
  transform: translateY(-50%);
}
.eyebrow-light { color: var(--teal); }
.eyebrow-light::before { background: var(--teal); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.18;
  margin: 0 0 1.6rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.section-title-light { color: var(--paper); }

.section-lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 2.6rem;
}
.section-lede-after { margin-top: 2.8rem; margin-bottom: 0; }

.section-body p, .section-body-light p {
  font-size: 1.08rem;
  margin: 0 0 1.2rem;
  max-width: 640px;
}
.section-body { color: var(--ink-soft); }
.section-body-light { color: var(--slate); }
.section-body-light p { color: var(--slate); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.section { position: relative; z-index: 1; padding: 6.5rem 1.5rem; }
.section-inner { max-width: var(--container); margin: 0 auto; }
.section-inner.narrow { max-width: var(--container-narrow); }
.section-inner.center { text-align: center; }
.section-inner.center .section-body-light { margin: 0 auto; }

.section-light { background: var(--paper); }
.section-navy { background: var(--navy); }
.section-deep { background: var(--ink); }
.section-stub { padding: 5rem 1.5rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn-primary {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-primary:hover { background: var(--navy); color: var(--paper); }

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: var(--gold-bright); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.3);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.play-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 13, 23, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-right: auto;
}
.wordmark-main {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--paper);
  letter-spacing: 0.02em;
}
.wordmark-sub {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
}
.main-nav {
  display: flex;
  gap: 1.8rem;
}
.main-nav a {
  font-size: 0.88rem;
  color: var(--slate);
  transition: color 0.2s ease;
  position: relative;
}
.main-nav a:hover { color: var(--paper); }

.nav-cta { border-color: var(--gold); color: var(--gold); flex-shrink: 0; }
.nav-cta:hover { background: var(--gold); color: var(--ink); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--paper);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0 1.5rem 1.5rem;
  gap: 1rem;
}
.mobile-nav a {
  color: var(--slate);
  font-size: 0.95rem;
  padding: 0.4rem 0;
}
.mobile-nav .btn { margin-top: 0.5rem; align-self: flex-start; }

@media (max-width: 880px) {
  .main-nav, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .site-header.nav-open .mobile-nav { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--ink) 0%, var(--navy) 55%, var(--navy) 100%);
  padding: 7rem 1.5rem 6rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 600px 300px at 50% 0%, rgba(63,184,175,0.10), transparent),
    radial-gradient(ellipse 500px 260px at 85% 90%, rgba(201,163,93,0.08), transparent);
  pointer-events: none;
}
.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  color: var(--paper);
  line-height: 1.08;
  margin: 0 0 1.2rem;
  letter-spacing: -0.01em;
}
.hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 2rem;
}
.hero-intro {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 600px;
  margin: 0 auto 2.6rem;
}
.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}
.hero-trust-statement {
  font-size: 0.82rem;
  color: rgba(139,151,168,0.7);
  max-width: 460px;
  margin: 0 auto;
  font-style: italic;
}

.hero-route {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 4.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--line);
}
.route-node {
  flex: 1;
  text-align: center;
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  animation: node-pulse 3s ease-in-out infinite;
  animation-delay: var(--delay);
}
.route-node::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  margin: 0 auto 0.6rem;
}
@keyframes node-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@media (max-width: 640px) {
  .hero-route { gap: 0.5rem; }
  .route-node span { display: none; }
}

/* ============================================================
   SECTION 2 — WHY THIS IS DIFFERENT
   ============================================================ */
.not-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2.5rem;
}
.not-grid-label {
  color: var(--slate);
  margin: 0 0 1.2rem;
  font-size: 1.02rem;
}
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}
.chip-list li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate);
  border: 1px solid var(--line-dark);
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
}
.not-grid-note {
  color: var(--slate);
  font-size: 0.98rem;
  margin: 0;
}
.question-card {
  background: var(--navy-soft);
  border-left: 2px solid var(--gold);
  padding: 2.2rem;
  border-radius: 0 4px 4px 0;
}
.question-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--paper);
  margin: 0;
  font-style: italic;
}

@media (max-width: 800px) {
  .not-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   SECTION 3 — ECOSYSTEM GRID
   ============================================================ */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 1rem;
}
.ecosystem-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--paper-card);
  border: 1px solid rgba(11,23,41,0.08);
  border-radius: 4px;
  padding: 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.ecosystem-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}
.ecosystem-card-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dim);
}
.ecosystem-card-name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy);
}

@media (max-width: 880px) {
  .ecosystem-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ecosystem-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTION 4 — HOW IT WORKS
   ============================================================ */
.how-layout {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1rem;
  margin-top: 3rem;
  max-width: 560px;
}
.how-route {
  position: relative;
}
.how-route svg {
  position: absolute;
  left: 19px; top: 0;
  width: 2px; height: 100%;
}
.how-route svg path {
  stroke: var(--teal);
  stroke-width: 2;
  fill: none;
  opacity: 0.4;
}
.how-route-node {
  position: absolute;
  left: 14px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--teal);
  transform: translateY(-50%);
}
.how-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.how-list li { padding: 0.55rem 0; }
.how-term {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--paper);
}
.how-footer {
  margin-top: 3rem;
  font-size: 1.2rem;
  color: var(--slate);
}
.how-footer strong { color: var(--gold); font-weight: 600; }

/* ============================================================
   SECTION 5 — PILLARS ROUTE
   ============================================================ */
.pillars-route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.pillars-line {
  position: absolute;
  top: 7px;
  left: 0; width: 100%; height: 2px;
  z-index: 0;
}
.pillars-line path {
  stroke: var(--line);
  stroke-width: 2;
  stroke-dasharray: 2 8;
}
.pillar {
  position: relative;
  z-index: 1;
  padding-top: 2.2rem;
}
.pillar-node {
  position: absolute;
  top: 0; left: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--gold);
}
.pillar-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
  color: var(--navy);
}
.pillar-desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .pillars-route { grid-template-columns: 1fr; gap: 2rem; }
  .pillars-line { display: none; }
  .pillar { padding-top: 0; padding-left: 2.2rem; }
  .pillar-node { top: 4px; left: 0; }
}

/* ============================================================
   FUTURE INSTITUTION CLOSE
   ============================================================ */
.closing-line {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2.5rem;
}

/* ============================================================
   REGISTER FORM
   ============================================================ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 1rem;
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}
.req { color: var(--teal-dim); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(11,23,41,0.18);
  border-radius: 3px;
  background: var(--paper-card);
  color: var(--navy);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}
.field textarea { resize: vertical; }

.honeypot { position: absolute; left: -9999px; opacity: 0; }

.form-submit { margin-top: 2rem; }
.form-status {
  margin-top: 1rem;
  font-size: 0.92rem;
}
.form-status.success { color: #1f7a4d; }
.form-status.error { color: #b3401f; }

@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--slate);
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem 1.5rem 2.5rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand { display: flex; flex-direction: column; line-height: 1.2; }
.footer-brand .wordmark-main { color: var(--paper); font-size: 1.2rem; }
.footer-nav {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.footer-nav a { font-size: 0.85rem; color: var(--slate); }
.footer-nav a:hover { color: var(--gold); }

.footer-disclaimer {
  max-width: 760px;
  margin: 2.2rem 0;
  font-size: 0.8rem;
  color: rgba(139,151,168,0.7);
  line-height: 1.7;
}

.footer-closing {
  margin: 2.5rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  text-align: center;
}
.footer-closing-main {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--paper);
  margin: 0 0 0.5rem;
}
.footer-closing-sub {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.footer-bottom {
  text-align: center;
  font-size: 0.78rem;
  margin-top: 2rem;
  color: rgba(139,151,168,0.6);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7,13,23,0.85);
}
.modal-panel {
  position: relative;
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3rem 2rem;
  max-width: 600px;
  width: 90%;
  text-align: center;
}
.modal-close {
  position: absolute;
  top: 0.8rem; right: 1rem;
  background: none;
  border: none;
  color: var(--slate);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--paper); }
.modal-video-placeholder p { color: var(--slate); margin: 0.3rem 0; }
.modal-video-placeholder p:first-child { color: var(--paper); font-size: 1.1rem; font-family: var(--font-display); }
.modal-video-sub { font-size: 0.85rem; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ============================================================
   RESPONSIVE — HERO / GENERAL
   ============================================================ */
@media (max-width: 600px) {
  .section { padding: 4.5rem 1.25rem; }
  .hero { padding: 5.5rem 1.25rem 4rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
}
