:root {
  --ink: #17211f;
  --muted: #687773;
  --line: rgba(20, 83, 69, 0.11);
  --green: #078c72;
  --green-dark: #046956;
  --mint: #dff7ee;
  --blue: #3b76e8;
  --orange: #f59e42;
  --violet: #8c63e7;
  --surface: rgba(255, 255, 255, 0.78);
  --shadow: 0 24px 70px rgba(34, 74, 63, 0.1);
  --radius: 30px;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f7fbf9;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 87% 4%, rgba(156, 239, 218, 0.34), transparent 24rem),
    radial-gradient(circle at 4% 32%, rgba(190, 228, 255, 0.25), transparent 27rem),
    linear-gradient(180deg, #fbfdfc 0%, #f5faf7 55%, #fbfdfc 100%);
}

body.menu-open {
  overflow: hidden;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 12px;
  color: #fff;
  background: var(--green-dark);
}

.skip-link:focus {
  transform: none;
}

.page-glow {
  position: fixed;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
  pointer-events: none;
}

.page-glow-one {
  top: 15%;
  right: -16rem;
  background: #8ee8d2;
}

.page-glow-two {
  top: 56%;
  left: -18rem;
  background: #b8d5ff;
}

.glass {
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.73);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  padding: 18px 28px;
  transition: padding 0.35s ease;
}

.site-header.scrolled {
  padding-top: 10px;
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(1160px, 100%);
  min-height: 64px;
  margin: 0 auto;
  padding: 9px 12px 9px 19px;
  border-color: rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  box-shadow: 0 16px 44px rgba(31, 64, 55, 0.09);
  transition:
    min-height 0.35s ease,
    box-shadow 0.35s ease;
}

.site-header.scrolled .nav-shell {
  min-height: 58px;
  box-shadow: 0 18px 54px rgba(31, 64, 55, 0.14);
}

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

.brand img,
.footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(7, 140, 114, 0.2);
}

.brand > span,
.footer-brand > span {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.brand strong,
.footer-brand strong {
  color: var(--green);
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.6vw, 34px);
}

.nav-menu a {
  position: relative;
  padding: 10px 0;
  color: #55625f;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-menu a::after {
  position: absolute;
  right: 50%;
  bottom: 3px;
  left: 50%;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  content: "";
  transition:
    right 0.25s ease,
    left 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--green-dark);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  right: 12%;
  left: 12%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 43px;
  padding: 0 8px 0 18px;
  border-radius: 15px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 10px 26px rgba(7, 140, 114, 0.24);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.nav-cta i {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 10px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.94);
  font-style: normal;
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: var(--green-dark);
  box-shadow: 0 15px 32px rgba(7, 140, 114, 0.3);
}

.menu-button {
  display: none;
}

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(40px, 6vw, 86px);
  min-height: 760px;
  padding-top: 122px;
}

.hero-stage {
  position: relative;
  min-width: 0;
  perspective: 1400px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.orb-one {
  top: -14%;
  left: -14%;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(7, 140, 114, 0.11);
  box-shadow:
    0 0 0 42px rgba(7, 140, 114, 0.025),
    0 0 0 86px rgba(7, 140, 114, 0.018);
}

.orb-two {
  right: -2%;
  bottom: -12%;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle at 35% 30%, rgba(155, 240, 218, 0.64), rgba(106, 198, 176, 0.05));
  filter: blur(2px);
}

.product-scene {
  position: relative;
  min-height: 455px;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

.dashboard-window {
  position: absolute;
  z-index: 2;
  top: 55px;
  right: 0;
  left: 2%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 38px 80px rgba(31, 73, 61, 0.2),
    0 10px 30px rgba(31, 73, 61, 0.08);
  transform: rotateY(8deg) rotateX(1deg) rotateZ(-1deg);
  transform-origin: 50% 50%;
}

.window-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 49px;
  padding: 0 15px 0 19px;
  border-bottom: 1px solid #edf1ef;
}

.window-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2d3a36;
  font-size: 8px;
  font-weight: 800;
}

.window-brand img {
  width: 23px;
  height: 23px;
  border-radius: 7px;
}

.window-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.window-actions i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9e5e1;
}

.window-actions b {
  display: grid;
  width: 25px;
  height: 25px;
  margin-left: 4px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, #13ab88, #087761);
  font-size: 7px;
}

.dashboard-body {
  display: grid;
  grid-template-columns: 50px 1fr;
  min-height: 312px;
  background: #f7faf9;
}

.dash-rail {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 11px;
  padding-top: 17px;
  border-right: 1px solid #e8efec;
  background: #fff;
}

.dash-rail span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  color: #98a8a3;
  font-size: 11px;
}

.dash-rail span.active {
  color: var(--green);
  background: #e7f7f2;
}

.dash-content {
  min-width: 0;
  padding: 18px 18px 15px;
}

.dash-heading,
.chart-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-heading div,
.chart-title span {
  display: flex;
  flex-direction: column;
}

.dash-heading small,
.chart-title small,
.ring-card small {
  color: #8a9995;
  font-size: 7px;
}

.dash-heading strong {
  margin-top: 3px;
  font-size: 13px;
}

.dash-heading button {
  padding: 6px 8px;
  border: 1px solid #e1eae7;
  border-radius: 7px;
  color: #66746f;
  background: #fff;
  font-size: 6px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.metric-row article {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e8efed;
  border-radius: 11px;
  background: #fff;
}

.metric-row i {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  font-size: 9px;
  font-style: normal;
}

.metric-row i.green {
  color: #087b65;
  background: #e4f7f1;
}

.metric-row i.blue {
  color: #306fc8;
  background: #eaf2ff;
}

.metric-row i.orange {
  color: #c87521;
  background: #fff3e7;
}

.metric-row span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.metric-row small {
  color: #8c9a96;
  font-size: 6px;
}

.metric-row strong {
  margin-top: 2px;
  font-size: 10px;
}

.chart-grid {
  display: grid;
  grid-template-columns: 1.7fr 0.8fr;
  gap: 9px;
  margin-top: 9px;
}

.bar-card,
.ring-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e8efed;
  border-radius: 12px;
  background: #fff;
}

.chart-title strong {
  margin-top: 2px;
  font-size: 8px;
}

.chart-title em {
  padding: 4px 5px;
  border-radius: 5px;
  color: #07866c;
  background: #e9f8f3;
  font-size: 6px;
  font-style: normal;
  font-weight: 800;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 75px;
  margin-top: 9px;
  padding-top: 8px;
  border-bottom: 1px solid #edf2f0;
  background: repeating-linear-gradient(to bottom, #edf2f0 0, #edf2f0 1px, transparent 1px, transparent 23px);
}

.bar-chart span {
  width: 100%;
  height: var(--bar);
  min-height: 12px;
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(180deg, #42bba0, #0a886e);
  animation: barGrow 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transform-origin: bottom;
}

.bar-chart span:nth-child(2n) {
  opacity: 0.66;
}

.ring-card {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.progress-ring {
  display: grid;
  width: 61px;
  height: 61px;
  margin: 8px 0 6px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 86%, #e9f0ed 86%);
}

.progress-ring::before {
  grid-area: 1/1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.progress-ring strong {
  z-index: 1;
  grid-area: 1/1;
  font-size: 11px;
}

.ring-card > span {
  color: #899793;
  font-size: 6px;
}

.activity-line {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  margin-top: 9px;
  padding: 0 10px;
  border: 1px solid #e8efed;
  border-radius: 10px;
  background: #fff;
}

.activity-line i {
  width: 17px;
  height: 17px;
  border-radius: 6px;
  background: #e5f6f1;
}

.activity-line span {
  width: 28%;
  height: 5px;
  border-radius: 9px;
  background: #edf2f0;
}

.activity-line span + span {
  width: 17%;
}

.activity-line b {
  width: 23px;
  height: 9px;
  margin-left: auto;
  border-radius: 5px;
  background: #dff5ee;
}

.mini-panel {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 158px;
  padding: 11px 12px;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(29, 68, 57, 0.15);
  animation: miniFloat 4.8s ease-in-out infinite;
}

.mini-panel div {
  display: flex;
  flex-direction: column;
}

.mini-panel small {
  color: #879792;
  font-size: 7px;
}

.mini-panel strong {
  margin-top: 2px;
  font-size: 9px;
}

.panel-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  font-style: normal;
  font-weight: 800;
}

.panel-icon.violet {
  color: #7952cf;
  background: #f0eafe;
}

.panel-icon.green {
  color: #087b65;
  background: #e5f7f1;
}

.mini-panel em {
  margin-left: auto;
  color: #08846b;
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
}

.panel-student {
  top: 13px;
  right: 2%;
}

.panel-sync {
  bottom: 11px;
  left: -1%;
  animation-delay: -2.4s;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(7, 140, 114, 0.1);
}

.hero h1 {
  max-width: 560px;
  margin: 18px 0 20px;
  font-size: clamp(46px, 5vw, 67px);
  line-height: 1.03;
  letter-spacing: -0.062em;
}

.hero h1 span,
.section-heading h2 span {
  color: var(--green);
}

.hero-copy > p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 29px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 17px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.button-primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 13px 30px rgba(7, 140, 114, 0.24);
}

.button-primary span {
  font-size: 16px;
}

.button-primary:hover {
  transform: translateY(-3px);
  background: var(--green-dark);
  box-shadow: 0 19px 37px rgba(7, 140, 114, 0.3);
}

.button-ghost {
  border: 1px solid rgba(23, 77, 64, 0.12);
  background: rgba(255, 255, 255, 0.64);
}

.button-ghost:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 13px 30px rgba(42, 76, 67, 0.1);
}

.play-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: #e4f6f0;
  font-size: 8px;
  font-style: normal;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #66746f;
  font-size: 9px;
  font-weight: 700;
}

.trust-row i {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: #e2f6ef;
  font-size: 8px;
  font-style: normal;
}

.solution-section,
.portal-section,
.partner-section,
.contact-section {
  padding-top: 105px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
}

.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.052em;
}

.section-heading > p {
  max-width: 430px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.section-heading.centered {
  align-items: center;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.section-heading.centered > p {
  max-width: 560px;
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 14px;
  margin-top: 40px;
}

.feature-card,
.portal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(16, 78, 63, 0.1);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(37, 75, 65, 0.07);
  transform:
    perspective(900px)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    translateY(var(--lift, 0px));
  transform-style: preserve-3d;
  transition:
    transform 0.22s ease-out,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.feature-card::before,
.portal-card::before {
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 207, 177, 0.14), transparent 68%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.feature-card:hover::before,
.portal-card:hover::before {
  opacity: 1;
}

.feature-card:hover,
.portal-card:hover {
  --lift: -7px;
  border-color: rgba(7, 140, 114, 0.22);
  box-shadow: 0 28px 65px rgba(25, 76, 61, 0.13);
}

.feature-card {
  min-height: 350px;
  padding: 30px;
  border-radius: 27px;
}

.feature-large {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  background:
    radial-gradient(circle at 85% 15%, rgba(168, 236, 220, 0.32), transparent 42%),
    rgba(255, 255, 255, 0.82);
}

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

.feature-icon {
  display: grid;
  width: 43px;
  height: 43px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 14px;
  color: #087d66;
  background: #e3f6f0;
  font-size: 17px;
}

.feature-icon.blue {
  color: #3d70c8;
  background: #eaf2ff;
}

.feature-icon.orange {
  color: #c97724;
  background: #fff1e4;
}

.feature-card small {
  color: #82908c;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.feature-card h3 {
  margin: 9px 0 13px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.insight-widget {
  align-self: end;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.83);
  box-shadow: 0 19px 44px rgba(39, 82, 69, 0.11);
}

.insight-top,
.insight-stat,
.insight-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.insight-top span {
  font-size: 8px;
  font-weight: 800;
}

.insight-top b {
  padding: 4px 6px;
  border-radius: 6px;
  color: #07866c;
  background: #e7f7f2;
  font-size: 6px;
}

.insight-stat {
  justify-content: flex-start;
  gap: 9px;
  margin-top: 16px;
}

.insight-stat strong {
  font-size: 23px;
  letter-spacing: -0.05em;
}

.insight-stat span {
  max-width: 65px;
  color: #84928e;
  font-size: 7px;
  line-height: 1.35;
}

.insight-bars {
  display: flex;
  align-items: end;
  gap: 7px;
  height: 70px;
  margin-top: 15px;
}

.insight-bars i {
  width: 100%;
  height: 48%;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #55c5aa, #078c72);
}

.insight-bars i:nth-child(2) { height: 64%; opacity: 0.66; }
.insight-bars i:nth-child(3) { height: 57%; }
.insight-bars i:nth-child(4) { height: 78%; opacity: 0.66; }
.insight-bars i:nth-child(5) { height: 71%; }
.insight-bars i:nth-child(6) { height: 91%; opacity: 0.66; }
.insight-bars i:nth-child(7) { height: 84%; }

.insight-note {
  justify-content: flex-start;
  gap: 8px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #e9efed;
}

.insight-note > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  color: #078c72;
  background: #e8f7f2;
  font-size: 9px;
}

.insight-note p {
  display: flex;
  flex-direction: column;
}

.insight-note b {
  color: #293632;
  font-size: 7px;
}

.insight-note small {
  margin-top: 2px;
  color: #91a09b;
  font-size: 6px;
  letter-spacing: 0;
}

.avatar-stack {
  display: flex;
  align-items: center;
  margin-top: 58px;
}

.avatar-stack i {
  display: grid;
  width: 35px;
  height: 35px;
  margin-left: -7px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #3978d7;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.avatar-stack i:first-child {
  margin-left: 0;
  background: #0c9277;
}

.avatar-stack i:nth-child(3) {
  background: #e78b3e;
}

.avatar-stack i:nth-child(4) {
  background: #8660d6;
}

.avatar-stack span {
  margin-left: 8px;
  color: #778580;
  font-size: 8px;
  font-weight: 800;
}

.growth-line {
  position: relative;
  display: flex;
  align-items: end;
  gap: 9px;
  height: 80px;
  margin-top: 38px;
  padding: 0 8px 8px;
  border-bottom: 1px solid #e5ece9;
}

.growth-line::before {
  position: absolute;
  right: 4px;
  bottom: 27px;
  left: 4px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f0a45e 15%, #dc7525);
  content: "";
  transform: rotate(-12deg);
}

.growth-line i {
  width: 100%;
  height: 25%;
  border-radius: 4px 4px 1px 1px;
  background: #fee6d0;
}

.growth-line i:nth-child(2) { height: 40%; }
.growth-line i:nth-child(3) { height: 58%; }
.growth-line i:nth-child(4) { height: 82%; background: #f4a45f; }

.growth-line span {
  position: absolute;
  top: 0;
  right: 0;
  color: #cc742a;
  font-size: 8px;
  font-weight: 800;
}

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

.portal-card {
  --accent: #078c72;
  --accent-deep: #056753;
  --accent-soft: #e3f6f0;
  display: flex;
  min-height: 430px;
  padding: 29px;
  flex-direction: column;
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 4%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.74));
  text-decoration: none;
}

.portal-card.siswa {
  --accent: #247ca4;
  --accent-deep: #175d7c;
  --accent-soft: #e8f6fb;
}

.portal-card.admin {
  --accent: #366fd0;
  --accent-deep: #2856a5;
  --accent-soft: #eaf1ff;
}

.portal-card.foundation {
  --accent: #7854c8;
  --accent-deep: #5e3fa4;
  --accent-soft: #f0eafe;
}

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

.portal-card::after {
  position: absolute;
  top: -65px;
  right: -65px;
  width: 190px;
  height: 190px;
  border: 1px solid color-mix(in srgb, var(--accent) 17%, transparent);
  border-radius: 50%;
  box-shadow:
    0 0 0 25px color-mix(in srgb, var(--accent) 4%, transparent),
    0 0 0 51px color-mix(in srgb, var(--accent) 2%, transparent);
  content: "";
  transition:
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.portal-card:hover::after {
  transform: translate(-13px, 13px) scale(1.08);
}

.portal-number {
  position: absolute;
  top: 27px;
  right: 30px;
  color: color-mix(in srgb, var(--accent) 22%, #dbe3e0);
  font-size: 11px;
  font-weight: 800;
}

.portal-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 62px;
}

.portal-icon {
  display: grid;
  width: 57px;
  height: 57px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 18px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  box-shadow:
    0 14px 28px color-mix(in srgb, var(--accent) 16%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 22px;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.portal-card:hover .portal-icon {
  transform: translateY(-3px) rotate(-4deg) scale(1.05);
  box-shadow: 0 19px 36px color-mix(in srgb, var(--accent) 24%, transparent);
}

.portal-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 45px 0 0;
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 13%, transparent);
  border-radius: 999px;
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent-soft) 82%, white);
  font-size: 7px;
  font-weight: 800;
}

.portal-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent);
  animation: statusPulse 2.4s ease-in-out infinite;
}

.portal-card-copy {
  max-width: 410px;
  margin-top: 27px;
}

.portal-card-copy > small {
  color: #93a09c;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.portal-card-copy h3 {
  margin: 8px 0 10px;
  font-size: 27px;
  letter-spacing: -0.04em;
}

.portal-card-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.portal-mini-ui {
  margin-top: 24px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 10%, rgba(255, 255, 255, 0.9));
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 15px 38px color-mix(in srgb, var(--accent) 8%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s ease;
}

.portal-card:hover .portal-mini-ui {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.88);
}

.mini-ui-top,
.mini-ui-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-ui-top {
  color: #879590;
  font-size: 7px;
  font-weight: 700;
}

.mini-ui-top b {
  padding: 4px 6px;
  border-radius: 6px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  font-size: 6px;
}

.mini-ui-row {
  justify-content: flex-start;
  gap: 10px;
  margin-top: 12px;
}

.mini-ui-row > i {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.mini-ui-row > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.mini-ui-row > span b {
  color: #36433f;
  font-size: 8px;
}

.mini-ui-row > span small {
  margin-top: 2px;
  color: #98a49f;
  font-size: 6px;
}

.mini-ui-row > em {
  margin-left: auto;
  color: var(--accent-deep);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.mini-ui-progress {
  height: 4px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 99px;
  background: color-mix(in srgb, var(--accent) 10%, #edf2f0);
}

.mini-ui-progress span {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, white));
  transform-origin: left;
  animation: progressReveal 1.2s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.portal-enter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  color: var(--accent-deep);
  font-size: 9px;
}

.portal-enter i {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 12px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  font-size: 14px;
  font-style: normal;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.portal-card:hover .portal-enter i {
  color: #fff;
  background: var(--accent);
  transform: translateX(3px) rotate(-4deg);
}

/* V147 — kartu portal compact dengan ikon berperspektif 3D. */
.portal-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.portal-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 36px;
  grid-template-rows: 1fr auto;
  gap: 10px 13px;
  align-items: center;
  min-height: 168px;
  padding: 19px;
  border-radius: 23px;
}

.portal-card::after {
  top: -92px;
  right: -92px;
  width: 165px;
  height: 165px;
}

.portal-number {
  top: 16px;
  right: 17px;
  font-size: 8px;
}

.portal-icon-3d {
  position: relative;
  display: grid;
  grid-row: 1 / 3;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  perspective: 320px;
  transform: rotateX(9deg) rotateY(-10deg);
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.portal-icon-3d::before {
  position: absolute;
  inset: 5px -4px -5px 4px;
  border-radius: 17px;
  background: color-mix(in srgb, var(--accent) 27%, #b8c9c3);
  box-shadow: 0 13px 24px color-mix(in srgb, var(--accent) 22%, transparent);
  content: "";
  transform: translateZ(-11px);
}

.portal-icon-3d > i {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 18px;
  color: var(--accent-deep);
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.95), transparent 31%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent-soft) 72%, white), var(--accent-soft));
  box-shadow:
    inset 0 1px 0 #fff,
    inset -7px -8px 16px color-mix(in srgb, var(--accent) 9%, transparent);
  font-size: 21px;
  font-style: normal;
  text-shadow: 0 2px 3px rgba(255, 255, 255, 0.9);
  transform: translateZ(9px);
}

.portal-icon-3d > i::after {
  position: absolute;
  top: 6px;
  left: 9px;
  width: 25px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  content: "";
  filter: blur(2px);
  transform: rotate(-18deg);
}

.portal-icon-3d > b {
  position: absolute;
  right: 8px;
  bottom: 7px;
  width: 8px;
  height: 8px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 7px color-mix(in srgb, var(--accent) 45%, transparent);
  transform: translateZ(14px);
}

.portal-card:hover .portal-icon-3d {
  transform: translateY(-4px) rotateX(3deg) rotateY(8deg) scale(1.05);
}

.portal-compact-copy {
  min-width: 0;
  align-self: end;
}

.portal-compact-copy small {
  display: block;
  overflow: hidden;
  color: #96a29e;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-compact-copy h3 {
  margin: 4px 0 4px;
  font-size: 16px;
  letter-spacing: -0.04em;
}

.portal-compact-copy p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.portal-compact-status {
  display: inline-flex;
  grid-column: 2;
  align-items: center;
  align-self: start;
  gap: 5px;
  width: fit-content;
  color: var(--accent-deep);
  font-size: 6px;
  font-weight: 800;
}

.portal-compact-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
  animation: statusPulse 2.4s ease-in-out infinite;
}

.portal-arrow {
  display: grid;
  grid-column: 3;
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
  border-radius: 11px;
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent-soft) 78%, white);
  font-size: 13px;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.portal-card:hover .portal-arrow {
  color: #fff;
  background: var(--accent);
  transform: translateX(3px) rotate(-5deg);
}

.network-cta {
  position: relative;
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 30px;
  min-height: 210px;
  margin-top: 18px;
  padding: 30px 34px;
  overflow: hidden;
  border: 1px solid rgba(7, 140, 114, 0.13);
  border-radius: 31px;
  color: inherit;
  background:
    radial-gradient(circle at 11% 50%, rgba(104, 220, 190, 0.25), transparent 21%),
    linear-gradient(120deg, rgba(241, 252, 248, 0.96), rgba(255, 255, 255, 0.86));
  box-shadow: 0 22px 60px rgba(30, 82, 67, 0.09);
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.network-cta:hover,
.network-cta:focus-visible {
  border-color: rgba(7, 140, 114, 0.28);
  box-shadow: 0 28px 70px rgba(30, 82, 67, 0.14);
}

.network-cta:focus-visible {
  outline: 4px solid rgba(7, 140, 114, 0.16);
  outline-offset: 4px;
}

.network-cta:hover .network-button,
.network-cta:focus-visible .network-button {
  background: var(--green-dark);
  box-shadow: 0 20px 38px rgba(7, 140, 114, 0.31);
  transform: translateY(-3px);
}

.network-visual {
  position: relative;
  width: 138px;
  height: 138px;
}

.network-visual::before,
.network-visual::after {
  position: absolute;
  inset: 17px;
  border: 1px solid rgba(7, 140, 114, 0.18);
  border-radius: 50%;
  content: "";
  animation: orbitRotate 16s linear infinite;
}

.network-visual::after {
  inset: 2px;
  border-style: dashed;
  border-color: rgba(7, 140, 114, 0.12);
  animation-direction: reverse;
  animation-duration: 23s;
}

.network-center {
  position: absolute;
  z-index: 2;
  inset: 39px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 15px 35px rgba(7, 140, 114, 0.18);
}

.network-center img {
  width: 47px;
  height: 47px;
  border-radius: 13px;
}

.network-dot {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  color: #fff;
  background: #078c72;
  box-shadow: 0 8px 18px rgba(7, 140, 114, 0.2);
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
  animation: miniFloat 4s ease-in-out infinite;
}

.network-dot.dot-one { top: 4px; left: 54px; }
.network-dot.dot-two { top: 52px; right: 0; background: #247ca4; animation-delay: -1s; }
.network-dot.dot-three { bottom: 0; left: 58px; background: #366fd0; animation-delay: -2s; }
.network-dot.dot-four { top: 53px; left: 0; background: #7854c8; animation-delay: -3s; }

.network-copy {
  position: relative;
  z-index: 2;
}

.network-copy h3 {
  max-width: 620px;
  margin: 9px 0 10px;
  font-size: clamp(23px, 2.8vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.network-copy p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.network-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 54px;
  padding: 0 10px 0 20px;
  border-radius: 17px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 14px 30px rgba(7, 140, 114, 0.24);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.network-button i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: var(--green-dark);
  background: #fff;
  font-size: 13px;
  font-style: normal;
}

.network-button:hover {
  transform: translateY(-3px);
  background: var(--green-dark);
  box-shadow: 0 20px 38px rgba(7, 140, 114, 0.31);
}

.network-cta {
  grid-template-columns: 122px 1fr auto;
  gap: 24px;
  min-height: 168px;
  padding: 22px 27px;
  border-radius: 27px;
}

.network-visual {
  transform: scale(0.78);
}

body.portal-modal-open {
  overflow: hidden;
}

.portal-modal[hidden] {
  display: none;
}

.portal-modal {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.portal-modal-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(7, 25, 21, 0.5);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  transition: opacity 0.32s ease;
}

.portal-modal-panel {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: min(780px, calc(100dvh - 44px));
  padding: 34px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 34px;
  outline: none;
  opacity: 0;
  background:
    radial-gradient(circle at 92% 2%, rgba(138, 232, 208, 0.26), transparent 32%),
    radial-gradient(circle at 4% 100%, rgba(169, 198, 255, 0.18), transparent 28%),
    rgba(250, 253, 252, 0.92);
  box-shadow:
    0 42px 110px rgba(4, 36, 29, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(24px) scale(0.94) rotateX(4deg);
  transform-origin: center;
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
  transition:
    opacity 0.36s ease,
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.portal-modal.is-open .portal-modal-backdrop {
  opacity: 1;
}

.portal-modal.is-open .portal-modal-panel {
  opacity: 1;
  transform: none;
}

.portal-modal-close {
  position: absolute;
  z-index: 4;
  top: 20px;
  right: 20px;
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid rgba(18, 76, 62, 0.09);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 9px 22px rgba(34, 73, 62, 0.08);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.portal-modal-close:hover {
  transform: rotate(6deg) scale(1.05);
  background: #fff;
}

.portal-modal-close span {
  display: block;
  grid-area: 1 / 1;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: #4c5b57;
}

.portal-modal-close span:first-child { transform: rotate(45deg); }
.portal-modal-close span:last-child { transform: rotate(-45deg); }

.portal-modal-heading {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 17px;
  padding-right: 50px;
}

.modal-brand-mark {
  position: relative;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.83);
  box-shadow: 0 18px 39px rgba(7, 140, 114, 0.16);
}

.modal-brand-mark::before {
  position: absolute;
  inset: -17px;
  z-index: -1;
  border: 1px dashed rgba(7, 140, 114, 0.16);
  border-radius: 50%;
  content: "";
  animation: orbitRotate 18s linear infinite;
}

.modal-brand-mark img {
  width: 51px;
  height: 51px;
  border-radius: 15px;
}

.modal-brand-mark > i {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #15b78e;
  box-shadow: 0 0 0 4px rgba(21, 183, 142, 0.1);
}

.portal-modal-heading h2 {
  margin: 5px 0 5px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.052em;
}

.portal-modal-heading p {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.portal-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 31px;
}

.modal-portal {
  --modal-accent: #078c72;
  --modal-deep: #056753;
  --modal-soft: #e3f6f0;
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr 36px;
  align-items: center;
  gap: 13px;
  min-height: 132px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--modal-accent) 11%, rgba(255, 255, 255, 0.9));
  border-radius: 22px;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--modal-accent) 14%, transparent), transparent 42%),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    0 14px 35px color-mix(in srgb, var(--modal-accent) 7%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transform-style: preserve-3d;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.modal-siswa { --modal-accent: #247ca4; --modal-deep: #175d7c; --modal-soft: #e8f6fb; }
.modal-admin { --modal-accent: #366fd0; --modal-deep: #2856a5; --modal-soft: #eaf1ff; }
.modal-yayasan { --modal-accent: #7854c8; --modal-deep: #5e3fa4; --modal-soft: #f0eafe; }

.modal-portal::after {
  position: absolute;
  top: -62px;
  right: -62px;
  width: 125px;
  height: 125px;
  border: 1px solid color-mix(in srgb, var(--modal-accent) 14%, transparent);
  border-radius: 50%;
  content: "";
}

.modal-portal:hover {
  border-color: color-mix(in srgb, var(--modal-accent) 28%, white);
  box-shadow: 0 23px 45px color-mix(in srgb, var(--modal-accent) 15%, transparent);
  transform: translateY(-4px) perspective(700px) rotateX(1deg) rotateY(-1deg);
}

.modal-icon-3d {
  position: relative;
  display: grid;
  width: 57px;
  height: 57px;
  place-items: center;
  perspective: 300px;
  transform: rotateX(8deg) rotateY(-11deg);
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}

.modal-icon-3d::before {
  position: absolute;
  inset: 5px -4px -5px 4px;
  border-radius: 17px;
  background: color-mix(in srgb, var(--modal-accent) 28%, #c0cec9);
  box-shadow: 0 12px 23px color-mix(in srgb, var(--modal-accent) 20%, transparent);
  content: "";
  transform: translateZ(-10px);
}

.modal-icon-3d > i {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 17px;
  color: var(--modal-deep);
  background:
    radial-gradient(circle at 28% 17%, #fff, transparent 30%),
    linear-gradient(145deg, color-mix(in srgb, var(--modal-soft) 68%, white), var(--modal-soft));
  box-shadow: inset -7px -8px 14px color-mix(in srgb, var(--modal-accent) 9%, transparent);
  font-size: 20px;
  font-style: normal;
  transform: translateZ(9px);
}

.modal-icon-3d > b {
  position: absolute;
  right: 5px;
  bottom: 3px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--modal-accent);
  box-shadow: 0 3px 8px color-mix(in srgb, var(--modal-accent) 34%, transparent);
  transform: translateZ(14px);
}

.modal-portal:hover .modal-icon-3d {
  transform: translateY(-3px) rotateX(2deg) rotateY(9deg) scale(1.04);
}

.modal-portal-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.modal-portal-copy small {
  color: #98a49f;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.modal-portal-copy strong {
  margin-top: 4px;
  font-size: 15px;
  letter-spacing: -0.035em;
}

.modal-portal-copy em {
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 7px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-arrow {
  position: relative;
  z-index: 2;
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 11px;
  color: var(--modal-deep);
  background: var(--modal-soft);
  font-size: 13px;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.modal-portal:hover .modal-arrow {
  color: #fff;
  background: var(--modal-accent);
  transform: translateX(3px);
}

.portal-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 14px 16px 0;
  border-top: 1px solid rgba(18, 76, 62, 0.08);
}

.portal-modal-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #7c8985;
  font-size: 7px;
  font-weight: 700;
}

.portal-modal-footer > span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10ab84;
  box-shadow: 0 0 0 4px rgba(16, 171, 132, 0.09);
}

.portal-modal-footer > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 8px 0 15px;
  border-radius: 13px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 11px 24px rgba(7, 140, 114, 0.2);
  font-size: 8px;
  font-weight: 800;
  text-decoration: none;
}

.portal-modal-footer > a i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  color: var(--green-dark);
  background: #fff;
  font-style: normal;
}

.partner-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 45px;
  min-height: 300px;
  padding: clamp(35px, 6vw, 72px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 90% 15%, rgba(152, 235, 214, 0.28), transparent 37%),
    rgba(255, 255, 255, 0.75);
}

.partner-copy h2 {
  max-width: 600px;
  margin: 12px 0 16px;
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.052em;
}

.partner-copy p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.partner-logos figure {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(20, 83, 69, 0.08);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 32px rgba(35, 74, 64, 0.07);
}

.partner-logos figure > img {
  width: 55px;
  height: 55px;
  border-radius: 14px;
}

.partner-logos figcaption {
  max-width: 67px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
}

.partner-logos > span {
  color: var(--green);
  font-size: 19px;
  font-weight: 500;
}

.partner-logos .genius-logo {
  width: 160px;
  min-height: 85px;
}

.partner-logos .genius-logo img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.contact-section {
  padding-bottom: 90px;
}

.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
  min-height: 330px;
  padding: clamp(38px, 6vw, 74px);
  overflow: hidden;
  border-radius: 36px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(84, 218, 182, 0.32), transparent 35%),
    linear-gradient(135deg, #075f50, #078c72 66%, #0b9a7d);
  box-shadow: 0 30px 75px rgba(5, 99, 81, 0.25);
}

.contact-card::before,
.contact-card::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.contact-card::before {
  top: -170px;
  right: -80px;
  width: 390px;
  height: 390px;
}

.contact-card::after {
  right: 74px;
  bottom: -220px;
  width: 420px;
  height: 420px;
}

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

.section-kicker.light {
  color: #b7f4e3;
}

.contact-card h2 {
  max-width: 650px;
  margin: 12px 0 15px;
  font-size: clamp(33px, 4.4vw, 53px);
  line-height: 1.08;
  letter-spacing: -0.052em;
}

.contact-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.contact-buttons {
  display: grid;
  gap: 10px;
}

.contact-buttons a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.11);
  text-decoration: none;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.contact-buttons a:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.18);
}

.contact-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: var(--green-dark);
  background: #fff;
  font-size: 16px;
}

.contact-buttons a > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.contact-buttons small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 7px;
}

.contact-buttons strong {
  margin-top: 2px;
  font-size: 11px;
}

.contact-buttons i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-style: normal;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.site-footer p {
  margin: 0;
  color: #899792;
  font-size: 8px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: #73827d;
  font-size: 8px;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--green);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

.portal-grid .reveal:nth-child(2),
.feature-grid .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.portal-grid .reveal:nth-child(3),
.feature-grid .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.portal-grid .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

@keyframes miniFloat {
  50% { transform: translateY(-9px); }
}

@keyframes barGrow {
  from { transform: scaleY(0); }
}

@keyframes progressReveal {
  from { transform: scaleX(0); }
}

@keyframes statusPulse {
  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 3%, transparent);
  }
}

@keyframes orbitRotate {
  to { transform: rotate(360deg); }
}

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: 1fr 0.86fr;
    gap: 35px;
  }

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

  .feature-large {
    grid-column: 1 / -1;
  }

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

@media (max-width: 860px) {
  .site-header {
    padding: 13px 16px;
  }

  .nav-shell {
    grid-template-columns: 1fr auto;
    padding: 8px 9px 8px 14px;
  }

  .menu-button {
    display: grid;
    width: 41px;
    height: 41px;
    place-items: center;
    border: 0;
    border-radius: 13px;
    background: #e7f6f1;
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    grid-area: 1/1;
    width: 17px;
    height: 2px;
    border-radius: 3px;
    background: var(--green-dark);
    transition: transform 0.25s ease;
  }

  .menu-button span:first-child {
    transform: translateY(-4px);
  }

  .menu-button span:last-child {
    transform: translateY(4px);
  }

  .menu-button[aria-expanded="true"] span:first-child {
    transform: rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:last-child {
    transform: rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    top: 85px;
    right: 16px;
    left: 16px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 22px;
    visibility: hidden;
    opacity: 0;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 26px 70px rgba(32, 72, 61, 0.18);
    transform: translateY(-12px) scale(0.98);
    transform-origin: top;
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s;
  }

  .nav-menu.open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav-menu a {
    padding: 13px 14px;
    border-radius: 12px;
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-menu a.active,
  .nav-menu a:hover {
    background: #edf8f4;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 23px;
    min-height: auto;
    padding-top: 125px;
    text-align: center;
  }

  .hero-stage {
    order: 2;
    width: min(620px, 100%);
    margin: 0 auto;
  }

  .hero-copy {
    order: 1;
  }

  .hero h1,
  .hero-copy > p {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions,
  .trust-row {
    justify-content: center;
  }

  .product-scene {
    min-height: 430px;
  }

  .dashboard-window {
    right: 4%;
    left: 4%;
    transform: rotateX(2deg);
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

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

  .network-cta {
    grid-template-columns: 140px 1fr;
  }

  .network-button {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 92px;
  }

  .section,
  .site-footer {
    width: min(100% - 26px, 1180px);
  }

  .site-header {
    padding: 9px 10px;
  }

  .site-header.scrolled {
    padding-top: 7px;
  }

  .nav-shell {
    min-height: 58px;
    border-radius: 19px;
  }

  .brand img {
    width: 35px;
    height: 35px;
  }

  .brand > span {
    font-size: 13px;
  }

  .nav-menu {
    top: 76px;
    right: 10px;
    left: 10px;
  }

  .hero {
    padding-top: 105px;
  }

  .hero h1 {
    margin-top: 15px;
    font-size: clamp(40px, 12vw, 55px);
  }

  .hero-copy > p {
    font-size: 13px;
    line-height: 1.7;
  }

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

  .button {
    min-height: 49px;
    border-radius: 15px;
  }

  .trust-row {
    gap: 9px 13px;
    margin-top: 22px;
  }

  .trust-row span {
    font-size: 8px;
  }

  .product-scene {
    min-height: 320px;
  }

  .dashboard-window {
    top: 47px;
    right: 0;
    left: 0;
    border-radius: 19px;
  }

  .window-top {
    height: 36px;
  }

  .dashboard-body {
    grid-template-columns: 38px 1fr;
    min-height: 225px;
  }

  .dash-rail {
    gap: 6px;
    padding-top: 12px;
  }

  .dash-rail span {
    width: 24px;
    height: 24px;
    font-size: 8px;
  }

  .dash-content {
    padding: 12px 10px 10px;
  }

  .metric-row {
    gap: 5px;
    margin-top: 9px;
  }

  .metric-row article {
    gap: 5px;
    padding: 6px;
  }

  .metric-row i {
    width: 22px;
    height: 22px;
  }

  .chart-grid {
    margin-top: 6px;
  }

  .bar-card,
  .ring-card {
    padding: 8px;
  }

  .bar-chart {
    height: 50px;
  }

  .progress-ring {
    width: 49px;
    height: 49px;
    margin: 4px 0;
  }

  .progress-ring::before {
    width: 37px;
    height: 37px;
  }

  .activity-line {
    height: 25px;
    margin-top: 5px;
  }

  .mini-panel {
    min-width: 127px;
    padding: 8px 9px;
    border-radius: 13px;
  }

  .panel-icon {
    width: 25px;
    height: 25px;
  }

  .panel-student {
    top: 14px;
  }

  .panel-sync {
    bottom: 2px;
  }

  .solution-section,
  .portal-section,
  .partner-section,
  .contact-section {
    padding-top: 78px;
  }

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

  .feature-grid {
    grid-template-columns: 1fr;
    margin-top: 27px;
  }

  .feature-large {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 300px;
    padding: 24px;
    border-radius: 23px;
  }

  .feature-large {
    min-height: 520px;
  }

  .avatar-stack {
    margin-top: 39px;
  }

  .portal-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 28px;
  }

  .portal-card {
    min-height: 390px;
    padding: 21px;
    border-radius: 24px;
  }

  .portal-number {
    top: 22px;
    right: 22px;
  }

  .portal-card-head {
    min-height: 54px;
  }

  .portal-icon {
    width: 51px;
    height: 51px;
    border-radius: 16px;
    font-size: 19px;
  }

  .portal-status {
    margin-right: 38px;
  }

  .portal-card-copy {
    margin-top: 19px;
  }

  .portal-card-copy h3 {
    margin: 6px 0 8px;
    font-size: 23px;
  }

  .portal-card-copy p {
    font-size: 9px;
  }

  .portal-mini-ui {
    margin-top: 17px;
    padding: 12px;
  }

  .portal-enter {
    padding-top: 15px;
  }

  .network-cta {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 19px;
    margin-top: 12px;
    padding: 28px 21px;
    text-align: center;
  }

  .network-visual {
    width: 126px;
    height: 126px;
  }

  .network-copy h3 {
    font-size: 28px;
  }

  .network-button {
    width: 100%;
    justify-content: center;
  }

  .partner-card {
    gap: 32px;
    padding: 32px 22px;
    border-radius: 27px;
    text-align: center;
  }

  .partner-copy h2 {
    font-size: 34px;
  }

  .partner-logos {
    gap: 8px;
  }

  .partner-logos figure {
    padding: 9px;
  }

  .partner-logos figure > img {
    width: 45px;
    height: 45px;
  }

  .partner-logos .genius-logo {
    width: 135px;
    min-height: 67px;
  }

  .contact-section {
    padding-bottom: 65px;
  }

  .contact-card {
    gap: 32px;
    padding: 37px 22px;
    border-radius: 29px;
  }

  .contact-card h2 {
    font-size: 37px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 13px;
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
    text-align: center;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 39px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .portal-card {
    min-height: 380px;
    padding: 19px;
  }

  .portal-status {
    padding: 6px 8px;
    font-size: 6px;
  }

  .portal-card-copy p {
    font-size: 8px;
  }

  .network-copy h3 {
    font-size: 25px;
  }

  .partner-logos figcaption {
    display: none;
  }
}

@media (max-width: 700px) {
  .portal-modal {
    align-items: end;
    padding: 9px;
  }

  .portal-modal-panel {
    width: 100%;
    max-height: min(820px, calc(100dvh - 18px));
    padding: 25px 17px 18px;
    border-radius: 28px;
    transform: translateY(45px) scale(0.97);
  }

  .portal-modal-close {
    top: 15px;
    right: 15px;
  }

  .portal-modal-heading {
    grid-template-columns: 58px 1fr;
    gap: 13px;
    padding-right: 35px;
  }

  .modal-brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }

  .modal-brand-mark img {
    width: 41px;
    height: 41px;
    border-radius: 12px;
  }

  .portal-modal-heading h2 {
    font-size: 28px;
  }

  .portal-modal-heading p {
    font-size: 8px;
  }

  .portal-modal-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 23px;
  }

  .modal-portal {
    grid-template-columns: 55px 1fr 32px;
    min-height: 104px;
    padding: 13px;
    border-radius: 19px;
  }

  .modal-icon-3d {
    width: 50px;
    height: 50px;
  }

  .modal-icon-3d > i,
  .modal-icon-3d::before {
    border-radius: 15px;
  }

  .portal-modal-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding-right: 0;
    padding-left: 0;
  }

  .portal-modal-footer > span {
    justify-content: center;
  }

  .portal-modal-footer > a {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .portal-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 34px;
    grid-template-rows: 1fr auto;
    gap: 8px 11px;
    min-height: 148px;
    padding: 16px;
    border-radius: 21px;
  }

  .portal-number {
    display: block;
    top: 13px;
    right: 14px;
  }

  .portal-icon-3d {
    width: 52px;
    height: 52px;
  }

  .portal-icon-3d > i,
  .portal-icon-3d::before {
    border-radius: 16px;
  }

  .portal-compact-copy h3 {
    margin-top: 3px;
    font-size: 16px;
  }

  .portal-compact-copy p {
    display: block;
    overflow: hidden;
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .portal-arrow {
    width: 32px;
    height: 32px;
  }

  .network-cta {
    min-height: 0;
    padding: 25px 20px;
  }
}

@media (max-width: 390px) {
  .portal-card {
    min-height: 142px;
    padding: 14px;
  }

  .portal-compact-copy small {
    font-size: 5.5px;
  }

  .portal-compact-copy p {
    max-width: 175px;
  }
}

@media (hover: none) {
  .feature-card:hover,
  .portal-card:hover {
    --lift: 0px;
  }

  .feature-card:active,
  .portal-card:active,
  .button:active,
  .nav-cta:active {
    transform: scale(0.985);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* V151 — ilustrasi 3D asli sebagai identitas empat portal. */
.portal-card {
  grid-template-columns: 68px minmax(0, 1fr) 36px;
}

.portal-icon-3d,
.modal-icon-3d {
  width: 64px;
  height: 64px;
}

.portal-icon-3d::before,
.modal-icon-3d::before {
  inset: 7px 2px 1px 7px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.95), transparent 38%),
    color-mix(in srgb, var(--accent, var(--modal-accent)) 10%, rgba(255, 255, 255, 0.86));
  box-shadow:
    0 14px 27px color-mix(in srgb, var(--accent, var(--modal-accent)) 17%, transparent),
    inset 0 1px rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px) saturate(145%);
  backdrop-filter: blur(12px) saturate(145%);
}

.portal-icon-3d > i.portal-art,
.modal-icon-3d > i.portal-art {
  inset: -7px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: url("/portal-icons-3d-v151.png?v=152");
  background-repeat: no-repeat;
  background-size: 200% 200%;
  box-shadow: none;
  filter: drop-shadow(0 9px 8px rgba(24, 47, 40, 0.18));
  transform: translateZ(14px);
}

.portal-icon-3d > i.portal-art::after,
.modal-icon-3d > i.portal-art::after {
  display: none;
}

.portal-icon-3d > i.portal-art.portal-art-guru,
.modal-icon-3d > i.portal-art.portal-art-guru {
  background-position: 100% 0;
}

.portal-icon-3d > i.portal-art.portal-art-siswa,
.modal-icon-3d > i.portal-art.portal-art-siswa {
  background-position: 0 0;
}

.portal-icon-3d > i.portal-art.portal-art-admin,
.modal-icon-3d > i.portal-art.portal-art-admin {
  background-position: 0 100%;
}

.portal-icon-3d > i.portal-art.portal-art-yayasan,
.modal-icon-3d > i.portal-art.portal-art-yayasan {
  background-position: 100% 100%;
}

.portal-icon-3d > b,
.modal-icon-3d > b {
  right: 2px;
  bottom: 0;
}

.modal-portal {
  grid-template-columns: 68px minmax(0, 1fr) 36px;
}

@media (max-width: 640px) {
  .portal-card {
    grid-template-columns: 60px minmax(0, 1fr) 34px;
  }

  .portal-icon-3d,
  .modal-icon-3d {
    width: 57px;
    height: 57px;
  }
}
