/* ============================================================
   ZALIN LABS - WEBSITE DEVELOPMENT (G800)
   wd.css - design system halaman layanan + directory showcase.
   Identitas: selaras homepage zalinlabs.com (dark #05060f,
   Fraunces display + Inter body). Nol biru/indigo/ungu.
   ============================================================ */

:root {
  --bg: #05060f;
  --bg-soft: #0b0d1a;
  --bg-card: #10121f;
  --line: rgba(255, 255, 255, 0.09);
  --ink: #f4f2ec;
  --ink-dim: #a9a598;
  --accent: #d9a441;
  --accent-deep: #b0793f;
  --green: #4a7c59;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html.no-scroll { overflow: hidden; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.wd-top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 6, 15, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.wd-top-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}
.wd-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.02rem;
  min-height: 44px;
}
.wd-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: grid;
  place-items: center;
  color: #14100a;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
}
.wd-top-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.wd-top-nav a {
  text-decoration: none;
  color: var(--ink-dim);
  font-size: 0.92rem;
  padding: 10px 12px;
  border-radius: 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.wd-top-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.wd-top-nav a.cta {
  color: #14100a;
  background: var(--accent);
  font-weight: 600;
  padding: 10px 16px;
}
.wd-top-nav a.cta:hover { background: #e5b35a; color: #14100a; }

.wd-burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  width: 44px;
  height: 44px;
  place-items: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--accent); color: #14100a; }
.btn-solid:hover { background: #e5b35a; }
.btn-ghost { border-color: rgba(217, 164, 65, 0.55); color: var(--accent); }
.btn-ghost:hover { background: rgba(217, 164, 65, 0.1); }
.btn-quiet { border-color: var(--line); color: var(--ink); }
.btn-quiet:hover { border-color: rgba(255, 255, 255, 0.3); }

/* ---------- Hero ---------- */
.wd-hero { position: relative; overflow: hidden; padding: 84px 0 64px; }
.wd-hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 620px;
  height: 620px;
  background: radial-gradient(closest-side, rgba(217, 164, 65, 0.16), transparent 70%);
  pointer-events: none;
}
.wd-hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.wd-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 600;
}
.wd-kicker::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.wd-hero h1 {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.wd-hero h1 em { font-style: italic; color: var(--accent); }
.wd-hero .lede { color: var(--ink-dim); font-size: 1.06rem; max-width: 56ch; margin-bottom: 28px; }
.wd-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.wd-hero-note { color: var(--ink-dim); font-size: 0.86rem; margin-top: 14px; }

.wd-hero-visual {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)) ,
    var(--bg-card);
  padding: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.wd-hv-screen { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.wd-hv-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.wd-hv-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.wd-hv-bar i:first-child { background: var(--accent-deep); }
.wd-hv-page { padding: 22px 18px 24px; background: linear-gradient(160deg, #12131f, #0a0b14); min-height: 230px; }
.wd-hv-line { height: 12px; border-radius: 6px; background: rgba(255,255,255,0.08); margin-bottom: 10px; }
.wd-hv-line.w1 { width: 68%; background: rgba(217, 164, 65, 0.4); height: 20px; }
.wd-hv-line.w2 { width: 44%; }
.wd-hv-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 18px; }
.wd-hv-cards i { height: 62px; border-radius: 10px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); }
.wd-hv-cards i:nth-child(2) { background: rgba(74, 124, 89, 0.25); }
.wd-hv-cards i:nth-child(3) { background: rgba(176, 121, 63, 0.3); }
.wd-hv-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; color: var(--ink-dim); font-size: 0.82rem; }

/* ---------- Section shell ---------- */
.wd-section { padding: 72px 0; border-top: 1px solid var(--line); }
.wd-section-head { max-width: 720px; margin-bottom: 44px; }
.wd-section-head h2 {
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 12px;
}
.wd-section-head p { color: var(--ink-dim); }

/* ---------- Services ---------- */
.wd-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wd-svc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wd-svc .num { font-family: var(--serif); color: var(--accent); font-size: 1.4rem; }
.wd-svc h3 { font-size: 1.08rem; font-weight: 650; }
.wd-svc p { color: var(--ink-dim); font-size: 0.94rem; flex: 1; }

/* ---------- Categories ---------- */
.wd-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wd-cat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s ease, background 0.15s ease;
  min-height: 44px;
}
.wd-cat:hover { border-color: rgba(217, 164, 65, 0.5); background: rgba(217, 164, 65, 0.06); }
.wd-cat b { font-size: 0.98rem; font-weight: 650; }
.wd-cat span { color: var(--ink-dim); font-size: 0.85rem; }

/* ---------- Showcase cards ---------- */
.wd-show-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wd-show {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.wd-show-thumb { height: 170px; position: relative; overflow: hidden; }
.wd-show-thumb svg { width: 100%; height: 100%; }
.wd-show-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.wd-show-body h3 { font-size: 1.06rem; font-weight: 650; }
.wd-show-body p { color: var(--ink-dim); font-size: 0.9rem; flex: 1; }
.wd-show-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.wd-show-tags i {
  font-style: normal;
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-dim);
}
.wd-show-cta { margin-top: 12px; display: flex; gap: 10px; align-items: center; }
.wd-show-cta .btn { min-height: 44px; padding: 9px 16px; font-size: 0.9rem; }

/* ---------- Why ---------- */
.wd-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wd-why { border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; }
.wd-why h3 { font-size: 1.02rem; font-weight: 650; margin-bottom: 6px; }
.wd-why p { color: var(--ink-dim); font-size: 0.92rem; }

/* ---------- Process ---------- */
.wd-proc { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; counter-reset: step; }
.wd-step { counter-increment: step; border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px; background: var(--bg-card); position: relative; }
.wd-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  color: var(--accent);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 8px;
}
.wd-step b { display: block; font-size: 0.9rem; margin-bottom: 4px; font-weight: 650; }
.wd-step span { color: var(--ink-dim); font-size: 0.8rem; }

/* ---------- Packages ---------- */
.wd-price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.wd-price {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wd-price.featured { border-color: rgba(217, 164, 65, 0.6); box-shadow: 0 24px 60px rgba(217, 164, 65, 0.08); }
.wd-price .tier { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.wd-price h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 480; }
.wd-price .hint { color: var(--ink-dim); font-size: 0.88rem; min-height: 44px; }
.wd-price ul { list-style: none; display: grid; gap: 9px; flex: 1; }
.wd-price li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--ink); }
.wd-price li svg { flex: none; margin-top: 4px; color: var(--green); }
.wd-price .btn { justify-content: center; }

/* ---------- FAQ ---------- */
.wd-faq { max-width: 780px; }
.wd-faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-card); margin-bottom: 10px; overflow: hidden; }
.wd-faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: none;
  border: 0;
  color: var(--ink);
  text-align: left;
  padding: 18px 20px;
  min-height: 44px;
  font-weight: 600;
  font-size: 0.98rem;
}
.wd-faq-q .chev { transition: transform 0.2s ease; color: var(--accent); flex: none; }
.wd-faq-item[data-open="true"] .chev { transform: rotate(180deg); }
.wd-faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}
.wd-faq-item[data-open="true"] .wd-faq-a { grid-template-rows: 1fr; }
.wd-faq-a > div { overflow: hidden; }
.wd-faq-a p { padding: 0 20px 18px; color: var(--ink-dim); font-size: 0.94rem; }

/* ---------- Final CTA ---------- */
.wd-final { padding: 72px 0 84px; border-top: 1px solid var(--line); }
.wd-final-grid {
  border: 1px solid rgba(217, 164, 65, 0.4);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(217, 164, 65, 0.14), transparent 55%),
    var(--bg-card);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}
.wd-final h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.15; margin-bottom: 12px; }
.wd-final p { color: var(--ink-dim); margin-bottom: 22px; }
.wd-qr-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  color: #17130b;
}
.wd-qr-frame { width: 128px; height: 128px; flex: none; border-radius: 10px; overflow: hidden; background: #fff; }
.wd-qr-frame svg { width: 100%; height: 100%; }
.wd-qr-pending { font-size: 0.72rem; line-height: 1.5; color: #4a463c; padding: 8px; }
.wd-qr-meta b { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.wd-qr-meta span { font-size: 0.82rem; color: #5c574a; }

/* ---------- Footer ---------- */
.wd-foot { border-top: 1px solid var(--line); padding: 34px 0 44px; }
.wd-foot-inner { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; color: var(--ink-dim); font-size: 0.88rem; }
.wd-foot-inner nav { display: flex; gap: 18px; flex-wrap: wrap; }
.wd-foot-inner a { color: var(--ink-dim); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.wd-foot-inner a:hover { color: var(--ink); }
.wd-foot .demo-note { width: 100%; font-size: 0.8rem; color: rgba(169, 165, 152, 0.8); }

/* ---------- Reveal (hanya saat JS aktif; tanpa JS konten tetap tampil) ---------- */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .wd-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .wd-svc-grid, .wd-cat-grid, .wd-show-grid, .wd-why-grid { grid-template-columns: repeat(2, 1fr); }
  .wd-proc { grid-template-columns: repeat(4, 1fr); }
  .wd-price-grid { grid-template-columns: 1fr; }
  .wd-final-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wd-top-nav { display: none; }
  .wd-top-nav.open {
    display: grid;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px;
    gap: 4px;
    z-index: 70;
  }
  .wd-burger { display: grid; }
  .wd-section { padding: 52px 0; }
  .wd-hero { padding: 56px 0 44px; }
  .wd-svc-grid, .wd-cat-grid, .wd-show-grid, .wd-why-grid { grid-template-columns: 1fr; }
  .wd-proc { grid-template-columns: repeat(2, 1fr); }
  .wd-final { padding: 52px 0 60px; }
  .wd-final-grid { padding: 26px 20px; }
  .wd-qr-box { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .wd-proc { grid-template-columns: 1fr 1fr; }
  .wd-hv-cards { grid-template-columns: 1fr 1fr; }
  .wd-hv-cards i:nth-child(3) { display: none; }
}
