.portal-page {
  padding: 56px 0 80px;
}

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

.portal-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255,59,107,.22), transparent 34%),
    radial-gradient(circle at 8% 90%, rgba(130,78,255,.2), transparent 36%),
    rgba(19,12,31,.88);
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
}

.portal-kicker,
.portal-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #62dcff;
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.portal-kicker::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #39e59d;
  box-shadow: 0 0 18px rgba(57,229,157,.8);
  content: "";
}

.portal-hero h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  color: #fff;
  font-size: clamp(2.15rem, 5vw, 4.35rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.portal-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: clamp(1rem, 2vw, 1.17rem);
  line-height: 1.7;
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.portal-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  color: #fff;
  background: rgba(255,255,255,.06);
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.portal-button:hover,
.portal-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.32);
  background: rgba(255,255,255,.11);
}

.portal-button--primary {
  border-color: transparent;
  background: linear-gradient(135deg, #8e4dff, #ff3b6b);
  box-shadow: 0 14px 32px rgba(255,59,107,.2);
}

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

.portal-stat {
  min-height: 112px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 20px;
  background: rgba(255,255,255,.055);
}

.portal-stat strong {
  display: block;
  color: #fff;
  font-size: 1.75rem;
}

.portal-stat span {
  color: rgba(255,255,255,.6);
  font-size: .88rem;
}

.portal-section {
  margin-top: 54px;
}

.portal-section-head {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.portal-section-head h2 {
  margin: 6px 0 0;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  letter-spacing: -.025em;
}

.portal-section-head p {
  max-width: 560px;
  margin: 0;
  color: rgba(255,255,255,.58);
  line-height: 1.6;
}

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

.portal-card {
  padding: 24px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  box-shadow: 0 18px 46px rgba(0,0,0,.18);
}

.portal-card--featured {
  grid-column: span 2;
  background:
    radial-gradient(circle at 100% 0, rgba(98,220,255,.15), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
}

.portal-card-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 14px;
  background: rgba(142,77,255,.18);
  font-size: 1.35rem;
}

.portal-card h2,
.portal-card h3 {
  margin: 0 0 10px;
  color: #fff;
  line-height: 1.24;
}

.portal-card p,
.portal-card li {
  color: rgba(255,255,255,.66);
  line-height: 1.68;
}

.portal-card ul,
.portal-card ol {
  margin: 16px 0 0;
  padding-left: 20px;
}

.portal-link {
  display: inline-flex;
  margin-top: 16px;
  color: #62dcff;
  font-weight: 800;
  text-decoration: none;
}

.portal-link:hover,
.portal-link:focus-visible {
  color: #fff;
}

.portal-details {
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 14px;
}

.portal-details summary {
  cursor: pointer;
  color: #62dcff;
  font-weight: 800;
}

.portal-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: portal-step;
}

.portal-step {
  padding: 22px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  background: rgba(255,255,255,.045);
  counter-increment: portal-step;
}

.portal-step::before {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 15px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #8e4dff, #ff3b6b);
  content: counter(portal-step);
  font-weight: 900;
}

.portal-step strong {
  display: block;
  color: #fff;
}

.portal-step span {
  display: block;
  margin-top: 7px;
  color: rgba(255,255,255,.6);
  line-height: 1.55;
}

.portal-callout {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  margin-top: 54px;
  padding: 28px 30px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: linear-gradient(110deg, rgba(142,77,255,.18), rgba(255,59,107,.13));
}

.portal-callout h2 {
  margin: 0 0 7px;
  color: #fff;
}

.portal-callout p {
  margin: 0;
  color: rgba(255,255,255,.64);
}

.portal-quiz fieldset {
  margin: 0 0 18px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
}

.portal-quiz legend {
  padding: 0 8px;
  color: #fff;
  font-weight: 800;
}

.portal-quiz label {
  display: block;
  margin-top: 10px;
  color: rgba(255,255,255,.7);
  cursor: pointer;
}

.portal-quiz input {
  margin-right: 8px;
  accent-color: #ff3b6b;
}

.portal-quiz button {
  border: 0;
  cursor: pointer;
}

.portal-result {
  min-height: 28px;
  margin: 18px 0 0;
  color: #62dcff;
  font-size: 1.05rem;
  font-weight: 800;
}

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

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

@media (max-width: 620px) {
  .portal-page {
    padding: 30px 0 56px;
  }

  .portal-shell {
    width: min(100% - 22px, 1180px);
  }

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

  .portal-statbox,
  .portal-grid,
  .portal-steps {
    grid-template-columns: 1fr;
  }

  .portal-card--featured {
    grid-column: auto;
  }

  .portal-section-head,
  .portal-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-callout .portal-button {
    width: 100%;
  }
}
