:root {
  --brand-bg: #ffeefb;
  --brand-red: #c62828;
  --brand-blue: #00296b;
  --brand-green: #008000;
  --brand-orange: #e6690a;
  --brand-light-blue: #0089ca;
  --surface: #ffffff;
  --line: #ead7e5;
  --muted: #5c6b7a;
  --ink: #1f2937;
  --soft-blue: #e9f6fb;
  --soft-green: #eaf7ea;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--brand-bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--brand-bg);
}

a {
  color: inherit;
}

.siteHeader {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(0, 41, 107, 0.12);
  background: rgba(255, 238, 251, 0.94);
  backdrop-filter: blur(14px);
}

.brand,
footer {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand span,
footer span {
  color: var(--brand-blue);
  font-weight: 900;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

nav a {
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.navPortal {
  border-radius: 8px;
  background: var(--brand-blue);
  color: #ffffff;
  padding: 10px 12px;
}

.hero,
.section,
.portalSection {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 76px);
  padding-top: 44px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 740px;
  margin-bottom: 18px;
  color: var(--brand-blue);
  font-size: clamp(40px, 5.8vw, 72px);
  line-height: 1.01;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  color: var(--brand-blue);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--brand-blue);
  font-size: 20px;
  letter-spacing: 0;
}

.lead,
.portalSection p,
.featureGrid p,
.levelGrid p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.microcopy {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.primaryButton,
.secondaryButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
}

.primaryButton {
  background: var(--brand-blue);
  color: #ffffff;
}

.secondaryButton {
  border: 1px solid rgba(0, 41, 107, 0.18);
  background: #ffffff;
  color: var(--brand-blue);
}

.heroVisual {
  display: grid;
  place-items: center;
}

.portalWindow {
  width: min(100%, 520px);
  border: 1px solid rgba(0, 41, 107, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(0, 41, 107, 0.13);
}

.windowBar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 14px;
  background: var(--brand-blue);
}

.windowBar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ffffff;
  opacity: 0.72;
}

.portalBody {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #fff7fd);
}

.portalPanel {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.mainPanel {
  border-color: rgba(0, 137, 202, 0.3);
  background: var(--soft-blue);
}

.portalPanel.green {
  border-color: rgba(0, 128, 0, 0.22);
  background: var(--soft-green);
}

.portalPanel strong {
  color: var(--brand-blue);
}

.portalPanel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.progressLine {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: rgba(0, 137, 202, 0.2);
}

.progressLine.short {
  width: 66%;
  background: rgba(230, 105, 10, 0.28);
}

.trustStrip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 1180px;
  margin: -28px auto 0;
  padding: 0 28px 36px;
}

.trustStrip span {
  border: 1px solid rgba(0, 137, 202, 0.24);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-blue);
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 900;
}

.sectionHeader {
  max-width: 760px;
  margin-bottom: 22px;
}

.featureGrid,
.levelGrid,
.stepGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.featureGrid article,
.levelGrid article,
.stepGrid article,
.portalSection {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(0, 41, 107, 0.06);
}

.featureGrid article,
.levelGrid article,
.stepGrid article {
  padding: 22px;
}

.featureIcon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 900;
}

.featureIcon.red {
  background: var(--brand-red);
}

.featureIcon.blue {
  background: var(--brand-light-blue);
}

.featureIcon.green {
  background: var(--brand-green);
}

.levelGrid strong {
  color: var(--brand-orange);
}

.stepGrid strong {
  color: var(--brand-light-blue);
  font-size: 13px;
  font-weight: 900;
}

.portalSection {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 56px;
}

footer {
  justify-content: center;
  min-height: 86px;
  border-top: 1px solid var(--line);
  padding: 20px 28px;
  background: #ffffff;
}

footer img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

footer a {
  color: var(--brand-light-blue);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 900px) {
  .hero,
  .featureGrid,
  .levelGrid,
  .stepGrid,
  .portalSection {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .portalSection .primaryButton {
    width: fit-content;
  }
}

@media (max-width: 640px) {
  .siteHeader {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 14px 18px;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero,
  .section,
  .portalSection {
    padding-left: 18px;
    padding-right: 18px;
  }

  .heroActions,
  .primaryButton,
  .secondaryButton {
    width: 100%;
  }
}
