/* SensusLabs — faithful static replica
   Ninebright Group Sdn. Bhd. */

:root {
  --ink: #2b2b2b;
  --ink-soft: rgba(0, 0, 0, 0.78);
  --muted: #6b6b6b;
  --line: #ececec;
  --bg: #ffffff;
  --btn: #2d3035;
  --btn-hover: #16181b;
  --wa: #25d366;
  --grad-accent: linear-gradient(120deg, #ff1053 0%, #7a2bff 55%, #3452ff 100%);
  --highlight: linear-gradient(to right, rgba(232, 126, 39, 0.38) 0%, #e2b1e2 100%);
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.brand {
  grid-column: 2;
  justify-self: center;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.brand .dot { color: #ff1053; }
.header-loc {
  grid-column: 3;
  justify-self: end;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: clamp(40px, 7vw, 84px) 0 clamp(30px, 5vw, 56px);
}
.hero-logo {
  width: min(320px, 70%);
  margin: 0 auto clamp(14px, 2vw, 22px);
}
.eyebrow {
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 700;
  margin: 0 0 clamp(28px, 4vw, 44px);
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.01em;
}
.video-shell {
  max-width: 920px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.45),
              0 4px 14px rgba(0, 0, 0, 0.08);
}
.video-shell video { width: 100%; height: auto; display: block; pointer-events: none; }
.hero-copy {
  max-width: 820px;
  margin: clamp(28px, 4vw, 44px) auto 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.6vw, 17px);
}
.hero-copy strong { color: var(--ink); }
.hero-copy em { font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 17px 34px;
  border-radius: 6px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-dark {
  background: var(--btn);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.55);
}
.btn-dark:hover {
  background: var(--btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.55);
}
.hero-cta { margin-top: clamp(30px, 4vw, 44px); }

/* ---------- Section scaffolding ---------- */
section { padding: clamp(44px, 6vw, 78px) 0; }
.kicker {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 10px;
  font-weight: 600;
}
.display {
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.12;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.015em;
}
.display.center { text-align: center; }
.hl {
  background: var(--highlight);
  padding: 0 0.12em;
  font-style: italic;
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 52px);
  margin-top: clamp(36px, 5vw, 60px);
}
.step {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
}
.step .num {
  font-size: clamp(46px, 5.4vw, 64px);
  font-weight: 300;
  line-height: 1;
  flex: 0 0 auto;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Feature columns ---------- */
.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(36px, 5vw, 58px);
}
.col h4 {
  font-size: 19px;
  margin: 0 0 12px;
  font-weight: 700;
}
.col p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Offices ---------- */
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(34px, 4vw, 52px); }
.office h4 { font-size: 18px; margin: 0 0 4px; font-weight: 700; }
.office .tag { font-size: 13px; color: var(--muted); font-weight: 600; margin: 0 0 8px; }
.office p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 38px 0;
  text-align: center;
}
.site-footer p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.9; }
.site-footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Disclaimer page ---------- */
.legal { max-width: 800px; margin: 0 auto; }
.legal h1 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 28px; font-weight: 700; letter-spacing: -0.015em; }
.legal p { color: var(--ink-soft); margin: 0 0 22px; }
.back-link { display: inline-block; margin-top: 14px; font-weight: 600; text-decoration: none; color: #3452ff; }
.back-link:hover { text-decoration: underline; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px 9px 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(0, 0, 0, 0.4); }
.wa-float .ic {
  width: 34px; height: 34px;
  background: var(--wa);
  border-radius: 50%;
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.wa-float .ic svg { width: 20px; height: 20px; fill: #fff; }

/* ---------- Reveal on load/scroll ----------
   Hidden state is gated behind html.js so the page is fully visible
   if JavaScript or IntersectionObserver is unavailable (fail-safe). */
.reveal { transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .reveal { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .steps, .cols, .offices { grid-template-columns: 1fr; gap: 30px; }
  .step, .col, .office { text-align: left; }
}
@media (max-width: 520px) {
  .header-loc { display: none; }
  .wa-float span { display: none; }
  .wa-float { padding: 8px; }
}
