/* ============================================================
   KABAR DUBAI — black / white / red
   Design system adapted from the Wise style reference:
   massive 900-weight display type, pill buttons, flat surfaces,
   alternating white → fog → ink section rhythm, 1200px container.
   ============================================================ */

:root {
  /* Situs selalu tampil terang — cegah Chrome Auto Dark Mode membalik warna */
  color-scheme: only light;

  /* Colors (reference roles remapped to brand) */
  --ink: #0e0f0c;          /* dominant dark — nav text, dark sections, display type */
  --coal: #1a1b18;         /* secondary dark surface on ink sections */
  --red: #e8262b;          /* single accent — CTAs, active states, highlights */
  --red-deep: #c01d22;     /* accent hover */
  --charcoal: #454745;     /* body text */
  --pebble: #868685;       /* muted text, hairlines */
  --slate: #6a6c6a;        /* supporting text */
  --fog: #f0f0ee;          /* soft card / band surface */
  --mist: #fdecec;         /* pale red wash for badges */
  --paper: #ffffff;

  --font-main: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Type scale (from reference) */
  --text-caption: 14px;
  --text-body-sm: 16px;
  --text-body: 18px;
  --text-body-lg: 25px;
  --text-subheading: 36px;
  --text-heading-sm: 45px;
  --text-heading: 61px;
  --text-heading-lg: 89px;

  /* Shapes */
  --radius-card: 10px;
  --radius-large-card: 28px;
  --radius-pill: 9999px;

  --page-max-width: 1200px;
  --section-gap: 100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--charcoal);
  background: var(--paper);
  font-size: var(--text-body-sm);
  line-height: 1.5;
  letter-spacing: -0.096px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: var(--section-gap) 0; }

/* ---------- Display type — the brand shout ---------- */
.display {
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.display em {
  font-style: normal;
  color: var(--red);
  display: block;
}

h1.display { font-size: clamp(44px, 7.4vw, var(--text-heading-lg)); }
h2.display { font-size: clamp(34px, 5vw, var(--text-heading)); }

.on-dark .display,
.on-dark h3 { color: var(--paper); }

/* ---------- Section label ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 24px;
}

.label::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--red);
}

.on-dark .label { color: var(--paper); }

.section-head { max-width: 720px; margin-bottom: 56px; }

.section-head .sub {
  margin-top: 20px;
  font-size: var(--text-body);
  letter-spacing: -0.126px;
  color: var(--slate);
  max-width: 54ch;
}

.on-dark .section-head .sub { color: #b9bab6; }

/* ---------- Buttons — pill is the default shape ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn svg { width: 18px; height: 18px; flex: none; }

.btn--red { background: var(--red); color: var(--paper); }
.btn--red:hover { background: var(--red-deep); }

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--red); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--paper); }

.btn--outline-white {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--paper);
}
.btn--outline-white:hover { background: var(--paper); color: var(--ink); }

.btn--white { background: var(--paper); color: var(--ink); }
.btn--white:hover { background: var(--fog); }

/* ---------- Badge / tag ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--mist);
  color: var(--red-deep);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e5e2;
}

.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.brand__mark { height: 34px; width: 34px; }

.brand__name {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 0.9;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__links a {
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.07px;
  color: var(--ink);
}

.nav__links a:hover { background: var(--fog); }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.nav__actions .btn { padding: 11px 20px; }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

/* ---------- Hero (dark, video background) ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  /* video diputar di GPU layer sendiri — paksa clip & stacking context
     agar tidak pernah "bocor" keluar section di mobile */
  clip-path: inset(0);
  isolation: isolate;
  padding: 140px 0 120px;
}

/* Catatan: JANGAN pakai opacity pada video — iOS mengabaikan CSS opacity
   pada video yang sedang diputar, sehingga hero tampil terang di HP.
   Peredupan sepenuhnya lewat .hero__scrim di atasnya. */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: translateZ(0); /* paksa layer sendiri agar tetap di atas video di iOS */
  background: linear-gradient(180deg, rgba(14, 15, 12, 0.8) 0%, rgba(14, 15, 12, 0.66) 50%, rgba(14, 15, 12, 0.93) 100%);
}

.hero .wrap { position: relative; z-index: 2; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 28px;
}

.hero__eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--red);
}

.hero h1 { color: var(--paper); max-width: 900px; }

.hero__sub {
  margin-top: 28px;
  font-size: var(--text-body);
  line-height: 1.5;
  color: #d6d7d3;
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ---------- Service ticker strip ---------- */
.ticker {
  background: var(--red);
  color: var(--paper);
  overflow: hidden;
  padding: 14px 0;
}

.ticker__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: ticker 28s linear infinite;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Media placeholder frame (photos/video coming later) ---------- */
.frame {
  position: relative;
  border-radius: var(--radius-large-card);
  background: var(--fog);
  border: 1px dashed var(--pebble);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.frame--dark { background: var(--coal); border-color: #3a3b38; }

.frame__label {
  color: var(--pebble);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 0 24px;
}

.frame img, .frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame:has(img) .frame__label,
.frame:has(video) .frame__label { display: none; }

.frame:has(img), .frame:has(video) { border-style: solid; border-color: transparent; }

/* ---------- Tentang ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.about__copy p + p { margin-top: 18px; }
.about__copy p { color: var(--slate); font-size: var(--text-body); letter-spacing: -0.126px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 64px;
}

.stat {
  background: var(--fog);
  border-radius: var(--radius-card);
  padding: 24px;
  border-bottom: 4px solid var(--red);
}

.stat__num {
  font-size: var(--text-subheading);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}

.stat__label {
  margin-top: 10px;
  font-size: var(--text-caption);
  letter-spacing: -0.07px;
  color: var(--slate);
}

/* ---------- Satu Tim band (inverted large card) ---------- */
.team-band {
  background: var(--ink);
  border-radius: var(--radius-large-card);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  color: var(--paper);
}

.team-band h3 {
  font-size: var(--text-subheading);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--paper);
}

.team-band p {
  margin-top: 18px;
  color: #b9bab6;
  font-size: var(--text-body-sm);
}

.team-band__tags {
  margin-top: 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.team-band .frame { min-height: 300px; }

/* ---------- Layanan ---------- */
.section--fog { background: var(--fog); }

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service {
  background: var(--paper);
  border-radius: var(--radius-large-card);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section--fog .service { box-shadow: rgba(14, 15, 12, 0.04) 0 1px 2px; }

.service h3 {
  margin-top: 20px;
  font-size: var(--text-body-lg);
  font-weight: 700;
  letter-spacing: -0.225px;
  line-height: 1.2;
  color: var(--ink);
}

.service > p {
  margin-top: 12px;
  font-size: var(--text-body-sm);
  color: var(--slate);
}

.service ul {
  list-style: none;
  margin: 20px 0 28px;
  flex: 1;
}

.service li {
  font-size: var(--text-caption);
  color: var(--charcoal);
  padding: 5px 0 5px 18px;
  position: relative;
}

.service li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* ---------- Calculator banner (red large card) ---------- */
.calc-banner {
  background: var(--red);
  border-radius: var(--radius-large-card);
  padding: 56px;
  color: var(--paper);
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 40px;
  align-items: center;
  margin-top: 24px;
}

.calc-banner h3 {
  font-size: clamp(28px, 3.4vw, var(--text-subheading));
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}

.calc-banner p {
  margin-top: 14px;
  font-size: var(--text-body-sm);
  color: #ffd9da;
  max-width: 56ch;
}

/* ---------- Cara Kerja (timeline) ---------- */
.process {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 56px;
  align-items: start;
}

.process__visual {
  position: sticky;
  top: 96px;
  min-height: 420px;
}

.steps { max-width: 800px; }

.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  position: relative;
  padding-bottom: 40px;
}

.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 35px;
  top: 72px;
  bottom: 0;
  width: 2px;
  background: #e0e0dd;
}

.step__num {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-card);
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  border-bottom: 4px solid var(--red);
}

.step h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.14px;
  color: var(--ink);
  padding-top: 8px;
}

.step p {
  margin-top: 8px;
  font-size: var(--text-body-sm);
  color: var(--slate);
  max-width: 56ch;
}

.note-card {
  background: var(--fog);
  border-radius: var(--radius-card);
  padding: 24px;
  font-size: var(--text-caption);
  color: var(--slate);
  max-width: 800px;
  margin-top: 8px;
}

.note-card strong { color: var(--ink); }

/* ---------- Kenapa (dark section) ---------- */
.section--ink { background: var(--ink); }

.why {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.why-card {
  background: var(--coal);
  border-radius: var(--radius-card);
  padding: 32px;
  border-top: 4px solid var(--red);
}

.why-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.14px;
  color: var(--paper);
}

.why-card p {
  margin-top: 10px;
  font-size: var(--text-caption);
  color: #b9bab6;
  line-height: 1.55;
}

/* ---------- Closing CTA ---------- */
.closing { text-align: center; }

.closing .section-head {
  margin: 0 auto 0;
  max-width: 760px;
}

.closing .sub { margin-left: auto; margin-right: auto; }

.closing__actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #2c2d2a;
}

.footer .brand { color: var(--paper); }

.footer__tagline {
  margin-top: 20px;
  font-size: var(--text-caption);
  color: #b9bab6;
  max-width: 40ch;
  line-height: 1.6;
}

.footer h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}

.footer__list { list-style: none; }

.footer__list li { margin-bottom: 10px; }

.footer__list a, .footer__list span {
  font-size: var(--text-caption);
  color: #d6d7d3;
}

.footer__list a:hover { color: var(--red); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 32px;
  font-size: 13px;
  color: #8a8b88;
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: rgba(0, 0, 0, 0.25) 0 8px 30px;
  transition: background 0.15s ease;
}

.wa-float:hover { background: var(--ink); }

.wa-float svg { width: 26px; height: 26px; }

/* ---------- Kalkulator page ---------- */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 96px 0 80px;
}

.page-hero h1 { color: var(--paper); max-width: 800px; }

.page-hero .sub {
  margin-top: 24px;
  color: #b9bab6;
  font-size: var(--text-body);
  max-width: 54ch;
}

.calc {
  max-width: 720px;
  margin: 0 auto;
}

.calc__form {
  background: var(--paper);
  border-radius: var(--radius-large-card);
  padding: 40px;
  box-shadow: rgba(14, 15, 12, 0.06) 0 2px 12px;
}

.field { margin-bottom: 28px; }

.field > label,
.field__legend {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}

.field > label .req { color: var(--red); }

.field select,
.field input[type="text"],
.field input[type="email"],
.field input[type="number"] {
  width: 100%;
  border: 1px solid var(--pebble);
  border-radius: var(--radius-card);
  padding: 13px 16px;
  font-family: var(--font-main);
  font-size: var(--text-body-sm);
  color: var(--charcoal);
  background: var(--paper);
  appearance: none;
}

.field select:focus,
.field input:focus {
  outline: none;
  border-color: var(--ink);
}

.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }

.choice input { position: absolute; opacity: 0; pointer-events: none; }

.choice span {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--pebble);
  padding: 10px 18px;
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.12s ease;
}

.choice input:checked + span {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
  font-weight: 700;
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--pebble);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.stepper button {
  width: 48px;
  height: 48px;
  border: none;
  background: var(--fog);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.stepper button:hover { background: var(--red); color: var(--paper); }

.stepper output {
  width: 64px;
  text-align: center;
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--ink);
}

.calc__submit { width: 100%; margin-top: 4px; }

.calc__form .fineprint {
  margin-top: 16px;
  font-size: 12px;
  color: #8a8b88;
  line-height: 1.5;
}

/* ---------- Motion ---------- */

/* Word-by-word headline reveal — .display text is split into
   .w > .w__inner spans by script.js, then slides up when in view */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.w__inner {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--wi, 0) * 60ms);
}

.words-in .w__inner { transform: translateY(0); }

/* Section/block reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--ri, 0) * 90ms);
  will-change: opacity, transform;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Gentle hover lift on cards */
.service, .stat, .why-card, .team-band, .calc-banner {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease,
              opacity 0.7s ease;
}

.service:hover, .why-card:hover { transform: translateY(-6px); }
.stat:hover { transform: translateY(-4px); }

.reveal.service, .reveal.stat, .reveal.why-card, .reveal.team-band, .reveal.calc-banner {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease,
              opacity 0.7s ease;
  transition-delay: calc(var(--ri, 0) * 90ms);
}

.reveal.in-view.service:hover, .reveal.in-view.why-card:hover { transform: translateY(-6px); }
.reveal.in-view.stat:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .w__inner {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .ticker__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  :root { --section-gap: 72px; }

  .about__grid,
  .team-band,
  .process { grid-template-columns: 1fr; }

  .process__visual { position: static; min-height: 260px; }

  .stats { grid-template-columns: repeat(2, 1fr); }

  .calc-banner { grid-template-columns: 1fr; padding: 40px; }

  .nav__links { display: none; }
  .nav__toggle { display: block; }

  .nav__links--open {
    display: flex;
    position: absolute;
    top: 100%;
    left: -24px;
    right: -24px;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid #e5e5e2;
    padding: 12px 24px 20px;
    gap: 2px;
  }

  .nav__links--open a { border-radius: var(--radius-card); padding: 13px 14px; }
}

@media (max-width: 720px) {
  .nav__actions .btn--outline { display: none; }

  /* pill labels may wrap on narrow screens so grids never overflow */
  .btn { white-space: normal; text-align: center; }

  .calc > *, .services > * { min-width: 0; }

  .hero { padding: 96px 0 80px; }

  .services, .why { grid-template-columns: 1fr; }

  .service, .team-band, .calc__form { padding: 28px; }

  .calc-banner { padding: 32px 28px; }

  .step { grid-template-columns: 56px 1fr; gap: 18px; }

  .step__num { width: 56px; height: 56px; font-size: 18px; }

  .step:not(:last-child)::before { left: 27px; top: 56px; }

  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
}
