/* ===== Enhance layer: efek UI tambahan di atas bundle asli ===== */
:root {
  --fx-lime: #ccff00;
  --fx-ease: cubic-bezier(.22, 1, .36, 1);
}

html { scroll-behavior: smooth; }
::selection { background: var(--fx-lime); color: #000; }

/* Scrollbar tipis */
* { scrollbar-width: thin; scrollbar-color: rgba(204,255,0,.55) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(128,128,128,.35); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--fx-lime); }

/* ---------- Preloader ---------- */
html.fx-loading, html.fx-loading body { overflow: hidden; }
.fx-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #0b0b0b; color: #f5f5f5;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(20px, 4vw, 48px);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  transition: transform .9s var(--fx-ease);
}
.fx-loader.is-out { transform: translateY(-100%); }
.fx-loader__top { display: flex; justify-content: space-between; font-size: 12px; color: #737373; }
.fx-loader__brand {
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
  font-size: clamp(3rem, 12vw, 9rem); letter-spacing: -.04em; line-height: .9;
}
.fx-loader__brand span { color: var(--fx-lime); }
.fx-loader__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.fx-loader__count { font-size: clamp(2rem, 6vw, 4rem); color: var(--fx-lime); font-variant-numeric: tabular-nums; }
.fx-loader__bar { height: 2px; background: #222; margin-top: 18px; overflow: hidden; }
.fx-loader__bar i { display: block; height: 100%; width: 0; background: var(--fx-lime); }

/* ---------- Grain film ---------- */
.fx-grain {
  position: fixed; inset: 0; z-index: 70; pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
html.fx-light .fx-grain { opacity: .06; }

/* ---------- Hero: grid + glow ikut mouse ---------- */
#home { isolation: isolate; overflow: hidden; }
#home::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(128,128,128,.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(128,128,128,.12) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(420px circle at var(--mx, 70%) var(--my, 40%), #000 0%, transparent 70%);
          mask-image: radial-gradient(420px circle at var(--mx, 70%) var(--my, 40%), #000 0%, transparent 70%);
}
#home::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 520px; height: 520px; border-radius: 50%;
  left: var(--mx, 70%); top: var(--my, 40%); transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(204,255,0,.14), transparent 65%);
  filter: blur(20px);
  transition: left .6s var(--fx-ease), top .6s var(--fx-ease);
}
html.fx-light #home::after { background: radial-gradient(circle, rgba(160,200,0,.22), transparent 65%); }

/* Foto hero: grayscale -> warna saat hover + bingkai lime */
.fx-photo img { transition: filter .8s var(--fx-ease), transform .8s var(--fx-ease) !important; }
.fx-photo:hover img { filter: grayscale(0) contrast(1.05); transform: scale(1.03); }

/* Jam lokal di hero */
.fx-clock { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding-left: 10px; border-left: 1px solid rgba(128,128,128,.3); }
.fx-clock b { font-weight: 500; color: var(--fx-lime); font-variant-numeric: tabular-nums; }
html.fx-light .fx-clock b { color: #5a7300; }

/* ---------- Spotlight di kartu ---------- */
.fx-spot { position: relative; isolation: isolate; }
.fx-spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(360px circle at var(--sx, 50%) var(--sy, 50%), rgba(204,255,0,.09), transparent 60%);
  opacity: 0; transition: opacity .35s;
}
.fx-spot:hover::before { opacity: 1; }

/* Kartu karya: tilt 3D + kilau */
.fx-tilt { transform-style: preserve-3d; transition: transform .6s var(--fx-ease), box-shadow .6s var(--fx-ease); will-change: transform; }
.fx-tilt.is-active { transition: transform .12s linear, box-shadow .4s; }
.fx-tilt:hover { box-shadow: 0 30px 60px -25px rgba(0,0,0,.55), 0 0 0 1px rgba(204,255,0,.35); }
.fx-glare {
  position: absolute; inset: 0; pointer-events: none; z-index: 2; border-radius: inherit;
  background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.18), transparent 45%);
  opacity: 0; transition: opacity .4s; mix-blend-mode: overlay;
}
.fx-tilt:hover .fx-glare { opacity: 1; }

/* ---------- Pita marquee teks ---------- */
.fx-band {
  overflow: hidden; border-top: 1px solid rgba(128,128,128,.18); border-bottom: 1px solid rgba(128,128,128,.18);
  padding: 22px 0; background: var(--fx-band-bg, #0b0b0b); user-select: none;
}
html.fx-light .fx-band { --fx-band-bg: #faf9f6; }
.fx-band__track { display: flex; width: max-content; will-change: transform; }
.fx-band__item {
  display: inline-flex; align-items: center; gap: 36px; padding-right: 36px;
  font-family: "Space Grotesk", sans-serif; font-weight: 600; white-space: nowrap;
  font-size: clamp(2rem, 6vw, 4.5rem); letter-spacing: -.03em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(160,160,160,.55);
  transition: color .4s, -webkit-text-stroke-color .4s;
}
.fx-band__item.is-solid { color: #f5f5f5; -webkit-text-stroke-color: transparent; }
html.fx-light .fx-band__item.is-solid { color: #111; }
.fx-band__item:hover { color: var(--fx-lime); -webkit-text-stroke-color: var(--fx-lime); }
.fx-band__star { width: .55em; height: .55em; flex: none; color: var(--fx-lime); animation: fx-spin 8s linear infinite; }
@keyframes fx-spin { to { transform: rotate(360deg); } }

/* ---------- Judul section: garis lime nyapu ---------- */
.fx-h2 { position: relative; display: inline-block; }
.fx-h2::after {
  content: ""; position: absolute; left: 0; bottom: -.12em; height: 3px; width: 100%;
  background: var(--fx-lime); transform: scaleX(0); transform-origin: left;
  transition: transform 1s var(--fx-ease) .25s;
}
.fx-h2.is-in::after { transform: scaleX(.18); }
.fx-h2:hover::after { transform: scaleX(1); transition-delay: 0s; }

/* ---------- Tombol back-to-top + progress ---------- */
.fx-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(20,20,20,.85); color: #f5f5f5; backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .35s, transform .45s var(--fx-ease), background .3s, color .3s;
}
.fx-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fx-top:hover { background: var(--fx-lime); color: #000; }
.fx-top svg.fx-top__ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.fx-top__ring circle { fill: none; stroke-width: 2; }
.fx-top__ring .bg { stroke: rgba(255,255,255,.12); }
.fx-top__ring .fg { stroke: var(--fx-lime); stroke-linecap: round; transition: stroke .3s; }
.fx-top:hover .fx-top__ring .fg { stroke: #000; }
html.fx-light .fx-top { background: rgba(255,255,255,.9); color: #111; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
html.fx-light .fx-top__ring .bg { stroke: rgba(0,0,0,.08); }
html.fx-light .fx-top__ring .fg { stroke: #7a9900; }

/* ---------- Command palette (Ctrl K) ---------- */
.fx-kbd-hint {
  position: fixed; left: 20px; bottom: 20px; z-index: 60;
  font: 500 11px/1 "JetBrains Mono", monospace; color: #a3a3a3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 99px; border: 1px solid rgba(128,128,128,.25);
  background: rgba(15,15,15,.75); backdrop-filter: blur(8px); cursor: pointer;
  transition: color .25s, border-color .25s, transform .4s var(--fx-ease);
}
.fx-kbd-hint:hover { color: var(--fx-lime); border-color: var(--fx-lime); }
html.fx-light .fx-kbd-hint { background: rgba(255,255,255,.85); color: #525252; }
.fx-kbd { display: inline-block; padding: 3px 6px; border-radius: 5px; border: 1px solid rgba(128,128,128,.35); font-size: 10px; }

.fx-cmd-backdrop {
  position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.5); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center; padding: 14vh 16px 16px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.fx-cmd-backdrop.is-open { opacity: 1; pointer-events: auto; }
.fx-cmd {
  width: 100%; max-width: 560px; border-radius: 16px; overflow: hidden;
  background: #111; color: #f5f5f5; border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.6);
  transform: translateY(-10px) scale(.98); transition: transform .35s var(--fx-ease);
  font-family: "Space Grotesk", sans-serif;
}
.fx-cmd-backdrop.is-open .fx-cmd { transform: none; }
.fx-cmd__input {
  width: 100%; border: 0; outline: 0; background: transparent; color: inherit;
  padding: 18px 20px; font: inherit; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.fx-cmd__input::placeholder { color: #737373; }
.fx-cmd__list { max-height: 50vh; overflow-y: auto; padding: 8px; }
.fx-cmd__group { font: 500 10px/1 "JetBrains Mono", monospace; color: #737373; text-transform: uppercase; letter-spacing: .08em; padding: 12px 12px 6px; }
.fx-cmd__item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 12px; border-radius: 10px; font-size: 14px; cursor: pointer; color: #d4d4d4;
}
.fx-cmd__item small { font: 400 11px "JetBrains Mono", monospace; color: #737373; }
.fx-cmd__item.is-active { background: rgba(204,255,0,.1); color: var(--fx-lime); }
.fx-cmd__item.is-active small { color: rgba(204,255,0,.7); }
.fx-cmd__empty { padding: 24px 12px; text-align: center; color: #737373; font-size: 14px; }
.fx-cmd__foot { display: flex; gap: 14px; padding: 10px 16px; border-top: 1px solid rgba(255,255,255,.08); font: 400 11px "JetBrains Mono", monospace; color: #737373; }
html.fx-light .fx-cmd { background: #fff; color: #111; border-color: rgba(0,0,0,.08); }
html.fx-light .fx-cmd__input { border-color: rgba(0,0,0,.08); }
html.fx-light .fx-cmd__item { color: #404040; }
html.fx-light .fx-cmd__item.is-active { background: rgba(160,200,0,.15); color: #3f5200; }
html.fx-light .fx-cmd__foot { border-color: rgba(0,0,0,.08); }

/* Toast kecil */
.fx-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 9500; transform: translate(-50%, 20px);
  padding: 10px 16px; border-radius: 99px; background: var(--fx-lime); color: #000;
  font: 500 13px "Space Grotesk", sans-serif; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .45s var(--fx-ease);
}
.fx-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Mobile & reduced motion ---------- */
@media (max-width: 767px) {
  .fx-kbd-hint { display: none; }
  .fx-top { right: 16px; bottom: 16px; }
  #home::after { width: 320px; height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-grain, .fx-band__star { animation: none; }
  .fx-loader { display: none; }
  html { scroll-behavior: auto; }
}

/* Cegah kedip sebelum preloader muncul */
html.fx-pre #root { opacity: 0; }
html.fx-pre body { background: #0b0b0b; }

/* ---------- Pill berita di hero ---------- */
.fx-news-wrap { margin-bottom: 14px; animation: fx-rise .7s var(--fx-ease) both; }
.fx-news {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 5px; border-radius: 99px;
  border: 1px solid rgba(204,255,0,.35); background: rgba(204,255,0,.06);
  color: #e5e5e5; font-size: 12.5px; text-decoration: none;
  transition: border-color .3s, background .3s, gap .35s var(--fx-ease);
}
.fx-news:hover { border-color: var(--fx-lime); background: rgba(204,255,0,.12); gap: 14px; }
.fx-news__tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--fx-lime); color: #000; font: 600 10.5px/1 "JetBrains Mono", monospace;
  padding: 5px 9px; border-radius: 99px; text-transform: uppercase; letter-spacing: .06em;
}
.fx-news__tag i { width: 6px; height: 6px; border-radius: 50%; background: #000; animation: fx-pulse 1.6s ease-in-out infinite; }
.fx-news svg { color: var(--fx-lime); }
html.fx-light .fx-news { color: #262626; border-color: rgba(90,115,0,.35); background: rgba(160,200,0,.1); }
html.fx-light .fx-news svg { color: #5a7300; }
@keyframes fx-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@keyframes fx-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Section: Diliput media ---------- */
.fx-press { padding: clamp(64px, 10vw, 128px) 0; border-top: 1px solid rgba(255,255,255,.1); background: #0b0b0b; color: #f5f5f5; }
html.fx-light .fx-press { background: #faf9f6; color: #171717; border-top-color: rgba(0,0,0,.1); }
.fx-press__in { max-width: 64rem; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .fx-press__in { padding: 0 32px; } }
.fx-press__head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font: 400 12px "JetBrains Mono", monospace; letter-spacing: .15em; color: #a3a3a3; }
.fx-press__n { width: 7px; height: 7px; background: var(--fx-lime); border-radius: 2px; }
.fx-press__h2 { font-size: clamp(1.875rem, 4vw, 2.7rem); font-weight: 600; letter-spacing: -.025em; margin: 0 0 clamp(48px, 6vw, 64px); }
.fx-press__card {
  display: grid; grid-template-columns: 1fr; gap: 0; overflow: hidden;
  border: 1px solid rgba(255,255,255,.1); border-radius: 20px; color: inherit; text-decoration: none;
  transition: border-color .4s;
}
.fx-press__card:hover { border-color: rgba(204,255,0,.45); }
html.fx-light .fx-press__card { border-color: rgba(0,0,0,.1); }
@media (min-width: 768px) { .fx-press__card { grid-template-columns: 1.05fr 1fr; } }
.fx-press__img { position: relative; overflow: hidden; aspect-ratio: 639 / 417; background: #151515; }
.fx-press__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--fx-ease); }
.fx-press__card:hover .fx-press__img img { transform: scale(1.05); }
.fx-press__body { padding: clamp(22px, 3.5vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.fx-press__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 400 11.5px "JetBrains Mono", monospace; color: #8a8a8a; }
.fx-press__badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 99px; background: var(--fx-lime); color: #000; font-weight: 600; }
.fx-press__badge i { width: 6px; height: 6px; border-radius: 50%; background: #000; animation: fx-pulse 1.6s ease-in-out infinite; }
.fx-press__body h3 { margin: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.3; font-weight: 600; letter-spacing: -.015em; transition: color .3s; }
.fx-press__card:hover h3 { color: var(--fx-lime); }
html.fx-light .fx-press__card:hover h3 { color: #5a7300; }
.fx-press__body blockquote {
  margin: 0; padding-left: 14px; border-left: 2px solid var(--fx-lime);
  font-size: 14px; line-height: 1.65; color: #a3a3a3;
}
html.fx-light .fx-press__body blockquote { color: #525252; }
.fx-press__cta { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--fx-lime); transition: gap .35s var(--fx-ease); }
html.fx-light .fx-press__cta { color: #5a7300; }
.fx-press__card:hover .fx-press__cta { gap: 12px; }

/* Foto hero: bingkai lime offset (box-shadow agar tidak kepotong overflow) */
.fx-photo { transition: transform .5s var(--fx-ease), box-shadow .6s var(--fx-ease) !important; }
.fx-photo:hover { box-shadow: 12px 12px 0 -1px #0b0b0b, 12px 12px 0 0 var(--fx-lime); }
html.fx-light .fx-photo:hover { box-shadow: 12px 12px 0 -1px #faf9f6, 12px 12px 0 0 #9fc400; }

/* Baris "Available" boleh turun di layar kecil */
.fx-avail { flex-wrap: wrap; row-gap: 6px; }
@media (max-width: 480px) {
  .fx-clock { margin-left: 0; padding-left: 0; border-left: 0; flex-basis: 100%; }
}
