/* =========================================================
   HOME.CSS — v2 (refactor)
   Struktur:
     1.  Variabel & Reset
     2.  Background (animasi ambient)
     3.  Wrapper
     4.  Hero (entrance animation berurutan)
     5.  Navbar
     6.  Mobile Menu (hamburger / overlay / slide menu)
     7.  Market Grid & Card (border berjalan + shine, sudah diperbaiki)
     8.  Market Slider (horizontal-swipe mobile)
     9.  Stats
     10. About
     11. FAQ (accordion)
     12. SEO Content
     13. Scroll Indicator
     14. Reveal Animation (on scroll, dengan stagger)
     15. Keyframes
     16. Aksesibilitas (prefers-reduced-motion)
     17. Responsive
         17a. Tablet  (max-width: 991px)
         17b. Mobile  (max-width: 767px)
   PENTING: jangan menambahkan CSS baru di bawah section 17.
   Semua override tombol lama (yang pakai !important) sudah
   digabung rapi ke section 7 — jangan ditambahkan lagi.
   ========================================================= */

/* =========================================
   1. VARIABEL & RESET
========================================= */
:root {
  /* Brand */
  --teal: #18f5cf;
  --teal-soft: rgba(24, 245, 207, .45);
  --teal-glow: rgba(24, 245, 207, .25);

  /* Tema market */
  --hk: #ff3d3d;
  --hk-dark: #b60000;
  --hk-rgb: 255, 61, 61;

  --sdy: #ffb100;
  --sdy-dark: #ff7300;
  --sdy-rgb: 255, 174, 0;

  --sgp: #2b8cff;
  --sgp-dark: #0048ff;
  --sgp-rgb: 43, 140, 255;

  /* Permukaan */
  --surface: rgba(255, 255, 255, .05);
  --line: rgba(255, 255, 255, .08);

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #031a15;
  color: #fff;
  overflow-x: hidden;
}

/* =========================================
   2. BACKGROUND — ambient zoom pelan
========================================= */
.background {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .70)),
    url("../images/HK.png");
  background-size: cover;
  background-position: center;
  filter: blur(12px);
  transform: scale(1.15);
  animation: bgMove 24s ease-in-out infinite alternate;
  will-change: transform;
}

.overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, .72));
  z-index: -2;
}

/* =========================================
   3. WRAPPER
========================================= */
.wrapper {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 140px 25px 80px;
}

/* =========================================
   4. HERO — entrance berurutan saat load
========================================= */
.hero {
  position: relative;
  overflow: hidden;
  z-index: 1;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  scroll-margin-top: 120px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: 50%;
  top: -180px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--teal);
  filter: blur(180px);
  opacity: .10;
  z-index: -1;
  animation: glowBreath 6s ease-in-out infinite;
}

.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Entrance: tiap elemen hero masuk bergiliran */
.hero .live-circle,
.hero h1,
.hero p,
.hero h3 {
  opacity: 0;
  animation: heroIn .9s var(--ease-out) forwards;
}

.hero .live-circle { animation-delay: .05s; }
.hero h1           { animation-delay: .20s; }
.hero p            { animation-delay: .38s; }
.hero h3           { animation-delay: .55s; }

.live-circle {
  width: 120px;
  height: 120px;
  margin: auto;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--teal);
  color: #001a15;
  font-size: 34px;
  font-weight: bold;
  box-shadow:
    0 0 25px var(--teal-soft),
    0 0 60px var(--teal-glow);
  /* pulse dipisah ke box-shadow saja agar tidak bentrok
     dengan animasi entrance (yang memakai transform) */
  animation: heroIn .9s var(--ease-out) forwards,
             pulseGlow 2s ease-in-out .9s infinite;
}

.hero h1 {
  margin-top: 25px;
  font-size: 120px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -4px;
}

.hero-white {
  color: #fff;
  text-shadow:
    0 0 18px rgba(255, 255, 255, .45),
    0 0 35px rgba(255, 255, 255, .15);
}

.hero-green {
  color: #20f5d1;
  text-shadow:
    0 0 20px rgba(24, 245, 207, .70),
    0 0 60px rgba(24, 245, 207, .35);
  animation: neonFlicker 5s ease-in-out infinite;
}

.hero p {
  margin-top: 18px;
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
}

.hero h3 {
  margin-top: 15px;
  color: var(--teal);
  font-size: 26px;
  letter-spacing: 2px;
  font-weight: 700;
}

.hero-logo h3 {
  margin-top: 18px;
  font-size: 20px;
  color: #27f4d4;
  letter-spacing: 2px;
  font-weight: 700;
}

/* =========================================
   5. NAVBAR
========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px;
  background: rgba(8, 8, 8, .82);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--line);
  z-index: 9999;
  transition: height .35s var(--ease-out),
              padding .35s var(--ease-out),
              background .35s ease,
              box-shadow .35s ease,
              border-color .35s ease;
  animation: navDrop .7s var(--ease-out) both;
}

.navbar.scrolled {
  height: 72px;
  padding: 0 40px;
  background: rgba(6, 8, 10, .92);
  -webkit-backdrop-filter: blur(35px);
  backdrop-filter: blur(35px);
  border-bottom: 1px solid rgba(37, 247, 211, .15);
  box-shadow:
    0 12px 35px rgba(0, 0, 0, .40),
    0 0 20px rgba(37, 247, 211, .08),
    inset 0 1px rgba(255, 255, 255, .05);
}

.navbar.scrolled .live-circle-nav {
  width: 44px;
  height: 44px;
  font-size: 13px;
}

.navbar.scrolled .logo-text h2 {
  font-size: 19px;
}

.navbar.scrolled .logo-text small {
  font-size: 11px;
  opacity: .8;
}

.navbar.scrolled .update-btn {
  padding: 12px 22px;
}

/* --- Nav left / logo --- */
.nav-left {
  display: flex;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.live-circle-nav {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #1df0d0;
  font-size: 13px;
  font-weight: bold;
  color: #000;
  box-shadow: 0 0 25px rgba(29, 240, 208, .45);
  transition: width .35s var(--ease-out), height .35s var(--ease-out),
              font-size .35s var(--ease-out);
}

.logo-text h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  transition: font-size .35s var(--ease-out);
}

.logo-text span {
  color: #25f7d3;
}

.logo-text small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #bbb;
  letter-spacing: .8px;
  opacity: .75;
  transition: font-size .35s var(--ease-out), opacity .35s ease;
}

/* --- Nav center (menu) --- */
.nav-center {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-center a {
  position: relative;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .5px;
  color: #d8d8d8;
  transition: color .3s ease;
}

/* Underline animasi: tumbuh dari kiri saat hover */
.nav-center a::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 30px;
  background: #25f7d3;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}

.nav-center a:hover {
  color: #25f7d3;
}

.nav-center a:hover::after,
.nav-center a.active::after {
  transform: scaleX(1);
}

.nav-center a.active {
  color: #25f7d3;
}

/* --- Nav right / update button --- */
.nav-right {
  display: flex;
  align-items: center;
}

.update-btn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border-radius: 50px;
  text-decoration: none;
  background: rgba(37, 247, 211, .08);
  border: 1px solid rgba(37, 247, 211, .4);
  color: #25f7d3;
  font-weight: bold;
  letter-spacing: .8px;
  box-shadow: 0 0 20px rgba(37, 247, 211, .18);
  transition: background .35s ease, color .35s ease,
              transform .35s var(--ease-spring), box-shadow .35s ease,
              padding .35s var(--ease-out);
}

.update-btn span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #25f7d3;
  animation: dotPulse 1.5s ease-in-out infinite;
}

.update-btn:hover {
  background: #19efd0;
  color: #00130f;
  transform: translateY(-3px);
  box-shadow:
    0 0 25px rgba(37, 247, 211, .5),
    0 0 60px rgba(37, 247, 211, .3);
}

.update-btn:hover span {
  background: #00130f;
}

/* =========================================
   6. MOBILE MENU
   Disembunyikan default (desktop & tablet),
   ditampilkan di @media mobile (section 17b).
========================================= */
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  border-radius: 20px;
  background: #27f7d3;
  transition: transform .35s var(--ease-out), opacity .25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
  z-index: 998;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 290px;
  /* 100dvh: mengikuti tinggi layar sebenarnya di browser mobile
     (100vh sering kepotong address bar) */
  height: 100vh;
  height: 100dvh;
  padding: 95px 30px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(6, 10, 14, .98);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  transform: translateX(105%);
  transition: transform .45s var(--ease-out);
  z-index: 999;
  box-shadow: -10px 0 40px rgba(0, 0, 0, .45);
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Item menu masuk bergiliran saat menu dibuka */
.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  opacity: 0;
  transform: translateX(24px);
  transition: color .3s ease, padding-left .3s ease,
              opacity .4s ease, transform .4s var(--ease-out);
}

.mobile-menu.active a {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu.active a:nth-child(1) { transition-delay: .10s; }
.mobile-menu.active a:nth-child(2) { transition-delay: .16s; }
.mobile-menu.active a:nth-child(3) { transition-delay: .22s; }
.mobile-menu.active a:nth-child(4) { transition-delay: .28s; }
.mobile-menu.active a:nth-child(5) { transition-delay: .34s; }
.mobile-menu.active a:nth-child(6) { transition-delay: .40s; }

.mobile-menu a:hover {
  color: #24f7d3;
  padding-left: 10px;
}

.mobile-menu .active {
  color: #24f7d3;
}

.mobile-btn {
  margin-top: 20px;
  text-align: center;
}

/* =========================================
   7. MARKET GRID & CARD
========================================= */
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 80px;
  align-items: stretch;
}

/* Sudut yang dianimasikan untuk neon orbit.
   @property membuat --angle bisa di-transisi/animasi mulus
   (didukung semua browser modern: Chrome, Edge, Safari, Firefox). */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.market-card {
  position: relative;
  /* overflow tetap visible agar ikon badge bisa "mengambang"
     keluar kartu — clipping gambar ditangani .market-media */
  overflow: visible;
  padding: 0;
  border-radius: 26px;
  background: #121212;
  border: 2px solid transparent; /* diwarnai per-tema di bawah */
  box-shadow: 0 15px 35px rgba(0, 0, 0, .35);
  transition: transform .45s var(--ease-out), box-shadow .45s ease;
  --card-neon: var(--teal); /* di-override per tema */
}

.market-card:hover {
  transform: translateY(-16px) scale(1.03);
}

/* --- NEON BORDER ORBIT:
   Cahaya conic-gradient berputar MENGELILINGI outline frame
   (bukan sweep kiri-kanan). Mask ring memastikan gradient hanya
   terlihat di garis border, mengikuti bentuk rounded corner. --- */
.market-card::before {
  content: "";
  position: absolute;
  inset: -3px;
  padding: 3px;
  border-radius: 28px;
  background: conic-gradient(
    from var(--angle),
    transparent 0%,
    transparent 62%,
    var(--card-neon) 78%,
    #ffffff 88%,
    var(--card-neon) 94%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: borderOrbit 3.5s linear infinite;
  pointer-events: none;
  z-index: 3;
}

/* --- GLOW MENGIKUTI OUTLINE:
   Salinan blur dari ring di atas — cahaya menyebar keluar tapi
   tetap mengikuti bentuk border container, bukan blob kotak. --- */
.market-card::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 28px;
  background: conic-gradient(
    from var(--angle),
    transparent 0%,
    transparent 62%,
    var(--card-neon) 80%,
    var(--card-neon) 92%,
    transparent 100%
  );
  filter: blur(14px);
  opacity: .55;
  animation: borderOrbit 3.5s linear infinite;
  pointer-events: none;
  z-index: -1;
}

.market-card:hover::after {
  opacity: .85;
}

/* --- Media wrapper (FIX):
   gambar di-clip di sini supaya zoom saat hover tidak bocor
   keluar sudut kartu. Jika HTML belum punya wrapper, cukup
   bungkus <img> dengan <div class="market-media">. Tanpa
   wrapper pun aman: img diberi radius sendiri sebagai fallback. --- */
.market-media {
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

.market-card img {
  width: 100%;
  height: 230px;
  display: block;
  object-fit: cover;
  /* fallback bila tidak dibungkus .market-media */
  border-radius: 24px 24px 0 0;
  filter: brightness(.45) contrast(1.1);
  transition: filter .45s ease, transform .6s var(--ease-out);
}

.market-card:hover img {
  filter: brightness(.75);
  transform: scale(1.06);
}

/* --- Content --- */
.market-content {
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.market-content small {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
}

.market-content h2 {
  margin: 8px 0;
  font-size: 64px;
  line-height: 1;
  font-weight: 900;
}

.market-content span {
  display: block;
  margin-bottom: 26px;
  color: #ddd;
  font-size: 18px;
  letter-spacing: 3px;
}

/* --- Tombol — SATU definisi.
   CATATAN: !important dipertahankan di properti animasi kunci
   karena ada stylesheet lain di project yang menimpa aturan ini
   (alasan yang sama kenapa file lama penuh !important). --- */
.market-content a {
  position: relative !important;
  overflow: hidden !important;
  z-index: 1 !important;

  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  max-width: 250px;
  margin: 22px auto 0;
  padding: 15px 20px;

  border-radius: 40px;
  border: 2px solid transparent;

  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
  color: #fff !important;

  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;

  /* ⚡ transisi halus */
  transition: transform .4s var(--ease-spring), box-shadow .4s ease,
              background .4s ease, border-color .4s ease,
              filter .4s ease !important;
}

/* ✨ Shine / cahaya berjalan — satu definisi */
.market-content a::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: -120% !important;
  width: 60% !important;
  height: 100% !important;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, .75) 50%,
    transparent 100%) !important;
  transform: skewX(-25deg) !important;
  transition: left .65s ease !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

/* ⬆️ Tombol naik saat hover/tap */
.market-content a:hover,
.market-content a:focus-visible,
.market-content a:active,
.market-content a.touch-active {
  transform: translateY(-5px) scale(1.04) !important;
}

.market-content a:hover::before,
.market-content a:focus-visible::before,
.market-content a:active::before,
.market-content a.touch-active::before {
  left: 160% !important;
}

/* Fokus keyboard tetap terlihat */
.market-content a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* --- Icon badge (FIX):
   sebelumnya translateX(-50%) tertimpa animasi floating.
   Sekarang keyframes ikut membawa translateX(-50%), jadi ikon
   selalu presisi di tengah sambil mengambang. --- */
.market-icon {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 74px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  z-index: 10;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: floatingCentered 3s ease-in-out infinite;
  box-shadow: 0 0 25px rgba(255, 255, 255, .18);
}

/* ---------- Tema per market (pakai variabel) ---------- */

/* --- HK (merah) --- */
.hk {
  --card-neon: #ff4545;
  border-color: rgba(var(--hk-rgb), .75);
  box-shadow: 0 0 35px rgba(var(--hk-rgb), .25);
}

.hk:hover {
  box-shadow:
    0 0 25px rgba(var(--hk-rgb), .45),
    0 0 60px rgba(var(--hk-rgb), .35),
    0 0 120px rgba(var(--hk-rgb), .25);
}

.hk-icon {
  background: linear-gradient(135deg, #ff5252, var(--hk-dark));
  box-shadow: 0 0 35px rgba(var(--hk-rgb), .60);
}

.hk h2 {
  color: var(--hk);
  animation: numberGlowHK 2.6s ease-in-out infinite;
}

.hk a {
  background: linear-gradient(90deg, #ff4444, var(--hk-dark)) !important;
  border-color: var(--hk) !important;
  box-shadow: 0 4px 15px rgba(var(--hk-rgb), .3) !important;
}

/* 💡🔥 Glow merah saat hover */
.hk a:hover,
.hk a:active,
.hk a:focus-visible,
.hk a.touch-active {
  background: linear-gradient(90deg, #e60000, #8f0000) !important;
  box-shadow:
    0 8px 30px rgba(var(--hk-rgb), .6),
    0 0 50px rgba(var(--hk-rgb), .3),
    inset 0 0 20px rgba(255, 255, 255, .1) !important;
}

/* --- SDY (oranye) --- */
.sdy {
  --card-neon: #ffbb33;
  border-color: rgba(var(--sdy-rgb), .75);
  box-shadow: 0 0 35px rgba(var(--sdy-rgb), .25);
}

.sdy:hover {
  box-shadow:
    0 0 25px rgba(var(--sdy-rgb), .45),
    0 0 60px rgba(var(--sdy-rgb), .35),
    0 0 120px rgba(var(--sdy-rgb), .25);
}

.sdy-icon {
  background: linear-gradient(135deg, #ffc400, #ff8500);
  box-shadow: 0 0 35px rgba(var(--sdy-rgb), .60);
}

.sdy h2 {
  color: #ffb300;
  animation: numberGlowSDY 2.6s ease-in-out infinite;
}

.sdy a {
  background: linear-gradient(90deg, var(--sdy), var(--sdy-dark)) !important;
  border-color: #ff8c00 !important;
  box-shadow: 0 4px 15px rgba(var(--sdy-rgb), .3) !important;
}

/* 💡🔥 Glow oranye saat hover */
.sdy a:hover,
.sdy a:active,
.sdy a:focus-visible,
.sdy a.touch-active {
  background: linear-gradient(90deg, #e67a00, #cc5c00) !important;
  box-shadow:
    0 8px 30px rgba(var(--sdy-rgb), .6),
    0 0 50px rgba(var(--sdy-rgb), .3),
    inset 0 0 20px rgba(255, 255, 255, .1) !important;
}

/* --- SGP (biru) --- */
.sgp {
  --card-neon: #3d8bff;
  border-color: rgba(var(--sgp-rgb), .75);
  box-shadow: 0 0 35px rgba(var(--sgp-rgb), .25);
}

.sgp:hover {
  box-shadow:
    0 0 25px rgba(var(--sgp-rgb), .45),
    0 0 60px rgba(var(--sgp-rgb), .35),
    0 0 120px rgba(var(--sgp-rgb), .25);
}

.sgp-icon {
  background: linear-gradient(135deg, #3d7eff, #0055ff);
  box-shadow: 0 0 35px rgba(var(--sgp-rgb), .60);
}

.sgp h2 {
  color: var(--sgp);
  animation: numberGlowSGP 2.6s ease-in-out infinite;
}

.sgp a {
  background: linear-gradient(90deg, #308cff, var(--sgp-dark)) !important;
  border-color: var(--sgp) !important;
  box-shadow: 0 4px 15px rgba(var(--sgp-rgb), .3) !important;
}

/* 💡🔥 Glow biru saat hover */
.sgp a:hover,
.sgp a:active,
.sgp a:focus-visible,
.sgp a.touch-active {
  background: linear-gradient(90deg, #1a75e6, #0039cc) !important;
  box-shadow:
    0 8px 30px rgba(var(--sgp-rgb), .6),
    0 0 50px rgba(var(--sgp-rgb), .3),
    inset 0 0 20px rgba(255, 255, 255, .1) !important;
}

/* =========================================
   8. MARKET SLIDER (mobile horizontal swipe)
========================================= */
.market-slider {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.market-slider::-webkit-scrollbar {
  display: none;
}

/* =========================================
   9. STATS
========================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 90px;
}

.stat {
  background: var(--surface);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border-radius: 22px;
  padding: 35px;
  text-align: center;
  border: 1px solid var(--line);
  transition: transform .35s var(--ease-out),
              border-color .35s ease, box-shadow .35s ease;
}

.stat:hover {
  transform: translateY(-6px);
  border-color: rgba(24, 245, 207, .4);
  box-shadow: 0 0 30px rgba(24, 245, 207, .12);
}

.stat h2 {
  color: var(--teal);
  font-size: 42px;
}

.stat p {
  margin-top: 12px;
}

/* =========================================
   10. ABOUT
========================================= */
.about {
  max-width: 1100px;
  margin: 140px auto 80px;
  padding: 60px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 28px;
  text-align: center;
  scroll-margin-top: 120px;
}

.section-tag {
  display: inline-block;
  color: #24f7d3;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.about h2 {
  font-size: 48px;
  margin-bottom: 25px;
  color: #fff;
}

.about p {
  font-size: 18px;
  line-height: 1.9;
  color: #d0d0d0;
  margin-bottom: 18px;
}

/* =========================================
   11. FAQ
========================================= */
.faq {
  max-width: 1100px;
  margin: 80px auto;
  scroll-margin-top: 120px;
}

.faq h2 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 45px;
}

.faq-item {
  background: var(--surface);
  padding: 28px;
  margin-bottom: 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .06);
  transition: transform .35s var(--ease-out),
              border-color .35s ease, box-shadow .35s ease;
}

.faq-item:hover {
  transform: translateY(-6px);
  border-color: #24f7d3;
  box-shadow: 0 0 30px rgba(36, 247, 211, .18);
}

.faq-item h3 {
  margin-bottom: 12px;
  color: #fff;
}

.faq-item p {
  color: #cfcfcf;
  line-height: 1.8;
}

/* --- FAQ accordion --- */
.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 5px 0;
}

.faq-question strong {
  font-size: 30px;
  color: #24f7d3;
  transition: transform .35s var(--ease-spring);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .45s var(--ease-out),
              opacity .35s ease, margin-top .35s ease;
}

.faq-item.active .faq-answer {
  max-height: 320px; /* dinaikkan agar jawaban panjang tidak kepotong */
  opacity: 1;
  margin-top: 18px;
}

.faq-item.active strong {
  transform: rotate(45deg);
}

/* =========================================
   12. SEO CONTENT
========================================= */
.seo-content {
  margin-top: 120px;
  padding: 70px;
  border-radius: 30px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  box-shadow: 0 0 45px rgba(0, 255, 180, .08);
}

/* =========================================
   13. SCROLL INDICATOR
========================================= */
.scroll-down {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: .75;
  letter-spacing: 4px;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-down span {
  letter-spacing: 4px;
  font-size: 13px;
  color: #9ef8e8;
}

.mouse {
  width: 30px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, .55);
  border-radius: 30px;
  display: flex;
  justify-content: center;
}

.wheel {
  width: 5px;
  height: 10px;
  border-radius: 20px;
  background: var(--teal);
  margin-top: 10px;
  animation: scrollMouse 1.5s ease-in infinite;
}

/* =========================================
   14. REVEAL ANIMATION (on scroll)
   Tambahan: elemen di dalam grid muncul bergiliran (stagger)
   memakai delay bertingkat via nth-child.
========================================= */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity .9s ease, transform .9s var(--ease-out);
}

.reveal.show {
  opacity: 1;
  transform: none;
}

/* Stagger untuk kartu & stat di dalam kontainer yang reveal */
.market-grid .market-card:nth-child(1),
.stats .stat:nth-child(1) { transition-delay: .00s; }
.market-grid .market-card:nth-child(2),
.stats .stat:nth-child(2) { transition-delay: .12s; }
.market-grid .market-card:nth-child(3),
.stats .stat:nth-child(3) { transition-delay: .24s; }
.stats .stat:nth-child(4) { transition-delay: .36s; }

/* Bila kartu sendiri diberi class .reveal, stagger tetap jalan */
.market-card.reveal,
.stat.reveal {
  transition-property: opacity, transform, box-shadow, border-color;
}

/* =========================================
   15. KEYFRAMES
========================================= */

/* Entrance hero */
@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(34px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Navbar turun dari atas saat load */
@keyframes navDrop {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Pulse glow: hanya box-shadow, tidak menyentuh transform
   (FIX bentrok transform dengan animasi lain) */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow:
      0 0 25px var(--teal-soft),
      0 0 60px var(--teal-glow);
  }
  50% {
    box-shadow:
      0 0 45px rgba(24, 245, 207, .7),
      0 0 90px rgba(24, 245, 207, .35);
  }
}

/* Titik hijau di tombol UPDATE */
@keyframes dotPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: .55;
  }
}

/* Napas cahaya di belakang hero */
@keyframes glowBreath {
  0%, 100% { opacity: .10; }
  50%      { opacity: .18; }
}

/* Kedip neon halus untuk teks "Draw" */
@keyframes neonFlicker {
  0%, 100% {
    text-shadow:
      0 0 20px rgba(24, 245, 207, .70),
      0 0 60px rgba(24, 245, 207, .35);
  }
  50% {
    text-shadow:
      0 0 30px rgba(24, 245, 207, .95),
      0 0 90px rgba(24, 245, 207, .55);
  }
}

@keyframes bounce {
  50% {
    transform: translateY(10px);
  }
}

@keyframes bgMove {
  0%   { transform: scale(1.15); }
  100% { transform: scale(1.28); }
}

@keyframes scrollMouse {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(18px);
    opacity: 0;
  }
}

/* Floating badge — SELALU membawa translateX(-50%)
   agar ikon tidak geser dari tengah (FIX) */
@keyframes floatingCentered {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .2; }
}

/* Neon orbit: memutar SUDUT conic-gradient, bukan elemennya —
   cahaya bergerak mengelilingi outline frame dengan mulus dan
   glow-nya tetap menempel di bentuk border rounded. */
@keyframes borderOrbit {
  0%   { --angle: 0deg; }
  100% { --angle: 360deg; }
}

/* Glow angka market — per tema */
@keyframes numberGlowHK {
  0%, 100% { text-shadow: 0 0 18px rgba(255, 61, 61, .35); }
  50%      { text-shadow: 0 0 34px rgba(255, 61, 61, .75); }
}

@keyframes numberGlowSDY {
  0%, 100% { text-shadow: 0 0 18px rgba(255, 174, 0, .35); }
  50%      { text-shadow: 0 0 34px rgba(255, 174, 0, .75); }
}

@keyframes numberGlowSGP {
  0%, 100% { text-shadow: 0 0 18px rgba(43, 140, 255, .35); }
  50%      { text-shadow: 0 0 34px rgba(43, 140, 255, .75); }
}

/* =========================================
   16. AKSESIBILITAS — reduced motion
   Pengguna yang mengaktifkan "kurangi gerakan" di OS-nya
   tetap dapat semua konten, tanpa animasi.
========================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .hero .live-circle,
  .hero h1,
  .hero p,
  .hero h3,
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   17. RESPONSIVE
   Desktop (>991px): tidak disentuh sama sekali di atas.
   ========================================================= */

/* ---------------------------------------------------------
   17a. TABLET (max-width: 991px)
--------------------------------------------------------- */
@media (max-width: 991px) {
  /* Navbar */
  .navbar {
    padding: 16px 30px;
  }

  .nav-center {
    gap: 22px;
  }

  .nav-center a {
    font-size: 13px;
  }

  .logo-text h2 {
    font-size: 20px;
  }

  .logo-text small {
    font-size: 11px;
  }

  .live-circle-nav {
    width: 46px;
    height: 46px;
    font-size: 13px;
  }

  /* Wrapper */
  .wrapper {
    padding: 120px 18px 70px;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding-top: 10px;
  }

  .hero h1 {
    font-size: 80px;
    letter-spacing: -2px;
  }

  .hero p {
    font-size: 30px;
  }

  .hero h3 {
    font-size: 20px;
    letter-spacing: 1px;
  }

  .live-circle {
    width: 96px;
    height: 96px;
    font-size: 28px;
  }

  /* Market — tetap grid 2 kolom */
  .market-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 50px;
  }

  /* Tombol market */
  .market-content a {
    padding: 14px 18px !important;
    font-size: 14px !important;
  }

  /* Stats */
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* About / FAQ */
  .about {
    padding: 40px;
    margin: 100px auto 60px;
  }

  .faq {
    margin: 60px auto;
  }
}

/* ---------------------------------------------------------
   17b. MOBILE (max-width: 767px) — floating navbar +
   hamburger + slide menu + overlay, market card jadi slider.
--------------------------------------------------------- */
@media (max-width: 767px) {
  /* Floating premium navbar */
  .navbar {
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 430px;
    height: 72px;
    padding: 0 18px;
    border-radius: 22px;
    background: rgba(8, 12, 15, .82);
    -webkit-backdrop-filter: blur(28px);
    backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow:
      0 18px 45px rgba(0, 0, 0, .45),
      inset 0 1px rgba(255, 255, 255, .06);
    z-index: 99999;
    /* navDrop memakai translateY yang bentrok dengan
       translateX(-50%) di mobile — versi khusus mobile */
    animation: navDropMobile .7s var(--ease-out) both;
  }

  .nav-left {
    flex: 1;
  }

  .nav-logo {
    gap: 12px;
  }

  .logo-text h2 {
    font-size: 18px;
    line-height: 1;
  }

  .logo-text small {
    font-size: 10px;
    letter-spacing: .5px;
    opacity: .65;
  }

  .live-circle-nav {
    width: 42px;
    height: 42px;
    font-size: 11px;
    flex-shrink: 0;
  }

  /* Sembunyikan menu desktop, ganti hamburger */
  .nav-center,
  .nav-right {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* Wrapper — lebih ringkas */
  .wrapper {
    padding: 95px 14px 30px;
  }

  /* Hero — compact, langsung ke inti */
  .hero {
    min-height: auto;
    padding: 10px 0 22px;
  }

  .hero::before {
    width: 260px;
    height: 260px;
    top: -40px;
    filter: blur(100px);
    opacity: .18;
  }

  .hero-logo {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .live-circle {
    width: 62px;
    height: 62px;
    font-size: 18px;
    margin-bottom: 14px;
  }

  .hero h1 {
    font-size: 48px;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-top: 0;
  }

  .hero p {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.45;
  }

  .hero h3 {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
  }

  /* Market — slider "◀ HK ▶": satu kartu pas di tengah layar,
     kartu tetangga mengintip di pinggir, swipe snap ke tengah */
  .market-grid {
    display: flex;
    gap: 16px;
    /* padding kiri-kanan = sisa layar / 2, supaya kartu pertama
       dan terakhir juga bisa berhenti tepat di tengah */
    padding: 8px calc(50vw - 150px);
    width: max-content;
    margin-top: 0;
  }

  .market-card {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    margin: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always; /* swipe 1x = geser 1 kartu */
  }

  /* Nonaktifkan lift hover di layar sentuh agar tidak
     "nyangkut" terangkat setelah tap */
  .market-card:hover {
    transform: none;
  }

  .market-card img {
    height: 140px;
  }

  .market-content {
    padding: 20px 16px 22px;
  }

  .market-content h2 {
    font-size: 46px;
  }

  .market-content span {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .market-content a {
    margin-top: 10px;
  }

  .market-icon {
    width: 58px;
    height: 58px;
    font-size: 22px;
    top: 12px;
  }

  .market-slider {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  /* Tombol market di mobile */
  .market-content a {
    min-width: 200px !important;
    font-size: 13px !important;
    padding: 12px 16px !important;
  }

  /* Respons sentuh lebih cepat */
  .market-content a:active {
    transition-duration: .1s !important;
  }

  /* Stats — SATU BARIS 4 kolom mini: 1000+ | 3 | 24/7 | 99% */
  .stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 34px;
  }

  .stat {
    padding: 14px 4px;
    border-radius: 16px;
  }

  .stat h2 {
    font-size: 20px;
    line-height: 1.1;
  }

  .stat p {
    margin-top: 5px;
    font-size: 10.5px;
    line-height: 1.25;
    color: #cfeee7;
    letter-spacing: .2px;
  }

  /* About — compact, jarak antar-section dirapatkan */
  .about {
    padding: 26px 20px;
    margin: 44px auto 36px;
    border-radius: 22px;
  }

  .about h2 {
    font-size: 26px;
    margin-bottom: 14px;
  }

  .about p {
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 12px;
  }

  .section-tag {
    font-size: 12px;
    margin-bottom: 10px;
  }

  /* FAQ — compact */
  .faq {
    margin: 36px auto;
  }

  .faq h2 {
    font-size: 24px;
    margin-bottom: 18px;
  }

  .faq-item {
    padding: 16px 18px;
    margin-bottom: 12px;
  }

  .faq-question {
    font-size: 15px;
  }

  .faq-question strong {
    font-size: 24px;
  }

  .faq-item p {
    font-size: 14px;
    line-height: 1.65;
  }

  /* SEO content & scroll indicator ikut dirapatkan */
  .seo-content {
    margin-top: 44px;
    padding: 26px 20px;
    border-radius: 22px;
  }

  .scroll-down {
    margin-top: 28px;
  }
}

/* Keyframe khusus navbar mobile (menjaga translateX(-50%)) */
@keyframes navDropMobile {
  from {
    transform: translateX(-50%) translateY(-120%);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

/* ===========================
   FAQ
=========================== */

.faq-card{

margin-top:35px;

padding:30px;

border-radius:22px;

background:rgba(0,40,30,.82);

border:1px solid rgba(0,255,180,.15);

}

.faq-card h2{

font-size:28px;

margin-bottom:25px;

}

.faq-item{

padding:18px 0;

border-bottom:1px solid rgba(255,255,255,.08);

}

.faq-item:last-child{

border:none;

}

.faq-item h3{

font-size:18px;

margin-bottom:10px;

color:#fff;

}

.faq-item p{

line-height:1.8;

color:#d9d9d9;

}