:root {
  --bg: #0b0f1a;
  --bg-soft: #12142a;
  --card: #161933;
  --border: #2a2b52;
  --text: #e8ebf5;
  --muted: #9089b3;
  --grad-a: #f472b6;
  --grad-b: #a855f7;
  --grad-c: #38bdf8;
  --shadow-glow: rgba(0, 0, 0, 0.5);
}

html.light {
  --bg: #f4f1fa;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --border: #dccfec;
  --text: #241436;
  --muted: #6b5c85;
  --grad-a: #db2777;
  --grad-b: #9333ea;
  --grad-c: #0284c7;
  --shadow-glow: rgba(147, 51, 234, 0.22);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #3a4368 transparent;
}
html.light * {
  scrollbar-color: #d9c3ec transparent;
}

body {
  position: relative;
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Digital blob + grid backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(244, 114, 182, 0.22), transparent 40%),
    radial-gradient(circle at 88% 15%, rgba(168, 85, 247, 0.2), transparent 42%),
    radial-gradient(circle at 50% 100%, rgba(56, 189, 248, 0.14), transparent 45%),
    linear-gradient(transparent 95%, rgba(255, 255, 255, 0.035) 95%),
    linear-gradient(90deg, transparent 95%, rgba(255, 255, 255, 0.035) 95%);
  background-size: auto, auto, auto, 28px 28px, 28px 28px;
  transition: background-image 0.25s ease;
}
/* Light mode: gradasi warna menyebar ke seluruh halaman */
html.light body::before {
  background-image:
    radial-gradient(circle at 6% 2%, rgba(244, 114, 182, 0.42), transparent 30%),
    radial-gradient(circle at 94% 6%, rgba(168, 85, 247, 0.34), transparent 32%),
    radial-gradient(circle at 12% 30%, rgba(129, 140, 248, 0.26), transparent 30%),
    radial-gradient(circle at 90% 42%, rgba(56, 189, 248, 0.26), transparent 30%),
    radial-gradient(circle at 20% 62%, rgba(232, 121, 249, 0.24), transparent 32%),
    radial-gradient(circle at 85% 74%, rgba(147, 197, 253, 0.26), transparent 32%),
    radial-gradient(circle at 40% 95%, rgba(196, 132, 252, 0.26), transparent 34%),
    linear-gradient(transparent 96%, rgba(147, 51, 234, 0.05) 96%),
    linear-gradient(90deg, transparent 96%, rgba(147, 51, 234, 0.05) 96%);
  background-size: auto, auto, auto, auto, auto, auto, auto, 32px 32px, 32px 32px;
}

/* Animated gradient text for headline */
.text-gradient {
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b), var(--grad-c), var(--grad-a));
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 7s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.bg-soft { background-color: var(--bg-soft); }
.bg-card {
  background-color: var(--card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
html.light .bg-card {
  box-shadow: 0 6px 18px -8px rgba(88, 28, 135, 0.18), 0 2px 4px rgba(36, 20, 54, 0.06);
}
.border-app { border-color: var(--border); }
.text-muted { color: var(--muted); }

/* Section heading with numbered chip + gradient rule */
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.sec-head .sec-num {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  white-space: nowrap;
}
.sec-head .sec-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--border), transparent);
  border-radius: 2px;
}

/* Hero ornament (pengganti tombol yang dihapus) */
.hero-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.hero-ornament .ho-line {
  height: 2px;
  width: clamp(48px, 16vw, 130px);
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--grad-b));
}
.hero-ornament .ho-line:last-child {
  background: linear-gradient(90deg, var(--grad-b), transparent);
}
.hero-ornament .ho-diamond {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--grad-a);
  opacity: 0.85;
}
.hero-ornament .ho-dot {
  position: relative;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-c));
}
.hero-ornament .ho-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--grad-b);
  animation: pulse 2s ease-out infinite;
}

/* Hero badges */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid var(--border);
  background-color: var(--card);
}
.hero-badge svg { width: 0.95rem; height: 0.95rem; }

/* Wave divider */
.wave-divider {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: -1px;
}
.wave-divider path { fill: var(--card); }

/* Quick nav chips */
.quicknav {
  scrollbar-width: none;
}
.quicknav::-webkit-scrollbar { display: none; }
.quicknav a {
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

/* Marquee */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Akses Cepat: kartu gradient seragam, jelas di light & dark */
.link-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 92px;
  padding: 1.05rem 1.15rem;
  border-radius: 1.15rem;
  color: #fff;
  background: linear-gradient(135deg, var(--tile), var(--grad-b));
  box-shadow: 0 10px 22px -12px rgba(24, 12, 40, 0.55);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.link-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.25), transparent 55%);
  pointer-events: none;
}

/* Dark mode: tile lebih kalem, tetap jelas dan berwarna */
html:not(.light) .link-tile {
  background: linear-gradient(135deg, #1b1f3d, #141830);
  box-shadow: inset 0 0 0 1px var(--tile), 0 10px 22px -14px rgba(0, 0, 0, 0.85);
}
html:not(.light) .link-tile::after {
  background: linear-gradient(135deg, var(--tile), transparent 65%);
  opacity: 0.16;
}
html:not(.light) .link-tile:hover {
  box-shadow: inset 0 0 0 1px var(--tile), 0 16px 28px -14px rgba(0, 0, 0, 0.9);
}
html:not(.light) .link-tile:hover::after { opacity: 0.26; }
html:not(.light) .link-tile-icon {
  background: rgba(255, 255, 255, 0.07);
  color: var(--tile);
}
html:not(.light) .link-tile p:last-of-type { opacity: 0.65; }

/* Dark mode: kartu konten menyatu dengan gaya tile Akses Cepat */
html:not(.light) .bg-card,
html:not(.light) .bg-soft {
  background-color: #141830;
}
html:not(.light) .bg-card {
  box-shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.85);
}
html:not(.light) .bg-soft {
  box-shadow: 0 6px 16px -12px rgba(0, 0, 0, 0.8);
}
.link-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px -14px rgba(24, 12, 40, 0.6);
}
html.light .link-tile {
  box-shadow: 0 10px 22px -12px rgba(88, 28, 135, 0.4);
}
html.light .link-tile:hover {
  box-shadow: 0 18px 30px -14px rgba(88, 28, 135, 0.45);
}
.link-tile-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
}

/* Glass */
.glass {
  backdrop-filter: blur(14px);
  background: rgba(22, 25, 51, 0.6);
}
html.light .glass {
  background: rgba(255, 255, 255, 0.75);
}

/* Fade in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Testimonial scroller */
.testi-scroll {
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
}
.testi-scroll::-webkit-scrollbar { height: 6px; }
.testi-scroll > * { scroll-snap-align: start; }

/* Testimonial carousel */
.testi-card {
  animation: testiIn 0.5s ease backwards;
}
@keyframes testiIn {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .testi-card { animation: none; }
}
.testi-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--border);
  transition: width 0.3s ease, background 0.3s ease;
}
.testi-dot.active {
  width: 22px;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
}

/* Copy toast */
.copied-badge {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.copied-badge.show { opacity: 1; }

/* Accordion chevron */
.accordion-btn[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}
.chevron { transition: transform 0.25s ease; }

/* Chat channel pill (WA / Telegram) — solid enough for light mode */
.chan-pill {
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.chan-pill:hover { transform: translateY(-1px); opacity: 0.92; }

/* Status dot pulse */
.pulse-dot {
  position: relative;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.4); opacity: 0; }
}
