:root {
  --bg: #f7f4ed;
  --bg-soft: #fffaf1;
  --surface: #ffffff;
  --surface-2: #f4efe5;
  --text: #152238;
  --muted: #657084;
  --line: rgba(21, 34, 56, 0.12);
  --navy: #111d35;
  --navy-2: #1d3159;
  --blue: #246bfe;
  --green: #00a884;
  --gold: #c9942f;
  --redwood: #8f3e2f;
  --shadow: 0 24px 70px rgba(17, 29, 53, 0.16);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(201, 148, 47, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(36, 107, 254, 0.12), transparent 30rem);
  z-index: -1;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 92px 0;
}

.skip-link {
  position: absolute;
  left: 20px;
  top: 12px;
  transform: translateY(-160%);
  background: var(--navy);
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 100;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 237, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 12px 30px rgba(17, 29, 53, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand small {
  display: block;
  margin-top: -4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--navy), var(--navy-2));
  color: #fff;
  box-shadow: 0 12px 24px rgba(17, 29, 53, 0.2);
}

.nav-menu {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-menu a,
.footer-grid a {
  transition: color 0.2s ease;
}

.nav-menu a:hover,
.footer-grid a:hover {
  color: var(--blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 16px 30px rgba(17, 29, 53, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
  color: var(--navy);
}

.button-small {
  min-height: 38px;
  padding: 0 16px;
  background: var(--blue);
  color: #fff;
  font-size: 0.88rem;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 12px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
  border-radius: 99px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 74px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: 58px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--redwood);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 99px;
  background: var(--gold);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.2vw, 3.45rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

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

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

.hero-lede {
  max-width: 620px;
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  color: var(--muted);
  font-weight: 800;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-row span::before {
  content: "✓";
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 168, 132, 0.15);
  color: var(--green);
}

.hero-panel {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}

.hero-panel::before {
  content: "";
  position: absolute;
  width: 88%;
  height: 88%;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(17, 29, 53, 0.08), rgba(201, 148, 47, 0.16));
  filter: blur(2px);
}

.phone-card {
  position: relative;
  width: min(100%, 410px);
  min-height: 475px;
  padding: 28px;
  border: 10px solid #121d32;
  border-radius: 42px;
  background: linear-gradient(180deg, #fff, #f8f3e9);
  box-shadow: var(--shadow);
  z-index: 1;
}

.phone-card-top {
  padding: 22px;
  border-radius: 26px;
  background: var(--navy);
  color: white;
}

.phone-card-top span,
.summary-list span,
.dashboard-card span,
.metric-row span,
.sponsor-panel span {
  display: block;
  color: inherit;
  opacity: 0.72;
  font-size: 0.88rem;
  font-weight: 700;
}

.phone-card-top strong {
  display: block;
  margin-top: 6px;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.growth-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 150px;
  margin: 26px 0;
  padding: 18px;
  border-radius: 24px;
  background: var(--surface-2);
}

.growth-chart span {
  flex: 1;
  min-height: 24px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, var(--blue), #79a4ff);
}

.summary-list {
  display: grid;
  gap: 12px;
}

.summary-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.floating-card {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 2px;
  width: 194px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 40px rgba(17, 29, 53, 0.14);
  backdrop-filter: blur(12px);
}

.floating-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.card-one {
  top: 58px;
  right: 0;
}

.card-two {
  left: 4px;
  bottom: 62px;
}

.notice {
  padding-bottom: 18px;
}

.notice-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid rgba(143, 62, 47, 0.18);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.88);
  color: var(--redwood);
  box-shadow: 0 12px 28px rgba(17, 29, 53, 0.06);
}

.notice-card span {
  color: #644237;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.cards {
  display: grid;
  gap: 22px;
}

.three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.education-card,
.article-list article,
.dashboard-card,
.sponsor-panel,
.cta-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(17, 29, 53, 0.07);
  backdrop-filter: blur(10px);
}

.feature-card {
  min-height: 294px;
  padding: 28px;
  border-radius: var(--radius-md);
}

.feature-card p {
  min-height: 78px;
}

.feature-card a {
  color: var(--blue);
  font-weight: 900;
}

.icon {
  display: inline-grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 18px;
  background: rgba(36, 107, 254, 0.1);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.muted {
  background: rgba(255, 255, 255, 0.35);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 54px;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
  color: var(--text);
  font-weight: 800;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(0, 168, 132, 0.12);
}

.dashboard-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.dashboard-header,
.balance-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-header {
  align-items: center;
  margin-bottom: 20px;
}

.dashboard-header strong {
  display: block;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.pill {
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(0, 168, 132, 0.12);
  color: var(--green);
  font-weight: 900;
}

.balance-row {
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--navy), #243b67);
  color: #fff;
}

.balance-row strong {
  display: block;
  margin-top: 4px;
  font-size: 1.65rem;
  letter-spacing: -0.05em;
}

.account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 9px 13px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 900;
}

.tab.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.tab-panel {
  display: none;
  min-height: 168px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.tab-panel.active {
  display: block;
}

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

.mini-grid div {
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-2);
}

.mini-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 1.08rem;
}

.progress-line {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.allocation {
  display: grid;
  gap: 10px;
}

.allocation span {
  position: relative;
  overflow: hidden;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 900;
  isolation: isolate;
}

.allocation span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  background: color-mix(in srgb, var(--c) 20%, transparent);
  z-index: -1;
}

.document-list {
  display: grid;
  gap: 10px;
}

.document-list a {
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--blue);
  font-weight: 900;
}

.split-grid,
.employer-grid,
.cta-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.education-card {
  padding: 34px;
  border-radius: var(--radius-lg);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.metric-row div {
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-2);
}

.metric-row strong {
  display: block;
  color: var(--navy);
  font-size: 1.3rem;
}

.article-list {
  display: grid;
  gap: 16px;
}

.article-list article {
  padding: 24px;
  border-radius: var(--radius-md);
}

.article-list span {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-list p {
  margin-bottom: 0;
}

.sponsor-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-lg);
}

.sponsor-panel div {
  min-height: 126px;
  padding: 20px;
  border-radius: 20px;
  background: var(--surface-2);
}

.sponsor-panel strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.08rem;
}

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

.cta-card {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(17, 29, 53, 0.98), rgba(29, 49, 89, 0.95));
  color: #fff;
  box-shadow: var(--shadow);
}

.cta-card .eyebrow,
.cta-card p {
  color: rgba(255, 255, 255, 0.72);
}

.cta-card .eyebrow::before {
  background: var(--gold);
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
}

.lead-form label,
.demo-login label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.lead-form input,
.demo-login input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
}

.form-note {
  margin: 0;
  font-size: 0.86rem;
}

.site-footer {
  padding: 62px 0 32px;
  background: #0e182d;
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr 1fr;
  gap: 34px;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-grid p,
.legal p,
.footer-grid span {
  color: rgba(255, 255, 255, 0.62);
}

.footer-grid h3 {
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.footer-grid a,
.footer-grid span {
  display: block;
  margin-bottom: 10px;
}

.legal {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.legal p {
  margin-bottom: 0;
  font-size: 0.86rem;
}

.signin-dialog {
  width: min(calc(100% - 32px), 460px);
  padding: 30px;
  border: 0;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.signin-dialog::backdrop {
  background: rgba(17, 29, 53, 0.48);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--navy);
  font-size: 1.4rem;
}

.demo-login {
  display: grid;
  gap: 14px;
}

.demo-login input {
  border-color: var(--line);
  background: var(--surface-2);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: min(calc(100% - 44px), 390px);
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--navy);
  color: white;
  box-shadow: var(--shadow);
  font-weight: 800;
}

@media (max-width: 1020px) {
  .nav-menu {
    gap: 16px;
  }

  .hero-grid,
  .dashboard-grid,
  .split-grid,
  .employer-grid,
  .cta-card {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 500px;
  }

  .three-column {
    grid-template-columns: 1fr;
  }

  .feature-card p {
    min-height: auto;
  }

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

@media (max-width: 900px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 68px 0;
  }

  .nav {
    min-height: 70px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu,
  .nav-actions {
    position: fixed;
    left: 14px;
    right: 14px;
    display: none;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(17, 29, 53, 0.14);
    backdrop-filter: blur(12px);
  }

  .nav-menu {
    top: 78px;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
  }

  .nav-menu a {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
  }

  .nav-actions {
    top: 318px;
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
    border-radius: 0 0 22px 22px;
  }

  body.menu-open .nav-menu,
  body.menu-open .nav-actions {
    display: flex;
  }

  h1 {
    font-size: clamp(2.65rem, 15vw, 4.5rem);
  }

  .hero {
    padding-top: 56px;
  }

  .hero-grid {
    gap: 38px;
  }

  .hero-panel {
    min-height: 440px;
  }

  .phone-card {
    min-height: 430px;
    padding: 20px;
  }

  .floating-card {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-top: 12px;
  }

  .hero-panel {
    display: block;
  }

  .hero-panel::before {
    display: none;
  }

  .notice-card {
    flex-direction: column;
  }

  .mini-grid,
  .metric-row,
  .sponsor-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header,
  .balance-row {
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .brand strong {
    font-size: 0.92rem;
  }

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

  .hero-actions .button,
  .nav-actions .button,
  .nav-actions .link-button {
    width: 100%;
  }

  .phone-card-top strong,
  .balance-row strong {
    font-size: 1.45rem;
  }
}

.security-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
}

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

.readiness-list div {
  min-height: 158px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 50px rgba(17, 29, 53, 0.07);
}

.readiness-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.08rem;
}

.readiness-list span {
  color: var(--muted);
}

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

@media (max-width: 900px) {
  .readiness-list {
    grid-template-columns: 1fr;
  }
}
