/* ============================================================
   BASE — token desain, reset, latar grid, tipografi dasar
   ============================================================ */
@view-transition { navigation: auto; }

:root {
  --bg: #050505;
  --fg: #f4f4f5;
  --fg-2: rgba(244, 244, 245, 0.62);
  --fg-3: rgba(244, 244, 245, 0.36);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --card: rgba(255, 255, 255, 0.035);
  --card-2: rgba(255, 255, 255, 0.07);
  --accent: #ffffff;
  --glow: 0.6;

  --font-display: "Syne", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Outfit", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gutter: 48px;
  --nav-h: 56px;

  --mx: 50vw;
  --my: 30vh;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; scroll-padding-top: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.is-loading { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.ico { flex: none; }
.rot90 { transform: rotate(90deg); }

/* ---------- Layout ---------- */
.container { width: min(1180px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.container--mid { width: min(1000px, calc(100% - var(--gutter) * 2)); }
.container--narrow { width: min(960px, calc(100% - var(--gutter) * 2)); }
.section { position: relative; min-height: 100svh; padding: 130px 0 90px; }

/* ---------- Latar ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.bg__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 100%);
}
.bg__glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: calc(var(--glow) * .55); will-change: transform; }
.bg__glow--a { width: 46vw; height: 46vw; left: -12vw; top: -10vw; background: radial-gradient(circle, rgba(255,255,255,.55), transparent 65%); animation: drift 22s ease-in-out infinite alternate; }
.bg__glow--b { width: 38vw; height: 38vw; right: -10vw; bottom: -12vw; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, #777), transparent 65%); animation: drift 28s ease-in-out infinite alternate-reverse; }
.bg__cursor {
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,255,255, calc(var(--glow) * .08)), transparent 60%);
}
.bg__vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.65) 100%); }
@keyframes drift { to { transform: translate3d(6vw, 5vw, 0) scale(1.15); } }

/* ---------- Tipografi ---------- */
.eyebrow { font: 500 11px/1 var(--font-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--fg-3); display: flex; align-items: center; gap: 8px; }
.eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.section__head { text-align: center; margin-bottom: 34px; }
.section__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -.01em; line-height: 1.1; }
.section__title--ghost { font-weight: 800; color: rgba(255,255,255,.55); font-size: clamp(2.4rem, 5vw, 3.8rem); }
.section__sub { margin-top: 12px; color: var(--fg-2); font-size: 14.5px; }

/* ---------- Animasi muncul saat scroll (blur → fokus) ---------- */
.reveal { opacity: 0; filter: blur(14px); transform: translate3d(0, 26px, 0); transition: opacity .9s var(--ease), filter .9s var(--ease), transform .9s var(--ease); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; filter: blur(0); transform: none; }

/* lompat antar bagian (klik navigasi): konten mengabur sebentar */
#main { transition: filter .28s var(--ease), opacity .28s var(--ease); }
#main.jumping { filter: blur(18px); opacity: .25; }

.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
.reduce-motion .reveal { opacity: 1; filter: none; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; filter: none; transform: none; }
  .bg__glow { animation: none; }
}

@media (max-width: 860px) { :root { --gutter: 22px; } .section { padding: 110px 0 120px; } }
