/* ==========================================================================
   DWARSA DIGITAL DYNAMICS: DESIGN TOKENS
   Tema "Holographic Chrome": hitam pekat, krom perak, dan satu aksen biru baja.
   File ini hanya berisi variabel. Jangan menaruh selector komponen di sini.
   ========================================================================== */

:root {
  /* ---------- Warna dasar ---------- */
  --bg:            #000000;
  --bg-soft:       #05050a;
  --surface:       #0d0d10;
  --surface-2:     #141419;
  --surface-3:     #1c1c23;
  --surface-4:     #26262f;

  --line:          rgba(255, 255, 255, 0.08);
  --line-2:        rgba(255, 255, 255, 0.14);
  --line-3:        rgba(255, 255, 255, 0.22);

  --text:          #f5f5f7;
  --text-2:        #b7b7c0;
  --muted:         #8a8a94;
  --dim:           #55555f;
  --faint:         #2c2c34;

  /* ---------- Aksen tunggal ----------
     Situs memakai satu keluarga warna saja: kuning tua yang pekat di atas
     hitam. Untuk mengubah nuansa seluruh situs, cukup ganti empat nilai
     di bawah ini. */
  --accent-1:      #f0c645;   /* paling terang, untuk kilau  */
  --accent-2:      #d4a017;   /* warna aksen utama           */
  --accent-3:      #9c7410;   /* sedang, untuk teks sekunder */
  --accent-4:      #5c440a;   /* paling gelap, untuk garis   */

  --accent-1-soft: rgba(240, 198, 69, 0.10);
  --accent-3-soft: rgba(156, 116, 16, 0.18);
  --accent-4-soft: rgba(92, 68, 10, 0.22);

  /* Gradien kilau: emas tua, bukan perak.
     Panjangnya 200% supaya bisa dianimasikan lewat background-position. */
  --grad-accent: linear-gradient(
    100deg,
    #f6dc8a 0%,
    #d4a017 24%,
    #ffeeb0 46%,
    #a87d13 68%,
    #f0c645 100%
  );
  --grad-accent-soft: linear-gradient(
    100deg,
    rgba(246, 220, 138, 0.75) 0%,
    rgba(212, 160, 23, 0.75) 45%,
    rgba(168, 125, 19, 0.75) 100%
  );

  /* Gradien logam untuk headline besar. Nuansanya emas tua, bukan krom perak. */
  --grad-chrome: linear-gradient(
    177deg,
    #fff4cf 0%,
    #f0c645 16%,
    #8a6710 34%,
    #fff8e0 47%,
    #6b5008 58%,
    #d4a017 72%,
    #ffeeb0 88%,
    #9c7410 100%
  );
  /* Versi dengan sorotan lebih terang, dipakai untuk judul hero. */
  --grad-chrome-cool: linear-gradient(
    177deg,
    #fffaea 0%,
    #f6dc8a 14%,
    #d4a017 31%,
    #fff8e0 46%,
    #a87d13 60%,
    #f0c645 76%,
    #fffaea 90%,
    #8a6710 100%
  );

  /* Kaca / glassmorphism */
  --glass:         rgba(255, 255, 255, 0.035);
  --glass-2:       rgba(255, 255, 255, 0.06);
  --glass-blur:    saturate(180%) blur(18px);

  /* ---------- Bayangan & cahaya ---------- */
  --shadow-sm:     0 2px 12px rgba(0, 0, 0, 0.55);
  --shadow:        0 12px 40px rgba(0, 0, 0, 0.65);
  --shadow-lg:     0 30px 90px rgba(0, 0, 0, 0.8);
  --glow-soft:  0 0 42px rgba(212, 160, 23, 0.18);
  --glow-cool:  0 0 42px rgba(240, 198, 69, 0.14);
  --glow-faint: 0 0 36px rgba(156, 116, 16, 0.14);
  --glow-wide:  0 0 60px rgba(212, 160, 23, 0.14), 0 0 110px rgba(156, 116, 16, 0.09);

  /* ---------- Radius ---------- */
  --r-xs:          8px;
  --r-sm:          12px;
  --r:             18px;
  --r-lg:          26px;
  --r-xl:          38px;
  --r-full:        999px;

  /* ---------- Tipografi ---------- */
  --f-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --f-body:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

  --fs-2xs:  0.7rem;
  --fs-xs:   0.775rem;
  --fs-sm:   0.875rem;
  --fs-base: clamp(0.95rem, 0.91rem + 0.18vw, 1.06rem);
  --fs-lg:   clamp(1.04rem, 0.99rem + 0.28vw, 1.18rem);
  --fs-xl:   clamp(1.35rem, 1.15rem + 0.95vw, 1.95rem);
  --fs-2xl:  clamp(1.85rem, 1.45rem + 1.9vw, 3rem);
  --fs-3xl:  clamp(2.4rem, 1.7rem + 3.4vw, 4.4rem);
  --fs-4xl:  clamp(3rem, 1.9rem + 5.6vw, 7.5rem);
  --fs-hero: clamp(3.2rem, 1.6rem + 8vw, 11rem);

  --lh-tight: 0.94;
  --lh-snug:  1.16;
  --lh-body:  1.72;

  --ls-tight: -0.035em;
  --ls-wide:  0.16em;
  --ls-wider: 0.28em;

  /* ---------- Layout ---------- */
  --container:   1320px;
  --container-n: 1080px;   /* narrow, untuk artikel */
  --gut:         clamp(20px, 5vw, 68px);
  --sec-y:       clamp(72px, 11vh, 168px);
  --header-h:    76px;

  /* ---------- Gerak ---------- */
  --ease:       cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:cubic-bezier(0.65, 0, 0.35, 1);
  --ease-back:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast:     0.18s;
  --t:          0.36s;
  --t-slow:     0.7s;

  /* ---------- Z-index ---------- */
  --z-bg:       0;
  --z-content:  1;
  /* Header harus di ATAS drawer. Kalau tidak, begitu menu mobile terbuka,
     overlay drawer menutupi tombol burger sehingga menunya tidak bisa
     ditutup lagi dengan jari. */
  --z-header:   95;
  --z-drawer:   90;
  --z-modal:    100;
  --z-toast:    110;
  --z-preload:  120;
}

/* Perkecil beban visual saat pengguna meminta gerak minimal. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --t-fast: 0.01ms;
    --t:      0.01ms;
    --t-slow: 0.01ms;
  }
}
