/* ============================================================
   CENTAURI — "The Atlas" (cerita gulir 3D). Semua gaya dicakup .atlas
   ============================================================ */
.atlas {
  --atlas-ink: #03100f;
  --atlas-deep: #071a19;
  --atlas-gold: #e2b98a;
  --atlas-pale: #f3d7b4;
  --atlas-teal: #7fd6cf;
  --atlas-mist: #edf2f0;
  --atlas-top: calc(var(--ob, 36px) + 92px);   /* jarak HUD dari atas (di bawah nav) */
  --atlas-pad: clamp(20px, 5vw, 80px);
  position: relative;
  height: 550vh;
  background: var(--atlas-ink);
  color: var(--atlas-mist);
  font-family: 'Geist', system-ui, sans-serif;
}
.atlas__pin {
  position: sticky; top: 0;
  height: 100vh; height: 100lvh;
  overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 70% 30%, var(--atlas-deep), var(--atlas-ink) 70%);
}
.atlas__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }

/* label mono yang diproyeksikan dari 3D */
.atlas__labels { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.atlas__lab {
  position: absolute; left: 0; top: 0; opacity: 0;
  font: 500 10px/1 'Geist Mono', ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase;
  white-space: nowrap; color: rgba(237, 242, 240, .62); will-change: transform, opacity;
}
.atlas__lab > span { display: inline-block; transform: translateY(-50%); }
.atlas__lab--left > span { transform: translate(-100%, -50%); }
.atlas__lab--below > span { transform: translate(-50%, 0); }
.atlas__lab--star { color: var(--atlas-pale); font-size: 10.5px; }
.atlas__lab--star i { text-transform: none; font-family: 'Geist', system-ui, sans-serif; font-style: normal; color: var(--atlas-gold); margin-right: .7em; letter-spacing: 0; font-size: 12px; }
.atlas__lab--market { color: var(--atlas-teal); }
.atlas__lab--tick { color: rgba(237, 242, 240, .5); }
.atlas__lab--order { color: var(--atlas-gold); }
.atlas__lab--wallet { color: var(--atlas-pale); }
.atlas__lab--live { color: rgba(127, 214, 207, .9); font-size: 9.5px; }
.atlas__lab--live > span::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: .8em; border-radius: 50%; background: var(--atlas-teal); vertical-align: 1px; animation: atlasPulse 2.4s ease-in-out infinite; }
@keyframes atlasPulse { 50% { opacity: .35; } }

/* bayangan tinta di belakang teks agar tetap terbaca */
.atlas__shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(78% 70% at 0% 100%, rgba(3, 16, 15, .94), rgba(3, 16, 15, .66) 42%, rgba(3, 16, 15, 0) 80%),
    linear-gradient(to top, rgba(3, 16, 15, .55), rgba(3, 16, 15, 0) 34%),
    linear-gradient(to bottom, rgba(3, 16, 15, .55), rgba(3, 16, 15, 0) 22%);
}

/* ---------- HUD ---------- */
.atlas__hud { position: absolute; inset: 0; z-index: 4; pointer-events: none; font: 500 11px/1 'Geist Mono', ui-monospace, monospace; letter-spacing: .18em; text-transform: uppercase; }
.atlas__kicker { position: absolute; top: var(--atlas-top); left: var(--atlas-pad); display: inline-flex; align-items: center; gap: 12px; color: rgba(237, 242, 240, .7); }
.atlas__kicker i { width: 22px; height: 1px; background: var(--atlas-gold); }
.atlas__count { position: absolute; top: var(--atlas-top); right: var(--atlas-pad); display: inline-flex; align-items: baseline; gap: 10px; color: var(--atlas-mist); }
.atlas__count b { font: 400 15px/1 'Geist', sans-serif; color: var(--atlas-gold); letter-spacing: 0; text-transform: none; }
.atlas__of { color: rgba(237, 242, 240, .42); }
.atlas__rail { position: absolute; left: var(--atlas-pad); right: var(--atlas-pad); bottom: 30px; height: 1px; background: rgba(237, 242, 240, .14); }
.atlas__rail i { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(226, 185, 138, .4), var(--atlas-gold)); transform-origin: 0 50%; transform: scaleX(0); }
.atlas__rail b { position: absolute; top: -3px; width: 1px; height: 7px; background: rgba(237, 242, 240, .35); }

/* ---------- Langkah teks ---------- */
.atlas__steps {
  position: absolute; z-index: 3; margin: 0; padding: 0; list-style: none;
  left: var(--atlas-pad); bottom: clamp(70px, 12vh, 132px);
  width: min(780px, 58vw);
}
.atlas__steps > li { position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; }
.atlas__steps > li.is-active { pointer-events: auto; }
.atlas__cat {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 11px/1 'Geist Mono', ui-monospace, monospace; letter-spacing: .18em; text-transform: uppercase;
  color: var(--atlas-pale); opacity: 0; transform: translateY(8px);
  transition: opacity .35s ease, transform .5s cubic-bezier(.2, .7, .1, 1);
}
.atlas__cat::before {
  content: ''; width: 9px; height: 9px; flex: none;
  background: var(--atlas-gold);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 4px rgba(226, 185, 138, .8));
}
.atlas__g { text-transform: none; letter-spacing: 0; font: 400 13px/1 'Geist', system-ui, sans-serif; color: var(--atlas-gold); margin-right: .25em; }
.atlas__steps h2 {
  margin: 20px 0 20px; font-family: 'Geist', system-ui, sans-serif; font-weight: 300;
  font-size: clamp(34px, 5vw, 76px); line-height: 1.02; letter-spacing: -.035em;
  color: var(--atlas-mist); text-wrap: balance;
}
.atlas__steps h2 em { font-style: normal; font-weight: 600; color: var(--atlas-gold); letter-spacing: -.04em; }
.atlas__w {
  display: inline-block; white-space: nowrap; opacity: 0; transform: translateY(.45em);
  transition: opacity .25s ease, transform .35s ease; transition-delay: 0s;
}
.atlas__steps p {
  margin: 0; max-width: 36ch; font: 300 clamp(16px, 1.25vw, 19px)/1.55 'Geist', system-ui, sans-serif;
  color: rgba(237, 242, 240, .74); opacity: 0; transform: translateY(10px);
  transition: opacity .3s ease, transform .4s ease;
}
/* langkah aktif: kata naik + memudar dengan jeda 40ms */
.atlas__steps > li.is-active .atlas__cat { opacity: 1; transform: none; transition-delay: .05s; }
.atlas__steps > li.is-active .atlas__w {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .9s cubic-bezier(.16, .84, .2, 1);
  transition-delay: calc(var(--i) * 40ms + 80ms);
}
.atlas__steps > li.is-active p {
  opacity: 1; transform: none;
  transition: opacity .7s ease, transform .9s cubic-bezier(.16, .84, .2, 1);
  transition-delay: calc(var(--n, 6) * 40ms + 220ms);
}

/* ---------- HP ---------- */
@media (max-width: 759px) {
  .atlas { --atlas-top: calc(var(--ob, 36px) + 76px); --atlas-pad: 20px; }
  .atlas__steps { left: 20px; right: 20px; width: auto; bottom: 68px; }
  .atlas__g { text-transform: none; letter-spacing: 0; font: 400 13px/1 'Geist', system-ui, sans-serif; color: var(--atlas-gold); margin-right: .25em; }
.atlas__steps h2 { margin: 14px 0 14px; }
  .atlas__steps p { font-size: 15.5px; }
  .atlas__shade {
    background:
      linear-gradient(to top, rgba(3, 16, 15, .96) 0%, rgba(3, 16, 15, .82) 30%, rgba(3, 16, 15, 0) 56%),
      linear-gradient(to bottom, rgba(3, 16, 15, .5), rgba(3, 16, 15, 0) 20%);
  }
  .atlas__lab { font-size: 9px; letter-spacing: .14em; }
  .atlas__hud { font-size: 9.5px; letter-spacing: .14em; }
  .atlas__kicker { gap: 9px; }
  .atlas__kicker i { width: 14px; }
  .atlas__rail { bottom: 24px; }
}

/* ---------- Gerak dikurangi: crossfade saja ---------- */
.atlas--reduced .atlas__w,
.atlas--reduced .atlas__steps > li.is-active .atlas__w,
.atlas--reduced .atlas__cat, .atlas--reduced .atlas__steps p,
.atlas--reduced .atlas__steps > li.is-active p { transform: none !important; transition: opacity .6s ease !important; transition-delay: 0s !important; }

/* ---------- Tanpa WebGL ---------- */
.atlas--nogl .atlas__pin { background: radial-gradient(80% 70% at 70% 30%, #0b2725, var(--atlas-ink) 75%); }
.atlas--nogl .atlas__gl { display: none; }
