:root {
  --navy: #0b1f3a;
  --navy-soft: #16345c;
  --ink: #122033;
  --muted: #5b6b7c;
  --line: #dce3ea;
  --paper: #f5f7fa;
  --white: #ffffff;
  --danger: #9b1c2a;
  --shadow: 0 18px 50px rgba(11, 31, 58, 0.08);
  --radius: 18px;
  --max: 1120px;
  --font: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.35rem;
  color: var(--navy);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-link {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.header-link:hover {
  color: var(--navy);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button-primary {
  background: var(--navy);
  color: var(--white);
}

.button-primary:hover {
  background: var(--navy-soft);
}

.button-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--navy);
}

.hero {
  padding: 72px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2 {
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: var(--navy);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.lede {
  margin: 0 0 28px;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.hero-visual img {
  margin: 0 auto;
  width: min(100%, 460px);
}

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  background: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.trust-grid p {
  margin: 0;
  color: var(--muted);
}

.trust-grid strong {
  display: block;
  color: var(--navy);
  margin-bottom: 6px;
}

.section {
  padding: 88px 0;
  scroll-margin-top: 88px;
}

.section-muted {
  background: var(--paper);
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section-intro {
  margin: 0 0 36px;
  color: var(--muted);
  max-width: 40rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.step {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 14px;
}

.card h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.split .section-intro {
  margin-bottom: 0;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.feature-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  color: var(--muted);
}

.feature-list strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}

.cta-band {
  background: var(--navy);
  color: #d7e2ee;
  padding: 56px 0;
}

.cta-band h2 {
  color: var(--white);
  margin: 0 0 8px;
}

.cta-band p {
  margin: 0;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.button-light {
  background: var(--white);
  color: var(--navy);
}

.button-light:hover {
  background: #e8eef5;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  margin: 0 0 4px;
  color: var(--navy);
  font-weight: 800;
}

.site-footer p {
  margin: 0;
}

.auth-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 55%);
}

.auth-card {
  width: min(440px, calc(100% - 40px));
  margin: 72px auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.auth-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

label {
  font-weight: 700;
  color: var(--navy);
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
}

input:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}

.form-error {
  min-height: 1.4em;
  color: var(--danger);
  margin: 0 0 12px;
}

.form-error:empty {
  display: none;
}

.full-width {
  width: 100%;
}

.portal {
  padding: 32px 0 64px;
  background: var(--paper);
  min-height: calc(100vh - 72px);
}

.portal-inner,
.portal-header-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.portal h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}

.portal-status {
  margin: 0 0 20px;
  color: var(--muted);
}

.table-wrap {
  overflow: auto;
  max-height: calc(100vh - 280px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.folio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 1180px;
}

.folio-table th,
.folio-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.folio-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

.folio-table tbody tr:last-child td {
  border-bottom: none;
}

.folio-table tbody tr:hover {
  background: #f7f9fc;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 700;
}

.status-green {
  background: #e3f4ea;
  color: #14532d;
}

.status-amber {
  background: #fff4d6;
  color: #6a4b00;
}

.status-red {
  background: #f8e4e6;
  color: #9b1c2a;
}

.status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.status-filter {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.status-filter.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.user-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
}

.user-icon svg {
  width: 20px;
  height: 20px;
}

.hidden {
  display: none;
}

@media (max-width: 840px) {
  .hero,
  .hero-grid,
  .cards,
  .trust-grid,
  .split,
  .cta-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 40px;
  }

  .header-link {
    display: none;
  }

  .cta-inner,
  .footer-grid {
    display: grid;
  }
}
