/* =====================================================================
   Tema bersama untuk halaman login, buat link, dan trafik klik.
   Gaya: hero langit biru, aksen hijau lime, tombol bentuk pil, huruf rapat.
   Warna dan ukuran utama diatur lewat variabel di :root.
   ===================================================================== */
:root {
  --lime: #c8f53c;
  --ink: #0c0d10;
  --text: #14161a;
  --muted: #6f7480;
  --soft: #f1f1f2;
  --line: #e6e7ea;
  --danger: #d93636;
  --sky-1: #1f6fe0;
  --sky-2: #3d93ee;
  --sky-3: #8ec3f6;
  --sky-4: #d9ebfc;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 12px;
  background: #fff;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input, select { font: inherit; }
[hidden] { display: none !important; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 8px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Hero langit ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 42%, var(--sky-3) 78%, var(--sky-4) 100%);
}
.hero::before,
.hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.hero::before {
  inset: auto -15% -8% -15%;
  height: 62%;
  background:
    radial-gradient(34% 55% at 12% 70%, rgba(255,255,255,.96) 0 45%, transparent 72%),
    radial-gradient(30% 50% at 38% 88%, rgba(255,255,255,.92) 0 45%, transparent 72%),
    radial-gradient(36% 56% at 66% 78%, rgba(255,255,255,.94) 0 45%, transparent 72%),
    radial-gradient(30% 50% at 92% 66%, rgba(255,255,255,.90) 0 45%, transparent 72%);
  filter: blur(4px);
  animation: drift 40s ease-in-out infinite alternate;
}
.hero::after {
  inset: 0;
  background:
    radial-gradient(18% 10% at 14% 30%, rgba(255,255,255,.35), transparent 70%),
    radial-gradient(22% 12% at 84% 22%, rgba(255,255,255,.30), transparent 70%);
}
@keyframes drift { from { transform: translateX(-3%); } to { transform: translateX(3%); } }
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }

.hero-body { max-width: 980px; margin: 0 auto; padding: 36px 20px 130px; text-align: center; }

.headline {
  margin: 0;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.sub { max-width: 540px; margin: 16px auto 0; font-size: .95rem; color: rgba(255,255,255,.88); }

/* ---------- Navigasi ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 22px 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.05rem; text-decoration: none; color: #fff; }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: rgba(255,255,255,.82); padding: 6px 2px; border-bottom: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }
@media (max-width: 720px) {
  .nav { padding: 18px 18px; }
  .nav-links { order: 3; width: 100%; justify-content: center; }
}

/* ---------- Tombol pil ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border: 0; border-radius: 999px; padding: 8px 8px 8px 22px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.pill:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.pill:active { transform: translateY(0); box-shadow: none; }
.pill:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.pill:focus-visible, .input:focus-visible, .range button:focus-visible { outline: 3px solid rgba(255,255,255,.9); outline-offset: 2px; }
.pill-lime { background: var(--lime); color: #000; }
.pill-ink { background: var(--ink); color: #fff; }
.pill-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.pill-ghost.danger { color: var(--danger); }
.pill-sm { padding: 8px 16px; gap: 8px; }
.pill .arrow {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: #000; color: #fff; font-size: .9rem; letter-spacing: 0;
}
.pill-ink .arrow { background: var(--lime); color: #000; }

/* ---------- Kaca (glass) ---------- */
.glass {
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 22px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(10,40,100,.18);
}

/* ---------- Form ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field label {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.92);
}
.field label .opt { opacity: .7; text-transform: none; letter-spacing: 0; }
.input {
  width: 100%; min-width: 0; padding: 14px 20px; border-radius: 999px;
  border: 1px solid transparent; background: rgba(255,255,255,.94); color: var(--text); outline: 0;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.input::placeholder { color: #9aa0ab; }
.input:focus { box-shadow: 0 0 0 4px rgba(255,255,255,.45); }
.alert { margin: 0; padding: 10px 16px; border-radius: 14px; font-size: .9rem; text-align: left; }
.alert.err { background: rgba(255,255,255,.95); color: var(--danger); }

/* ---------- Bagian halaman putih ---------- */
.section { padding: 72px 0 6px; }
.eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #333;
}
.eyebrow::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.section h2 {
  margin: 14px 0 34px; text-align: center; font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.1; letter-spacing: -.035em;
}
.section h2 em { font-style: normal; color: #9a9ea8; }

/* ---------- Kartu ---------- */
.card { position: relative; overflow: hidden; border-radius: 20px; padding: 20px; background: var(--soft); }
.card .label { font-size: .8rem; color: var(--muted); }
.card .big { margin: 10px 0 0; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 400; line-height: 1; letter-spacing: -.04em; }
.card p { margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
.card-lime { background: var(--lime); color: #000; }
.card-lime .label, .card-lime p { color: rgba(0,0,0,.62); }
.card-ink { background: var(--ink); color: #fff; }
.card-ink .label, .card-ink p { color: rgba(255,255,255,.62); }
.card-blue { color: #fff; background: linear-gradient(160deg, #1f6fe0 0%, #6fb2f3 100%); }
.card-blue .label, .card-blue p { color: rgba(255,255,255,.82); }
.card-white { background: #fff; border: 1px solid var(--line); }

/* ---------- Tabel ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 400; color: var(--muted); white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
code { font-family: var(--mono); }

/* ---------- Toast & footer ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; max-width: calc(100% - 32px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 999px; font-size: .9rem;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.footer { padding: 56px 0 28px; text-align: center; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
