/* site.css — landing PIPWORK: lembar spec pabrik terang, tinta di atas tulang */
:root {
  --bone: #F4F0E6;
  --paper: #FBF8F1;
  --ink: #1A1917;
  --ink-soft: #55524B;
  --line: #D9D2C2;
  --cobalt: #2B4BD8;
  --hazard: #F5B50A;
  --stamp: #D8402B;
  --mint: #2E9E6B;
  --font-head: "Archivo", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-mono);
}
a { color: inherit; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 60px;
  display: flex; align-items: center; gap: 22px;
  padding: 0 20px;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.emblem { width: 32px; height: 32px; }
.wordmark { font-family: var(--font-head); font-weight: 900; font-size: 16px; letter-spacing: 2px; }
.nav-links { display: flex; gap: 18px; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-size: 11.5px; font-weight: 700; letter-spacing: 1px;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.nav-links a:hover { border-color: var(--cobalt); color: var(--cobalt); }
.chip {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1px;
  padding: 5px 10px; border: 1.5px solid var(--ink);
  background: var(--hazard); white-space: nowrap;
}
.chip-ghost { background: transparent; border-color: var(--line); color: var(--ink-soft); }
.chip-ca { cursor: default; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-grid {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  padding: 130px 20px 220px;
  pointer-events: none;
}
.hero-copy {
  max-width: 580px; pointer-events: auto;
  background: rgba(251, 248, 241, 0.93);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(26, 25, 23, 0.16);
  padding: 30px 32px 26px;
}
.kicker {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  background: var(--ink); color: var(--hazard); padding: 6px 12px; margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(44px, 7vw, 84px); line-height: 0.95; letter-spacing: -1px;
}
.lede { margin: 22px 0 26px; font-size: 15px; line-height: 1.7; color: var(--ink-soft); max-width: 470px; }
.lede b { color: var(--ink); }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: 1px;
  padding: 14px 22px; border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(26,25,23,0.2);
  transition: transform 0.07s ease, box-shadow 0.07s ease;
}
.btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 rgba(26,25,23,0.2); }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-ghost { background: var(--paper); color: var(--ink); }

/* kartu CA */
.ca-card {
  display: inline-flex; flex-direction: column; gap: 4px;
  border: 2px solid var(--ink); background: var(--paper);
  padding: 12px 16px; box-shadow: 4px 4px 0 rgba(26,25,23,0.14);
  position: relative;
}
.ca-label { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--stamp); }
.ca-value { font-size: 13px; font-weight: 700; letter-spacing: 0.5px; word-break: break-all; }
.ca-note { font-size: 10.5px; color: var(--ink-soft); margin-top: 4px; }
.ca-card.big { padding: 22px 24px; width: 100%; }
.ca-card.big .ca-value { font-size: 16px; }
.ca-copy { position: absolute; right: 10px; top: 10px; font-size: 10px; padding: 4px 8px;
  border: 1.5px solid var(--ink); background: var(--hazard); cursor: pointer; font-weight: 700; }
.ca-explorer {
  margin-top: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: 1px;
  color: var(--cobalt); text-decoration: none; border-bottom: 1.5px solid var(--cobalt);
  align-self: flex-start;
}

/* dock scrub di dasar hero */
.scrub-dock {
  position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: min(680px, calc(100vw - 32px));
  background: var(--paper); border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(26,25,23,0.18);
  padding: 14px 18px;
}
.scrub-readout {
  display: flex; justify-content: space-between; font-size: 13px; font-weight: 700;
  margin-bottom: 8px;
}
#scrub-val { color: var(--cobalt); }
#scrub { width: 100%; accent-color: var(--cobalt); height: 28px; }
.scrub-hint { margin-top: 6px; font-size: 10px; letter-spacing: 1.5px; color: var(--ink-soft); text-align: center; }

/* ---------- section umum ---------- */
.sec { max-width: 1100px; margin: 0 auto; padding: 90px 20px; }
.sec-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.sec-head h2 {
  font-family: var(--font-head); font-weight: 900; font-size: clamp(30px, 4.5vw, 48px);
  letter-spacing: -0.5px;
}
.sec-sub { color: var(--ink-soft); font-size: 14px; line-height: 1.7; max-width: 640px; margin-bottom: 30px; }

/* manifest */
.sec-manifest { border-top: 2px solid var(--ink); }
.manifest-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px; margin-bottom: 26px;
}
.m-cell {
  border: 2px solid var(--ink); background: var(--paper); padding: 10px;
  text-align: center; box-shadow: 3px 3px 0 rgba(26,25,23,0.12);
}
.m-cell .m-idx { display: block; font-size: 10px; letter-spacing: 1.5px; color: var(--ink-soft); }
.m-cell .m-dice { display: block; font-family: var(--font-head); font-weight: 900; font-size: 24px; margin: 4px 0 2px; }
.m-cell .m-sum { display: block; font-size: 11px; color: var(--cobalt); font-weight: 700; }
.m-cell.hot { background: #FFF3D6; border-color: var(--stamp); }
.manifest-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 1.5px dashed var(--line); padding-top: 20px;
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
}

/* how */
.sec-how { background: var(--paper); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); max-width: none; }
.sec-how .sec-head, .how-grid { max-width: 1100px; margin-left: auto; margin-right: auto; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 28px; }
.spec-card {
  border: 2px solid var(--ink); background: var(--bone); padding: 20px;
  box-shadow: 4px 4px 0 rgba(26,25,23,0.14); position: relative;
}
.spec-no {
  position: absolute; top: -14px; left: 14px;
  background: var(--hazard); border: 2px solid var(--ink);
  font-weight: 700; font-size: 12px; padding: 3px 9px;
}
.spec-card h3 { font-family: var(--font-head); font-size: 17px; letter-spacing: 1px; margin: 8px 0 10px; }
.spec-card p { font-size: 12.5px; line-height: 1.65; color: var(--ink-soft); }
.spec-card b { color: var(--ink); }

/* floor */
.district-table { display: grid; gap: 8px; margin-bottom: 20px; }
.d-row {
  display: grid; grid-template-columns: 20px 130px 1fr auto; gap: 12px; align-items: center;
  border: 2px solid var(--ink); background: var(--paper); padding: 12px 16px;
  font-size: 13px; box-shadow: 3px 3px 0 rgba(26,25,23,0.1);
}
.d-row b { font-family: var(--font-head); letter-spacing: 1px; }
.d-row span:last-child { font-weight: 700; }
.d-dot { width: 14px; height: 14px; background: var(--d); border: 2px solid var(--ink); }
.hazard-strip {
  display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between;
  border: 2px dashed var(--stamp); color: var(--stamp);
  font-size: 11.5px; font-weight: 700; letter-spacing: 1px;
  padding: 12px 18px;
}

/* token */
.sec-token { border-top: 2px solid var(--ink); }
.token-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: start; }
.token-copy p { font-size: 14px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 18px; }
.token-copy b { color: var(--ink); }
.token-list { list-style: none; display: grid; gap: 10px; }
.token-list li {
  font-size: 12.5px; line-height: 1.6; color: var(--ink-soft);
  border-left: 4px solid var(--hazard); padding-left: 12px;
}
.token-list b { color: var(--ink); }

/* footer */
.footer {
  border-top: 2px solid var(--ink); background: var(--paper);
  padding: 40px 20px 50px; text-align: center;
}
.foot-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px; }
.foot-links { display: flex; gap: 22px; justify-content: center; margin-bottom: 18px; flex-wrap: wrap; }
.foot-links a { font-size: 11.5px; font-weight: 700; letter-spacing: 1px; }
.foot-note { font-size: 11px; color: var(--ink-soft); max-width: 460px; margin: 0 auto; line-height: 1.7; }

/* ---------- maskot Pip ---------- */
.hero-copy { position: relative; }
.hero-pip {
  position: absolute; right: -26px; bottom: -34px;
  width: 118px; height: 118px; transform: rotate(5deg);
  filter: drop-shadow(3px 4px 0 rgba(26,25,23,0.18));
}
.spec-pip { width: 72px; height: 72px; display: block; margin: 4px 0 2px; }
.token-side { display: flex; flex-direction: column; gap: 0; align-items: center; }
.token-pip { width: 130px; height: 130px; margin-top: -8px; }

/* ---------- strip marquee ---------- */
.marquee {
  overflow: hidden; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  background: var(--hazard); padding: 9px 0; position: relative; z-index: 4;
}
.marquee-track {
  display: inline-block; white-space: nowrap;
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  animation: marquee 28s linear infinite;
}
.marquee-track span { margin: 0 18px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- demo papan live ---------- */
.chip-live { background: var(--stamp); color: #fff; border-color: var(--ink); }
.demo-shell {
  border: 2px solid var(--ink); background: var(--paper);
  box-shadow: 6px 6px 0 rgba(26,25,23,0.16);
  margin-bottom: 26px;
}
.demo-status {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding: 10px 12px; border-bottom: 2px solid var(--ink);
}
.demo-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  border: 1.5px solid var(--line); padding: 5px 9px; background: var(--bone);
}
.demo-chip i { width: 10px; height: 10px; border: 1.5px solid var(--ink); display: inline-block; }
.demo-chip.on { border-color: var(--ink); background: #FFF6DE; }
.demo-chip.turn { margin-left: auto; border-color: var(--ink); background: var(--hazard); }
.demo-wrap { position: relative; height: 480px; }
.demo-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.demo-ticker {
  border-top: 2px solid var(--ink);
  padding: 10px 14px; min-height: 86px;
  font-size: 11.5px; line-height: 1.7; color: var(--ink-soft);
}
.demo-ticker b { color: var(--ink); }

/* ---------- FAQ lembar spec ---------- */
.faq-list { display: grid; gap: 10px; max-width: 760px; }
.faq-item {
  border: 2px solid var(--ink); background: var(--paper);
  box-shadow: 3px 3px 0 rgba(26,25,23,0.12);
}
.faq-item summary {
  cursor: pointer; list-style: none;
  font-weight: 700; font-size: 13.5px; padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-head); font-size: 18px; }
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { border-bottom: 1.5px dashed var(--line); }
.faq-item p { padding: 14px 18px; font-size: 12.5px; line-height: 1.7; color: var(--ink-soft); }

/* ---------- countdown raksasa ---------- */
.bigcount {
  background: var(--ink); color: var(--bone);
  text-align: center; padding: 80px 20px 86px;
  border-top: 2px solid var(--ink);
}
.bigcount-label { font-size: 12px; letter-spacing: 3px; color: var(--hazard); font-weight: 700; }
.bigcount-time {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(56px, 11vw, 128px); letter-spacing: 2px;
  margin: 10px 0 6px; font-variant-numeric: tabular-nums;
}
.bigcount-sub { font-size: 11.5px; letter-spacing: 2px; color: #B9B3A4; margin-bottom: 28px; }
.btn-hazard { background: var(--hazard); color: var(--ink); border-color: var(--hazard); box-shadow: 4px 4px 0 rgba(245,181,10,0.25); }

/* ---------- animasi muncul saat digulir ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- ponsel ---------- */
@media (max-width: 760px) {
  .nav { gap: 10px; padding: 0 14px; }
  .nav-links { display: none; }
  .hero-grid { padding: 110px 16px 240px; }
  .token-grid { grid-template-columns: 1fr; }
  .d-row { grid-template-columns: 16px 1fr auto; }
  .d-row span:nth-child(3) { display: none; }
  .sec { padding: 60px 16px; }
  .hero-pip { width: 84px; height: 84px; right: -10px; bottom: -26px; }
  .demo-wrap { height: 340px; }
  .demo-chip.turn { margin-left: 0; }
}
