:root {
  color-scheme: light;
  --ink: #071527;
  --ink-2: #10233a;
  --paper: #fbfcfe;
  --panel: #ffffff;
  --line: #d9e2ec;
  --muted: #5a6b7f;
  --accent: #1f6feb;
  --accent-2: #1f9a8a;
  --accent-soft: #e9f2ff;
  --mint-soft: #e8f7f4;
  --shadow: 0 24px 70px rgba(7, 21, 39, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  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;
}

body.menu-open {
  overflow: hidden;
}

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

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

p {
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 252, 254, 0.86);
  border-bottom: 1px solid rgba(217, 226, 236, 0.72);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--max), calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--ink);
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 7px;
  background: var(--ink);
  color: white;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: #314258;
  font-size: 0.94rem;
  font-weight: 620;
}

.nav-links a {
  position: relative;
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

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

.nav-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  padding: 0.7rem;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0;
}

.hero {
  width: 100%;
  max-width: none;
  display: flex;
  align-items: center;
  padding: 54px 0 50px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 84% 20%, rgba(31, 154, 138, 0.18), transparent 26rem),
    linear-gradient(135deg, #071527 0%, #0d2138 58%, #163048 100%);
  background-size: 48px 48px, 48px 48px, auto, auto;
  color: white;
}

.hero-grid {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: 5rem;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.process-section .eyebrow {
  color: #8ee2d8;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.1rem;
  font-size: clamp(3.25rem, 5.8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  color: var(--ink);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.25;
}

.hero-lede {
  margin-bottom: 0.2rem;
  color: white;
  font-size: clamp(1.5rem, 2.5vw, 2.3rem);
  font-weight: 760;
}

.hero-statement {
  margin-bottom: 1.35rem;
  color: #c7efe9;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 720;
}

.hero-support {
  max-width: 65ch;
  color: #c6d2e1;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.85rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  border-radius: var(--radius);
  padding: 0.88rem 1.15rem;
  border: 1px solid transparent;
  font-weight: 760;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 16px 36px rgba(31, 111, 235, 0.26);
}

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

.financial-visual {
  position: relative;
}

.ledger-panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.panel-topline,
.flow-row,
.audit-strip {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.panel-topline {
  padding-bottom: 1rem;
  color: #d9e6f6;
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.flow-row {
  margin: 0.5rem 0 1.25rem;
}

.flow-row span {
  flex: 1;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  color: white;
  font-size: 0.82rem;
  font-weight: 720;
  background: rgba(255, 255, 255, 0.06);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin: 1.15rem 0;
}

.signal-grid span {
  min-height: 48px;
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(31, 111, 235, 0.0), rgba(31, 111, 235, 0.22)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.signal-grid span:nth-child(3n) {
  background:
    linear-gradient(180deg, rgba(31, 154, 138, 0.0), rgba(31, 154, 138, 0.24)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 12px);
}

.ledger-lines {
  display: grid;
  gap: 0.72rem;
  margin: 1.1rem 0;
}

.ledger-lines span {
  width: var(--w);
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(142, 226, 216, 0.95));
}

.audit-strip {
  margin-top: 1.05rem;
}

.audit-strip div {
  flex: 1;
  padding: 1rem;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.09);
}

.audit-strip strong,
.audit-strip span {
  display: block;
}

.audit-strip strong {
  color: white;
  font-size: 0.9rem;
}

.audit-strip span {
  margin-top: 0.25rem;
  color: #c6d2e1;
  font-size: 0.82rem;
}

.split-section,
.assessment-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 3.5rem;
  align-items: start;
}

#problem {
  padding-top: 78px;
  padding-bottom: 46px;
}

#recover {
  padding-top: 46px;
  padding-bottom: 76px;
}

.section-text {
  padding-top: 1.2rem;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 1.8rem;
}

.section-heading p:not(.eyebrow) {
  max-width: 68ch;
  font-size: 1.05rem;
}

.recovery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.recovery-card,
.process-step,
.founder-card,
.assessment-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 8px 28px rgba(7, 21, 39, 0.06);
}

.recovery-card {
  min-height: 188px;
  padding: 1.25rem;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.recovery-card:hover {
  transform: translateY(-4px);
  border-color: #a9c8ee;
  box-shadow: var(--shadow);
}

.card-index,
.step-number {
  display: inline-block;
  margin-bottom: 1.05rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 820;
}

.process-section {
  width: 100%;
  max-width: none;
  padding-top: 76px;
  padding-bottom: 78px;
  padding-left: max(20px, calc((100% - var(--max)) / 2));
  padding-right: max(20px, calc((100% - var(--max)) / 2));
  background: var(--ink);
  color: white;
}

.process-section h2,
.process-step h3 {
  color: white;
}

.process-section p {
  color: #c6d2e1;
}

.principle {
  display: inline-flex;
  margin-top: 0.65rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: white;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.process-step {
  min-height: 244px;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.process-step h3 {
  font-size: 1.6rem;
}

.lifecycle-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: center;
  gap: 2.75rem;
  padding-top: 68px;
  padding-bottom: 50px;
}

.lifecycle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.lifecycle span {
  min-height: 64px;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, white, #f5f9fd);
  color: var(--ink);
  font-weight: 760;
  text-align: center;
}

.lifecycle span:nth-child(3n + 2) {
  background: var(--accent-soft);
}

.lifecycle span:nth-child(3n) {
  background: var(--mint-soft);
}

.founder-section {
  padding: 50px 0 64px;
}

.founder-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  padding: 2rem;
}

.founder-initials {
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(31, 111, 235, 0.16), rgba(31, 154, 138, 0.18)),
    var(--ink);
  color: white;
  font-size: 3.2rem;
  font-weight: 840;
}

.assessment-section {
  width: 100%;
  max-width: none;
  padding-top: 72px;
  padding-bottom: 76px;
  padding-left: max(20px, calc((100% - var(--max)) / 2));
  padding-right: max(20px, calc((100% - var(--max)) / 2));
  background: linear-gradient(180deg, #f4f8fc, #ffffff);
}

.assessment-subhead {
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 780;
}

.assessment-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.25rem;
}

.form-row {
  display: grid;
  gap: 0.45rem;
}

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

label {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 720;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd7e5;
  border-radius: var(--radius);
  padding: 0.8rem 0.85rem;
  background: white;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

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

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--ink);
  line-height: 1.45;
}

.checkbox-row input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 0.1rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.35rem;
}

.assessment-form .button {
  border: 0;
  cursor: pointer;
}

.form-note {
  margin: 0;
  color: var(--accent-2);
  font-weight: 720;
}

.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 62ch;
  margin: 1rem 0 0;
  font-size: 0.92rem;
}

.site-footer nav {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: #314258;
  font-weight: 680;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

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

@media (max-width: 1020px) {
  .hero-grid,
  .split-section,
  .lifecycle-section,
  .assessment-section {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .hero {
    min-height: auto;
  }

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

  .section-text {
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  .nav {
    min-height: 66px;
  }

  .brand span:last-child {
    max-width: 190px;
    line-height: 1.15;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 66px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 20px 1.35rem;
    background: white;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eef3f8;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 0.75rem;
    border-bottom: 1px solid var(--ink) !important;
  }

  .section {
    width: min(100% - 32px, var(--max));
    padding: 60px 0;
  }

  #problem {
    padding-top: 62px;
    padding-bottom: 34px;
  }

  #recover {
    padding-top: 34px;
    padding-bottom: 60px;
  }

  .process-section,
  .lifecycle-section,
  .founder-section,
  .assessment-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero {
    padding: 28px 0 28px;
  }

  .hero-grid {
    width: min(100% - 32px, var(--max));
  }

  h1 {
    font-size: 2.75rem;
  }

  .hero-support {
    font-size: 1rem;
  }

  .financial-visual {
    display: none;
  }

  .hero-actions,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .flow-row,
  .audit-strip {
    flex-direction: column;
  }

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

  .recovery-grid,
  .process-grid,
  .lifecycle,
  .assessment-form,
  .founder-card {
    grid-template-columns: 1fr;
  }

  .founder-initials {
    width: 132px;
    height: 132px;
    font-size: 2.4rem;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .brand span:last-child {
    max-width: 140px;
    font-size: 0.9rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 2rem;
  }
}
