/*
 * Arival Studio — sistem desain situs publik (beranda, layanan, detail layanan).
 * Bahasa visual: latar terang hangat, tipografi Bricolage Grotesque, kartu bergaris tipis, tombol pil dengan
 * lingkaran panah, hampir tanpa shadow, aksen biru brand. Mendukung mode gelap lewat token.
 * Komponen dipakai lintas halaman: header, footer, tombol, judul section, reveal.
 */
:root {
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --surface-2: #F3F4F6;
  --surface-3: #ECEDEF;
  --ink: #121212;
  --ink-2: #2E2E2E;
  --muted: #6B6B6B;
  --line: rgba(18, 18, 18, .08);
  --line-strong: rgba(18, 18, 18, .14);
  --brand: #243CFF;
  --brand-ink: #1B2FE0;
  --brand-soft: #EEF0FF;
  --brand-tint: #DCE1FF;
  --invert: #121212;
  --invert-ink: #FFFFFF;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --radius: 24px;
  --font: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}
html.dark {
  --bg: #0B0B0C;
  --surface: #141416;
  --surface-2: #1B1B1E;
  --surface-3: #232327;
  --ink: #F4F4F5;
  --ink-2: #D4D4D8;
  --muted: #A1A1AA;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --brand-soft: rgba(36, 60, 255, .16);
  --brand-tint: rgba(36, 60, 255, .26);
  --invert: #F4F4F5;
  --invert-ink: #121212;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body.site {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
:where(body.site) img { max-width: 100%; display: block; }
:where(body.site) a { color: inherit; text-decoration: none; }
:where(body.site) button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:where(body.site) :where(h1, h2, h3, h4, p) { margin: 0; }
body.site ::selection { background: var(--brand); color: #fff; }
.s-wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .s-wrap { padding: 0 24px; } }
@media (min-width: 1280px) { .s-wrap { padding: 0 24px; } }
.s-section { padding: 64px 0; }
@media (min-width: 1024px) { .s-section { padding: 112px 0; } }
.s-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografi ---------- */
.s-h1 { font-weight: 600; letter-spacing: -.035em; line-height: 1.04; font-size: clamp(32px, 5.6vw, 76px); }
.s-h2 { font-weight: 600; letter-spacing: -.03em; line-height: 1.08; font-size: clamp(26px, 3.4vw, 52px); }
.s-eyebrow { color: var(--muted); font-size: clamp(13px, 1vw, 16px); font-weight: 400; letter-spacing: .02em; text-transform: uppercase; }
.s-eyebrow--plain { text-transform: none; letter-spacing: 0; }
.s-h3 { font-weight: 600; letter-spacing: -.02em; line-height: 1.2; font-size: clamp(17px, 1.5vw, 22px); }
.s-lead { color: var(--muted); font-size: clamp(14px, 1.15vw, 18px); line-height: 1.65; }
.s-body { color: var(--muted); font-size: clamp(13px, 1vw, 15px); line-height: 1.65; }
.s-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin-bottom: 40px; }
.s-head .s-lead { max-width: 640px; }
@media (min-width: 1024px) { .s-head { margin-bottom: 64px; } }
.s-head--left { align-items: flex-start; text-align: left; }
.s-head--split { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; text-align: left; gap: 16px 32px; }

/* ---------- Tombol pil dengan lingkaran panah ---------- */
.s-btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 6px 0 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500; white-space: nowrap; transition: background-color .3s var(--ease), color .3s, border-color .3s, transform .3s var(--ease);
}
@media (min-width: 640px) { .s-btn { height: 52px; padding-left: 22px; font-size: 16px; } }
.s-btn__ic {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; flex-shrink: 0; overflow: hidden;
  transition: transform .45s var(--ease), background-color .3s;
}
@media (min-width: 640px) { .s-btn__ic { width: 40px; height: 40px; } }
.s-btn__ic svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.s-btn:hover .s-btn__ic svg { transform: rotate(45deg); }
.s-btn--dark { background: var(--invert); color: var(--invert-ink); }
.s-btn--dark .s-btn__ic { background: var(--invert-ink); color: var(--invert); }
.s-btn--light { background: var(--surface-3); color: var(--ink); }
.s-btn--light .s-btn__ic { background: var(--surface); color: var(--ink); }
.s-btn--brand { background: var(--brand); color: #fff; }
.s-btn--brand .s-btn__ic { background: #fff; color: var(--brand); }
.s-btn--ghost { height: 46px; padding: 0 20px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
@media (min-width: 640px) { .s-btn--ghost { height: 52px; padding: 0 24px; } }
.s-btn--sm { height: 40px; padding-left: 16px; font-size: 14px; }
.s-btn--sm .s-btn__ic { width: 30px; height: 30px; }
.s-btn--sm.s-btn--ghost { padding: 0 16px; }
.s-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink); }
.s-link svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.s-link:hover { color: var(--brand); }
.s-link:hover svg { transform: translate(2px, -2px); }

/* ---------- Header ---------- */
.s-header, .s-mobile { font-family: var(--font); }
.s-header {
  position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
}
.s-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
@media (min-width: 1024px) { .s-header__in { height: 76px; } }
.s-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
@media (min-width: 640px) { .s-brand { font-size: 22px; } }
.s-brand__mark { width: 22px; height: 22px; flex-shrink: 0; background: var(--brand); -webkit-mask: url('/assets/logo/arival-studio-mark.svg') center/contain no-repeat; mask: url('/assets/logo/arival-studio-mark.svg') center/contain no-repeat; }
@media (min-width: 640px) { .s-brand__mark { width: 26px; height: 26px; } }
.s-nav { display: none; align-items: center; gap: 4px; }
@media (min-width: 1024px) { .s-nav { display: flex; } }
.s-nav a, .s-nav__parent > button { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 999px; font-size: 16px; color: var(--ink-2); transition: color .2s, background-color .2s; }
.s-nav a:hover, .s-nav__parent:hover > button { color: var(--ink); }
.s-nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.s-nav__parent { position: relative; }
.s-nav__parent > button svg { width: 14px; height: 14px; }
.s-nav__menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; padding: 8px; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.s-nav__parent:hover .s-nav__menu, .s-nav__parent:focus-within .s-nav__menu { opacity: 1; visibility: visible; transform: none; }
.s-nav__menu a { display: flex; width: 100%; border-radius: 12px; font-size: 15px; }
.s-header__end { display: flex; align-items: center; gap: 6px; }
@media (min-width: 640px) { .s-header__end { gap: 8px; } }
.s-icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; color: var(--ink-2); transition: background-color .2s, color .2s; }
.s-icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.s-icon-btn svg { width: 18px; height: 18px; }
html.dark .s-theme-moon, html:not(.dark) .s-theme-sun { display: none; }
.s-header .language-toggle-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 12px; color: var(--ink-2); background: transparent !important;
}
.s-header .language-toggle-btn .lang-text { display: none; }
@media (min-width: 1280px) { .s-header .language-toggle-btn .lang-text { display: inline; } }
.s-header__login { display: none; padding: 8px 12px; font-size: 15px; color: var(--ink-2); border-radius: 999px; }
.s-header__login:hover { color: var(--ink); background: var(--surface-2); }
@media (min-width: 1024px) { .s-header__login { display: inline-flex; } }
.s-header__cta { display: none; }
@media (min-width: 768px) { .s-header__cta { display: inline-flex; } }
.s-burger { display: grid; }
@media (min-width: 1024px) { .s-burger { display: none; } }

/* Menu HP */
.s-mobile {
  position: fixed; inset: 64px 12px auto; z-index: 59; max-height: calc(100dvh - 80px); overflow-y: auto; padding: 12px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98);
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.s-mobile.is-open { opacity: 1; visibility: visible; transform: none; }
.s-mobile a { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 14px; font-size: 15px; color: var(--ink); }
.s-mobile a:hover { background: var(--surface-2); }
.s-mobile .s-mobile__sub a { padding-left: 28px; font-size: 14px; color: var(--muted); }
.s-mobile__foot { display: grid; gap: 8px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.s-mobile__foot .s-btn { justify-content: space-between; width: 100%; }
.s-mobile__row { display: flex; align-items: center; justify-content: space-between; padding: 6px 14px; font-size: 14px; color: var(--muted); }
/* Tombol gelap di menu HP: warna teks tidak ikut aturan ".s-mobile a" (sebelumnya teks hitam di atas latar hitam) */
.s-mobile a.s-btn--dark { color: var(--invert-ink); }
/* Tombol bahasa di menu HP: pil bergaris seperti di header */
.s-mobile .language-toggle-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12px; color: var(--ink-2); background: transparent; }

/* ---------- Footer ---------- */
.s-footer { position: relative; overflow: hidden; background: var(--surface-2); color: var(--ink); padding: 56px 0 0; }
@media (min-width: 1024px) { .s-footer { padding-top: 88px; } }
.s-footer__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .s-footer__grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, .6fr)); gap: 48px; } }
.s-footer__about p { margin-top: 16px; max-width: 420px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.s-footer__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.s-footer__actions a { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: background-color .25s, border-color .25s, color .25s; }
.s-footer__actions a svg { width: 16px; height: 16px; }
.s-footer__mail { background: var(--invert); color: var(--invert-ink); }
.s-footer__wa { border: 1px solid #25D366; color: var(--ink); }
.s-footer__wa svg { color: #25D366; }
.s-footer__col h4 { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.s-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.s-footer__col a { color: var(--muted); font-size: 15px; transition: color .2s; }
.s-footer__col a:hover { color: var(--ink); }
.s-footer__meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 32px; color: var(--muted); font-size: 14px; }
.s-footer__col h4 { font-weight: 600; }
.s-footer__brand { font-size: clamp(24px, 2.4vw, 36px); gap: 12px; }
.s-footer__brand .s-brand__mark { width: clamp(24px, 2.4vw, 36px); height: clamp(24px, 2.4vw, 36px); }
.s-footer__word {
  display: inline-block; vertical-align: top; margin-top: 48px; font-weight: 600; letter-spacing: -.045em; line-height: .8; white-space: nowrap; text-align: left;
  font-size: var(--fit, 22vw); user-select: none; pointer-events: none; margin-left: -.04em;
  background: linear-gradient(180deg, var(--ink) 0%, color-mix(in srgb, var(--ink) 55%, transparent) 50%, color-mix(in srgb, var(--ink) 6%, transparent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; height: .76em; overflow: hidden;
}

/* ---------- Tombol kembali ke atas ---------- */
.s-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 55; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  background: var(--invert) !important; color: var(--invert-ink) !important; opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .4s var(--ease), visibility .3s, background-color .25s;
}
.s-top svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.s-top:hover svg { transform: translateY(-3px); }
.s-top.is-visible { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 640px) { .s-top { right: 24px; bottom: 24px; width: 48px; height: 48px; } }

/* ---------- Muncul saat digulir ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
