/* Layout: satu kolom, demo jadi panggung utama tepat di bawah headline.
   Tema: dark elegant. Hitam tinta, teks gading, aksen champagne tipis, bara oranye cuma pas ctarr. */
:root {
  --bg: #0b0b0c;
  --bg-2: #111113;
  --surface: #151518;
  --fg: #ece8e1;
  --muted: #8c877e;
  --line: #24242a;
  --accent: #d4b98c;
  --ember: #e2775a;

  /* dibaca sama panggung pecut */
  --stage-1: #1a1a1e;
  --stage-2: #0a0a0b;
  --stage-line: rgba(236, 232, 225, 0.05);
  --robot: #1b1b1f;
  --robot-line: #6f6a62;
  --robot-screen: #0a0a0b;
  --robot-eye: #e9dcc0;
  --ring: 236, 232, 225;

  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1080px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--fg); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 400; }
h2 { font: 700 clamp(32px, 4.4vw, 50px)/1.05 var(--display); letter-spacing: -0.03em; }
p { margin: 0; }
main > section { width: min(var(--wrap), calc(100% - 32px)); margin-inline: auto; }
.eyebrow { font: 500 11px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.section-lede { color: var(--muted); max-width: 52ch; margin-top: 14px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  display: flex; align-items: center; gap: 28px;
  padding: 14px max(16px, calc((100% - var(--wrap)) / 2));
  background: rgba(11, 11, 12, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.wordmark { font: 800 24px/1 var(--display); letter-spacing: -0.04em; color: var(--fg); text-decoration: none; }
.nav nav { display: flex; gap: 24px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav nav a:hover { color: var(--fg); }
.lang { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 6px 10px; font: 500 12px var(--mono); cursor: pointer; }
.lang:hover { color: var(--fg); border-color: var(--muted); }
@media (max-width: 620px) { .nav nav { display: none; } .nav .lang { margin-left: auto; } }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 15px/1 var(--body); text-decoration: none;
  color: #0b0b0c; background: var(--fg); border: 1px solid var(--fg);
  padding: 14px 22px; border-radius: 999px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn:focus-visible, .chip:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { background: transparent; border-color: var(--muted); color: var(--fg); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(64px, 11vw, 132px) 48px; }
.hero h1 { font: 800 clamp(58px, 11vw, 144px)/0.9 var(--display); letter-spacing: -0.055em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(17px, 1.8vw, 19px); color: var(--muted); max-width: 46ch; margin-top: 28px; }

/* ---------- Demo ---------- */
.demo {
  position: relative; height: clamp(440px, 62vh, 620px);
  border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  background: var(--stage-2);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 40px 100px -40px rgba(212, 185, 140, 0.12);
}
#stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: none; touch-action: none; }
.demo-top { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  pointer-events: auto; font: 500 12px/1 var(--body); color: var(--muted);
  background: rgba(17, 17, 19, 0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.chip:hover { color: var(--fg); border-color: var(--muted); }
.chip[aria-pressed="true"] { color: var(--fg); border-color: var(--accent); }
.demo.is-future { border-color: rgba(77, 227, 255, 0.35); box-shadow: 0 0 40px rgba(77, 227, 255, 0.12); }
.demo.is-future .chip[aria-pressed="true"] { border-color: #4de3ff; }
.demo-hint {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(320px, calc(100% - 32px)); text-align: center; pointer-events: none;
  color: var(--muted); font-size: 14px; transition: opacity 0.5s;
}
.demo-hint strong { display: block; font: 700 24px/1.2 var(--display); letter-spacing: -0.02em; color: var(--fg); margin-bottom: 6px; }
.bubble {
  position: absolute; max-width: 220px; padding: 9px 12px; border-radius: 12px 12px 12px 3px;
  background: var(--fg); color: #0b0b0c; font: 500 13px/1.4 var(--body); pointer-events: none;
  transform: translate(-50%, -100%); opacity: 0; transition: opacity 0.2s;
}
.bubble.on { opacity: 1; }
.demo-hud {
  position: absolute; left: 18px; right: 18px; bottom: 16px;
  display: flex; flex-wrap: wrap; align-items: end; gap: 8px 26px; pointer-events: none;
  font: 400 11px var(--mono); letter-spacing: 0.06em; color: var(--muted); font-variant-numeric: tabular-nums;
}
.stat b { display: block; font: 700 24px/1.1 var(--display); letter-spacing: -0.02em; color: var(--fg); }
.mach { flex: 1 1 200px; min-width: 0; max-width: 340px; }
.bar { position: relative; height: 2px; background: var(--line); margin-top: 8px; }
.bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); }
.bar::after { content: ""; position: absolute; top: -4px; bottom: -4px; left: 66.6%; width: 1px; background: var(--fg); opacity: 0.6; }
@media (max-width: 520px) { .stat b { font-size: 21px; } .demo-hud { gap: 6px 16px; } }

/* ---------- Fisika ---------- */
.physics { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: end; padding-block: clamp(88px, 12vw, 148px) 0; }
.physics-copy { display: grid; gap: 18px; min-width: 0; }
.physics-copy .eyebrow { margin-bottom: -4px; }
.physics-copy p:not(.eyebrow) { color: var(--muted); max-width: 52ch; }
.spec { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--line); }
.spec div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec div:nth-child(odd) { padding-right: 16px; }
.spec dt { font: 400 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.spec dd { margin: 8px 0 0; font: 700 34px/1 var(--display); letter-spacing: -0.03em; color: var(--fg); font-variant-numeric: tabular-nums; }
.spec dd span { font: 400 12px var(--mono); color: var(--muted); margin-left: 4px; }
@media (max-width: 820px) { .physics { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Varian ---------- */
.variants { padding-block: clamp(88px, 12vw, 148px) 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1px; margin-top: 40px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; background: var(--bg); padding: 22px 20px; transition: background 0.2s; }
.card:hover { background: var(--bg-2); }
.card canvas { width: 100%; height: 70px; display: block; }
.card h3 { font: 700 22px/1.1 var(--display); letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.55; flex: 1; }
.card .chip { align-self: flex-start; background: transparent; }

/* ---------- Cara pakai ---------- */
.how { padding-block: clamp(88px, 12vw, 148px) 0; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { display: grid; gap: 14px; align-content: start; padding-top: 22px; border-top: 1px solid var(--line); }
.steps p { color: var(--muted); font-size: 15px; }
.keys { display: flex; gap: 6px; }
kbd {
  display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px;
  font: 400 14px var(--mono); color: var(--fg); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.5);
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

@media (prefers-reduced-motion: reduce) {  }

/* ---------- Download ---------- */
.download {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end;
  margin-top: clamp(88px, 12vw, 148px); padding: clamp(28px, 5vw, 56px);
  background: radial-gradient(120% 140% at 0% 0%, rgba(212, 185, 140, 0.08), transparent 60%), var(--bg-2);
  border: 1px solid var(--line); border-radius: 20px;
}
.download > div { min-width: 0; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; color: var(--muted); font-size: 14px; }
.notes li { padding-left: 16px; position: relative; }
.notes li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 5px; height: 1px; background: var(--accent); }
@media (max-width: 820px) { .download { grid-template-columns: 1fr; align-items: start; } }


/* ---------- Footer ---------- */
/* ---------- Open source ---------- */
.oss { padding-block: clamp(72px, 10vw, 120px) clamp(72px, 9vw, 112px); border-top: 1px solid var(--line); }
.oss-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-top: 40px; }
.oss-card { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); min-width: 0; }
.oss-card[hidden] { display: none; }
.oss-card h3 { font: 700 22px/1.1 var(--display); letter-spacing: -0.02em; }
.oss-card p { color: var(--muted); font-size: 15px; }
.oss-card .cta { margin-top: 8px; }
.btn .count { font: 500 12px var(--mono); opacity: 0.7; }
.btn .count:empty { display: none; }
.avatars { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.avatars a.av { display: block; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; border: 1px solid var(--line); transition: transform 0.15s, border-color 0.15s; }
.avatars a.av:hover { transform: translateY(-2px); border-color: var(--accent); }
.avatars img { width: 100%; height: 100%; display: block; }
.avatars .more { font-size: 13px; color: var(--muted); margin-left: 4px; }

.foot {
  width: min(var(--wrap), calc(100% - 32px)); margin: 72px auto 0;
  padding-block: 28px calc(env(safe-area-inset-bottom, 0px) + 28px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
.foot .wordmark { font-size: 22px; }
.foot a { margin-left: auto; color: var(--muted); }

code { font: 400 0.9em var(--mono); color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }

/* ---------- Cara install ---------- */
.install { padding-block: clamp(72px, 10vw, 120px) clamp(72px, 9vw, 112px); }
.install-steps { list-style: none; counter-reset: step; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 760px; }
.install-steps li { counter-increment: step; position: relative; padding: 22px 0 22px 56px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.install-steps li:last-child { border-bottom: 1px solid var(--line); }
.install-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 20px;
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); font: 700 16px var(--display); color: var(--accent);
}
.install-steps h3 { font: 500 16px var(--body); }
.install-steps p { color: var(--muted); font-size: 15px; }
.install-steps p.small { font-size: 13px; }
.install-steps strong, .install-alt strong { color: var(--fg); font-weight: 500; }
.install-steps kbd { min-width: 28px; height: 26px; font-size: 12px; margin-right: 2px; padding: 0 6px; vertical-align: middle; }
.cmd {
  display: flex; align-items: center; gap: 10px; margin-block: 4px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 10px 16px;
}
.cmd code { flex: 1; min-width: 0; background: none; border: 0; padding: 0; font-size: 14px; color: var(--accent); overflow-x: auto; white-space: nowrap; }
.cmd .chip { flex: none; color: var(--fg); }
.install-alt { color: var(--muted); font-size: 14px; margin-top: 20px; max-width: 62ch; }
@media (max-width: 520px) { .cmd { align-items: start; } .cmd code { white-space: normal; overflow-wrap: anywhere; } }

/* ---------- Download per OS ---------- */
.dl .btn span { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.dl .btn.is-you { background: var(--fg); color: #0b0b0c; border-color: var(--fg); }
.dl .btn.is-you span { color: #4a4740; }
.dl .btn.is-you:hover { background: var(--accent); border-color: var(--accent); }
.dl-count { margin-top: 18px; font: 500 13px var(--mono); color: var(--muted); letter-spacing: 0.02em; }
.dl-count b { color: var(--fg); font-weight: 600; }
.dl-count[hidden] { display: none; }
.dl-meta { margin-top: 16px; font-size: 13px; color: var(--muted); }
.dl-meta a { color: var(--muted); }
.notes strong { color: var(--fg); font-weight: 500; }

.install-other { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 48px; max-width: 900px; }
.install-other > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; padding-top: 20px; border-top: 1px solid var(--line); min-width: 0; }
.install-other h3 { font: 700 24px/1.1 var(--display); letter-spacing: -0.02em; }
.install-other p { color: var(--muted); font-size: 15px; }
.install-other strong { color: var(--fg); font-weight: 500; }
.install-other kbd { min-width: 28px; height: 26px; font-size: 12px; margin-right: 2px; padding: 0 6px; vertical-align: middle; }
@media (max-width: 760px) { .install-other { grid-template-columns: minmax(0, 1fr); } }
