:root {
  --navy: #07111c;
  --navy-soft: #0b1724;
  --ink: #111820;
  --paper: #f3f5f7;
  --white: #ffffff;
  --blue: #1f6feb;
  --blue-dark: #185fc9;
  --text-light: #f5f7fa;
  --muted-light: #aab4c2;
  --muted-dark: #5f6976;
  --line-light: #d9dfe6;
  --line-dark: rgba(230, 237, 246, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-light);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  background: var(--navy);
  text-rendering: optimizeLegibility;
}

::selection {
  color: #fff;
  background: rgba(31, 111, 235, 0.72);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(31, 111, 235, 0.3);
  outline-offset: 3px;
}

button,
input,
textarea {
  font: inherit;
}

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

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

h1 {
  font-size: 4.75rem;
  font-weight: 540;
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  font-size: 3.4rem;
  font-weight: 540;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  font-size: 1.55rem;
  font-weight: 580;
  line-height: 1.2;
  letter-spacing: 0;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 116px 0;
}

section[id] {
  scroll-margin-top: 88px;
}

.nav-wrap {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(var(--max), calc(100% - 48px));
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 9px 8px 18px;
  border: 1px solid rgba(230, 237, 246, 0.14);
  border-radius: 6px;
  background: rgba(7, 17, 28, 0.94);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

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

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #dbe2ea;
  font-size: 0.82rem;
  font-weight: 560;
}

.nav-links a:not(.nav-cta) {
  opacity: 0.78;
  transition: opacity 160ms ease;
}

.nav-links a:not(.nav-cta):hover {
  opacity: 1;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--blue);
  border-radius: 5px;
  color: #fff;
  background: var(--blue);
  font-weight: 650;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nav-cta {
  min-height: 36px;
  padding: 0 18px;
}

.button {
  min-height: 50px;
  padding: 0 21px;
  font-size: 0.91rem;
}

.nav-cta:hover,
.button:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.button-icon {
  display: inline;
  width: auto;
  height: auto;
  color: inherit;
  background: transparent;
  font-size: 1rem;
  line-height: 1;
}

.menu-button {
  display: none;
}

.hero {
  display: flex;
  min-height: 790px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 152px 0 62px;
  border-bottom: 1px solid var(--line-dark);
  background: var(--navy);
}

.hero-inner {
  max-width: 1040px;
  text-align: center;
  animation: introIn 620ms ease both;
}

.hero h1 {
  max-width: 990px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 720px;
  margin: 26px auto 32px;
  color: var(--muted-light);
  font-size: 1.15rem;
  line-height: 1.65;
}

.hero-logos {
  margin-top: 64px;
}

.logo-marquee {
  width: 100%;
  overflow: hidden;
}

.logo-track {
  display: flex;
  width: max-content;
  animation: logoLoop 26s linear infinite;
  will-change: transform;
}

.logo-group {
  display: flex;
  width: max-content;
  flex: 0 0 auto;
  align-items: center;
  gap: 46px;
  padding-right: 46px;
}

.logo-group img {
  display: block;
  width: auto;
  height: 28px;
  max-width: none;
  max-height: none;
  flex: 0 0 auto;
  margin: 0;
  opacity: 0.72;
  filter: grayscale(1);
}

.logo-group img[src*="vayner"] {
  height: 22px;
}

.logo-group img[src*="tai-lopez"] {
  height: 28px;
}

.logo-group img[src*="bjku"] {
  height: 38px;
}

.logo-group img[src*="banks-capital"] {
  height: 25px;
}

@keyframes logoLoop {
  to {
    transform: translateX(-25%);
  }
}

.section-label {
  margin-bottom: 26px;
  color: #416d9e;
  font-size: 0.7rem;
  font-weight: 720;
  text-transform: uppercase;
}

.section-intro {
  margin-bottom: 62px;
}

.section-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  align-items: end;
  gap: 82px;
}

.section-intro-grid > p,
.model-lede {
  max-width: 560px;
  padding-bottom: 4px;
  color: var(--muted-dark);
  font-size: 1rem;
  line-height: 1.72;
}

.ceiling-section {
  color: var(--ink);
  background: var(--paper);
}

.ceiling-lede {
  max-width: 780px;
  margin-top: 24px;
  color: var(--muted-dark);
  font-size: 1rem;
  line-height: 1.72;
}

.problem-list {
  border-top: 1px solid var(--line-light);
}

.problem-row {
  display: grid;
  grid-template-columns: 56px minmax(240px, 0.72fr) minmax(360px, 1.28fr);
  gap: 34px;
  padding: 42px 0 46px;
  border-bottom: 1px solid var(--line-light);
}

.row-number,
.pillar-index {
  color: #6581a1;
  font-size: 0.72rem;
  font-weight: 700;
}

.problem-row h3,
.pillar h3 {
  max-width: 320px;
}

.row-copy,
.pillar-copy {
  max-width: 640px;
  color: var(--muted-dark);
  font-size: 0.94rem;
  line-height: 1.75;
}

.row-copy p + p,
.pillar-copy p + p,
.model-lede p + p {
  margin-top: 15px;
}

.model-section {
  color: var(--ink);
  border-top: 1px solid #e2e6eb;
  background: var(--white);
}

.model-section .section-intro-grid {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 24px;
}

.model-section .model-lede {
  max-width: 780px;
  padding-bottom: 0;
}

.model-lede p + p {
  color: #2e3945;
}

.pillar-list {
  border-top: 1px solid var(--line-light);
}

.pillar {
  display: grid;
  min-height: 240px;
  grid-template-columns: 56px minmax(240px, 0.72fr) minmax(360px, 1.28fr);
  gap: 34px;
  padding: 44px 0 48px;
  border-bottom: 1px solid var(--line-light);
}

.section-action {
  display: flex;
  justify-content: center;
  padding-top: 38px;
}

.awards-section {
  padding: 100px 0 106px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: var(--navy);
}

.awards-section .section-label,
.cta-section .section-label {
  color: #779ac3;
}

.awards-heading {
  display: block;
  margin-bottom: 42px;
}

.awards-heading .section-label {
  margin-bottom: 26px;
}

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

.award-grid img {
  width: 100%;
  border-radius: 6px;
  filter: saturate(0.88);
  transition: filter 180ms ease, transform 180ms ease;
}

.award-grid img:hover {
  filter: saturate(1);
  transform: translateY(-2px);
}

.youtube-section {
  color: var(--ink);
  background: var(--paper);
}

.youtube-heading {
  display: block;
}

.video-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 46px;
  border: 1px solid #cbd2da;
  border-radius: 6px;
  background: #05080c;
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.cta-section {
  padding: 98px 0 106px;
  border-top: 1px solid var(--line-dark);
  background: var(--navy-soft);
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 70px;
}

.cta-inner > div {
  max-width: 800px;
}

.cta-inner h2 {
  max-width: 760px;
  margin-bottom: 24px;
}

.cta-inner p:not(.section-label) {
  max-width: 660px;
  color: var(--muted-light);
  font-size: 1rem;
  line-height: 1.72;
}

.cta-inner .button {
  min-width: 220px;
}

.footer {
  padding: 38px 0 32px;
  border-top: 1px solid var(--line-dark);
  background: var(--navy);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-inner > img {
  width: 48px;
  height: auto;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 24px;
  color: #8f9aaa;
  font-size: 0.78rem;
}

.footer nav a:hover {
  color: #dbe2ea;
}

.legal {
  width: min(var(--max), calc(100% - 48px));
  margin: 17px auto 0;
  color: #697483;
  font-size: 0.72rem;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes introIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Application flow */

.application-page {
  color: var(--ink);
  background: var(--paper);
}

.application-page .site-shell {
  background: var(--paper);
}

.application-page .nav-wrap {
  position: absolute;
}

.static-links {
  display: flex;
}

.application-shell,
.result-shell {
  min-height: 100vh;
  padding: 148px 0 90px;
}

.application-grid {
  display: grid;
  width: min(900px, calc(100% - 48px));
  justify-items: center;
  gap: 42px;
}

.application-intro {
  max-width: 720px;
  text-align: center;
}

.application-intro h1,
.result-card h1 {
  max-width: 700px;
  margin: 0 auto;
  font-size: 3.5rem;
  line-height: 1.06;
}

.application-intro p,
.result-card p {
  max-width: 570px;
  margin: 18px auto 0;
  color: var(--muted-dark);
  font-size: 1rem;
}

.application-form,
.result-card {
  width: 100%;
  border: 1px solid var(--line-light);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 18px 46px rgba(25, 36, 48, 0.07);
}

.application-form {
  min-height: 0;
  padding: 44px;
}

.hidden-field {
  display: none;
}

.form-progress {
  margin-bottom: 28px;
  color: #527eb1;
  font-size: 0.72rem;
  font-weight: 720;
  text-transform: uppercase;
}

.form-step {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-step.active {
  display: block;
}

.form-step legend {
  max-width: 720px;
  margin-bottom: 28px;
  padding: 0;
  color: var(--ink);
  font-size: 2.1rem;
  font-weight: 560;
  line-height: 1.16;
}

.option-grid,
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.option-grid.stacked {
  grid-template-columns: 1fr;
}

.choice-card {
  display: block;
  cursor: pointer;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card span,
.field-label input,
.field-label textarea {
  width: 100%;
  border: 1px solid var(--line-light);
  border-radius: 5px;
  color: var(--ink);
  background: #f8f9fb;
}

.choice-card span {
  display: flex;
  min-height: 60px;
  align-items: center;
  padding: 16px 17px;
  font-weight: 620;
  transition: border-color 160ms ease, background 160ms ease;
}

.choice-card:hover span {
  border-color: #aeb9c5;
}

.choice-card input:focus-visible + span {
  outline: 3px solid rgba(31, 111, 235, 0.18);
  outline-offset: 2px;
}

.choice-card input:checked + span {
  border-color: var(--blue);
  background: #eef5ff;
}

.field-label {
  display: grid;
  gap: 8px;
  color: #3f4955;
  font-size: 0.86rem;
  font-weight: 630;
}

.optional-detail {
  display: none;
  margin-top: 14px;
}

.optional-detail.visible {
  display: grid;
}

.field-label input,
.field-label textarea {
  min-height: 52px;
  padding: 13px 15px;
  outline: none;
}

.field-label textarea {
  resize: vertical;
}

.field-label input:focus,
.field-label textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.12);
}

.form-error {
  min-height: 24px;
  margin-top: 14px;
  color: #b42318;
  font-size: 0.86rem;
}

.form-next {
  margin-top: 4px;
  cursor: pointer;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.text-button {
  min-height: 48px;
  padding: 0 8px;
  border: 0;
  color: #53606d;
  background: transparent;
  cursor: pointer;
  font-weight: 620;
}

.result-shell {
  display: grid;
  place-items: center;
}

.result-card {
  width: min(720px, calc(100% - 48px));
  padding: 56px;
  text-align: center;
}

.compact-result {
  width: min(660px, calc(100% - 48px));
}

.compact-result p:first-child {
  margin-top: 0;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 620;
  line-height: 1.45;
}

.result-card .button {
  margin-top: 28px;
}

@media (max-width: 980px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 3rem;
  }

  .section-intro-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }

  .section-intro-grid > p,
  .model-lede {
    max-width: 680px;
  }

  .problem-row,
  .pillar {
    grid-template-columns: 44px minmax(210px, 0.72fr) minmax(280px, 1.28fr);
    gap: 22px;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 34px;
  }
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: min(310px, 92vw);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid rgba(230, 237, 246, 0.14);
    border-radius: 6px;
    background: var(--navy);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  }

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

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

  .nav-cta {
    min-height: 42px;
  }

  .menu-button {
    display: flex;
    width: 40px;
    height: 36px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid rgba(230, 237, 246, 0.18);
    border-radius: 5px;
    color: #fff;
    background: transparent;
  }

  .menu-button span {
    width: 17px;
    height: 1px;
    background: currentColor;
  }

  .static-links {
    display: none;
  }
}

@media (max-width: 720px) {
  .container,
  .nav-wrap,
  .legal {
    width: calc(100% - 30px);
  }

  .section {
    padding: 82px 0;
  }

  .nav-wrap {
    top: 14px;
    min-height: 52px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  h3 {
    font-size: 1.38rem;
  }

  .hero {
    min-height: 650px;
    padding: 132px 0 76px;
  }

  .hero-copy {
    margin: 22px auto 28px;
    font-size: 1rem;
  }

  .hero-logos {
    margin-top: 50px;
  }

  .logo-group {
    width: max-content;
    gap: 32px;
    padding-right: 32px;
  }

  .logo-group img {
    width: auto;
    height: 24px;
    max-width: none;
    max-height: none;
  }

  .logo-group img[src*="vayner"] {
    height: 18px;
  }

  .logo-group img[src*="tai-lopez"] {
    height: 24px;
  }

  .logo-group img[src*="bjku"] {
    height: 32px;
  }

  .logo-group img[src*="banks-capital"] {
    height: 21px;
  }

  .section-intro {
    margin-bottom: 42px;
  }

  .section-label {
    margin-bottom: 20px;
  }

  .problem-row,
  .pillar {
    min-height: 0;
    grid-template-columns: 36px 1fr;
    gap: 16px 12px;
    padding: 34px 0 38px;
  }

  .problem-row h3,
  .pillar h3 {
    max-width: none;
  }

  .row-copy,
  .pillar-copy {
    grid-column: 2;
  }

  .section-action {
    justify-content: flex-start;
    padding-top: 32px;
  }

  .section-action .button {
    width: 100%;
  }

  .awards-section {
    padding: 78px 0 84px;
  }

  .awards-heading {
    display: block;
  }

  .awards-heading .section-label {
    margin-bottom: 20px;
  }

  .award-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .video-frame {
    margin-top: 34px;
  }

  .cta-section {
    padding: 78px 0 84px;
  }

  .cta-inner .button {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .footer nav {
    justify-content: flex-start;
  }

  .application-shell,
  .result-shell {
    padding: 118px 0 68px;
  }

  .application-grid {
    width: calc(100% - 30px);
    gap: 30px;
  }

  .application-intro {
    text-align: left;
  }

  .application-intro h1,
  .result-card h1 {
    font-size: 2.65rem;
  }

  .application-intro h1,
  .application-intro p {
    margin-right: 0;
    margin-left: 0;
  }

  .application-form,
  .result-card {
    padding: 28px 24px;
  }

  .form-step legend {
    font-size: 1.72rem;
  }

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

  .result-card,
  .compact-result {
    width: calc(100% - 30px);
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.6rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .hero {
    min-height: 610px;
  }

  .button {
    width: 100%;
  }

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .logo-track {
    animation: none;
    transform: none;
  }
}
