/* lurus.my — night-drive cinematic one-pager (RS-1 design language: dark ink, one accent,
   big type, full-bleed imagery, CSS + IntersectionObserver motion only). */

:root {
  --ink: #070a0e;
  --ink-2: #0d131a;
  --ink-3: #16202a;
  --yellow: #ffc20e;
  --yellow-l: #ffd75a;
  --amber: #e8902e;
  --text: #f3f5f7;
  --muted: rgba(243, 245, 247, 0.64);
  --dim: rgba(243, 245, 247, 0.42);
  --display: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; }

.eyebrow {
  font: 700 12px/1 var(--mono);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 22px;
}
.muted { color: var(--muted); }
.lede { color: var(--muted); font-size: clamp(17px, 1.6vw, 21px); max-width: 34em; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: linear-gradient(to bottom, rgba(7, 10, 14, 0.85), rgba(7, 10, 14, 0));
  transition: background 0.3s, backdrop-filter 0.3s;
}
/* Once scrolled, a solid bar so section text never runs under the wordmark. */
.topbar.is-scrolled {
  background: rgba(7, 10, 14, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}
.wordmark {
  font: 900 20px/1 var(--display);
  letter-spacing: 0.18em;
  text-decoration: none;
  color: var(--text);
}
.topbar-cta {
  font: 600 14px/1 var(--display);
  color: var(--ink);
  background: var(--yellow);
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 17px/1 var(--display);
  color: var(--ink);
  background: var(--yellow);
  border: 0;
  border-radius: 999px;
  padding: 19px 28px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s;
}
.btn-primary:hover { background: var(--yellow-l); transform: translateY(-2px); }
.btn-primary:focus-visible, .btn-ghost:focus-visible, .topbar-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-primary svg, .btn-soon svg { width: 20px; height: 20px; fill: currentColor; }
.btn-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 16px/1 var(--display);
  color: var(--dim);
  padding: 19px 6px;
}
.btn-ghost {
  font: 600 16px/1 var(--display);
  color: var(--text);
  background: none;
  border: 0;
  padding: 18px 12px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 140px var(--gutter) clamp(56px, 9vh, 110px);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/assets/hero-map.jpg") center 40% / cover no-repeat;
  animation: kenburns 14s var(--ease) both;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(7, 10, 14, 0.94) 0%, rgba(7, 10, 14, 0.6) 42%, rgba(7, 10, 14, 0.05) 75%),
    linear-gradient(to top, rgba(7, 10, 14, 1) 0%, rgba(7, 10, 14, 0) 38%),
    linear-gradient(to bottom, rgba(7, 10, 14, 0.7) 0%, rgba(7, 10, 14, 0) 25%);
}
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-inner { max-width: 760px; }
.hero-title {
  font: 900 clamp(4.2rem, 15vw, 11.5rem)/0.88 var(--display);
  letter-spacing: 0.02em;
  margin-bottom: 26px;
  color: var(--text);
}
.hero-title .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.9s var(--ease) forwards;
  animation-delay: calc(0.25s + var(--i) * 70ms);
}
.hero-tag { font: 800 clamp(1.5rem, 3.2vw, 2.6rem)/1.15 var(--display); margin-bottom: 14px; }
.hero-sub { color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); max-width: 30em; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.hero-meta { margin-top: 18px; font: 400 13px/1.4 var(--mono); color: var(--dim); letter-spacing: 0.04em; }
.hero-caption {
  position: absolute;
  right: var(--gutter);
  bottom: 22px;
  font: 400 11px/1 var(--mono);
  letter-spacing: 0.12em;
  color: var(--dim);
  text-transform: uppercase;
}
.reveal-in { opacity: 0; transform: translateY(28px); animation: rise 0.9s var(--ease) forwards; animation-delay: calc(0.3s + var(--d) * 120ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Statement ---------- */
.statement { padding: clamp(110px, 18vh, 200px) var(--gutter); max-width: 1200px; }
.statement h2 { font-size: clamp(2.6rem, 7.5vw, 6.2rem); line-height: 0.98; margin-bottom: 30px; }

/* ---------- Scrollytelling ---------- */
.scrolly {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: 0 var(--gutter);
  background: radial-gradient(60% 50% at 25% 50%, rgba(255, 194, 14, 0.07), transparent 70%);
}
.scrolly-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.phone {
  position: relative;
  width: min(330px, 26vw);
  aspect-ratio: 9 / 20;
  border-radius: 44px;
  background: #000;
  padding: 10px;
  box-shadow: 0 0 0 2px #1c2733, 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 90px rgba(255, 194, 14, 0.08);
}
.shot {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: cover;
  border-radius: 34px;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s var(--ease), transform 1.2s var(--ease);
}
.shot.is-active { opacity: 1; transform: none; }
.scrolly-dots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.scrolly-dots li { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); transition: background 0.4s, transform 0.4s; }
.scrolly-dots li.is-active { background: var(--yellow); transform: scale(1.4); }
.step {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
  opacity: 0.25;
  transition: opacity 0.6s var(--ease);
}
.step.is-active { opacity: 1; }
.step h3 { font-size: clamp(2rem, 3.6vw, 3.3rem); line-height: 1.04; margin-bottom: 22px; }
.step p:not(.eyebrow) { color: var(--muted); font-size: 18px; }

/* ---------- Head unit ---------- */
.headunit { padding: clamp(110px, 16vh, 180px) 0 0; background: linear-gradient(to bottom, var(--ink), var(--ink-2)); }
.headunit-copy { padding: 0 var(--gutter); margin-bottom: 56px; }
.headunit h2 { font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1; margin-bottom: 22px; }
.headunit-frame {
  margin: 0;
  padding: 0 var(--gutter) clamp(90px, 14vh, 160px);
}
.headunit-frame img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 0 0 10px #000, 0 0 0 12px #1c2733, 0 50px 140px rgba(0, 0, 0, 0.8);
}

/* ---------- Numbers ---------- */
.numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding: clamp(110px, 18vh, 190px) var(--gutter);
  background: var(--ink-2);
}
.num { font: 900 clamp(3.6rem, 8vw, 7.5rem)/0.95 var(--display); letter-spacing: -0.03em; color: var(--yellow); margin-bottom: 18px; white-space: nowrap; }
.num .cur { font-size: 0.42em; letter-spacing: 0; margin-right: 0.15em; vertical-align: 0.9em; color: var(--yellow-l); }
.num-label { color: var(--muted); max-width: 18em; }

/* ---------- Install ---------- */
.install { padding: clamp(110px, 18vh, 190px) var(--gutter); max-width: 1100px; }
.install h2 { font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1; margin-bottom: 70px; }
.install-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 56px; }
.install-steps li { display: flex; gap: clamp(20px, 4vw, 48px); align-items: baseline; }
.step-no { font: 700 clamp(1.4rem, 2.6vw, 2rem)/1 var(--mono); color: var(--yellow); min-width: 2.4em; }
.install-steps h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 10px; }
.install-steps p { color: var(--muted); max-width: 32em; }

/* ---------- Closing ---------- */
.closing {
  padding: clamp(110px, 18vh, 190px) var(--gutter);
  text-align: center;
  background: radial-gradient(50% 60% at 50% 100%, rgba(255, 194, 14, 0.12), transparent 70%), var(--ink);
}
.closing h2 { font-size: clamp(2.6rem, 7vw, 5.8rem); line-height: 1; margin-bottom: 44px; }
.closing .hero-actions { justify-content: center; }
.closing-note { margin-top: 26px; color: var(--dim); font: 400 13px/1.5 var(--mono); }

/* ---------- Footer ---------- */
.footer { padding: 70px var(--gutter) 40px; background: #04060a; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.3fr 1.6fr; gap: 40px; margin-bottom: 48px; }
.footer .wordmark { display: block; margin-bottom: 12px; }
.footer-h { font: 700 11px/1 var(--mono); letter-spacing: 0.25em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
.footer-legal { font-size: 12px; color: var(--dim); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Modal ---------- */
.modal {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--ink-2);
  color: var(--text);
  box-shadow: 0 0 0 1px #1c2733, 0 40px 120px rgba(0, 0, 0, 0.7);
}
.modal::backdrop { background: rgba(3, 5, 8, 0.78); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in 0.4s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.modal-inner { padding: clamp(28px, 5vw, 44px); }
.modal h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.1; margin-bottom: 22px; }
.modal-list { margin: 0 0 26px; padding-left: 20px; color: var(--muted); }
.modal-list li { margin-bottom: 10px; }
.modal-check { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; cursor: pointer; margin-bottom: 26px; }
.modal-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--yellow); flex: none; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.modal-meta { margin-top: 18px; font: 400 12px/1.5 var(--mono); color: var(--dim); word-break: break-all; }

/* ---------- Small screens ---------- */
/* ---------- Document pages (privasi) ---------- */
a.topbar-cta { text-decoration: none; }
.doc { max-width: 760px; margin: 0 auto; padding: 140px var(--gutter) 96px; }
.doc h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1.05; margin-bottom: 16px; }
.doc h2 { font-size: 24px; line-height: 1.25; margin: 56px 0 16px; }
.doc p + p { margin-top: 16px; }
.doc a { color: var(--yellow); }
.doc code { font: 400 0.9em var(--mono); }
.doc-meta { font-size: 14px; margin-bottom: 40px; }
.doc-lead { font-size: 20px; line-height: 1.55; margin-bottom: 16px; }
.doc-list { margin: 0; }
.doc-list dt { font-weight: 700; margin-top: 24px; }
.doc-list dd { margin: 6px 0 0; color: var(--muted); }
.doc-rule { border: 0; height: 1px; background: var(--ink-3); margin: 96px 0 72px; }

@media (max-width: 820px) {
  .hero { padding-top: 120px; }
  .hero-caption { display: none; }
  .scrolly { grid-template-columns: 1fr; padding: 0; }
  .scrolly-stage { height: 100svh; z-index: 0; align-items: flex-start; padding-top: 84px; }
  .phone { width: min(250px, 60vw); border-radius: 34px; padding: 8px; }
  .shot { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); border-radius: 27px; }
  .scrolly-dots { display: none; }
  .scrolly-steps { margin-top: -100svh; position: relative; z-index: 1; }
  .step {
    justify-content: flex-end;
    max-width: none;
    padding: 0 20px 9svh;
    min-height: 100svh;
    opacity: 1;
    background: linear-gradient(to top, rgba(7, 10, 14, 0.98) 0%, rgba(7, 10, 14, 0.92) 30%, rgba(7, 10, 14, 0) 48%);
  }
  .step h3 { font-size: 1.85rem; }
  .step p:not(.eyebrow) { font-size: 16px; }
  .numbers { grid-template-columns: 1fr; gap: 64px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .headunit-frame img { border-radius: 10px; box-shadow: 0 0 0 6px #000, 0 0 0 7px #1c2733; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-in, .hero-title .ch { opacity: 1 !important; transform: none !important; }
}
