/* ==========================================================================
   Casper Music — stylesheet
   Konsep: Dark Aesthetic, minimalis, premium. Hitam pekat + perak (mengikuti logo),
   dengan sedikit rona biru-keabuan pada cahaya latar. Warna aksen lain hanya muncul
   pada kartu bot (pink, merah) sesuai avatarnya.
   Struktur: tokens → base → komponen → bagian halaman → utilitas gerak.
   ========================================================================== */

:root {
  --bg: #060608;
  --bg-raised: #0d0d11;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hi: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-hi: rgba(255, 255, 255, 0.18);
  --fg: #f5f5f8;
  --fg-dim: #aeaeba;
  --fg-faint: #7d7d8a;
  --accent: #e4e5ec;
  --accent-strong: #ffffff;
  --on-accent: #09090b;
  --lantern: #f1f1f4;
  --ok: #7be0ae;
  --glow: rgba(214, 220, 255, 0.11);
  --lantern-glow: rgba(255, 255, 255, 0.04);
  --shadow: 0 28px 70px -28px rgba(0, 0, 0, 0.9);
  --silver: linear-gradient(180deg, #ffffff 0%, #c9cad6 100%);

  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 24px;
  --radius-sm: 14px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  overflow-x: clip; /* clip tidak membuat scroll container, jadi header sticky aman di tablet */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* Pita di atas header sticky (aman untuk notch ponsel). */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--bg);
}

/* Latar: cahaya lembut + grid halus yang memudar ke bawah. */
.atmos {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55% 40% at 85% -8%, var(--glow), transparent 70%),
    radial-gradient(40% 34% at 2% 48%, var(--lantern-glow), transparent 70%),
    radial-gradient(50% 30% at 60% 110%, rgba(150, 160, 255, 0.05), transparent 70%);
}
.atmos::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 75%);
}

/* Butiran film sangat halus agar gradasi gelap tidak terlihat berpita. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  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='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

html { scrollbar-color: rgba(255, 255, 255, 0.18) var(--bg); scrollbar-width: thin; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 50;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

/* Bilah progres scroll di tepi atas. */
.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 55; /* di atas header (45) agar tetap terlihat */
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 0.97rem/1 var(--f-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn-sm { padding: 0.65rem 1.1rem; font-size: 0.9rem; }

.btn-primary {
  background: var(--silver);
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
@media (hover: hover) {
  .btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff, 0 0 0 5px var(--surface-hi); }
}
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.75) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
@media (hover: hover) { .btn-primary:hover::after { transform: translateX(120%); transition: transform 0.8s var(--ease); } }
.btn-primary:active { transform: translateY(0); }

.btn-ghost { background: var(--surface); border-color: var(--line-hi); color: var(--fg); }
@media (hover: hover) { .btn-ghost:hover { background: var(--surface-hi); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); } }

.btn[aria-disabled="true"] {
  background: var(--surface-hi);
  color: var(--fg-faint);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line-hi);
  border-radius: 50%;
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  transition: background 0.2s, transform 0.25s var(--ease), border-color 0.2s;
}
@media (hover: hover) { .icon-btn:hover { background: var(--surface-hi); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-1px); } }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 45;
  isolation: isolate;
  transform: translateZ(0); /* lapisan sendiri: tidak bisa tertimpa konten yang di-scroll */
  /* Latar hampir solid agar konten yang di-scroll tidak tembus ke menu (tablet/desktop). */
  background: var(--bg);
  background: var(--bg);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: var(--bg); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px var(--line-hi);
  transition: transform 0.4s var(--ease);
}
@media (hover: hover) { .brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); } }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-name { font: 700 1.15rem/1 var(--f-display); letter-spacing: -0.01em; }

.menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.28rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  /* Solid: tint tipis di atas warna dasar, bukan transparan murni. */
  background: linear-gradient(var(--surface-hi), var(--surface-hi)), var(--bg-raised);
}
.menu a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  color: var(--fg-dim);
  font-weight: 500;
  font-size: 0.93rem;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
@media (hover: hover) { .menu a:hover { color: var(--fg); } }
.menu a[aria-current="true"] { color: var(--fg); background: var(--surface-hi); box-shadow: inset 0 0 0 1px var(--line); }
.menu-cta { display: none; }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: inline-grid; }
  .nav-cta { display: none; }
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.6rem max(20px, env(safe-area-inset-right, 0px)) 1.1rem max(20px, env(safe-area-inset-left, 0px));
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: color-mix(in srgb, var(--bg-raised) 98%, transparent);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .menu.open { visibility: visible; opacity: 1; transform: none; }
  .menu a { padding: 0.95rem 0.9rem; font-size: 1.05rem; border-radius: var(--radius-sm); }
  .menu-cta { display: inline-flex; margin-top: 0.6rem; }
  .menu a.menu-cta { color: var(--on-accent); font-weight: 600; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(0.75rem, 2vw, 1.75rem) clamp(3rem, 6vw, 5rem); overflow-x: clip; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  background: var(--surface);
  font: 500 0.74rem/1.2 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.eyebrow .sep { color: var(--fg-faint); }
.dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(123, 224, 174, 0.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(123, 224, 174, 0.5); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(123, 224, 174, 0); }
}

h1 {
  margin-top: 1.1rem;
  font: 700 clamp(2.5rem, 6.2vw, 4.6rem)/1.03 var(--f-display);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 em {
  font-style: normal;
  background: linear-gradient(180deg, #ffffff 10%, #8c8d9b 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lead {
  margin-top: 1.4rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--fg-dim);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.cta-row-center { justify-content: center; }

.hero-points { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); color: var(--fg-dim); font-size: 0.92rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 0.55rem; }
.hero-points li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4.5 8.2l2.4 2.4 4.6-5' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 100% no-repeat,
    var(--surface-hi);
  box-shadow: inset 0 0 0 1px var(--line-hi);
}

.hero-copy > * { animation: rise 0.8s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Hero visual */
.hero-visual { position: relative; width: 100%; max-width: 520px; margin-inline: auto; aspect-ratio: 1 / 1.04; isolation: isolate; }
.stage { position: absolute; inset: 0; display: grid; place-items: center; }
.stage-glow {
  position: absolute;
  width: 86%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 220, 255, 0.16), transparent 66%);
  filter: blur(8px);
}
/* Cincin orbit tipis di belakang maskot. */
.stage::before,
.stage::after {
  content: "";
  position: absolute;
  top: 44%;
  left: 50%;
  border: 1px solid var(--line);
  border-radius: 50%;
  translate: -50% -50%;
}
.stage::before { width: 88%; aspect-ratio: 1; }
.stage::after { width: 112%; aspect-ratio: 1; border-style: dashed; opacity: 0.5; animation: spin 90s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

/* Maskot: latar logo hitam, jadi tepinya dilebur ke latar halaman dengan mask. */
.ghost {
  position: relative;
  width: 74%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin-top: -12%;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
  translate: calc(var(--px, 0) * 14px) calc(var(--py, 0) * 14px);
  transition: translate 0.5s var(--ease);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }

.stage-eq {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 22%;
  height: 16%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3px;
  opacity: 0.4;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}
.stage-eq i {
  flex: 1;
  min-width: 2px;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(to top, var(--accent), transparent);
  transform-origin: bottom;
  animation: bar var(--dur, 1.2s) ease-in-out var(--del, 0s) infinite alternate;
}
@keyframes bar { from { transform: scaleY(0.12); } to { transform: scaleY(var(--peak, 1)); } }

.float-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-raised) 80%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  font: 500 0.76rem/1 var(--f-mono);
  color: var(--fg-dim);
  white-space: nowrap;
}
/* Kedua chip di baris atas, di luar wajah maskot (mata & senyum harus tetap terlihat). */
.chip-a { top: 2%; left: 0; animation: bob 7s ease-in-out infinite; }
.chip-b { top: 2%; right: 0; animation: bob 7s ease-in-out -3s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Kartu pesan Discord di hero (warna Discord gelap, sama dengan contoh chat). */
.np-label { font: 500 0.68rem/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-faint); }
.now-playing {
  --dc-bg: #0b0b0e;
  --dc-name: #f2f3f5;
  --dc-muted: #949ba4;
  --dc-link: #00a8fc;
  --dc-embed: #1e1f22;
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: min(94%, 390px);
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-hi);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--dc-bg) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #dbdee1;
  box-shadow: var(--shadow);
}
.dc-msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 0.85rem; align-items: start; }
.dc-avatar { display: block; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #000; }
.dc-main { min-width: 0; }
.dc-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.45rem; line-height: 1.35; }
.dc-user { font-weight: 600; font-size: 1rem; color: #8d9bb5; }
.dc-time { font-size: 0.74rem; color: var(--dc-muted); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 440px; }
}
@media (max-width: 520px) {
  .float-chip { padding: 0.4rem 0.7rem; font-size: 0.7rem; }
  .stage::after { display: none; }
  /* Visual dibuat lebih tinggi agar kartu "Now playing" berada di bawah maskot, bukan menutup wajahnya. */
  .hero-visual { aspect-ratio: 1 / 1.16; }
  .stage { place-items: start center; padding-top: 13%; }
  .ghost { width: 78%; margin-top: 0; }
  .stage-eq { bottom: 25%; }
  .now-playing { width: 100%; padding: 0.7rem 0.85rem; }
  .dc-msg { grid-template-columns: 34px minmax(0, 1fr); column-gap: 0.7rem; }
  .dc-avatar { width: 34px; height: 34px; }
  .dc-user { font-size: 0.95rem; }
}
@media (max-width: 350px) {
  .chip-b { top: 11%; }
  .float-chip { font-size: 0.64rem; padding: 0.35rem 0.55rem; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(3.5rem, 8vw, 6.5rem); scroll-margin-top: calc(var(--header-h) + 8px); }
.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1120px, calc(100% - 40px));
  height: 1px;
  translate: -50% 0;
  background: linear-gradient(90deg, transparent, var(--line-hi), transparent);
}
.section-last { padding-bottom: clamp(3rem, 6vw, 5rem); }
.section-head { display: grid; gap: 0.9rem; max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font: 500 0.76rem/1 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.kicker::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--fg-dim)); }
h2 {
  font: 700 clamp(1.85rem, 4vw, 3rem)/1.08 var(--f-display);
  letter-spacing: -0.03em;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 30%, #a9aab8 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.section-lead { color: var(--fg-dim); font-size: 1.08rem; max-width: 36rem; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
/* Tanpa JS, konten tetap terlihat. */
.no-js [data-reveal] { opacity: 1; transform: none; }

/* Efek cahaya yang mengikuti kursor (dipakai kartu bot & fitur). */
.spot { position: relative; }
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), hsl(var(--hue, 232) calc(90% * var(--s, 0.15)) 70% / 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
@media (hover: hover) { .spot:hover::before { opacity: 1; } }
.spot > * { position: relative; }

/* ---------- Bot cards ---------- */
.bots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.1rem; }

.bot-card {
  --hue: 232;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 55% at 50% -12%, hsl(var(--hue) calc(85% * var(--s, 1)) 62% / 0.13), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s var(--ease), opacity 0.7s var(--ease);
}
@media (hover: hover) { .bot-card:hover { transform: translateY(-5px); border-color: hsl(var(--hue) calc(70% * var(--s, 1)) 66% / 0.5); box-shadow: var(--shadow); } }
.bot-card[data-reveal]:not(.in) { transform: translateY(18px); }

.bot-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.bot-avatar {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  object-fit: cover;
  background: var(--surface-hi);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px hsl(var(--hue) calc(75% * var(--s, 1)) 66% / 0.75), 0 12px 30px -8px hsl(var(--hue) calc(80% * var(--s, 1)) 60% / 0.45);
  transition: transform 0.4s var(--ease);
}
@media (hover: hover) { .bot-card:hover .bot-avatar { transform: rotate(-4deg) scale(1.05); } }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  font: 500 0.7rem/1 var(--f-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fg-faint); }
.status[data-status="online"]::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.status[data-status="maintenance"]::before { background: #f0b232; }

.bot-name { font: 700 1.35rem/1.15 var(--f-display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.bot-tag { margin-top: 0.3rem; font: 500 0.72rem/1.3 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: hsl(var(--hue) calc(75% * var(--s, 1)) 72%); }
.bot-desc { color: var(--fg-dim); font-size: 0.96rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips li { padding: 0.28rem 0.65rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg-dim); font-size: 0.76rem; }

.bot-actions { display: flex; gap: 0.5rem; margin-top: auto; padding-top: 0.4rem; }
.bot-actions .btn-primary, .bot-actions .btn[aria-disabled="true"], .bot-actions .btn-ghost { flex: 1; }

.bot-card-soon {
  align-items: flex-start;
  justify-content: center;
  border-style: dashed;
  border-color: var(--line-hi);
  background: transparent;
}
@media (hover: hover) { .bot-card-soon:hover { transform: none; box-shadow: none; border-color: var(--accent); } }
.soon-plus {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px dashed var(--fg-faint);
  border-radius: 20px;
  color: var(--accent);
}
.soon-plus svg { width: 28px; height: 28px; }

.noscript { color: var(--fg-dim); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1.1rem; }
.steps li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.7rem;
  min-width: 0;
  padding: 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 70%);
}
/* Garis penghubung antar langkah (desktop). */
@media (min-width: 960px) {
  .steps li:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 2.35rem;
    left: 100%;
    width: 1.1rem;
    height: 1px;
    background: linear-gradient(90deg, var(--line-hi), transparent);
  }
}
/* Nomor besar sebagai watermark, supaya urutan terbaca sekilas. */
.steps li::after {
  content: attr(data-n);
  position: absolute;
  right: 1.2rem;
  top: 0.4rem;
  font: 700 5rem/1 var(--f-display);
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.step-num {
  justify-self: start;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  background: var(--surface);
  font: 500 0.72rem/1 var(--f-mono);
  letter-spacing: 0.1em;
  color: var(--accent);
}
.steps h3 { font: 700 1.25rem/1.2 var(--f-display); letter-spacing: -0.015em; }
.steps p { color: var(--fg-dim); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
/* Susunan bento: kartu 1, 4, dan 8 melebar agar ritme grid tidak monoton (untuk 9 fitur). */
@media (min-width: 961px) {
  .feature:nth-child(1),
  .feature:nth-child(4),
  .feature:nth-child(8) { grid-column: span 2; background: radial-gradient(70% 120% at 100% 0%, rgba(214, 220, 255, 0.07), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)); }
}
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 620px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  min-width: 0;
  padding: 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: border-color 0.3s, transform 0.35s var(--ease), opacity 0.7s var(--ease);
}
@media (hover: hover) { .feature:hover { border-color: var(--line-hi); transform: translateY(-3px); } }
.feature[data-reveal]:not(.in) { transform: translateY(18px); }
.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-hi);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface-hi), var(--surface));
  color: var(--accent);
  transition: transform 0.35s var(--ease);
}
@media (hover: hover) { .feature:hover .feature-icon { transform: rotate(-6deg) scale(1.08); } }
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font: 700 1.15rem/1.25 var(--f-display); letter-spacing: -0.015em; }
.feature p { color: var(--fg-dim); font-size: 0.96rem; }

/* ---------- Commands ---------- */
.commands-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.commands-grid > div:first-child { display: grid; gap: 0.9rem; }
.chat { position: sticky; top: calc(var(--header-h) + 24px); }
.cmd-list { display: grid; margin-top: 0.8rem; }
.cmd-row { display: grid; grid-template-columns: minmax(8rem, auto) minmax(0, 1fr); gap: 0.2rem 1.2rem; padding: 0.9rem 0; border-top: 1px solid var(--line); transition: background 0.2s; }
.cmd-row:last-child { border-bottom: 1px solid var(--line); }
.cmd-row { position: relative; cursor: pointer; border-radius: 0; }
@media (hover: hover) { .cmd-row:hover { background: rgba(255, 255, 255, 0.025); } }
.cmd-row.active { background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent); }
.cmd-row.active::before { content: ""; position: absolute; left: 0; top: 0.9rem; bottom: 0.9rem; width: 2px; border-radius: 2px; background: var(--accent); }
.cmd-row > * { padding-left: 0.2rem; }
.cmd-name { font: 500 0.95rem/1.4 var(--f-mono); color: var(--accent); }
.cmd-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.cmd-btn:focus-visible { outline-offset: 4px; }
/* Embed Discord di pratinjau perintah (meniru tampilan bot sebenarnya). */
.dc-embed {
  --ec: #5865f2;
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* tanpa ini kolom grid melebar mengikuti teks terpanjang dan keluar layar */
  min-width: 0;
  gap: 0.3rem;
  margin-top: 0.4rem;
  max-width: 100%;
  padding: 0.7rem 0.9rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 4px solid var(--ec);
  border-radius: 4px;
  background: var(--dc-embed);
  font-size: 0.93rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.dc-embed-green { --ec: #3ba55d; }
.dc-embed-yellow { --ec: #f0b232; }
.dc-embed p { margin: 0; }
.dc-row { display: block; }
.dc-kicker { color: var(--dc-muted); font-size: 0.85rem; }
.dc-title { font-weight: 700; font-size: 1rem; color: #f2f3f5; }
.dc-link { color: var(--dc-link); }
.dc-muted { color: var(--dc-muted); }
.dc-meta { color: var(--dc-text); }
.dc-sq { color: #b5bac1; font-size: 0.7em; vertical-align: 0.1em; }
.dc-sep { width: 100%; height: 1px; margin: 0.35rem 0; border: 0; background: rgba(255, 255, 255, 0.1); }
.dc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; }
.dc-head > div { display: grid; gap: 0.3rem; min-width: 0; }
.dc-thumb { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 6px; color: rgba(255, 255, 255, 0.6); background: linear-gradient(135deg, #8a7a2e, #3b3a1c); }
.dc-thumb svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.dc-thumb-lg { width: 108px; height: 108px; border-radius: 8px; color: rgba(0, 0, 0, 0.3); background: linear-gradient(135deg, #eceef3, #8f96a6); }
.dc-thumb-lg svg { width: 34px; height: 34px; }
.dc-progress { display: flex; align-items: center; gap: 0.6rem; margin: 0.2rem 0; }
.dc-track { position: relative; flex: 1; height: 4px; border-radius: 2px; background: #fff; }
.dc-track i { position: absolute; left: var(--pct); top: 50%; width: 16px; height: 16px; border-radius: 50%; background: #3b88c3; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9); translate: -50% -50%; }
.dc-code { padding: 0.05rem 0.35rem; border: 1px solid #1e1f22; border-radius: 4px; background: #2b2d31; color: #dbdee1; font: 0.84em/1.3 var(--f-mono); }
.dc-mention { padding: 0 0.2rem; border-radius: 3px; background: rgba(88, 101, 242, 0.3); color: #c9cdfb; font-weight: 500; }
.dc-ico { display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; margin-right: 0.2em; border-radius: 4px; vertical-align: -0.22em; color: #fff; }
.dc-ico svg { width: 82%; height: 82%; max-width: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dc-ico-ok { background: #3ba55d; }
.dc-ico-loop, .dc-ico-play { background: #3b88c3; }
.dc-ico-music { color: #5aa0e8; }
.dc-ico-note, .dc-ico-mail { color: #b5bac1; }
.dc-ico-vol { color: #b5bac1; }
.dc-ico-inf { background: #3b88c3; border-radius: 50%; }
.dc-ico-pin { color: #e5484d; }
.dc-ico-eq { background: #1b1b1f; color: #f5b83d; }
.dc-ico-spotify { background: #1db954; border-radius: 50%; color: #0b0b0e; }
.dc-ico-ext { margin: 0 0 0 0.4rem; color: #dbdee1; }
.dc-ico-ext svg { stroke-width: 1.8; }
.dc-title .dc-ico { margin-right: 0.4rem; }
.dc-rowbtn { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: 0.3rem; }
.dc-btn { display: inline-flex; align-items: center; flex: none; padding: 0.5rem 0.8rem; border-radius: 6px; background: #3a3c43; color: #f2f3f5; font-weight: 500; font-size: 0.88rem; }
.dc-foot { margin-top: 0.3rem; color: var(--dc-muted); font-size: 0.78rem; }
.dc-select { display: flex; align-items: center; justify-content: space-between; margin-top: 0.4rem; padding: 0.65rem 0.8rem; border: 1px solid #3f4147; border-radius: 6px; background: #1e1f22; color: var(--dc-muted); }
.dc-select svg { width: 18px; height: 18px; flex: none; }
.dc-nav { display: flex; gap: 0.4rem; margin-top: 0.3rem; }
.dc-navbtn { display: grid; place-items: center; width: 52px; height: 32px; border-radius: 6px; background: #3a3c43; color: #f2f3f5; font-weight: 600; }
.dc-navbtn.off { opacity: 0.4; }
.chat-hint { padding: 0.7rem 1.1rem; border-top: 1px solid rgba(255, 255, 255, 0.08); color: var(--dc-muted); font: 500 0.72rem/1.3 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; text-align: center; }
.chat-body.swap .msg { animation: fade-in 0.45s var(--ease) both; }
.chat-body.swap .msg + .msg { animation-delay: 0.18s; }
.cmd-name small { display: block; font-size: 0.74rem; color: var(--fg-faint); }
.cmd-row dd { color: var(--fg-dim); font-size: 0.96rem; }

.inline-code { padding: 0.12rem 0.45rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-hi); color: var(--accent); font-family: var(--f-mono); font-size: 0.88em; }

/* Mock Discord: warna dibuat tetap seperti Discord gelap, tidak mengikuti tema situs. */
.chat {
  --dc-bg: #0b0b0e;
  --dc-text: #dbdee1;
  --dc-name: #f2f3f5;
  --dc-muted: #949ba4;
  --dc-link: #00a8fc;
  --dc-embed: #1e1f22;
  --dc-reply: #c9cdfb;
  --dc-warn: #f0b232;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-hi);
  border-radius: var(--radius);
  background: var(--dc-bg);
  color: var(--dc-text);
  box-shadow: var(--shadow), 0 0 0 6px rgba(255, 255, 255, 0.025);
}
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.chat-channel { font: 600 0.95rem/1 var(--f-body); color: var(--dc-name); }
.chat-channel span { color: var(--dc-muted); }
.chat .np-label { color: var(--dc-muted); }
.chat-body { display: grid; align-content: start; max-height: min(66vh, 600px); overflow-y: auto; padding: 0.6rem 0 1rem; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent; }

.msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 1rem; min-width: 0; padding: 0.6rem 1.1rem; }
.msg-avatar { grid-column: 1; grid-row: 1; display: block; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; object-fit: cover; background: #000; }
.msg-main { grid-column: 2; grid-row: 1; min-width: 0; }
.msg-avatar-user { background: radial-gradient(circle at 35% 30%, #3b4048, #111214 70%); }
.msg-mention { background: rgba(240, 178, 50, 0.09); box-shadow: inset 2px 0 0 var(--dc-warn); }

.msg-has-reply .msg-avatar,
.msg-has-reply .msg-main { grid-row: 2; }
.msg-reply {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  margin-bottom: 0.2rem;
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--dc-muted);
}
.msg-reply::before {
  content: "";
  position: absolute;
  left: calc(-1rem - 20px);
  top: 50%;
  bottom: -0.3rem;
  width: calc(1rem + 20px - 6px);
  border-top: 2px solid #4e5058;
  border-left: 2px solid #4e5058;
  border-top-left-radius: 6px;
}
.reply-avatar { flex: none; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3b4048, #111214 70%); }
.reply-mention { flex: none; color: var(--dc-reply); font-weight: 500; }
.reply-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.msg-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.45rem; line-height: 1.35; }
.msg-user { font-weight: 600; font-size: 1rem; color: var(--dc-name); }
.msg-user-bot { color: #8d9bb5; }
.msg-time { font-size: 0.74rem; color: var(--dc-muted); }
.app-badge { display: inline-flex; align-items: center; height: 15px; padding: 0 0.32rem; border-radius: 4px; background: #5865f2; color: #fff; font: 700 0.62rem/1 var(--f-body); letter-spacing: 0.02em; }
.msg-text { overflow-wrap: anywhere; line-height: 1.4; }

.embed {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.4rem;
  max-width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 4px solid #5865f2;
  border-radius: 4px;
  background: var(--dc-embed);
}
.embed-icon { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #a2b6ff; color: #0b0d19; }
.embed-icon svg { width: 14px; height: 14px; }
.embed-text { min-width: 0; font-size: 0.95rem; line-height: 1.4; overflow-wrap: anywhere; }
.embed-link { color: var(--dc-link); }

@media (max-width: 860px) {
  .commands-grid { grid-template-columns: minmax(0, 1fr); }
  .chat { position: static; }
}
@media (max-width: 480px) {
  .cmd-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 0.7rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.3s, background 0.3s;
}
.faq details[open] { border-color: var(--line-hi); background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius-sm);
  font: 600 1.05rem/1.35 var(--f-display);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-hi);
  border-radius: 50%;
  color: var(--accent);
  font: 400 1.3rem/1 var(--f-body);
  transition: transform 0.3s var(--ease), background 0.2s;
}
@media (hover: hover) { .faq summary:hover::after { background: var(--surface-hi); } }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 3.6rem 1.4rem 1.3rem; color: var(--fg-dim); animation: fade-in 0.4s var(--ease); }
@keyframes fade-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- CTA ---------- */
.cta-panel {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  padding: clamp(2.8rem, 6vw, 4.8rem) 1.5rem;
  border: 1px solid var(--line-hi);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(214, 220, 255, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  text-align: center;
  overflow: hidden;
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(70% 80% at 50% 0%, #000, transparent 75%);
  pointer-events: none;
}
.cta-panel > * { position: relative; }
.cta-panel p { max-width: 30rem; color: var(--fg-dim); font-size: 1.08rem; }
.cta-panel .cta-row { margin-top: 0.8rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.2rem calc(2.2rem + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer-id { display: grid; gap: 0.4rem; }
.footer-brand { font: 700 1.1rem/1 var(--f-display); }
.footer-tag { color: var(--fg-faint); font-size: 0.9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.3rem; }
.footer-links a { color: var(--fg-dim); font-size: 0.93rem; text-decoration: none; transition: color 0.2s; }
@media (hover: hover) { .footer-links a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; } }
.footer-note { width: 100%; color: var(--fg-faint); font-size: 0.84rem; }

/* ---------- Kembali ke atas ---------- */
.to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
  z-index: 25;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  background: color-mix(in srgb, var(--bg-raised) 85%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s, background 0.2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  max-width: min(92vw, 440px);
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--line-hi);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--bg-raised) 92%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--fg);
  box-shadow: var(--shadow);
  font-size: 0.93rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Motion preferences ----------
   Bila sistem pengunjung meminta "kurangi gerakan" (mis. Windows: Animation effects = Off),
   gerakan besar dimatikan, tetapi animasi ambient yang kecil dan lambat (equalizer, maskot
   melayang pelan, teks berjalan) tetap hidup agar situs tidak terasa mati. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *,
  .stage::after,
  .chip-a,
  .chip-b { animation: none !important; }
  .ghost { animation-duration: 10s; }
  [data-reveal] { transform: none !important; }
  .btn:hover, .bot-card:hover, .feature:hover { transform: none !important; }
}
.dc-ico-vol svg, .dc-ico-pin svg, .dc-ico-music svg { width: 110%; height: 110%; }

/* Pratinjau chat di layar kecil: kolom lebih rapat supaya embed muat penuh. */
.dc-nav { flex-wrap: wrap; }
@media (max-width: 520px) {
  .msg { grid-template-columns: 34px minmax(0, 1fr); column-gap: 0.7rem; padding-inline: 0.8rem; }
  .msg-avatar { width: 34px; height: 34px; }
  .msg-reply::before { left: calc(-0.7rem - 17px); width: calc(0.7rem + 17px - 6px); }
  .dc-embed { padding: 0.6rem 0.7rem 0.7rem; }
  .dc-thumb { width: 52px; height: 52px; }
  .dc-thumb-lg { width: 76px; height: 76px; }
  .dc-head { gap: 0.6rem; }
  .dc-navbtn { width: 44px; }
  .dc-rowbtn { gap: 0.5rem; }
  .dc-btn { padding: 0.45rem 0.65rem; }
}

/* ==========================================================================
   Polesan tambahan (v2) — semuanya bisa dihapus dengan membuang blok ini.
   ========================================================================== */

/* Jarak hero → bagian Bots lebih rapat (bekas teks berjalan sudah tidak ada). */
.hero { padding-bottom: clamp(1rem, 3vw, 2.2rem); }

/* Teks lebih rapi: judul seimbang, paragraf tidak menyisakan satu kata sendirian. */
h2, h3 { text-wrap: balance; }
p, .faq details p, .feature p { text-wrap: pretty; }

/* Angka langkah 1-2-3: lebih terbaca, dengan gradasi perak. */
.steps li::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Kilau tipis di tepi atas kartu, memberi kesan kaca gelap. */
.steps li,
.feature,
.faq details { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }

/* FAQ yang terbuka diberi garis aksen di kiri. */
.faq details[open] { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 3px 0 0 var(--accent); }

/* Panel CTA: bayangan cahaya lembut di bawahnya. */
.cta-panel { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 50px 100px -60px rgba(214, 220, 255, 0.28); }

/* Header: bayangan halus setelah halaman di-scroll agar terpisah dari konten. */
.site-header.scrolled { box-shadow: 0 14px 30px -24px rgba(0, 0, 0, 0.9); }

/* Respons sentuhan: tombol terasa "ditekan". */
.btn:active, .icon-btn:active { transform: scale(0.97); }

/* ---------- Hero lebih padat (v3) ---------- */
.hero { padding-block: clamp(1rem, 2.4vw, 2rem) clamp(1.5rem, 3vw, 2.5rem); }
.hero + .section { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.hero-grid { gap: clamp(1.5rem, 4vw, 3.5rem); }
h1 { margin-top: 1.1rem; font-size: clamp(2.4rem, 5vw, 4rem); }
.hero-copy .lead { margin-top: 1rem; }
.hero-copy .cta-row { margin-top: 1.5rem; }
.hero-points { margin-top: 1.6rem; padding-top: 1.2rem; }
.hero-visual { max-width: 470px; }
@media (max-width: 900px) { .hero-visual { max-width: 420px; } }
@media (max-width: 520px) { .hero { padding-top: 0.75rem; } h1 { font-size: clamp(2.2rem, 10vw, 2.6rem); } }

/* Layar lebar & landscape: hero memenuhi satu layar, jadi bagian "Meet the bots"
   baru terlihat setelah di-scroll. Isi tetap rapat ke atas (jarak dari menu tidak melebar). */
@media (min-width: 961px) and (min-height: 560px) and (orientation: landscape) {
  .hero {
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    display: flex;
    flex-direction: column;
  }
  .hero-grid { width: 100%; }
  /* Sisa tinggi dibagi 1 : 5 (atas : bawah), jadi isi sedikit turun tapi tetap dekat dengan menu. */
  .hero::before, .hero::after { content: ""; display: block; }
  .hero::before { flex: 1 1 0; }
  .hero::after { flex: 5 1 0; }
}
