:root {
  --black: #070707;
  --ink: #141414;
  --muted: #66625d;
  --paper: #f6f3ed;
  --white: #fffdfa;
  --line: rgba(20, 20, 20, 0.14);
  --gold: #c79a47;
  --copper: #9d5d36;
  --green: #21483c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 253, 250, 0.92);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: var(--gold);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 34px);
  color: color-mix(in srgb, currentColor 82%, transparent);
  font-size: 0.92rem;
  font-weight: 650;
}

.nav-links a,
.text-link {
  position: relative;
}

.nav-links a::after,
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 6px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-cta {
  border: 1px solid color-mix(in srgb, currentColor 32%, transparent);
  font-size: 0.9rem;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--black);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.72) 34%, rgba(0, 0, 0, 0.18) 68%, rgba(0, 0, 0, 0.42) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.46), transparent 28%, rgba(0, 0, 0, 0.62));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  padding-top: 76px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 730px;
  margin-bottom: 22px;
  font-size: clamp(3.05rem, 7vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 30px;
  color: rgba(255, 253, 250, 0.82);
  font-size: clamp(1.04rem, 1.4vw, 1.28rem);
}

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

.button-primary {
  color: var(--black);
  background: var(--gold);
  box-shadow: 0 12px 26px rgba(199, 154, 71, 0.25);
}

.button-secondary {
  border: 1px solid rgba(255, 253, 250, 0.32);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.button-secondary.dark {
  border-color: rgba(255, 253, 250, 0.25);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(720px, 100%);
  margin: 46px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 250, 0.15);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.13);
  backdrop-filter: blur(18px);
}

.trust-strip div {
  padding: 18px;
  background: rgba(0, 0, 0, 0.18);
}

.trust-strip dt {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 850;
}

.trust-strip dd {
  margin: 4px 0 0;
  color: rgba(255, 253, 250, 0.72);
  font-size: 0.87rem;
}

.band {
  background: var(--paper);
}

.section-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 132px) 0;
}

.intro-grid,
.proof-grid,
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: start;
}

.intro p:last-child,
.broker-copy p,
.proof-points p,
.apply p {
  color: var(--muted);
  font-size: 1.06rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.program-card {
  min-height: 310px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.program-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 70px;
  border-radius: 50%;
  color: var(--black);
  background: color-mix(in srgb, var(--gold) 72%, white);
  font-weight: 850;
}

.program-card p,
.timeline p,
.faq p,
.criteria-panel li {
  color: var(--muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  padding: 56px clamp(18px, 4vw, 56px) 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .brand {
  color: var(--white);
  margin-bottom: 16px;
  display: inline-flex;
}

.footer-brand .brand-mark {
  background: var(--gold);
}

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 14px 0 0;
  max-width: 260px;
}

.footer-col-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin: 0 0 14px;
}

.footer-contact ul,
.footer-links-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

.footer-contact li,
.footer-links-col li {
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease;
}

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

.footer-bar {
  padding: 20px clamp(18px, 4vw, 56px);
}

.footer-bar p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.2);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 42px 0 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-weight: 850;
}

.split {
  align-items: center;
}

.broker-copy {
  max-width: 640px;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--green);
  font-weight: 850;
}

.broker-button {
  margin-top: 12px;
}

.criteria-panel {
  padding: clamp(26px, 4vw, 44px);
  color: var(--white);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(33, 72, 60, 0.95), rgba(10, 10, 10, 0.98)),
    var(--black);
  box-shadow: var(--shadow);
}

.criteria-panel h3 {
  font-size: 1.45rem;
}

.criteria-panel ul {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.criteria-panel li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 253, 250, 0.76);
}

.criteria-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.proof-points {
  display: grid;
  gap: 18px;
}

.proof-points p {
  margin: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.proof-points strong {
  color: var(--ink);
}

.faq-list {
  display: grid;
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  padding: 24px 0;
  font-size: 1.1rem;
  font-weight: 800;
}

details p {
  max-width: 840px;
  margin-bottom: 24px;
}

.apply {
  padding: 0 18px 18px;
  background: var(--white);
}

.apply-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: start;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(54px, 8vw, 88px);
  overflow: hidden;
  color: var(--white);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(7, 7, 7, 0.96), rgba(33, 72, 60, 0.92)),
    var(--black);
}

.apply-inner h2 {
  max-width: 820px;
}

.apply-inner p:not(.section-kicker) {
  max-width: 720px;
  color: rgba(255, 253, 250, 0.76);
}

.funding-form,
.broker-form {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 253, 250, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.08);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
}

.broker-form {
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(33, 72, 60, 0.95), rgba(10, 10, 10, 0.98)),
    var(--black);
}

.broker-form h3 {
  margin-bottom: 20px;
  font-size: 1.45rem;
}

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

.broker-form-grid {
  grid-template-columns: 1fr;
}

.funding-form label,
.broker-form label {
  display: grid;
  gap: 8px;
}

.funding-form span,
.broker-form span {
  color: rgba(255, 253, 250, 0.78);
  font-size: 0.86rem;
  font-weight: 800;
}

.funding-form input,
.funding-form select,
.broker-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 253, 250, 0.18);
  border-radius: 6px;
  padding: 0 14px;
  color: var(--white);
  background: rgba(7, 7, 7, 0.48);
  font: inherit;
}

.funding-form input::placeholder,
.broker-form input::placeholder {
  color: rgba(255, 253, 250, 0.46);
}

.funding-form input:focus,
.funding-form select:focus,
.broker-form input:focus {
  outline: 2px solid color-mix(in srgb, var(--gold) 80%, white);
  outline-offset: 2px;
}

.funding-form select option {
  color: var(--ink);
}

.form-submit {
  width: 100%;
  margin-top: 18px;
  border: 0;
  cursor: pointer;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.thanks-page {
  min-height: 100vh;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(7, 7, 7, 0.96), rgba(33, 72, 60, 0.92)),
    var(--black);
}

.thanks-shell {
  width: min(920px, calc(100% - 36px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  align-content: center;
  gap: 42px;
}

.thanks-brand {
  color: var(--white);
}

.thanks-panel {
  max-width: 760px;
}

.thanks-panel p:not(.section-kicker) {
  max-width: 620px;
  color: rgba(255, 253, 250, 0.76);
  font-size: 1.08rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

.bff-easter-egg {
  position: fixed;
  z-index: 60;
  inset: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
  background: rgba(7, 7, 7, 0.72);
  animation: bff-egg-fade 7s ease forwards;
}

.bff-easter-flag {
  width: min(260px, 64vw);
  height: 170px;
  border-radius: 8px;
  background: linear-gradient(135deg, #090909, #202020);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  transform-origin: left center;
  animation: bff-flag-wave 950ms ease-in-out infinite alternate;
}

.bff-easter-flag::before {
  content: "BLACK FLAG FUNDING";
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--gold);
  font-weight: 900;
}

@keyframes bff-egg-fade {
  0%,
  82% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes bff-flag-wave {
  from {
    transform: perspective(700px) rotateY(-8deg) skewY(1deg);
  }
  to {
    transform: perspective(700px) rotateY(8deg) skewY(-1deg);
  }
}

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

  .hero {
    min-height: 92vh;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.46)),
      linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.72));
  }

  .program-grid,
  .timeline,
  .intro-grid,
  .proof-grid,
  .split,
  .apply-inner {
    grid-template-columns: 1fr;
  }

  .program-card {
    min-height: 250px;
  }

  .program-icon {
    margin-bottom: 36px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand span:last-child {
    max-width: 156px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-cta {
    min-height: 40px;
    padding: 0 12px;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding-top: 92px;
    padding-bottom: 34px;
  }

  h1 {
    font-size: clamp(2.75rem, 15vw, 4.35rem);
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .section-shell {
    width: calc(100% - 32px);
    padding: 62px 0;
  }

  .section-heading {
    display: block;
  }

  .apply {
    padding: 0 12px 12px;
  }

  .apply-inner {
    padding: 38px 22px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 18px 32px;
  }

  .footer-tagline {
    max-width: 100%;
  }
}
