:root{
  --ink:#142b43;
  --muted:#718096;
  --line:rgba(201,174,119,.30);
  --gold:#c6a66a;
  --gold-deep:#9b7944;
  --navy:#10263e;
  --navy-2:#183954;
  --paper:#fffdf8;
  --shadow:0 24px 70px rgba(8,25,43,.13);
}
*{box-sizing:border-box}
html{min-height:100%;scroll-behavior:smooth}
body{
  margin:0;min-height:100vh;color:var(--ink);
  font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif;overflow-x:hidden;
  background:
    radial-gradient(ellipse at 12% 12%,rgba(198,166,106,.18),transparent 28%),
    radial-gradient(ellipse at 92% 80%,rgba(48,91,112,.15),transparent 30%),
    linear-gradient(135deg,#e9edf0 0%,#f7f5ef 48%,#e9eef1 100%);
}
.ambient{position:fixed;z-index:0;pointer-events:none;border-radius:50%;filter:blur(2px);opacity:.38}
.ambient-a{width:520px;height:520px;left:-390px;top:18%;background:#d5c29d}
.ambient-b{width:460px;height:460px;right:-350px;top:8%;background:#c6d5dc}
.page-shell{position:relative;z-index:1;width:min(100% - 64px,1380px);margin:0 auto;padding:48px 0 28px}
.hero{text-align:center;padding:0 18px 34px}
.brand-mark{
  width:92px;height:92px;margin:0 auto 18px;display:grid;place-items:center;
  border:1px solid rgba(198,166,106,.45);border-radius:30px;
  background:linear-gradient(145deg,#fffefa,#f1eadb);
  box-shadow:0 18px 42px rgba(27,43,57,.13),inset 0 1px 0 #fff;overflow:hidden
}
.brand-mark img{width:78%;height:78%;object-fit:contain}
.brand-fallback{font-weight:950;font-size:26px;color:var(--gold-deep)}
.eyebrow{margin:0 0 11px;color:var(--gold-deep);font-size:10px;font-weight:900;letter-spacing:.38em;text-transform:uppercase}
.hero h1{margin:0;color:#10263e;font-family:Georgia,"Times New Roman",serif;font-size:clamp(34px,4vw,54px);font-weight:700;letter-spacing:-.045em;line-height:1.08}
.school-name{margin:13px 0 0;font-size:11px;font-weight:900;letter-spacing:.24em;color:#314d64}
.hero-copy{margin:15px auto 20px;max-width:680px;color:#687c8e;font-size:13px;line-height:1.8}
.welcome-chip{
  display:inline-flex;align-items:center;gap:10px;padding:10px 17px;
  border:1px solid rgba(198,166,106,.38);border-radius:999px;
  background:rgba(255,253,248,.86);box-shadow:0 9px 26px rgba(24,43,59,.07);
  font-size:10px;font-weight:800;color:#40596c
}
.live-dot,.status-dot{width:7px;height:7px;display:inline-block;flex:0 0 auto;border-radius:50%;background:#19a984;box-shadow:0 0 0 4px rgba(25,169,132,.12)}
.chip-dot{color:#b7a47e}
.portal-panel{
  padding:34px 32px 23px;border:1px solid rgba(255,255,255,.92);border-radius:34px;
  background:linear-gradient(145deg,rgba(255,255,255,.90),rgba(249,247,241,.88));
  box-shadow:0 30px 90px rgba(20,39,56,.12),inset 0 1px 0 #fff;
  backdrop-filter:blur(24px)
}
.section-heading{display:flex;align-items:center;justify-content:center;gap:22px;margin:0 auto 29px}
.section-heading h2{
  display:flex;align-items:center;gap:10px;margin:0;padding:13px 23px;
  border:1px solid rgba(222,198,151,.48);border-radius:999px;
  background:linear-gradient(135deg,#17334d,#0d2238);
  box-shadow:0 12px 28px rgba(12,34,55,.22),inset 0 1px 0 rgba(255,255,255,.15);
  color:#f8edda;font-family:Georgia,"Times New Roman",serif;font-size:13px;font-weight:700;letter-spacing:.025em
}
.heading-icon{width:15px;height:15px;display:inline-flex}
.heading-icon svg{width:100%;height:100%}
.heading-line{width:min(16%,160px);height:1px;background:linear-gradient(90deg,transparent,#c6a66a)}
.heading-line:last-child{transform:rotate(180deg)}
.app-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.app-card{
  --tone:#2d6d91;--tone-soft:#e9f0f2;
  position:relative;isolation:isolate;min-height:208px;padding:23px 23px 19px;
  display:flex;flex-direction:column;align-items:flex-start;text-align:left;overflow:hidden;
  border:1px solid rgba(205,190,160,.55);border-radius:23px;
  background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(250,248,242,.97));
  box-shadow:0 10px 28px rgba(20,42,61,.055),inset 0 1px 0 #fff;
  transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease
}
.app-card:before{
  content:"";position:absolute;z-index:-1;inset:0 0 auto;height:3px;
  background:linear-gradient(90deg,var(--tone),#d7bd8c 78%,transparent)
}
.app-card:after{
  content:"";position:absolute;z-index:-1;right:-62px;top:-92px;width:190px;height:190px;
  border:1px solid color-mix(in srgb,var(--tone),transparent 78%);border-radius:50%;
  box-shadow:0 0 0 16px color-mix(in srgb,var(--tone),transparent 95%),0 0 0 35px color-mix(in srgb,var(--tone),transparent 97%);
  background:radial-gradient(circle at 35% 70%,var(--tone-soft),transparent 72%);opacity:.9
}
.app-card:hover{transform:translateY(-6px);border-color:color-mix(in srgb,var(--tone),#d4bd91 55%);box-shadow:0 22px 42px rgba(18,39,58,.13),inset 0 1px 0 #fff}
.tone-blue{--tone:#246b91;--tone-soft:#e4eff4}
.tone-purple{--tone:#7662a8;--tone-soft:#eeeaf5}
.tone-orange{--tone:#b88443;--tone-soft:#f7efdf}
.tone-green{--tone:#168b78;--tone-soft:#e2f1eb}
.card-decoration{display:none}
.card-hit-area{position:absolute;z-index:5;inset:0;border-radius:inherit}
.app-icon{
  width:51px;height:51px;margin:0 0 17px;display:grid;place-items:center;border-radius:17px;
  background:linear-gradient(145deg,color-mix(in srgb,var(--tone),white 6%),color-mix(in srgb,var(--tone),black 13%));
  color:#fff;box-shadow:0 11px 24px color-mix(in srgb,var(--tone),transparent 78%),inset 0 1px 0 rgba(255,255,255,.25)
}
.app-icon svg{width:23px;height:23px}
.app-card h3{margin:0 0 8px;color:#18344d;font-family:Georgia,"Times New Roman",serif;font-size:17px;font-weight:700;letter-spacing:-.025em}
.app-card p{max-width:360px;min-height:38px;margin:0;color:#718092;font-size:12px;line-height:1.75}
.card-footer{width:100%;margin-top:auto;padding-top:15px;display:flex;align-items:center;justify-content:space-between}
.status-pill{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid transparent;border-radius:999px;font-size:9px;font-weight:850;letter-spacing:.025em}
.status-active{background:#e5f4ee;border-color:#d1eadd;color:#17745f}
.status-active .status-dot{width:6px;height:6px;box-shadow:none}
.status-muted{background:#f1f0eb;border-color:#e8e4da;color:#8b887e}
.status-muted .status-dot{width:6px;height:6px;background:#aaa28e;box-shadow:none}
.open-app{width:32px;height:32px;display:grid;place-items:center;border:1px solid rgba(198,166,106,.34);border-radius:50%;background:linear-gradient(145deg,#fff,#f8f3e9);color:#9b7944;font-size:25px;line-height:1;box-shadow:0 6px 16px rgba(31,48,61,.09)}
.coming-soon{color:#9b907c;font-size:10px;font-weight:800}
.card-hit-area:focus-visible{outline:3px solid #c6a66a;outline-offset:-5px}
.portal-meta{
  margin-top:23px;padding:14px 17px;display:flex;align-items:center;justify-content:space-between;gap:12px;
  border:1px solid rgba(198,166,106,.32);border-radius:18px;
  background:linear-gradient(110deg,rgba(255,255,255,.92),rgba(247,244,235,.92));
  color:#718092;font-size:10px;font-weight:750
}
.meta-item{display:flex;align-items:center;gap:8px}
.meta-symbol,.version-mark{color:#a9854e;font-size:14px}
.version-pill{padding:8px 13px;border:1px solid rgba(198,166,106,.35);border-radius:999px;background:#fffdf8;color:#6e6049;font-size:9px;font-weight:850;white-space:nowrap}
.security-note{margin:17px auto 0;max-width:800px;text-align:center;color:#7d8992;font-size:10px;line-height:1.7}
.site-footer{position:relative;z-index:1;padding:14px 20px 22px;text-align:center;color:#87919a;font-size:10px;font-weight:650}
.footer-divider{padding:0 10px;color:#b9ad98}
@media(min-width:1500px){.page-shell{padding-top:54px}.app-card{min-height:218px}}
@media(max-width:1050px){.page-shell{width:min(100% - 40px,900px)}.portal-panel{padding:27px 22px 19px}.app-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}}
@media(max-width:620px){
  .page-shell{width:calc(100% - 22px);padding-top:22px}
  .hero{padding-bottom:22px}.brand-mark{width:74px;height:74px;border-radius:23px}
  .hero h1{font-size:clamp(28px,8vw,37px)}.hero-copy{font-size:11px}
  .welcome-chip{gap:7px;padding:8px 11px;font-size:9px}
  .portal-panel{padding:19px 12px 14px;border-radius:23px}
  .section-heading{gap:9px;margin-bottom:18px}.section-heading h2{padding:10px 15px;font-size:11px}.heading-line{width:11%}
  .app-grid{grid-template-columns:1fr;gap:12px}
  .app-card{min-height:176px;padding:18px 17px 15px;border-radius:19px}
  .app-icon{width:45px;height:45px;margin-bottom:13px;border-radius:14px}.app-icon svg{width:21px;height:21px}
  .app-card h3{font-size:16px}.app-card p{min-height:0;font-size:11px}
  .card-footer{padding-top:13px}.portal-meta{flex-direction:column;align-items:flex-start;padding:12px;font-size:9px}
  .version-pill{align-self:stretch;text-align:center}.security-note{padding:0 10px;font-size:9px}
  .site-footer{font-size:9px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

/* =========================================================
   AUTO FIT ONE-SCREEN — Portal Digital Sekolah ESABA
   Desktop/laptop: seluruh portal menyesuaikan tinggi viewport.
   Tablet/mobile: tetap responsif dan boleh scroll bila perlu.
   ========================================================= */
@media (min-width: 1051px) {
  html {
    height: 100%;
    min-height: 0;
    scroll-behavior: auto;
  }

  body {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .page-shell {
    width: min(100% - 48px, 1380px);
    height: 100svh;
    min-height: 0;
    margin: 0 auto;
    padding: clamp(8px, 1.35vh, 16px) 0 7px;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .hero {
    flex: 0 0 auto;
    padding: 0 14px clamp(12px, 1.8vh, 20px);
  }

  .brand-mark {
    width: clamp(48px, 6.5vh, 66px);
    height: clamp(48px, 6.5vh, 66px);
    margin-bottom: clamp(7px, 1vh, 11px);
    border-radius: 21px;
  }

  .eyebrow {
    margin-bottom: 5px;
    font-size: 9px;
    letter-spacing: .34em;
  }

  .hero h1 {
    font-size: clamp(30px, 4.2vh, 43px);
    line-height: 1.04;
  }

  .school-name {
    margin-top: 7px;
    font-size: 10px;
  }

  .hero-copy {
    margin: 8px auto 10px;
    font-size: 11px;
    line-height: 1.45;
  }

  .welcome-chip {
    padding: 7px 13px;
    font-size: 9px;
  }

  .portal-panel {
    flex: 1 1 auto;
    min-height: 0;
    padding: clamp(14px, 2.1vh, 23px) clamp(18px, 2.2vw, 30px) 13px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 29px;
  }

  .section-heading {
    flex: 0 0 auto;
    margin-bottom: clamp(12px, 1.8vh, 19px);
    gap: 18px;
  }

  .section-heading h2 {
    padding: 10px 20px;
    font-size: 12px;
  }

  .app-grid {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 1.6vh, 16px);
  }

  .app-card {
    min-height: 0;
    height: 100%;
    padding: clamp(12px, 1.8vh, 19px) clamp(14px, 1.5vw, 20px) 12px;
    border-radius: 20px;
  }

  .app-icon {
    width: clamp(38px, 5.2vh, 48px);
    height: clamp(38px, 5.2vh, 48px);
    margin-bottom: clamp(8px, 1.2vh, 12px);
    border-radius: 14px;
  }

  .app-icon svg {
    width: 21px;
    height: 21px;
  }

  .app-card h3 {
    margin-bottom: 5px;
    font-size: clamp(14px, 1.8vh, 16px);
  }

  .app-card p {
    min-height: 0;
    font-size: clamp(10px, 1.35vh, 11px);
    line-height: 1.5;
  }

  .card-footer {
    padding-top: 8px;
  }

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

  .open-app {
    width: 28px;
    height: 28px;
    font-size: 22px;
  }

  .portal-meta {
    flex: 0 0 auto;
    margin-top: clamp(10px, 1.5vh, 15px);
    padding: 9px 13px;
    font-size: 9px;
  }

  .version-pill {
    padding: 6px 10px;
    font-size: 8px;
  }

  .security-note,
  .site-footer {
    display: none;
  }
}

/* Layar laptop yang lebih pendek: rapatkan elemen tanpa mengubah desain. */
@media (min-width: 1051px) and (max-height: 800px) {
  .page-shell {
    padding-top: 6px;
    padding-bottom: 5px;
  }

  .hero {
    padding-bottom: 9px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    margin-bottom: 5px;
    border-radius: 16px;
  }

  .eyebrow {
    margin-bottom: 3px;
    font-size: 8px;
  }

  .hero h1 {
    font-size: clamp(27px, 4vh, 34px);
  }

  .school-name {
    margin-top: 5px;
    font-size: 9px;
  }

  .hero-copy {
    margin: 5px auto 7px;
    font-size: 10px;
  }

  .welcome-chip {
    padding: 5px 11px;
    font-size: 8px;
  }

  .portal-panel {
    padding-top: 11px;
    padding-bottom: 9px;
  }

  .section-heading {
    margin-bottom: 9px;
  }

  .section-heading h2 {
    padding: 8px 17px;
  }

  .app-grid {
    gap: 9px 13px;
  }

  .app-card {
    padding: 10px 14px 9px;
  }

  .app-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 6px;
    border-radius: 12px;
  }

  .app-card h3 {
    font-size: 14px;
  }

  .app-card p {
    font-size: 9px;
    line-height: 1.35;
  }

  .card-footer {
    padding-top: 5px;
  }

  .portal-meta {
    margin-top: 8px;
    padding: 7px 11px;
  }
}

/* Pada layar yang sangat pendek, gunakan scroll sebagai fallback agar konten tidak terpotong. */
@media (min-width: 1051px) and (max-height: 570px) {
  body {
    height: auto;
    min-height: 100svh;
    overflow-y: auto;
  }

  .page-shell {
    height: auto;
    min-height: 100svh;
  }

  .portal-panel {
    overflow: visible;
  }

  .app-grid {
    grid-template-rows: none;
    grid-auto-rows: minmax(150px, auto);
  }
}


/* =========================================================
   PREMIUM AUTO-FIT REFINEMENT
   - Judul tombol selalu satu baris
   - Kartu lebih ringkas dan proporsional
   - Panel tidak dipaksa memenuhi seluruh sisa tinggi layar
   - Seluruh komposisi diseimbangkan di tengah viewport
   ========================================================= */
@media (min-width: 1051px) and (min-height: 571px) {
  .page-shell {
    height: 100svh;
    min-height: 0;
    justify-content: center;
    gap: 0;
    padding-top: clamp(7px, 1.2vh, 12px);
    padding-bottom: clamp(7px, 1.2vh, 12px);
  }

  .hero {
    padding-bottom: clamp(11px, 1.6vh, 17px);
  }

  .section-heading {
    width: 100%;
    gap: clamp(12px, 1.8vw, 22px);
    margin-bottom: clamp(12px, 1.7vh, 17px);
  }

  .section-heading h2 {
    flex: 0 0 auto;
    width: max-content;
    min-width: max-content;
    white-space: nowrap;
    flex-wrap: nowrap;
    padding: 10px 22px;
    line-height: 1;
  }

  .heading-icon {
    flex: 0 0 15px;
  }

  .heading-line {
    flex: 1 1 150px;
    width: auto;
    max-width: 160px;
  }

  .portal-panel {
    flex: 0 0 auto;
    width: 100%;
    padding: clamp(15px, 1.9vh, 19px) clamp(18px, 2.2vw, 30px) 12px;
    overflow: visible;
  }

  .app-grid {
    flex: 0 0 auto;
    height: clamp(340px, 43vh, 390px);
    min-height: 0;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 1.4vh, 14px) clamp(12px, 1.25vw, 17px);
  }

  .app-card {
    min-height: 0;
    height: 100%;
    padding: clamp(11px, 1.5vh, 15px) clamp(14px, 1.45vw, 19px) 10px;
    border-radius: 20px;
  }

  .app-icon {
    width: clamp(36px, 4.7vh, 44px);
    height: clamp(36px, 4.7vh, 44px);
    margin-bottom: clamp(7px, .9vh, 10px);
    border-radius: 13px;
  }

  .app-card h3 {
    margin-bottom: 5px;
    font-size: clamp(14px, 1.7vh, 16px);
    line-height: 1.2;
  }

  .app-card p {
    min-height: 0;
    max-width: 100%;
    font-size: clamp(9px, 1.2vh, 10.5px);
    line-height: 1.45;
  }

  .card-footer {
    padding-top: 8px;
  }

  .status-pill {
    padding: 5px 9px;
  }

  .open-app {
    width: 27px;
    height: 27px;
  }

  .portal-meta {
    margin-top: clamp(10px, 1.35vh, 13px);
    padding: 8px 13px;
  }

  .version-pill {
    padding: 6px 10px;
  }
}

/* Laptop dengan tinggi terbatas: prioritaskan ruang konten tanpa memotong kartu. */
@media (min-width: 1051px) and (min-height: 571px) and (max-height: 700px) {
  .hero {
    padding-bottom: 8px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    margin-bottom: 4px;
    border-radius: 14px;
  }

  .eyebrow {
    margin-bottom: 3px;
    font-size: 8px;
  }

  .hero h1 {
    font-size: clamp(25px, 3.8vh, 31px);
  }

  .school-name {
    margin-top: 4px;
    font-size: 8px;
  }

  .hero-copy {
    margin: 4px auto 6px;
    font-size: 9px;
  }

  .welcome-chip {
    padding: 5px 10px;
    font-size: 8px;
  }

  .app-grid {
    height: clamp(310px, 42vh, 350px);
  }

  .portal-panel {
    padding-top: 10px;
    padding-bottom: 8px;
  }

  .portal-meta {
    margin-top: 7px;
    padding: 6px 10px;
  }
}


/* =========================================================
   HEADER SCALE + — pembesaran ringan area identitas portal
   ========================================================= */
@media (min-width: 1051px) and (min-height: 571px) {
  .brand-mark {
    width: clamp(54px, 7vh, 72px);
    height: clamp(54px, 7vh, 72px);
    margin-bottom: clamp(7px, 1.1vh, 12px);
  }

  .hero h1 {
    font-size: clamp(34px, 4.7vh, 48px);
    line-height: 1.08;
  }

  .eyebrow {
    font-size: 9px;
    margin-bottom: 6px;
  }

  .school-name {
    margin-top: 8px;
    font-size: 10px;
    letter-spacing: .25em;
  }

  .hero-copy {
    margin: 9px auto 11px;
    font-size: 11.5px;
  }

  .welcome-chip {
    padding: 8px 15px;
    font-size: 9px;
  }
}

/* Tetap proporsional pada laptop dengan tinggi layar pendek. */
@media (min-width: 1051px) and (min-height: 571px) and (max-height: 700px) {
  .brand-mark {
    width: 48px;
    height: 48px;
    margin-bottom: 5px;
  }

  .hero h1 {
    font-size: clamp(28px, 4.1vh, 35px);
  }

  .eyebrow {
    font-size: 8px;
    margin-bottom: 4px;
  }

  .school-name {
    margin-top: 5px;
    font-size: 9px;
  }

  .hero-copy {
    margin: 5px auto 7px;
    font-size: 9.5px;
  }

  .welcome-chip {
    padding: 6px 11px;
    font-size: 8px;
  }
}


/* =========================================================
   ESABA PREMIUM MOTION — VISUAL MATCH
   Menambahkan ambience cahaya/ribbon seperti konsep referensi,
   tanpa mengganti struktur portal, kartu, atau identitas.
   ========================================================= */
@keyframes esabaAmbientFloatA {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(34px,-20px,0) scale(1.06); }
}
@keyframes esabaAmbientFloatB {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-28px,24px,0) scale(1.08); }
}
@keyframes esabaRibbonDrift {
  0%,100% { background-position: 0% 50%; transform: translateX(-1.2%) rotate(-1deg); }
  50% { background-position: 100% 50%; transform: translateX(1.2%) rotate(1deg); }
}
@keyframes esabaHaloPulse {
  0%,100% { box-shadow: 0 18px 42px rgba(27,43,57,.13), 0 0 0 0 rgba(198,166,106,0), inset 0 1px 0 #fff; }
  50% { box-shadow: 0 22px 48px rgba(27,43,57,.15), 0 0 0 8px rgba(198,166,106,.08), 0 0 32px rgba(224,190,119,.22), inset 0 1px 0 #fff; }
}
@keyframes esabaOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes esabaTextReveal {
  from { opacity: 0; transform: translateY(13px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes esabaCardReveal {
  from { opacity: 0; transform: translateY(15px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes esabaCardLight {
  0% { transform: translateX(-140%) skewX(-20deg); opacity: 0; }
  20% { opacity: .55; }
  100% { transform: translateX(240%) skewX(-20deg); opacity: 0; }
}
@keyframes esabaMetaGlow {
  0%,100% { box-shadow: 0 9px 26px rgba(24,43,59,.07); }
  50% { box-shadow: 0 12px 30px rgba(24,43,59,.10), 0 0 0 4px rgba(198,166,106,.07); }
}

/* Latar ambient bergerak di belakang konten. */
.ambient-a {
  animation: esabaAmbientFloatA 15s ease-in-out infinite;
  background: radial-gradient(circle, rgba(220,194,145,.66), rgba(220,194,145,.20) 55%, transparent 72%);
}
.ambient-b {
  animation: esabaAmbientFloatB 18s ease-in-out infinite;
  background: radial-gradient(circle, rgba(177,207,220,.66), rgba(177,207,220,.20) 56%, transparent 74%);
}
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  width: 62vw;
  height: 24vh;
  min-height: 150px;
  border-radius: 50%;
  filter: blur(17px);
  opacity: .62;
  background:
    linear-gradient(165deg, transparent 34%, rgba(255,255,255,.85) 39%, rgba(232,199,129,.72) 42%, rgba(255,255,255,.86) 44%, transparent 49%),
    linear-gradient(165deg, transparent 48%, rgba(183,215,232,.42) 53%, rgba(255,255,255,.70) 56%, transparent 61%);
  background-size: 200% 200%;
  animation: esabaRibbonDrift 19s ease-in-out infinite;
}
body::before { top: -8vh; left: -15vw; }
body::after { right: -18vw; bottom: -9vh; animation-delay: -9s; transform: rotate(180deg); }

/* Logo diberi halo halus dan orbit tipis, bukan animasi berlebihan. */
.brand-mark {
  position: relative;
  animation: esabaHaloPulse 5s ease-in-out infinite;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(198,166,106,.22);
  border-left-color: rgba(198,166,106,.72);
  border-right-color: rgba(198,166,106,.08);
  border-radius: 34px;
  pointer-events: none;
  animation: esabaOrbit 24s linear infinite;
}

/* Urutan masuk elemen header. */
.hero .brand-mark { animation: esabaTextReveal .8s ease-out both, esabaHaloPulse 5s ease-in-out .8s infinite; }
.hero .eyebrow { animation: esabaTextReveal .65s ease-out .12s both; }
.hero h1 { animation: esabaTextReveal .8s cubic-bezier(.2,.75,.25,1) .2s both; }
.hero .school-name { animation: esabaTextReveal .7s ease-out .3s both; }
.hero .hero-copy { animation: esabaTextReveal .7s ease-out .4s both; }
.hero .welcome-chip { animation: esabaTextReveal .7s ease-out .5s both, esabaMetaGlow 5s ease-in-out 1.2s infinite; }

/* Kilau bergerak pada garis aksen kartu, tanpa menimpa lingkaran dekorasi asli. */
.app-card .card-decoration {
  display: block;
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.app-card .card-decoration::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 32%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.56), transparent);
  transform: translateX(-140%) skewX(-20deg);
  opacity: 0;
}
.app-card:hover .card-decoration::before {
  animation: esabaCardLight 1.15s ease-out;
}
.app-card > :not(.card-decoration):not(.card-hit-area) {
  position: relative;
  z-index: 1;
}
.app-card {
  animation: esabaCardReveal .75s cubic-bezier(.2,.75,.25,1) both;
}
.app-card:nth-child(1) { animation-delay: .18s; }
.app-card:nth-child(2) { animation-delay: .26s; }
.app-card:nth-child(3) { animation-delay: .34s; }
.app-card:nth-child(4) { animation-delay: .42s; }
.app-card:nth-child(5) { animation-delay: .50s; }
.app-card:nth-child(6) { animation-delay: .58s; }
.app-icon, .open-app {
  transition: transform .32s cubic-bezier(.2,.8,.2,1), box-shadow .32s ease;
}
.app-card:hover .app-icon {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 25px rgba(20,42,61,.16);
}
.app-card:hover .open-app { transform: translateX(3px); }
.live-dot { animation: esabaMetaGlow 2.8s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* =========================================================
   PREMIUM MOTION FIX — ANIMASI STANDBY YANG TERLIHAT
   Memakai elemen .ambient dan .card-decoration yang memang
   tersedia di index.php. Tidak menimpa pseudo-element kartu.
   ========================================================= */
@keyframes esabaAmbientMoveA {
  0%,100% { transform: translate3d(0,0,0) scale(1); opacity:.34; }
  50% { transform: translate3d(72px,-34px,0) scale(1.12); opacity:.62; }
}
@keyframes esabaAmbientMoveB {
  0%,100% { transform: translate3d(0,0,0) scale(1); opacity:.30; }
  50% { transform: translate3d(-64px,42px,0) scale(1.10); opacity:.58; }
}
@keyframes esabaRibbonMove {
  0%,100% { transform: translate3d(-2vw,0,0) rotate(-2deg); opacity:.42; }
  50% { transform: translate3d(2vw,2vh,0) rotate(1deg); opacity:.78; }
}
@keyframes esabaLogoHover {
  0%,100% { transform: translateY(0); box-shadow:0 18px 42px rgba(27,43,57,.13), 0 0 0 0 rgba(198,166,106,0); }
  50% { transform: translateY(-6px); box-shadow:0 22px 46px rgba(27,43,57,.16), 0 0 0 8px rgba(198,166,106,.10), 0 0 30px rgba(224,190,119,.28); }
}
@keyframes esabaChipBreath {
  0%,100% { box-shadow:0 9px 26px rgba(24,43,59,.07); }
  50% { box-shadow:0 12px 30px rgba(24,43,59,.12), 0 0 0 5px rgba(198,166,106,.08); }
}
@keyframes esabaCardShimmer {
  0%,65% { transform:translateX(-150%) skewX(-18deg); opacity:0; }
  72% { opacity:.48; }
  92% { opacity:.22; }
  100% { transform:translateX(250%) skewX(-18deg); opacity:0; }
}
@keyframes esabaCardAura {
  0%,100% { opacity:.32; transform:scale(.98); }
  50% { opacity:.72; transform:scale(1.05); }
}
@keyframes esabaLineGlow {
  0%,100% { opacity:.38; filter:brightness(1); }
  50% { opacity:1; filter:brightness(1.25); }
}
@keyframes esabaHeaderIn {
  from { opacity:0; transform:translateY(12px); }
  to { opacity:1; transform:translateY(0); }
}

/* Ambient blobs sudah ada di HTML, gerakkan terus saat standby. */
.ambient-a {
  animation: esabaAmbientMoveA 13s ease-in-out infinite !important;
  will-change: transform, opacity;
}
.ambient-b {
  animation: esabaAmbientMoveB 16s ease-in-out infinite !important;
  will-change: transform, opacity;
}

/* Ribbon cahaya di belakang konten, selalu bergerak lambat. */
body::before,
body::after {
  content:"";
  display:block;
  position:fixed;
  z-index:0;
  pointer-events:none;
  width:68vw;
  height:25vh;
  min-height:160px;
  border-radius:50%;
  filter:blur(13px);
  background:
    linear-gradient(165deg, transparent 34%, rgba(255,255,255,.84) 39%, rgba(232,199,129,.68) 42%, rgba(255,255,255,.78) 45%, transparent 50%),
    linear-gradient(165deg, transparent 49%, rgba(183,215,232,.40) 53%, rgba(255,255,255,.68) 57%, transparent 62%);
}
body::before {
  top:-9vh;
  left:-17vw;
  animation:esabaRibbonMove 18s ease-in-out infinite;
}
body::after {
  right:-19vw;
  bottom:-10vh;
  animation:esabaRibbonMove 22s ease-in-out -8s infinite reverse;
}

/* Header selalu memiliki gerak lembut, bukan hanya saat load/hover. */
.hero .brand-mark {
  animation:esabaLogoHover 5s ease-in-out infinite !important;
  will-change:transform, box-shadow;
}
.hero .eyebrow,
.hero h1,
.hero .school-name,
.hero .hero-copy {
  animation:esabaHeaderIn .8s ease-out both;
}
.hero .eyebrow { animation-delay:.08s; }
.hero h1 { animation-delay:.16s; }
.hero .school-name { animation-delay:.24s; }
.hero .hero-copy { animation-delay:.32s; }
.hero .welcome-chip {
  animation:esabaChipBreath 4.8s ease-in-out infinite !important;
}

/* .card-decoration adalah lapisan khusus di dalam kartu; aman untuk shimmer. */
.app-card .card-decoration {
  position:absolute;
  z-index:0;
  inset:0;
  overflow:hidden;
  border-radius:inherit;
  pointer-events:none;
}
.app-card .card-decoration::before {
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  width:36%;
  background:linear-gradient(105deg,transparent 12%,rgba(255,255,255,.72) 48%,transparent 84%);
  transform:translateX(-150%) skewX(-18deg);
  animation:esabaCardShimmer 8.5s ease-in-out infinite;
}
.app-card:nth-child(2) .card-decoration::before { animation-delay:1.4s; }
.app-card:nth-child(3) .card-decoration::before { animation-delay:2.8s; }
.app-card:nth-child(4) .card-decoration::before { animation-delay:4.2s; }
.app-card:nth-child(5) .card-decoration::before { animation-delay:5.6s; }
.app-card:nth-child(6) .card-decoration::before { animation-delay:7s; }

/* Lingkaran dekoratif bawaan kartu tetap dipakai, hanya diberi denyut. */
.app-card::after {
  animation:esabaCardAura 7s ease-in-out infinite;
}
.app-card:nth-child(2)::after { animation-delay:1s; }
.app-card:nth-child(3)::after { animation-delay:2s; }
.app-card:nth-child(4)::after { animation-delay:3s; }
.app-card:nth-child(5)::after { animation-delay:4s; }
.app-card:nth-child(6)::after { animation-delay:5s; }

/* Garis kiri-kanan tombol Pilih Aplikasi berkilau perlahan. */
.heading-line {
  animation:esabaLineGlow 5s ease-in-out infinite;
}
.heading-line:last-child { animation-delay:2.5s; }

/* Tetap nyaman dibaca dan tidak memaksa animasi untuk pengguna reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .ambient-a,.ambient-b,body::before,body::after,
  .hero .brand-mark,.hero .welcome-chip,
  .app-card .card-decoration::before,.app-card::after,.heading-line {
    animation:none !important;
  }
}
