/* Bagian atas halaman: navigasi, hero (nama + foto), dan strip statistik. */
/* ---------- navigasi ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 700 18px var(--display); letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 800 17px var(--display); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.theme-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: border-color .15s; }
.theme-btn:hover { border-color: var(--ink); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 64px 0 96px; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .55;
  -webkit-mask-image: radial-gradient(70% 85% at 72% 35%, #000, transparent 78%);
  mask-image: radial-gradient(70% 85% at 72% 35%, #000, transparent 78%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 72px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 15px 7px 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 0 4px rgba(var(--accent2-rgb), .2); }
h1 { font: 800 clamp(54px, 9vw, 124px)/.92 var(--display); letter-spacing: -.045em; margin: 26px 0 20px; text-wrap: balance; overflow-wrap: anywhere; }
.role { font: 600 clamp(19px, 2.2vw, 25px)/1.3 var(--display); letter-spacing: -.015em; max-width: 30ch; margin-bottom: 20px; }
.bio { max-width: 56ch; color: var(--ink-2); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; padding: 13px 20px; border-radius: 999px; font: 600 15px var(--body); text-decoration: none; border: 1.5px solid transparent; transition: background .18s, color .18s, border-color .18s, transform .18s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); color: #140A03; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.where { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; font: 500 14px var(--mono); color: var(--ink-2); }
.where span { display: inline-flex; align-items: center; gap: 8px; }
.where svg { width: 16px; height: 16px; }

.portrait { position: relative; justify-self: end; width: min(100%, 420px); margin: 0; }
.portrait-back { position: absolute; inset: 24px -24px -24px 24px; border-radius: 30px; background: var(--accent); }
.portrait-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden; border: 1.5px solid var(--ink); background: var(--surface-2); }
/* <picture> hanya pembungkus (WebP + cadangan); tidak boleh mengubah ukuran gambar di bingkai */
.portrait-frame picture { display: contents; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.log { position: absolute; left: -40px; bottom: 36px; min-width: 214px; background: var(--block-bg); color: var(--block-fg); border-radius: 16px; padding: 15px 20px; font: 500 13px/1.8 var(--mono); box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, .08); }
.log li { display: flex; align-items: center; gap: 10px; }
.log li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }

/* satu momen masuk saat halaman dibuka */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-copy > *, .portrait { animation: rise .85s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-copy > :nth-child(5) { animation-delay: .24s; }
.hero-copy > :nth-child(6) { animation-delay: .3s; }
.portrait { animation-delay: .2s; }

/* ---------- statistik ---------- */
.stats { border-block: 1px solid var(--line); background: var(--surface); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.stat { padding: 34px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { display: block; font: 800 clamp(36px, 4.6vw, 54px)/1 var(--display); letter-spacing: -.035em; }
.stat-label { display: block; margin-top: 12px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); max-width: 26ch; }

/* tombol dengan ikon, tombol aksen (WhatsApp), dan angka rata untuk animasi hitung */
.btn svg { width: 18px; height: 18px; margin-right: 9px; flex: none; }
.btn-accent { background: var(--accent); color: #140A03; }
.btn-accent:hover { background: var(--ink); color: var(--paper); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.stat-num { font-variant-numeric: tabular-nums; }

/* alat di kanan navigasi: pengalih bahasa + tombol tema */
.nav-tools { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.lang-switch a { padding: 5px 11px; border-radius: 999px; font: 600 13px var(--body); letter-spacing: .02em; text-decoration: none; color: var(--ink-2); transition: color .15s, background .15s; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--paper); }
