/* =========================================================
   WM Bike Wash & Detailing — Design System
   Palet & tipografi dirancang manual: charcoal + amber,
   terinspirasi standar papan instrumen otomotif.
   ========================================================= */

@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  /* Permukaan gelap (aplikasi) */
  --bg:        #0E1216;
  --surface:   #141A21;
  --raised:    #1A212A;
  --line:      rgba(255,255,255,.075);
  --line-hard: rgba(255,255,255,.14);

  /* Teks */
  --text:      #F1F4F8;
  --muted:     #98A2AE;
  --faint:     #66707C;

  /* Aksen */
  --amber:      #FFB324;
  --amber-deep: #E89B00;
  --amber-ink:  #241A00;
  --amber-soft: rgba(255,179,36,.12);

  --green:     #33B06F;
  --green-soft: rgba(51,176,111,.14);
  --red:       #E5533D;
  --red-soft:  rgba(229,83,61,.14);
  --blue:      #4E9AF1;

  /* Permukaan terang (landing) */
  --paper:      #F4F1EA;
  --paper-2:    #ECE8DE;
  --ink:        #14181D;
  --ink-2:      #454E58;
  --ink-line:   rgba(20,24,29,.12);

  /* Bentuk */
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;
  --r-xl: 28px;

  --font-body: "Barlow", "Segoe UI", Tahoma, sans-serif;
  --font-disp: "Barlow Condensed", "Arial Narrow", sans-serif;

  --shadow-1: 0 1px 2px rgba(8,10,14,.28), 0 6px 18px rgba(8,10,14,.22);
  --shadow-2: 0 10px 40px rgba(8,10,14,.45);
  --ease: cubic-bezier(.22,.8,.28,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
::placeholder { color: var(--faint); }

/* ---------- Primitif teks ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--amber);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--amber); }
.eyebrow--plain::before { display: none; }

.display {
  font-family: var(--font-disp); font-weight: 700; text-transform: uppercase;
  letter-spacing: .01em; line-height: .98;
}

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 22px; border-radius: var(--r-s);
  font-weight: 600; font-size: 14px; letter-spacing: .02em;
  transition: transform .18s var(--ease), background .18s, box-shadow .18s, border-color .18s;
  user-select: none; white-space: nowrap;
}
.btn:active { transform: scale(.965); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary { background: var(--amber); color: var(--amber-ink); box-shadow: 0 4px 14px rgba(255,179,36,.25); }
.btn-primary:hover { background: var(--amber-deep); }

.btn-ghost { border: 1px solid var(--line-hard); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }

.btn-outline-dark { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline-dark:hover { background: var(--ink); color: #fff; }

.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- Chips & badge ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 99px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
}
.chip svg { width: 13px; height: 13px; }
.chip-live { background: var(--green-soft); color: var(--green); }
.chip-live .pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); position: relative; flex: none; }
.chip-live .pulse-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--green); opacity: .6;
  animation: pulse-ring 1.8s var(--ease) infinite;
}
@keyframes pulse-ring { 0% { transform: scale(.5); opacity: .8; } 80%, 100% { transform: scale(1.5); opacity: 0; } }

.chip-closed { background: var(--red-soft); color: var(--red); }
.chip-closed .pulse-dot { background: var(--red); }
.chip-closed .pulse-dot::after { border-color: var(--red); animation: none; }

/* ---------- Animasi dasar ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-in-r { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes shine-sweep { 0% { transform: translateX(-120%) skewX(-18deg); } 100% { transform: translateX(320%) skewX(-18deg); } }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* Scrollbar halus */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(128,138,150,.3); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

::selection { background: var(--amber); color: var(--amber-ink); }

/* Reduksi gerak bila diminta OS */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
