/* Product-page layout: full-bleed bands (white / light grey / black) with a centred 1120px column,
   large tight headlines, pill buttons, rounded tiles. Renders have white grounds, so figures sit on white tiles. */
:root {
  --bg: #ffffff;
  --alt: #f5f5f7;
  --tile: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --link: #0066cc;
  --accent: #0071e3;
  --accent-ink: #ffffff;
  --hot: #bf4800;
  --dark: #000000;
  --dark-ink: #f5f5f7;
  --dark-muted: #a1a1a6;
  --code-bg: #f5f5f7;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1120px;
  --r-tile: 28px;
  --r-small: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --alt: #161617; --tile: #1d1d1f; --ink: #f5f5f7; --muted: #a1a1a6; --line: #424245;
    --link: #2997ff; --accent: #0071e3; --hot: #ff9f0a; --dark: #161617; --code-bg: #1d1d1f; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --alt: #161617; --tile: #1d1d1f; --ink: #f5f5f7; --muted: #a1a1a6; --line: #424245;
  --link: #2997ff; --accent: #0071e3; --hot: #ff9f0a; --dark: #161617; --code-bg: #1d1d1f; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.47; letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
html[data-lang="en"] body [lang="id"], html[data-lang="id"] body [lang="en"] { display: none !important; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.8rem); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); line-height: 1.08; letter-spacing: -0.025em; }
h3 { font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.75rem); line-height: 1.15; letter-spacing: -0.018em; font-weight: 650; }
p { margin: 0; }
code, kbd { font-family: var(--mono); font-size: 0.88em; letter-spacing: 0; }
:not(pre) > code { background: var(--code-bg); padding: 0.1em 0.4em; border-radius: 6px; }
pre { margin: 0; background: var(--code-bg); border-radius: var(--r-small); padding: 18px 20px; overflow-x: auto; font-size: 0.85rem; line-height: 1.6; }
.band.dark pre, .band.alt pre { background: var(--tile); }

/* header: translucent product bar */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px)); }
.site-head .wrap { display: flex; align-items: center; gap: 8px 22px; min-height: 52px; flex-wrap: wrap; padding-block: 6px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 650; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 24px; height: 24px; flex: none; }
.brand small { font-weight: 400; font-size: 0.75rem; color: var(--muted); letter-spacing: 0; }
.nav { display: flex; gap: 4px 22px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); opacity: 0.8; font-size: 0.78rem; letter-spacing: -0.005em; }
.nav a:hover { opacity: 1; text-decoration: none; color: var(--link); }
.nav a[aria-current="page"] { opacity: 1; color: var(--muted); cursor: default; }
.lang { display: inline-flex; background: var(--alt); border-radius: 999px; padding: 2px; font-size: 0.72rem; }
.lang button { appearance: none; border: 0; background: transparent; color: var(--muted); padding: 3px 10px; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600; }
.lang button[aria-pressed="true"] { background: var(--tile); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / 0.14); }

/* bands: every top-level section is a full-bleed band with a centred column */
main { display: block; }
.band { padding: clamp(64px, 9vw, 120px) max(22px, calc((100% - var(--wrap)) / 2)); display: grid; gap: clamp(24px, 3vw, 40px); }
.band.alt { background: var(--alt); }
.band.dark { background: var(--dark); color: var(--dark-ink); --muted: var(--dark-muted); --link: #2997ff; --line: #424245; --tile: #1d1d1f; }
.band.tight { padding-top: clamp(40px, 5vw, 64px); }
.center { text-align: center; justify-items: center; }
.center .lede, .center .prose { margin-inline: auto; }

.eyebrow { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.4rem); font-weight: 600; letter-spacing: -0.015em; color: var(--muted); }
.eyebrow.hot { color: var(--hot); }
.lede { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); line-height: 1.38; font-weight: 500; letter-spacing: -0.016em; color: var(--muted); max-width: 46ch; }
.prose { display: grid; gap: 14px; max-width: 66ch; }
.muted { color: var(--muted); }
.note { color: var(--muted); font-size: 0.82rem; max-width: 80ch; }
.head { display: grid; gap: 14px; }

/* hero */
.hero { gap: 18px; padding-bottom: 0; }
.hero h1 { max-width: 16ch; }
.hero .shot { width: min(100%, 1000px); margin-top: clamp(8px, 2vw, 24px); }
.actions { display: flex; gap: 14px 22px; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 22px; border-radius: 980px; border: 1px solid var(--accent);
  color: var(--link); background: transparent; font: inherit; font-size: 1rem; font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.more { font-size: 1.05rem; font-weight: 500; }
.more::after { content: " ›"; }

/* tiles */
.tile { background: var(--tile); border-radius: var(--r-tile); padding: clamp(26px, 3.4vw, 44px); display: grid; gap: 12px; align-content: start; min-width: 0; color: inherit; }
a.tile:hover { text-decoration: none; transform: scale(1.012); }
a.tile { transition: transform 0.35s cubic-bezier(.2,.7,.2,1); }
.tile p { color: var(--muted); }
.tile .more { margin-top: 4px; color: var(--link); }
@media (prefers-reduced-motion: reduce) { a.tile { transition: none; } a.tile:hover { transform: none; } }

.bench { background: #ffffff; border-radius: var(--r-tile); overflow: hidden; }
.bench img { width: 100%; }
figure { margin: 0; display: grid; gap: 12px; min-width: 0; }
figcaption { font-size: 0.88rem; color: var(--muted); max-width: 70ch; }
figcaption b { color: var(--ink); font-weight: 600; }
.band.dark figcaption b { color: var(--dark-ink); }

/* highlights */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; width: 100%; }
.spec { background: var(--tile); border-radius: var(--r-small); padding: 26px 24px; display: grid; gap: 6px; align-content: start; text-align: left; }
.spec .v { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
  background: linear-gradient(90deg, #1a7f4b, #0071e3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spec .k { font-size: 0.95rem; color: var(--muted); }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.two.prosey { gap: clamp(28px, 5vw, 64px); align-items: start; }

.credit { display: grid; gap: 10px; max-width: 70ch; }

/* 3D viewer */
.viewer { display: grid; border-radius: var(--r-tile); overflow: hidden; background: #ffffff; width: 100%; }
model-viewer { width: 100%; height: clamp(380px, 64vh, 680px); background: #ffffff; --poster-color: #ffffff; --progress-bar-color: #0071e3; }
.viewer-bar { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; padding: 14px 22px 18px; background: #ffffff; color: #1d1d1f; }
.viewer-bar label { font-size: 0.82rem; color: #6e6e73; display: flex; align-items: center; gap: 12px; flex: 1 1 300px; min-width: 0; }
.viewer-bar input[type="range"] { flex: 1; min-width: 120px; accent-color: #0071e3; }
.viewer-bar .btn { padding: 7px 16px; font-size: 0.85rem; color: #0066cc; border-color: #0071e3; }
.viewer-bar .btn[aria-pressed="true"], .viewer-bar #play { background: #0071e3; color: #fff; }
.viewer-fallback { display: block; width: 100%; max-height: 80vh; object-fit: contain; background: #fff; }
.viewer.fallback .viewer-bar { display: none; }
.viewer-bar .hint { font-size: 0.8rem; color: #6e6e73; }

/* tables: spec-sheet style */
.tablewrap { overflow-x: auto; background: var(--tile); border-radius: var(--r-tile); padding: clamp(8px, 2vw, 20px) clamp(18px, 3vw, 36px); width: 100%; }
table { border-collapse: collapse; width: 100%; min-width: 680px; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; font-size: 0.78rem; color: var(--muted); }
td.qty { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
td.price { white-space: nowrap; font-variant-numeric: tabular-nums; }
td:first-child { font-weight: 600; min-width: 180px; }
tr.group td { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; padding-top: 34px; border-bottom-color: var(--ink); }
tbody tr:last-child td { border-bottom: 0; }
tfoot td { font-weight: 700; border-bottom: 0; padding-top: 22px; }

.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.figs .wide { grid-column: 1 / -1; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: step; }
.steps > li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(16px, 3vw, 40px); align-items: center; counter-increment: step;
  background: var(--tile); border-radius: var(--r-tile); padding: clamp(22px, 3vw, 36px); }
.steps > li .txt { display: grid; gap: 10px; }
.steps > li .txt::before { content: "Step " counter(step); font-size: 0.95rem; font-weight: 600; color: var(--hot); }
html[data-lang="id"] .steps > li .txt::before { content: "Langkah " counter(step); }
.steps > li .txt p { color: var(--muted); }
.steps ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; color: var(--muted); font-size: 0.92rem; }
.steps .bench { border-radius: var(--r-small); }

ul.list { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }

.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; width: 100%; }
.dl { display: grid; gap: 4px; padding: 22px 24px; background: var(--tile); border-radius: var(--r-small); color: var(--ink); min-width: 0; }
.dl:hover { text-decoration: none; box-shadow: 0 6px 24px rgb(0 0 0 / 0.08); }
.dl b { font-weight: 600; }
.dl span { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); overflow-wrap: anywhere; }

.refs { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; width: 100%; }
.refs li { display: grid; gap: 8px; background: var(--tile); border-radius: var(--r-small); padding: 24px 28px; }
.refs li b { font-weight: 600; font-size: 1.08rem; letter-spacing: -0.015em; }
.refs .cite { color: var(--muted); font-size: 0.9rem; }

.site-foot { background: var(--alt); border-top: 1px solid var(--line); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 20px 28px; color: var(--muted); font-size: 0.75rem; }

@media (max-width: 860px) {
  .two, .steps > li { grid-template-columns: minmax(0, 1fr); }
  .three { grid-template-columns: minmax(0, 1fr); }
  .figs { grid-template-columns: minmax(0, 1fr); }
  .nav { margin-left: 0; width: 100%; gap: 4px 18px; }
}

/* skip link */
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 8px 14px; background: var(--accent); color: #fff; border-radius: 980px; }
.skip:focus { top: 10px; }
.band:not(.alt):not(.dark) .bench, .band:not(.alt):not(.dark) .viewer { box-shadow: 0 0 0 1px var(--line); }
td.price { white-space: normal; min-width: 150px; font-variant-numeric: tabular-nums; }
td.price small { display: block; color: var(--muted); font-size: 0.78rem; line-height: 1.35; margin-top: 4px; }

/* scroll motion */
.js .reveal { opacity: 0; transform: translateY(42px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.hero h1, .hero .lede, .hero .actions, .hero .eyebrow { will-change: transform, opacity; }
.hero .shot { will-change: transform; transform-origin: 50% 30%; }
.scrub-intro { padding-bottom: 0; }
.scrub { position: relative; height: 420vh; background: var(--dark); color: var(--dark-ink); }
.scrub-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; }
.scrub canvas.seq { display: block; width: 100%; height: 100%; min-height: 0; background: #000; }
.scrub-stage:has(canvas.seq) { padding-top: 56px; }
.caps { position: relative; min-height: 5.5em; padding: 0 22px clamp(28px, 6vh, 64px); text-align: center; }
.cap { position: absolute; inset: 0 22px auto; margin: 0 auto; max-width: 30ch; font-size: clamp(1.35rem, 1rem + 1.6vw, 2.3rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15;
  color: var(--dark-ink); opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.cap.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .cap { transition: none; }
}
.site-head { transition: background-color 0.3s ease, border-color 0.3s ease; }
.site-head.on-dark { --ink: #f5f5f7; --muted: #a1a1a6; --alt: #2c2c2e; --tile: #3a3a3c; background: rgb(22 22 23 / 0.8); border-bottom-color: rgb(255 255 255 / 0.08); }
