:root {
  --blue-900: #07163f;
  --blue-800: #0b2b5c;
  --blue-700: #0b3a66;
  --blue-600: #1d6fd6;
  --blue-200: #cfe2fb;
  --blue-100: #eef6ff;
  --slate-700: #334155;
  --slate-600: #526173;
  --slate-500: #64748b;
  --border: #d8e3ef;
  --panel: #ffffff;
  --page: #f5f9fd;
  --orange: #ff7a00;
  --orange-dark: #ea6500;
  --shadow: 0 18px 38px rgba(8, 35, 72, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--blue-900);
  background: var(--page);
  overflow-x: hidden;
}

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

.topbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 7vw;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(8, 35, 72, 0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 38px;
  line-height: 1;
  color: var(--blue-900);
  white-space: nowrap;
}

.brand-lockup strong {
  font-weight: 900;
}

.brand-lockup span:last-child {
  font-weight: 400;
}

.brand-lockup span:nth-child(2) {
  color: var(--slate-500);
  font-weight: 300;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
  font-size: 18px;
  font-weight: 600;
  color: var(--blue-900);
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:hover {
  color: var(--blue-600);
}

.portal-shell {
  width: min(1580px, calc(100vw - 48px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 52px 0 28px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-600);
  font-size: 28px;
  font-weight: 800;
}

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

.hero h1,
.single-page h1 {
  margin-bottom: 20px;
  max-width: 820px;
  color: var(--blue-900);
  font-size: clamp(42px, 4.2vw, 68px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 700px;
  color: var(--slate-700);
  font-size: 24px;
  line-height: 1.45;
}

.hero-visual {
  position: absolute;
  top: 70px;
  right: -16px;
  width: min(780px, 55vw);
  height: 380px;
  opacity: 0.72;
  pointer-events: none;
}

.hero-visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-visual path {
  fill: none;
  stroke: #b9d6fb;
  stroke-width: 2;
}

.hero-visual circle {
  fill: #cfe2fb;
  stroke: #87b8f5;
  stroke-width: 2;
}

.data-platform {
  position: absolute;
  right: 90px;
  top: 82px;
  width: 280px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.92), rgba(207,226,251,0.38) 58%, transparent 60%);
  border: 1px solid rgba(157, 193, 236, 0.25);
}

.bar {
  position: absolute;
  bottom: 88px;
  width: 16px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #6ea8ee, #cfe2fb);
}

.bar-1 { height: 64px; left: 86px; }
.bar-2 { height: 104px; left: 116px; }
.bar-3 { height: 82px; left: 146px; }
.bar-4 { height: 132px; left: 176px; }
.bar-5 { height: 172px; left: 206px; background: linear-gradient(180deg, #1d6fd6, #a9d0ff); }

.tool-flow {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 54px;
}

.tool-card {
  min-height: 300px;
  display: grid;
  grid-template-columns: 166px 1fr;
  gap: 34px;
  align-items: center;
  padding: 42px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.tool-card h2,
.evolution-card h3 {
  margin-bottom: 18px;
  font-size: 34px;
  line-height: 1.12;
  color: var(--blue-900);
}

.tool-card h2 span,
.evolution-card h3 span {
  color: var(--blue-600);
}

.tool-card p {
  color: var(--slate-700);
  font-size: 20px;
  line-height: 1.42;
}

.step-label {
  margin-bottom: 8px;
  color: var(--blue-600);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.tool-icon {
  position: relative;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-100);
  border: 1px solid var(--border);
}

.tool-icon::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: inherit;
  border: 6px dotted rgba(29, 111, 214, 0.26);
}

.diagnostico-icon span {
  position: relative;
  width: 56px;
  height: 56px;
  border: 5px solid var(--blue-700);
  border-radius: 50%;
}

.diagnostico-icon span::before {
  content: "";
  position: absolute;
  width: 36px;
  height: 8px;
  right: -30px;
  bottom: -14px;
  background: var(--blue-700);
  border-radius: 999px;
  transform: rotate(45deg);
}

.diagnostico-icon span::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 8px;
  width: 8px;
  height: 20px;
  background: #9ec8f8;
  box-shadow: 15px -9px 0 #6ea8ee, 30px -22px 0 var(--blue-600);
}

.auditoria-icon span {
  position: relative;
  width: 62px;
  height: 78px;
  border: 5px solid var(--blue-700);
  border-radius: 8px;
}

.auditoria-icon span::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 12px;
  width: 30px;
  height: 18px;
  border: 4px solid var(--blue-700);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: var(--blue-100);
}

.auditoria-icon span::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 20px;
  width: 28px;
  height: 5px;
  background: var(--blue-600);
  box-shadow: 0 18px 0 var(--blue-600), 0 36px 0 var(--blue-600);
}

.flow-arrow {
  height: 4px;
  background: var(--blue-600);
  border-radius: 999px;
  position: relative;
}

.flow-arrow::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--panel);
  border: 4px solid var(--blue-600);
}

.flow-arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-top: 4px solid var(--blue-600);
  border-right: 4px solid var(--blue-600);
  transform: translateY(-50%) rotate(45deg);
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 30px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.16;
  text-align: center;
  white-space: normal;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
}

.btn-outline {
  color: var(--orange-dark);
  background: #fff;
  border-color: var(--orange);
}

.btn-soft {
  color: var(--blue-600);
  background: #fff;
  border-color: var(--blue-200);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.access-note {
  width: min(680px, 100%);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: center;
  margin: 28px auto 0;
  color: var(--blue-800);
}

.access-note span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue-200);
  color: var(--blue-600);
  font-size: 23px;
  font-weight: 900;
}

.access-note p {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.35;
}

.journey-band {
  background: rgba(255, 255, 255, 0.84);
  border-top: 1px solid #e5eef7;
  border-bottom: 1px solid #e5eef7;
}

.journey-inner {
  width: min(1040px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 34px 0 42px;
  text-align: center;
}

.journey-inner h2 {
  margin-bottom: 32px;
  font-size: 26px;
}

.journey-steps {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.journey-step {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.journey-step span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue-600);
  font-size: 15px;
  font-weight: 900;
}

.journey-step p {
  margin-bottom: 0;
  color: var(--blue-800);
  font-size: 18px;
  font-weight: 600;
}

.journey-line {
  height: 2px;
  background-image: linear-gradient(90deg, var(--blue-600) 50%, transparent 50%);
  background-size: 12px 2px;
}

.is-muted {
  opacity: 0.82;
}

.evolution-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 48px;
  align-items: center;
  padding: 64px 0;
}

.evolution-copy h2 {
  margin-bottom: 16px;
  font-size: 42px;
}

.evolution-copy p {
  max-width: 760px;
  color: var(--slate-700);
  font-size: 22px;
  line-height: 1.45;
}

.evolution-card,
.landing-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.evolution-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 24px;
  padding: 30px;
}

.evolution-card p {
  color: var(--slate-700);
  font-size: 18px;
  line-height: 1.38;
}

.evolution-logo {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--blue-100);
  border: 1px solid var(--border);
}

.evolution-logo::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 52px;
  height: 4px;
  background: var(--blue-600);
  transform: rotate(-28deg);
}

.dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-600);
}

.dot-a { left: 18px; top: 58px; }
.dot-b { left: 38px; top: 45px; }
.dot-c { left: 56px; top: 54px; }
.dot-d { right: 14px; top: 30px; background: var(--orange); }

.trust-strip {
  padding: 24px 7vw;
  color: var(--blue-800);
  background: #fff;
  border-top: 1px solid var(--border);
  text-align: center;
}

.trust-strip p {
  margin: 0 auto;
  max-width: 900px;
  font-size: 18px;
  line-height: 1.42;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 34px 7vw;
  color: #fff;
  background: var(--blue-900);
}

.footer p {
  margin: 8px 0 0;
  color: #d9e8fb;
}

.single-page {
  min-height: calc(100vh - 84px);
  display: grid;
  align-items: center;
  padding: 62px 0;
}

.landing-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 48px;
  align-items: center;
  padding: clamp(34px, 5vw, 70px);
}

.pending-box {
  margin: 26px 0;
  padding: 20px 22px;
  border-radius: 12px;
  background: var(--blue-100);
  border: 1px solid var(--blue-200);
}

.pending-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-800);
  font-size: 18px;
}

.pending-box p {
  margin-bottom: 0;
  color: var(--slate-700);
}

.app-landing {
  align-items: stretch;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

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

.landing-grid article {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafdff;
}

.landing-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-800);
  font-size: 17px;
}

.landing-grid p {
  margin-bottom: 0;
  color: var(--slate-700);
  font-size: 16px;
  line-height: 1.42;
}

.landing-note {
  margin: 22px 0 0;
  color: var(--slate-600);
  font-size: 17px;
  line-height: 1.42;
}

.landing-visual-panel {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
  padding: 34px;
  border-radius: 18px;
  background: var(--blue-100);
  border: 1px solid var(--blue-200);
}

.landing-visual-panel h2 {
  margin-bottom: 0;
  color: var(--blue-900);
  font-size: 30px;
}

.landing-visual-panel p {
  margin-bottom: 0;
  color: var(--slate-700);
  font-size: 19px;
  line-height: 1.45;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.evolution-preview {
  padding: 28px;
  border-radius: 18px;
  background: var(--blue-100);
  border: 1px solid var(--blue-200);
}

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

.preview-header {
  margin-bottom: 20px;
  color: var(--blue-600);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.trend-row {
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid #c7ddfa;
}

.trend-row p {
  margin: 0;
  color: var(--blue-800);
  font-size: 18px;
}

.trend-row strong {
  color: var(--orange-dark);
  font-size: 24px;
}

@media (max-width: 1100px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-lockup {
    font-size: 32px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 18px 30px;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    height: 220px;
    margin: 18px 0;
  }

  .tool-flow {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    width: 4px;
    height: 62px;
    justify-self: center;
  }

  .flow-arrow::before {
    left: 50%;
    top: -8px;
    transform: translateX(-50%);
  }

  .flow-arrow::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -2px;
    transform: translateX(-50%) rotate(135deg);
  }

  .evolution-section,
  .landing-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .portal-shell,
  .journey-inner {
    width: min(100% - 28px, 680px);
  }

  .topbar {
    padding: 16px;
  }

  .nav-links {
    font-size: 16px;
  }

  .hero h1,
  .single-page h1 {
    font-size: 38px;
  }

  .hero-lead,
  .evolution-copy p {
    font-size: 19px;
  }

  .tool-card {
    grid-template-columns: 1fr;
    padding: 28px;
  }

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

  .tool-icon {
    width: 112px;
    height: 112px;
  }

  .tool-card h2 {
    font-size: 29px;
  }

  .journey-steps {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .journey-line {
    width: 2px;
    height: 28px;
    margin-left: 13px;
    background-image: linear-gradient(180deg, var(--blue-600) 50%, transparent 50%);
    background-size: 2px 12px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Portal NextLevel - Fase 1 y Fase 2 */
.nextlevel-hero,
.portal-hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
  padding: clamp(46px, 6vw, 86px) 0 58px;
}

.nextlevel-hero-copy,
.portal-hero-copy {
  max-width: 820px;
}

.nextlevel-hero h1,
.portal-hero h1 {
  margin-bottom: 22px;
  color: var(--blue-900);
  font-size: clamp(48px, 5.1vw, 78px);
  line-height: 1.05;
  letter-spacing: 0;
}

.nextlevel-hero .hero-lead,
.portal-hero .hero-lead {
  max-width: 820px;
}

.hero-actions {
  margin-top: 32px;
}

.portal-hero-panel {
  min-height: 460px;
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  overflow: hidden;
  padding: 46px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 40%, rgba(29, 111, 214, 0.12), transparent 28%),
    linear-gradient(145deg, #ffffff 0%, #eef6ff 100%);
  box-shadow: var(--shadow);
}

.nextlevel-hero-card {
  min-height: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.nextlevel-shield-hero {
  position: relative;
  z-index: 1;
  width: auto;
  height: clamp(250px, 28vw, 390px);
  filter: drop-shadow(0 18px 30px rgba(7, 22, 63, 0.12));
}

.hero-signal-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 360px);
  margin-top: 38px;
}

.hero-signal-grid span {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--blue-800);
  background: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.route-orbit {
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  border: 1px dashed #b8d2ef;
}

.route-orbit span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
}

.route-orbit span:nth-child(1) { left: 10%; top: 42%; }
.route-orbit span:nth-child(2) { right: 14%; top: 26%; }
.route-orbit span:nth-child(3) { right: 26%; bottom: 14%; }

.route-engine {
  position: relative;
  z-index: 1;
  width: 214px;
  height: 214px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue-900);
  box-shadow: 0 22px 46px rgba(7, 22, 63, 0.22);
}

.route-engine strong {
  display: block;
  font-size: 31px;
  line-height: 1;
}

.route-engine span {
  display: block;
  max-width: 140px;
  margin-top: 9px;
  color: #d7e8fb;
  font-size: 14px;
  font-weight: 700;
}

.route-mini-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 360px);
  margin-top: 38px;
}

.route-mini-grid span {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--blue-800);
  background: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.route-section {
  padding: 42px 0 72px;
}

.program-section {
  scroll-margin-top: 112px;
  padding: 54px 0 76px;
}

.section-heading.program-heading {
  max-width: 1180px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading.program-heading h2 {
  max-width: 1040px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(42px, 4.1vw, 62px);
  line-height: 1.04;
}

.section-heading.program-heading p:last-child {
  max-width: 1040px;
  margin-right: auto;
  margin-left: auto;
  font-size: 21px;
  line-height: 1.55;
}

.program-system {
  position: relative;
  padding: 34px;
  border: 1px solid rgba(31, 117, 211, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 18%, rgba(31, 117, 211, 0.08), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(255, 122, 0, 0.09), transparent 24%),
    radial-gradient(circle at 50% 54%, rgba(11, 43, 92, 0.07), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(239, 247, 254, 0.72));
  box-shadow: 0 24px 70px rgba(8, 38, 83, 0.08);
}

.program-orbit {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(260px, auto));
  gap: 34px 42px;
  align-items: stretch;
}

.program-orbit::before,
.program-orbit::after {
  content: "";
  position: absolute;
  inset: 50% 19%;
  z-index: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(29, 111, 214, 0), rgba(29, 111, 214, 0.46), rgba(255, 122, 0, 0.4), rgba(29, 111, 214, 0));
  transform: translateY(-50%);
}

.program-orbit::after {
  inset: 16% auto 16% 50%;
  width: 2px;
  height: auto;
  background: linear-gradient(180deg, rgba(29, 111, 214, 0), rgba(29, 111, 214, 0.46), rgba(255, 122, 0, 0.4), rgba(29, 111, 214, 0));
  transform: translateX(-50%);
}

.program-card {
  --program-accent: var(--blue-600);
  --program-soft: rgba(29, 111, 214, 0.08);
  --program-mid: rgba(29, 111, 214, 0.22);
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--program-mid);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 14%, var(--program-soft), transparent 34%),
    linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.9));
  box-shadow: var(--shadow);
}

.program-card-head {
  display: grid;
  grid-template-columns: 36px 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 62px;
  margin-bottom: 20px;
}

.program-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 7px;
  background: var(--program-accent);
}

.program-card-tools {
  --program-accent: #1d6fd6;
  --program-soft: rgba(29, 111, 214, 0.1);
  --program-mid: rgba(29, 111, 214, 0.28);
  grid-column: 1;
  grid-row: 1;
}

.program-card-training {
  --program-accent: #ff7a00;
  --program-soft: rgba(255, 122, 0, 0.1);
  --program-mid: rgba(255, 122, 0, 0.3);
  grid-column: 3;
  grid-row: 1;
}

.program-card-process {
  --program-accent: #0b2b5c;
  --program-soft: rgba(11, 43, 92, 0.1);
  --program-mid: rgba(11, 43, 92, 0.26);
  grid-column: 1;
  grid-row: 2;
}

.program-card-improvement {
  --program-accent: #0f766e;
  --program-soft: rgba(15, 118, 110, 0.1);
  --program-mid: rgba(15, 118, 110, 0.28);
  grid-column: 3;
  grid-row: 2;
}

.program-card-action {
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.program-card-action:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 117, 211, 0.35);
  box-shadow: 0 28px 70px rgba(8, 38, 83, 0.13);
}

.program-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--program-accent);
  font-size: 18px;
  font-weight: 900;
}

.program-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 50%;
  color: var(--blue-900);
  background: #f5f9fc;
  border: 2px solid var(--program-mid);
}

.program-icon svg {
  width: 37px;
  height: 37px;
}

.program-card h3 {
  margin: 0;
  color: var(--blue-900);
  font-size: 24px;
  line-height: 1.12;
}

.program-card p,
.program-close {
  color: var(--slate-700);
  font-size: 19px;
  line-height: 1.43;
}

.program-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--blue-600);
  font-size: 17px;
  font-weight: 900;
}

.program-link::after {
  content: "->";
  margin-left: 8px;
  color: var(--orange);
}

.program-link.muted {
  color: var(--blue-800);
}

.program-link.muted::after {
  content: "";
}

.program-center {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: center;
  width: 230px;
  min-height: 300px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(31, 117, 211, 0.22);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 122, 0, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 255, 0.9));
  box-shadow: 0 28px 70px rgba(8, 35, 72, 0.15);
}

.program-center::before {
  content: "";
  position: absolute;
  inset: -16px;
  border: 1px dashed rgba(31, 117, 211, 0.22);
  border-radius: 36px;
}

.program-center img {
  position: relative;
  z-index: 1;
  width: 150px;
  max-width: 100%;
  height: auto;
}

.program-center span {
  position: relative;
  z-index: 1;
  color: var(--blue-900);
  font-size: 18px;
  font-weight: 900;
}

.training-section {
  scroll-margin-top: 112px;
  padding: 58px 0 78px;
}

.training-heading {
  max-width: 1180px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading.training-heading h2 {
  max-width: 1040px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(42px, 4.1vw, 62px);
  line-height: 1.04;
}

.section-heading.training-heading p:last-child {
  max-width: 1040px;
  margin-right: auto;
  margin-left: auto;
  font-size: 21px;
  line-height: 1.55;
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.training-card {
  --training-accent: var(--orange);
  --training-soft: rgba(255, 122, 0, 0.1);
  --training-mid: rgba(255, 122, 0, 0.22);
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 34px 32px 32px;
  border: 1px solid var(--training-mid);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 10%, var(--training-soft), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.86));
  box-shadow: 0 20px 42px rgba(8, 35, 72, 0.12);
}

.training-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 8px;
  background: var(--training-accent);
}

.training-card::after {
  content: "";
  position: absolute;
  top: 62px;
  right: 30px;
  width: 72px;
  height: 72px;
  border: 1px dashed var(--training-mid);
  border-radius: 50%;
  opacity: 0.75;
}

.training-card > * {
  position: relative;
  z-index: 1;
}

.training-card-production {
  --training-accent: #ff7a00;
  --training-soft: rgba(255, 122, 0, 0.12);
  --training-mid: rgba(255, 122, 0, 0.3);
}

.training-card-workshop {
  --training-accent: #1d6fd6;
  --training-soft: rgba(29, 111, 214, 0.12);
  --training-mid: rgba(29, 111, 214, 0.28);
}

.training-card-management {
  --training-accent: #0f766e;
  --training-soft: rgba(15, 118, 110, 0.12);
  --training-mid: rgba(15, 118, 110, 0.28);
}

.training-level {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 22px;
  padding: 7px 14px;
  border: 1px solid var(--training-mid);
  border-radius: 999px;
  background: var(--training-soft);
  color: var(--blue-800);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.training-card h3 {
  min-height: 72px;
  margin-bottom: 18px;
  color: var(--blue-900);
  font-size: 29px;
  line-height: 1.12;
}

.training-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.training-card li {
  position: relative;
  padding-left: 22px;
  color: var(--slate-700);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}

.training-card li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--training-accent);
}

.section-heading {
  max-width: 920px;
  margin-bottom: 34px;
}

.phase-heading {
  max-width: 1180px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.phase-heading h2 {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(42px, 4.1vw, 62px);
  line-height: 1.06;
}

.section-heading.phase-heading p {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  font-size: 22px;
  line-height: 1.5;
}

.phase-heading-claim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 18px;
  padding: 7px 13px;
  border: 1px solid rgba(31, 117, 211, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--blue-800);
  font-size: 16px;
  font-weight: 900;
}

.section-heading h2,
.nextlevel-inner h2,
.jorma-copy h2 {
  margin-bottom: 16px;
  color: var(--blue-900);
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1.12;
}

.section-heading p,
.nextlevel-inner p,
.jorma-copy p {
  color: var(--slate-700);
  font-size: 21px;
  line-height: 1.45;
}

.phase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.phase-system {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(31, 117, 211, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 16%, rgba(31, 117, 211, 0.08), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(255, 122, 0, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(239, 247, 254, 0.72));
  box-shadow: 0 24px 70px rgba(8, 38, 83, 0.08);
}

.phase-system::before {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border: 1px dashed rgba(31, 117, 211, 0.18);
  border-radius: 18px;
}

.phase-roadmap {
  position: relative;
}

.phase-card {
  position: relative;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 112px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.phase-roadmap .phase-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 118px;
  right: -43px;
  width: 62px;
  height: 6px;
  z-index: 6;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-600), var(--orange));
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.88),
    0 8px 20px rgba(255, 122, 0, 0.2);
}

.phase-roadmap .phase-card:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 110px;
  right: -45px;
  width: 20px;
  height: 20px;
  z-index: 7;
  border-top: 6px solid var(--orange);
  border-right: 6px solid var(--orange);
  border-radius: 3px;
  transform: rotate(45deg);
  background: transparent;
}

.phase-top {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  margin-bottom: 22px;
}

.phase-top .step-label {
  margin: 0;
}

.phase-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--blue-600);
  font-size: 18px;
  font-weight: 900;
}

.phase-step-text {
  color: var(--blue-800);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.phase-card .tool-icon,
.phase-logo {
  width: 118px;
  height: 118px;
  margin-bottom: 26px;
}

.phase-tool-lockup {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 124px;
  margin-bottom: 24px;
}

.paintpro-tool-logo {
  display: block;
  width: 92px;
  height: 92px;
  margin: 0;
}

.tool-logo-inline {
  display: grid;
  place-items: center;
}

.tool-logo-inline svg {
  display: block;
  width: 100%;
  height: 100%;
}

.paintpro-tool-logo-large {
  width: 132px;
  height: 132px;
  margin: 0 auto 24px;
}

.phase-card .tool-icon::before {
  inset: -10px;
  border-width: 5px;
}

.phase-card h3 {
  min-height: auto;
  margin: 5px 0 0;
  color: var(--blue-900);
  font-size: 28px;
  line-height: 1.12;
}

.phase-tool-name {
  margin: 0;
  color: var(--blue-600) !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  font-weight: 900;
}

.phase-card p {
  color: var(--slate-700);
  font-size: 19px;
  line-height: 1.43;
}

.phase-note {
  min-height: 54px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--blue-800) !important;
  font-weight: 800;
}

.phase-prereq {
  min-height: 96px;
  margin-top: auto;
  padding: 16px 16px 16px 18px;
  border: 1px solid rgba(31, 117, 211, 0.2);
  border-left: 4px solid var(--blue-600);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(31, 117, 211, 0.06), rgba(255, 255, 255, 0.88));
}

.phase-prereq strong,
.phase-prereq span {
  display: block;
}

.phase-prereq strong {
  margin-bottom: 5px;
  color: var(--blue-900);
  font-size: 17px;
  font-weight: 900;
}

.phase-prereq span {
  color: var(--slate-700);
  font-size: 16px;
  line-height: 1.35;
}

.phase-prereq-open {
  border-left-color: var(--orange);
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.09), rgba(255, 255, 255, 0.9));
}

.phase-card .btn {
  width: 100%;
  margin-top: 16px;
}

.nextlevel-band {
  scroll-margin-top: 112px;
  padding: 74px 0;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.nextlevel-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 52px;
  align-items: start;
}

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

.nextlevel-grid article {
  min-height: 160px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--page);
}

.nextlevel-grid strong {
  display: block;
  margin-bottom: 12px;
  color: var(--blue-900);
  font-size: 20px;
}

.nextlevel-grid span {
  color: var(--slate-700);
  font-size: 17px;
  line-height: 1.4;
}

.jorma-section {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 52px;
  align-items: center;
  scroll-margin-top: 112px;
  padding: 76px 0;
}

.jorma-logo-card {
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.jorma-logo-card img {
  display: block;
  width: min(100%, 260px);
  height: auto;
}

.jorma-copy {
  max-width: 840px;
}

.jorma-copy .action-row {
  margin-top: 28px;
}

.discover-landing-page {
  align-items: center;
}

.discover-landing {
  min-height: 680px;
}

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

.discover-side-panel {
  background:
    radial-gradient(circle at 50% 28%, rgba(29, 111, 214, 0.12), transparent 24%),
    var(--blue-100);
}

.discover-checklist {
  display: grid;
  gap: 12px;
  width: 100%;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.discover-checklist li {
  padding: 13px 15px;
  border: 1px solid var(--blue-200);
  border-radius: 10px;
  color: var(--blue-800);
  background: #fff;
  font-size: 17px;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .nextlevel-hero,
  .portal-hero,
  .nextlevel-inner,
  .jorma-section {
    grid-template-columns: 1fr;
  }

  .portal-hero-panel {
    min-height: 360px;
  }

  .nextlevel-hero-card {
    min-height: auto;
  }

  .phase-grid,
  .discover-grid,
  .training-grid {
    grid-template-columns: 1fr;
  }

  .program-system {
    padding: 18px;
  }

  .program-orbit {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .program-orbit::before,
  .program-orbit::after {
    display: none;
  }

  .program-card-tools,
  .program-card-training,
  .program-card-process,
  .program-card-improvement,
  .program-center {
    grid-column: auto;
    grid-row: auto;
  }

  .program-center {
    order: -1;
    width: min(100%, 360px);
    min-height: auto;
    margin: 0 auto 8px;
  }

  .program-card-head {
    grid-template-columns: 34px 54px minmax(0, 1fr);
    gap: 12px;
  }

  .phase-card {
    min-height: auto;
  }

  .phase-system {
    padding: 18px;
  }

  .phase-roadmap .phase-card:not(:last-child)::before,
  .phase-roadmap .phase-card:not(:last-child)::after {
    display: none;
  }

  .phase-tool-lockup {
    min-height: auto;
  }

  .phase-card h3,
  .phase-note {
    min-height: auto;
  }

  .jorma-logo-card {
    width: min(100%, 420px);
  }
}

@media (max-width: 760px) {
  .nextlevel-hero,
  .portal-hero {
    padding: 34px 0 44px;
  }

  .nextlevel-hero h1,
  .portal-hero h1 {
    font-size: 40px;
  }

  .nextlevel-hero-card,
  .portal-hero-panel,
  .program-card,
  .training-card,
  .phase-card,
  .landing-card {
    padding: 24px;
  }

  .nextlevel-hero-card {
    padding: 0;
  }

  .nextlevel-shield-hero {
    height: clamp(190px, 52vw, 260px);
  }

  .action-row {
    width: 100%;
  }

  .btn {
    width: 100%;
    min-height: 58px;
    padding: 10px 18px;
  }

  .btn span[aria-hidden="true"] {
    flex: 0 0 auto;
  }

  .route-engine {
    width: 168px;
    height: 168px;
  }

  .route-mini-grid,
  .hero-signal-grid,
  .nextlevel-grid {
    grid-template-columns: 1fr;
  }

  .phase-card p,
  .training-card li,
  .section-heading p,
  .nextlevel-inner p,
  .jorma-copy p {
    font-size: 18px;
  }

  .program-card,
  .training-card {
    min-height: auto;
  }

  .training-card h3 {
    min-height: auto;
    font-size: 25px;
  }

  .phase-tool-lockup {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
  }

  .paintpro-tool-logo {
    width: 82px;
    height: 82px;
  }

  .phase-card h3 {
    font-size: 25px;
  }

  .phase-heading-claim {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .section-heading.phase-heading h2 {
    font-size: 36px;
  }

  .section-heading.training-heading h2 {
    font-size: 36px;
  }

  .section-heading.program-heading h2 {
    font-size: 36px;
  }

  .section-heading.phase-heading p {
    font-size: 18px;
  }

  .section-heading.training-heading p:last-child {
    font-size: 18px;
  }

  .section-heading.program-heading p:last-child {
    font-size: 18px;
  }
}
