/* ==========================================================================
   Scopus Manuscript Auditor — sistem desain dasar
   Gaya: bersih ala Apple. Font sistem (SF Pro di perangkat Apple), netral
   putih/abu, satu warna aksi biru, warna status hanya untuk makna.
   ========================================================================== */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue",
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-elev: #ffffff;
  --bg-dark: #000000;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;

  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-text: #0066cc;
  --blue-dark-text: #2997ff;

  /* warna status — teks memakai varian gelap agar kontras ≥ 4.5:1 */
  --red: #d70015;    --red-bg: #fff1f0;    --red-solid: #ff3b30;
  --orange: #b64400; --orange-bg: #fff4e5; --orange-solid: #ff9500;
  --green: #1d7a35;  --green-bg: #ebf7ee;  --green-solid: #34c759;
  --info: #0066cc;   --info-bg: #eef5ff;   --info-solid: #007aff;
  --gray: #6e6e73;   --gray-bg: #f2f2f4;   --gray-solid: #aeaeb2;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 28px;
  --shadow: 0 2px 12px rgba(0, 0, 0, .06);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, .10);
  --nav-h: 52px;
  --max: 1080px;
  --max-wide: 1240px;
  --ease: cubic-bezier(.25, .1, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.47059; font-weight: 400;
  letter-spacing: -.022em; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-text); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: rgba(0, 113, 227, .18); }
:focus-visible { outline: 3px solid rgba(0, 113, 227, .45); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- tipografi ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--text); }
.t-hero { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; }
.t-1 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -.028em; }
.t-2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.12; letter-spacing: -.022em; }
.t-3 { font-size: 21px; line-height: 1.24; letter-spacing: -.016em; }
.t-4 { font-size: 17px; line-height: 1.3; letter-spacing: -.016em; font-weight: 600; }
.lead { font-size: clamp(19px, 2.1vw, 24px); line-height: 1.38; letter-spacing: -.016em; color: var(--text-2); font-weight: 400; }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--text-2); letter-spacing: -.016em; margin-bottom: 8px; }
.muted { color: var(--text-2); }
.small { font-size: 14px; line-height: 1.43; letter-spacing: -.01em; }
.tiny { font-size: 12px; line-height: 1.33; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }
p { margin: 0 0 1em; }

/* ---------- tata letak ---------- */
.wrap { width: min(100% - 44px, var(--max)); margin-inline: auto; }
.wrap-wide { width: min(100% - 44px, var(--max-wide)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #f5f5f7; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #f5f5f7; }
.section-dark .muted, .section-dark .lead { color: #a1a1a6; }
.center { text-align: center; }
.stack > * + * { margin-top: var(--gap, 16px); }

/* ---------- navigasi global ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(255, 255, 255, .78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.nav-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 17px; letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--text); display: grid; place-items: center; }
.brand-mark svg { width: 15px; height: 15px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 14px; letter-spacing: -.01em; }
.nav-links a { color: var(--text); opacity: .8; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav .btn { height: 32px; padding: 0 16px; font-size: 14px; }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }
@media (max-width: 400px) { .brand { font-size: 15px; gap: 8px; } .nav .btn { padding: 0 12px; } }

/* ---------- tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px;
  border-radius: 980px; border: 0; background: var(--blue); color: #fff; font-size: 17px; font-weight: 400;
  cursor: pointer; transition: background .2s var(--ease), transform .2s var(--ease), opacity .2s; white-space: nowrap;
}
.btn:hover { background: var(--blue-hover); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn-lg { height: 52px; padding: 0 30px; font-size: 18px; }
.btn-sm { height: 34px; padding: 0 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--blue-text); border: 1px solid var(--blue); }
.btn-ghost:hover { background: rgba(0, 113, 227, .06); }
.btn-gray { background: var(--bg-alt); color: var(--text); }
.btn-gray:hover { background: #e8e8ed; }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #000; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-size: 17px; color: var(--blue-text); }
.link-more::after { content: "›"; font-size: 1.15em; line-height: 1; transform: translateY(-1px); }
.section-dark .link-more { color: var(--blue-dark-text); }

/* ---------- kartu & permukaan ---------- */
.card { background: var(--bg-elev); border-radius: var(--r-lg); padding: 28px; }
.section-alt .card, .card-on-alt { background: #fff; }
.card-alt { background: var(--bg-alt); border-radius: var(--r-lg); padding: 28px; }
.card-line { border: 1px solid var(--line-soft); }
.hr { height: 1px; background: var(--line-soft); border: 0; margin: 24px 0; }

/* ---------- label status ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 980px;
  font-size: 12px; font-weight: 600; letter-spacing: 0; white-space: nowrap;
  background: var(--gray-bg); color: var(--gray);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.no-dot::before { display: none; }
.t-red { color: var(--red); } .bg-red { background: var(--red-bg); }
.t-orange { color: var(--orange); } .bg-orange { background: var(--orange-bg); }
.t-green { color: var(--green); } .bg-green { background: var(--green-bg); }
.t-blue { color: var(--info); } .bg-blue { background: var(--info-bg); }
.t-gray { color: var(--gray); } .bg-gray { background: var(--gray-bg); }
.pill.red { background: var(--red-bg); color: var(--red); }
.pill.orange { background: var(--orange-bg); color: var(--orange); }
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.blue { background: var(--info-bg); color: var(--info); }
.pill.gray { background: var(--gray-bg); color: var(--gray); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--bg-alt); color: var(--text-2); font-size: 12px; font-weight: 500; letter-spacing: 0; }

/* ---------- kontrol formulir ---------- */
.field { display: block; }
.field-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; letter-spacing: -.01em; }
.field-hint { font-size: 12px; color: var(--text-2); margin-top: 6px; letter-spacing: 0; }
.input {
  width: 100%; height: 48px; padding: 0 16px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: #fff; font-size: 17px; transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--text-3); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, .15); }
.segmented {
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px;
  background: #e9e9ee; border-radius: 12px; width: 100%;
}
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; padding: 6px 8px;
  border-radius: 9px; font-size: 15px; font-weight: 600; color: var(--text); transition: background .2s, box-shadow .2s;
}
.segmented span small { font-size: 11px; font-weight: 400; color: var(--text-2); letter-spacing: 0; }
.segmented input:checked + span { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); }
.segmented input:focus-visible + span { outline: 3px solid rgba(0, 113, 227, .45); }

/* ---------- footer ---------- */
.footer { background: var(--bg-alt); color: var(--text-2); font-size: 12px; letter-spacing: 0; padding: 32px 0 40px; border-top: 1px solid var(--line-soft); }
.footer a { color: var(--text-2); }
.footer-row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer p { margin: 0 0 8px; line-height: 1.5; }

/* ---------- animasi masuk (hormati preferensi gerak) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
