/*
  Sheven Studio
  Palet: hitam, putih, abu netral + satu aksen emas.
  Alasan aksen emas: memberi rasa mewah tanpa menambah warna. Dipakai hanya pada garis SVG,
  angka, dan titik status. Teks emas di latar putih memakai --gold-ink agar kontras 4.5:1.
*/
:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --mist: #f4f4f1;
  --line: #e4e4df;
  --mute: #5e5e5a;
  --gold: #d4b06a;
  --gold-ink: #7a5c1c;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
[x-cloak] { display: none !important; }

::selection { background: var(--ink); color: var(--gold); }

/* Fokus keyboard yang jelas */
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .dark-sec :focus-visible { outline-color: var(--gold); }

.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 1rem; }

/* Grain: tekstur film tipis di atas seluruh halaman */
.grain::after {
  content: ""; position: fixed; inset: -50%; pointer-events: none; z-index: 90; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); will-change: transform; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1f1f1f; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--gold); }
.btn-outline-light { border: 1px solid rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.magnetic { transition: transform .25s var(--ease); }

/* Navbar: satu-satunya elemen kaca di halaman */
.nav-shell { transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); border: 1px solid transparent; }
.nav-shell.scrolled { background: rgba(255,255,255,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav-link { position: relative; padding: .5rem .1rem; font-size: .92rem; font-weight: 500; color: var(--ink); }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* Hero */
.hero-glow { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(212,176,106,.16), transparent 70%),
    radial-gradient(40% 35% at 85% 30%, rgba(10,10,10,.05), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(-2%, 0, 0) scale(1); } to { transform: translate3d(2%, 2%, 0) scale(1.06); } }

.arcs { position: absolute; left: 50%; top: 4rem; width: min(1400px, 220vw); transform: translateX(-50%); pointer-events: none; }
.arcs circle { fill: none; stroke: var(--ink); stroke-opacity: .12; stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3.2s var(--ease) forwards; }
.arcs circle:nth-child(2) { animation-delay: .25s; stroke-opacity: .09; }
.arcs circle:nth-child(3) { animation-delay: .5s; stroke-opacity: .07; }
.arcs circle:nth-child(4) { animation-delay: .75s; stroke: var(--gold); stroke-opacity: .5; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.word { display: inline-block; margin-right: .26em; overflow: hidden; vertical-align: bottom; padding-bottom: .12em; margin-bottom: -.12em; }
.word > span { display: inline-block; transform: translateY(110%); animation: wordUp 1s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms + 200ms); }
@keyframes wordUp { to { transform: none; } }
.fade-in { opacity: 0; transform: translateY(16px); animation: fadeIn .9s var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes fadeIn { to { opacity: 1; transform: none; } }

/* Laptop */
.laptop-wrap { perspective: 1600px; }
.laptop { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); transform-style: preserve-3d; transition: transform .25s var(--ease); will-change: transform; }
.laptop-rise { opacity: 0; transform: translateY(60px) scale(.96); animation: rise 1.4s var(--ease) .9s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.laptop-screen { background: #050505; border-radius: 18px 18px 6px 6px; padding: 10px 10px 12px; box-shadow: 0 0 0 1px #2a2a2a, 0 50px 80px -30px rgba(0,0,0,.55); }
.laptop-base { height: 16px; margin: 0 -1%; background: linear-gradient(#cfcfca, #a9a9a4); border-radius: 0 0 18px 18px; position: relative; }
.laptop-base::after { content: ""; position: absolute; left: 50%; top: 0; width: 18%; height: 6px; transform: translateX(-50%); background: #8c8c87; border-radius: 0 0 8px 8px; }

/* UI mockup (gelap) */
.ui { background: #0e0e0e; border-radius: 10px; color: #d9d9d4; font-size: 11px; line-height: 1.35; overflow: hidden; }
.ui b { font-weight: 600; color: #f2f2ee; }
.ui .dim { color: #9a9a95; }
.ui-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid #222; }
.ui-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; border: 1px solid #333; color: #bdbdb8; font-size: 10px; }
.ui-chip.gold { border-color: rgba(212,176,106,.5); color: var(--gold); }
.ui-row { display: grid; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid #1c1c1c; }
.ui-bar-fill { height: 5px; border-radius: 4px; background: #2a2a2a; position: relative; overflow: hidden; }
.ui-bar-fill i { position: absolute; inset: 0; width: var(--w); background: linear-gradient(90deg, #555, var(--gold)); transform-origin: left; animation: grow 1.6s var(--ease) both; animation-delay: var(--dl, 1.8s); }
@keyframes grow { from { transform: scaleX(0); } }
.ui-col { flex: 1; border-radius: 3px 3px 0 0; background: #2a2a2a; transform-origin: bottom; animation: growY 1.4s var(--ease) both; animation-delay: var(--dl, 2.2s); }
.ui-col.gold { background: linear-gradient(#d4b06a, #6d5a33); }
@keyframes growY { from { transform: scaleY(0); } }
.ui-line { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s var(--ease) 1.8s forwards; }
.ui-line.alt { stroke: #6d6d68; animation-delay: 2.1s; }
.ui-side span { display: block; padding: 7px 14px; color: #9a9a95; }
.ui-side span.on { color: #fff; background: #1a1a1a; box-shadow: inset 2px 0 0 var(--gold); }

/* Kartu produk dengan spotlight */
.spot { position: relative; isolation: isolate; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease); }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(212,176,106,.22), transparent 55%); }
.spot:hover::before { opacity: 1; }
.spot:hover { transform: translateY(-6px); box-shadow: 0 40px 60px -35px rgba(0,0,0,.35); border-color: #cfcfc8; }
.spot-dark:hover { border-color: rgba(212,176,106,.5); }

/* Status */
.status { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.status-live { background: var(--ink); color: #fff; }
.status-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.status-beta { border: 1px solid var(--ink); color: var(--ink); }
.status-soon { border: 1px dashed #77776f; color: var(--mute); }

/* Marquee */
.marquee { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Reveal saat scroll */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* Layanan */
.svc-row { position: relative; transition: padding .5s var(--ease); }
.svc-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.svc-row::before { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); z-index: 1; }
.svc-row:hover::before { transform: scaleX(1); }
.svc-row:hover .svc-n { color: var(--gold-ink); transform: translateX(8px); }
.svc-row.is-on::before { transform: scaleX(1); }
.svc-row.is-on .svc-n { color: var(--gold-ink); transform: translateX(8px); }
.stage-ring { fill: none; stroke: #c9c9c1; stroke-width: 1; transition: stroke .6s var(--ease), fill .6s var(--ease), stroke-width .6s var(--ease); }
.stage-ring.on { stroke: var(--gold-ink); stroke-width: 2; fill: rgba(212,176,106,.16); }
.stage-dot { fill: #c9c9c1; transition: fill .6s var(--ease), transform .6s var(--ease); transform-box: fill-box; transform-origin: center; }
.stage-dot.on { fill: var(--gold-ink); transform: scale(1.5); }
.svc-n { transition: color .4s var(--ease), transform .5s var(--ease); }

/* Angka */
.dark-sec { background: var(--ink); color: #fff; }
.stat-num { font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff 30%, var(--gold) 130%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Timeline */
.tl-path { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); transition: stroke-dashoffset .2s linear; }
.tl-dot { transition: background .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease); }
.tl-item.on .tl-dot { background: var(--gold); border-color: var(--ink); transform: scale(1.25); }

/* Kursor cincin (hanya perangkat dengan mouse) */
.ring { position: fixed; left: 0; top: 0; width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid var(--gold-ink); border-radius: 50%; pointer-events: none; z-index: 95; opacity: 0; transition: opacity .3s, width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s; }
.ring.show { opacity: .8; }
.ring.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(212,176,106,.12); }
@media (hover: none), (pointer: coarse) { .ring { display: none; } }

/* Form */
.field { width: 100%; min-height: 48px; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.35); color: #fff; padding: .75rem 0; font-size: 1rem; border-radius: 0; transition: border-color .3s; }
.field::placeholder { color: #a3a39e; }
.field:hover { border-bottom-color: rgba(255,255,255,.7); }
.field:focus { outline: none; border-bottom-color: var(--gold); box-shadow: 0 1px 0 0 var(--gold); }
select.field option { color: #0a0a0a; }

/* Gerakan dikurangi: semua statis */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  .reveal, .fade-in, .laptop-rise { opacity: 1; transform: none; }
  .word > span { transform: none; }
  /* Marquee statis: tampilkan satu daftar saja. Salinan kedua (aria-hidden) hanya untuk loop mulus. */
  .marquee { animation: none; width: 100%; justify-content: center; }
  .marquee > [aria-hidden="true"] { display: none; }
  .marquee > div { flex-shrink: 1 !important; max-width: 100%; flex-wrap: wrap; justify-content: center; row-gap: .25rem; }
  .marquee > div > div:last-child > svg { display: none; }
  .grain::after { display: none; }
}

/* Rel status produk */
.rail-line { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease) .5s; }
.reveal.in .rail-line { stroke-dashoffset: 0; }
.rail-dot { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
.rail-live { background: var(--gold); border-color: var(--ink); }
.rail-beta { background: #fff; border-color: var(--ink); box-shadow: inset 0 0 0 4px var(--gold); }
.rail-soon { border-style: dashed; border-color: #77776f; }
.rail-planned { border-color: #b9b9b2; }
@media (prefers-reduced-motion: reduce) { .rail-line { stroke-dashoffset: 0; } }

/* Replika layar masuk Gudangku (warna milik produk, bukan palet situs) */
.gk { background: #151c26; }
.gk-left { background: #a5bfdb; color: #0f1b2a; }
.gk-left b { color: #0f1b2a; }
.gk-logo { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 7px; background: rgba(255,255,255,.4); color: #0f1b2a; }
.gk-title { font-weight: 800; font-size: 19px; line-height: 1.2; color: #0f1b2a; }
.gk-sub { font-size: 11.5px; line-height: 1.45; color: #1d3350; }
.gk-chip { display: block; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.4); color: #0f1b2a; font-size: 11.5px; font-weight: 600; }
.gk-right { background: #151c26; }
.gk-h { font-weight: 700; font-size: 17px; color: #e4ebf3; }
.gk-s { font-size: 11px; color: #9fb0c4; }
.gk-l { font-size: 10.5px; font-weight: 600; color: #9fb0c4; }
.gk-input { height: 32px; margin-top: 4px; border-radius: 7px; background: #1d2733; border: 1px solid #2b3a4b; }
.gk-btn { height: 34px; border-radius: 7px; background: #8aa8cc; color: #0f1b2a; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Mockup layar produk: dirancang di ukuran asli lalu diskalakan agar proporsional */
.fit { position: relative; overflow: hidden; aspect-ratio: var(--ar); background: #fff; }
.fit-in { position: absolute; left: 0; top: 0; width: calc(var(--w) * 1px); height: calc(var(--h) * 1px); transform: scale(var(--s, .4)); transform-origin: 0 0; overflow: hidden; }
.shot { font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 14px; line-height: 1.4; color: #1f2937; background: #f5f7fa; }
.shot .card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; }
.shot .nav-h { padding: 6px 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #6b7280; }
.shot .nav-i { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: #374151; }
.shot .nav-i::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: #8a9bb0; opacity: .7; }
.shot .nav-i.on { background: var(--acc-bg); color: var(--acc-ink); font-weight: 600; }

/* Demo laptop: layar berpindah dan kursor mengklik */
.demo-stage { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: #000; }
.demo-screen { position: absolute; inset: 0; opacity: 0; transform: translateX(5%) scale(1.02); transition: opacity .7s var(--ease), transform .9s var(--ease); pointer-events: none; }
.demo-screen > .fit { position: absolute; inset: 0; aspect-ratio: auto; border: 0; border-radius: 0; margin: 0; }
.demo-screen.is-on { opacity: 1; transform: none; z-index: 2; }
.demo-screen.is-out { opacity: 0; transform: translateX(-5%) scale(.98); z-index: 1; }
.demo-cursor { position: absolute; z-index: 5; width: 0; height: 0; opacity: 0; transition: left 1.1s cubic-bezier(.4, .1, .2, 1), top 1.1s cubic-bezier(.4, .1, .2, 1), opacity .3s; pointer-events: none; }
.demo-cursor.show { opacity: 1; }
.demo-cursor.instant { transition: opacity .3s; }
.demo-cursor svg { position: absolute; left: -2px; top: -2px; filter: drop-shadow(0 3px 5px rgba(0,0,0,.35)); transition: transform .15s; transform-origin: 2px 2px; }
.demo-cursor.click svg { transform: scale(.82); }
.demo-ripple { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold); background: rgba(212,176,106,.25); opacity: 0; transform: scale(.2); }
.demo-cursor.click .demo-ripple { animation: ripple .7s var(--ease) forwards; }
@keyframes ripple { 0% { opacity: .9; transform: scale(.2); } 100% { opacity: 0; transform: scale(1.4); } }
.demo-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .9rem; font-weight: 600; color: var(--ink); transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.demo-pill:hover { border-color: var(--ink); }
.demo-pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.demo-toggle { min-width: 44px; padding: 0; }
@media (prefers-reduced-motion: reduce) { .demo-cursor { display: none; } .demo-screen { transform: none; } }

/* Peta modul: satu aplikasi terpusat */
.map-grid { border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.map-cell { display: flex; align-items: center; justify-content: center; aspect-ratio: 100 / 104; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.map-tile { position: relative; display: flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 16px -8px rgba(0,0,0,.25); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.map-tile svg { width: 60%; height: 60%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
button:hover > .map-tile { transform: translateY(-4px); box-shadow: 0 16px 24px -10px rgba(0,0,0,.35); }
.map-tile.on { border-color: var(--ink); box-shadow: 0 0 0 3px var(--gold), 0 16px 24px -10px rgba(0,0,0,.35); }
.map-tile.st-planned { border-style: dashed; border-color: #b5b5ad; }
.map-tile.ghost { border-style: dashed; border-color: #cfcfc8; box-shadow: none; color: #a8a8a1; background: transparent; }
.map-cell > * { position: relative; }
.map-label { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 8px; width: max-content; font-size: 12px; line-height: 1.2; color: var(--mute); text-align: center; max-width: 92px; }
.map-dot { position: absolute; right: -4px; top: -4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: #fff; z-index: 2; }
.map-dot.d-live { background: var(--gold); box-shadow: 0 0 0 1px var(--ink); }
.map-dot.d-beta { background: #fff; box-shadow: inset 0 0 0 3px var(--gold), 0 0 0 1px var(--ink); }
.map-dot.d-planned { display: none; }
.hub { position: relative; display: flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 18px; background: var(--ink); box-shadow: 0 14px 30px -10px rgba(0,0,0,.6); }
.hub::after { content: ""; position: absolute; inset: -10px; border-radius: 26px; border: 1px solid var(--gold); opacity: 0; animation: hubPulse 3s ease-out infinite; }
@keyframes hubPulse { 0% { opacity: .7; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.25); } }
.flow-base, .flow, .flow-plan { fill: none; stroke-linejoin: round; }
.flow-base { stroke: #e0e0d9; stroke-width: 2; }
.flow { stroke: var(--gold-ink); stroke-width: 2; stroke-dasharray: 6 12; animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.flow-plan { stroke: #c9c9c1; stroke-width: 1.5; stroke-dasharray: 3 7; }
@media (prefers-reduced-motion: reduce) { .hub::after, .flow { animation: none; } }

/* Validasi form */
.field.invalid { border-bottom-color: #ffb4a8; }
.field.invalid:focus { border-bottom-color: #ffb4a8; box-shadow: 0 1px 0 0 #ffb4a8; }
.field-error { margin-top: .35rem; font-size: .85rem; color: #ffb4a8; }
