.portal-page {
  background:
    radial-gradient(circle at 10% 0%, rgba(181, 53, 49, 0.22), transparent 28rem),
    radial-gradient(circle at 90% 12%, rgba(245, 160, 0, 0.14), transparent 24rem),
    #050505;
  color: #fff;
}

.portal-nav {
  position: sticky;
  top: 18px;
  z-index: 20;
}

.portal-hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: center;
  padding: 132px 6vw 84px;
  overflow: hidden;
}

.portal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.78)),
    url("../assets/soar19-hero-bg.png") center / cover no-repeat;
  opacity: 0.92;
}

.portal-hero::after {
  content: "";
  position: absolute;
  width: 48vw;
  height: 48vw;
  right: -10vw;
  top: 10vh;
  border-radius: 50%;
  background: var(--red);
  filter: blur(70px);
  opacity: 0.22;
}

.portal-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
  gap: clamp(38px, 7vw, 100px);
  align-items: center;
  width: min(1220px, 100%);
  margin: 0 auto;
}

.portal-copy h1 {
  max-width: 820px;
  font-size: clamp(3.1rem, 6vw, 6.4rem);
}

.portal-copy p {
  max-width: 680px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.12rem;
  line-height: 1.75;
}

.portal-panel {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.portal-panel h2 {
  font-size: 1.35rem;
}

.portal-icon-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.mini-icon,
.card-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 24%, rgba(245, 160, 0, 0.22), transparent 42%),
    linear-gradient(135deg, rgba(181, 53, 49, 0.7), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card-icon {
  margin-bottom: 28px;
  border-color: rgba(16, 16, 20, 0.08);
  background:
    radial-gradient(circle at 30% 24%, rgba(245, 160, 0, 0.28), transparent 42%),
    linear-gradient(135deg, var(--red), #171717);
}

.dark-card .card-icon {
  border-color: rgba(255, 255, 255, 0.16);
}

.mini-icon::before,
.mini-icon::after,
.card-icon::before,
.card-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.icon-hospital::before {
  width: 28px;
  height: 30px;
  border: 2px solid #fff;
  border-radius: 4px;
}

.icon-hospital::after {
  width: 16px;
  height: 16px;
  background:
    linear-gradient(#fff, #fff) center / 4px 16px no-repeat,
    linear-gradient(#fff, #fff) center / 16px 4px no-repeat;
}

.icon-medical-bed::before {
  width: 30px;
  height: 16px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: translateY(5px);
}

.icon-medical-bed::after {
  width: 12px;
  height: 8px;
  left: 14px;
  top: 19px;
  border: 2px solid #fff;
  border-radius: 6px 6px 2px 2px;
}

.icon-pulse::before {
  width: 32px;
  height: 18px;
  border-bottom: 3px solid #fff;
}

.icon-pulse::after {
  width: 30px;
  height: 20px;
  background: linear-gradient(135deg, transparent 38%, #fff 39% 45%, transparent 46% 54%, #fff 55% 61%, transparent 62%);
}

.icon-utensils::before {
  width: 3px;
  height: 30px;
  left: 21px;
  top: 12px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 9px 0 0 #fff;
}

.icon-utensils::after {
  width: 18px;
  height: 18px;
  right: 12px;
  top: 10px;
  border: 3px solid #fff;
  border-radius: 50%;
  border-bottom-color: transparent;
  transform: rotate(-34deg);
}

.icon-store::before {
  width: 32px;
  height: 24px;
  top: 19px;
  border: 2px solid #fff;
  border-radius: 3px;
}

.icon-store::after {
  width: 34px;
  height: 12px;
  top: 12px;
  border: 2px solid #fff;
  border-radius: 7px 7px 2px 2px;
  background: repeating-linear-gradient(90deg, transparent 0 7px, rgba(255, 255, 255, 0.85) 7px 10px);
}

.icon-ticket::before {
  width: 32px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 6px;
  transform: rotate(-8deg);
}

.icon-ticket::after {
  width: 2px;
  height: 16px;
  background: #fff;
  transform: rotate(-8deg);
}

.icon-condo::before {
  width: 14px;
  height: 32px;
  left: 12px;
  bottom: 11px;
  border: 2px solid #fff;
  border-radius: 3px;
  box-shadow: 17px -7px 0 -2px transparent, 17px -7px 0 0 #fff;
}

.icon-condo::after {
  width: 4px;
  height: 4px;
  left: 17px;
  top: 18px;
  background: #fff;
  box-shadow: 0 8px 0 #fff, 17px -4px 0 #fff, 17px 4px 0 #fff, 17px 12px 0 #fff;
}

.icon-resident::before {
  width: 13px;
  height: 13px;
  top: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.icon-resident::after {
  width: 28px;
  height: 17px;
  bottom: 11px;
  border: 2px solid #fff;
  border-radius: 16px 16px 5px 5px;
}

.icon-common-area::before {
  width: 30px;
  height: 22px;
  bottom: 13px;
  border: 2px solid #fff;
  border-radius: 4px 4px 10px 10px;
}

.icon-common-area::after {
  width: 34px;
  height: 2px;
  bottom: 12px;
  background: #fff;
  box-shadow: 0 -18px 0 -0.5px #fff;
}

.icon-school::before {
  width: 34px;
  height: 18px;
  top: 15px;
  border: 2px solid #fff;
  transform: skewY(-18deg);
}

.icon-school::after {
  width: 2px;
  height: 18px;
  right: 14px;
  top: 22px;
  background: #fff;
  box-shadow: 0 17px 0 -0.5px #fff;
}

.icon-book::before {
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 3px 9px 9px 3px;
}

.icon-book::after {
  width: 2px;
  height: 24px;
  left: 26px;
  background: #fff;
}

.icon-campus::before,
.icon-classroom::before {
  width: 32px;
  height: 24px;
  bottom: 12px;
  border: 2px solid #fff;
  border-radius: 3px;
}

.icon-campus::after {
  width: 36px;
  height: 12px;
  top: 11px;
  background: linear-gradient(135deg, transparent 45%, #fff 46% 55%, transparent 56%),
    linear-gradient(45deg, transparent 45%, #fff 46% 55%, transparent 56%);
}

.icon-classroom::after {
  width: 20px;
  height: 2px;
  top: 22px;
  background: #fff;
  box-shadow: 0 7px 0 #fff;
}

.icon-tool::before {
  width: 28px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 8px;
  transform: rotate(-42deg);
}

.icon-tool::after {
  width: 3px;
  height: 28px;
  background: #fff;
  transform: rotate(42deg);
}

.icon-vendor::before {
  width: 30px;
  height: 24px;
  bottom: 12px;
  border: 2px solid #fff;
  border-radius: 4px;
}

.icon-vendor::after {
  width: 20px;
  height: 12px;
  top: 13px;
  border: 2px solid #fff;
  border-radius: 4px 4px 0 0;
}

.icon-knowledge::before {
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.icon-knowledge::after {
  width: 14px;
  height: 3px;
  background: #fff;
  box-shadow: 0 7px 0 #fff;
}

.icon-checklist::before {
  width: 28px;
  height: 32px;
  border: 2px solid #fff;
  border-radius: 4px;
}

.icon-checklist::after {
  width: 16px;
  height: 12px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.icon-network::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: -14px 13px 0 #fff, 14px 13px 0 #fff;
}

.icon-network::after {
  width: 32px;
  height: 22px;
  border-left: 2px solid #fff;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(7px);
}

.icon-approval::before {
  width: 30px;
  height: 30px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.icon-approval::after {
  width: 17px;
  height: 9px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg);
}

.icon-location::before {
  width: 22px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
}

.icon-location::after {
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.icon-admin::before {
  width: 30px;
  height: 24px;
  bottom: 12px;
  border: 2px solid #fff;
  border-radius: 4px;
}

.icon-admin::after {
  width: 18px;
  height: 8px;
  top: 13px;
  border: 2px solid #fff;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

.portal-panel ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.portal-panel li {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(0, 0, 0, 0.24);
}

.portal-section {
  padding: 104px 6vw;
}

.portal-section.light {
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(245, 160, 0, 0.13), transparent 24rem),
    #f7f5ef;
}

.portal-section.dark {
  background:
    radial-gradient(circle at 82% 20%, rgba(181, 53, 49, 0.24), transparent 24rem),
    #050505;
}

.portal-heading {
  width: min(880px, 100%);
  margin: 0 auto 44px;
  text-align: center;
}

.portal-heading h2 {
  font-size: clamp(2.1rem, 4.6vw, 4.7rem);
  line-height: 1;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.portal-card {
  min-height: 230px;
  padding: 26px;
  border: 1px solid rgba(16, 16, 20, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.07);
}

.portal-card.dark-card {
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    #111;
}

.portal-card span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), #111);
  font-weight: 900;
}

.portal-card h3 {
  margin-bottom: 12px;
  font-size: 1.16rem;
}

.portal-card p {
  color: var(--muted);
  line-height: 1.62;
}

.portal-card.dark-card p {
  color: rgba(255, 255, 255, 0.66);
}

.portal-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: min(1180px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.portal-metric {
  min-height: 170px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.055);
}

.portal-metric strong {
  display: block;
  font-size: clamp(2rem, 4vw, 4rem);
}

.portal-metric span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.45;
}

.portal-cta {
  text-align: center;
}

.privacy-hero {
  padding: 150px 6vw 64px;
  background:
    radial-gradient(circle at 18% 16%, rgba(181, 53, 49, 0.32), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(245, 160, 0, 0.18), transparent 24rem),
    #050505;
}

.privacy-wrap {
  width: min(960px, 100%);
  margin: 0 auto;
}

.privacy-hero h1 {
  font-size: clamp(3.1rem, 6vw, 6.3rem);
}

.privacy-hero p {
  max-width: 760px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.1rem;
  line-height: 1.7;
}

.privacy-hero small {
  display: block;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.52);
}

.privacy-content {
  padding: 72px 6vw 110px;
  color: var(--ink);
  background: #f7f5ef;
}

.privacy-card {
  padding: 42px;
  border: 1px solid rgba(16, 16, 20, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.07);
}

.privacy-card h2 {
  margin-top: 34px;
  font-size: 1.35rem;
}

.privacy-card h2:first-child {
  margin-top: 0;
}

.privacy-card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.78;
}

.privacy-card a {
  color: var(--red);
  font-weight: 800;
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

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

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

@media (max-width: 680px) {
  .portal-hero,
  .portal-section,
  .privacy-hero,
  .privacy-content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .privacy-card {
    padding: 26px;
  }

  .portal-panel {
    padding: 18px;
    backdrop-filter: blur(10px);
  }

  .portal-metrics {
    grid-template-columns: 1fr;
  }

  .portal-heading {
    text-align: left;
  }
}
