
:root {
  --bg: #f3f6fc;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #172033;
  --muted: #667085;
  --blue: #3564dc;
  --blue-strong: #2853c6;
  --blue-soft: #eaf0ff;
  --border: #dce4f2;
  --shadow: 0 18px 50px rgba(23, 32, 51, 0.08);
  --shadow-hover: 0 22px 60px rgba(40, 83, 198, 0.15);
  --radius-lg: 28px;
  --radius-md: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(75, 117, 235, 0.16), transparent 34rem),
    linear-gradient(180deg, #eef3ff 0%, var(--bg) 34%, #f7f9fd 100%);
}

a { color: inherit; }

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 32px;
}

.hero {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 46px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #4c75e9, #315bcf);
  color: #fff;
  font-weight: 800;
  letter-spacing: .03em;
  box-shadow: 0 14px 30px rgba(49, 91, 207, .28);
}

.eyebrow,
.section-kicker,
.card-kicker {
  margin: 0;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(2.15rem, 5vw, 3.8rem);
  line-height: 1.03;
  letter-spacing: -.045em;
}

.hero-copy {
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.7;
}

.portal-section {
  margin-top: 28px;
  padding: 30px;
  border: 1px solid rgba(220, 228, 242, .92);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .56);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.section-heading {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.section-number {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: .86rem;
  font-weight: 800;
}


.section-copy {
  min-width: 0;
}

.guide-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 11px 14px;
  border: 1px solid #c9d6f7;
  border-radius: 13px;
  background: rgba(255, 255, 255, .84);
  color: var(--blue-strong);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 750;
  box-shadow: 0 7px 18px rgba(40, 83, 198, .08);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.guide-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guide-button:hover {
  transform: translateY(-2px);
  border-color: #9fb6ef;
  background: #fff;
  box-shadow: 0 10px 24px rgba(40, 83, 198, .14);
}

.guide-button:focus-visible {
  outline: 3px solid rgba(53, 100, 220, .25);
  outline-offset: 3px;
}

.section-heading h2 {
  margin: 5px 0 6px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -.03em;
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.portal-card {
  position: relative;
  min-height: 275px;
  padding: 26px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(23, 32, 51, .055);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.portal-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 100, 220, .10), transparent 68%);
  pointer-events: none;
}

.portal-card:hover {
  transform: translateY(-4px);
  border-color: #b9c9f5;
  background: var(--surface-strong);
  box-shadow: var(--shadow-hover);
}

.portal-card:focus-visible {
  outline: 3px solid rgba(53, 100, 220, .32);
  outline-offset: 4px;
}

.icon-box {
  width: 58px;
  height: 58px;
  max-width: 58px;
  max-height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 22px;
  border-radius: 17px;
  background: var(--blue-soft);
  color: var(--blue);
}

.icon-box svg {
  width: 29px;
  height: 29px;
  max-width: 29px;
  max-height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-card h3 {
  margin: 7px 0 10px;
  font-size: 1.4rem;
  letter-spacing: -.025em;
}

.portal-card p {
  margin: 0 0 26px;
  max-width: 48ch;
  color: var(--muted);
  line-height: 1.65;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-strong);
  font-weight: 750;
}

.card-link span { transition: transform .2s ease; }
.portal-card:hover .card-link span { transform: translateX(3px); }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 6px 0;
  color: #8a94a6;
  font-size: .9rem;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 32px;
  }

  .hero { margin-bottom: 30px; }

  .brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .portal-section {
    padding: 20px;
    border-radius: 22px;
  }

  .section-heading { gap: 13px; }

  .section-heading {
    flex-wrap: wrap;
  }

  .section-copy {
    flex: 1 1 calc(100% - 52px);
  }

  .guide-button {
    width: 100%;
    justify-content: center;
    margin-left: 51px;
    margin-top: 2px;
  }


  .section-number {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

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

  .portal-card {
    min-height: auto;
    padding: 22px;
  }

  .icon-box {
    width: 52px;
    height: 52px;
    max-width: 52px;
    max-height: 52px;
    border-radius: 15px;
  }

  .icon-box svg {
    width: 26px;
    height: 26px;
    max-width: 26px;
    max-height: 26px;
  }

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

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
