/* Hadir marketing site — brand tokens from the locked guideline:
   Nunito, navy #111E4A, sky #0284C7, the pin. "Site signage" direction:
   navy ground, geofence rings, receipt-card surfaces. */

:root {
  --navy: #111e4a;
  --navy-deep: #0b1435;
  --sky: #0284c7;
  --sky-bright: #1b9cd9;
  --sky-wash: #e6f4fc;
  --paper: #f7f8fc;
  --ink: #10203a;
  --muted: #5a6b85;
  --line: #dde4ef;
  --ok: #0e9f6e;
  --amber: #b45309;
  --wa: #25d366;
  --radius: 14px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Language toggle: body carries lang-ms (default) or lang-en */
.en { display: none; }
.ms { display: revert; }
body.lang-en .en { display: revert; }
body.lang-en .ms { display: none; }
span.en, span.ms { display: none; }
body:not(.lang-en) span.ms { display: inline; }
body.lang-en span.en { display: inline; }

img { max-width: 100%; }
a { color: var(--sky); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 30, 74, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px;
}
.nav__logo { height: 34px; display: block; filter: brightness(0) invert(1); }
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links a {
  color: #cfe8f7; text-decoration: none; font-weight: 700; font-size: 15px;
}
.nav__links a:hover { color: #fff; }
.lang-switch {
  border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: 999px;
  background: transparent; color: #fff; font: inherit; font-weight: 800;
  font-size: 13px; padding: 5px 14px; cursor: pointer; letter-spacing: 0.04em;
}
.lang-switch:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 78% -10%, rgba(27, 156, 217, 0.28), transparent 60%),
    linear-gradient(168deg, var(--navy) 0%, var(--navy-deep) 90%);
  color: #fff;
  padding: 84px 0 108px;
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px; align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 54px); line-height: 1.12;
  font-weight: 900; letter-spacing: -0.015em;
}
.hero h1 .pin-accent { color: var(--sky-bright); }
.hero__sub {
  margin-top: 18px; font-size: 18px; color: #c6d3ea; max-width: 34em;
}
.hero__ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 10px; padding: 14px 24px; font-weight: 800; font-size: 16px;
  text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--wa { background: var(--wa); color: #06341c; box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35); }
.btn--ghost { border: 1.5px solid rgba(255, 255, 255, 0.4); color: #fff; }
.btn--sky { background: var(--sky); color: #fff; box-shadow: 0 8px 24px rgba(2, 132, 199, 0.35); }
.hero__note { margin-top: 14px; font-size: 13.5px; color: #8fa3c8; }

/* Geofence visual */
.fence { position: relative; height: 380px; }
.fence__ring {
  position: absolute; inset: 0; margin: auto; border-radius: 50%;
  border: 2px dashed rgba(139, 199, 235, 0.35);
  animation: ringPulse 5s ease-in-out infinite;
}
.fence__ring--1 { width: 340px; height: 340px; animation-delay: 0s; }
.fence__ring--2 { width: 240px; height: 240px; animation-delay: 0.6s; border-color: rgba(139, 199, 235, 0.5); }
.fence__ring--3 { width: 140px; height: 140px; animation-delay: 1.2s; border-color: rgba(139, 199, 235, 0.7); }
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.75; }
}
.fence__pin {
  position: absolute; inset: 0; margin: auto; width: 74px; height: 92px;
  animation: pinDrop 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.3) 0.3s both;
}
@keyframes pinDrop {
  from { transform: translateY(-140px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.fence__chip {
  position: absolute; background: #fff; color: var(--ink);
  border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-weight: 800;
  box-shadow: 0 10px 30px rgba(4, 12, 40, 0.45);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  animation: chipIn 0.7s ease both;
}
.fence__chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.fence__chip--in { top: 12%; left: 4%; animation-delay: 1.1s; }
.fence__chip--gps { bottom: 20%; right: 0; animation-delay: 1.5s; }
.fence__chip--wage { bottom: 2%; left: 12%; animation-delay: 1.9s; }
.fence__chip--wage .dot { background: var(--sky); }
@keyframes chipIn {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* staggered hero text */
.rise { animation: rise 0.7s ease both; }
.rise-2 { animation-delay: 0.15s; }
.rise-3 { animation-delay: 0.3s; }
.rise-4 { animation-delay: 0.45s; }
@keyframes rise {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 900;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky);
  margin-bottom: 12px;
}
h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; line-height: 1.15; letter-spacing: -0.01em; }
.section-sub { margin-top: 12px; color: var(--muted); font-size: 17px; max-width: 40em; }

/* Problem strip */
.problem { background: #fff; border-block: 1px solid var(--line); }
.problem__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.problem__card {
  border-left: 4px solid var(--amber); background: var(--paper);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 20px 22px;
}
.problem__card h3 { font-size: 17px; font-weight: 800; }
.problem__card p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* Features */
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; position: relative;
  box-shadow: 0 1px 2px rgba(16, 32, 58, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(16, 32, 58, 0.12); }
.feature__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sky-wash); color: var(--sky); margin-bottom: 16px;
}
.feature h3 { font-size: 17.5px; font-weight: 800; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.pill {
  display: inline-block; margin-top: 14px; font-size: 12.5px; font-weight: 800;
  border-radius: 999px; padding: 4px 12px;
  background: #e8f7f0; color: var(--ok);
}

/* How it works */
.how { background: var(--navy); color: #fff; }
.how .kicker { color: var(--sky-bright); }
.how .section-sub { color: #b9c7e2; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; counter-reset: step; }
.step {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius); padding: 28px 26px;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-size: 34px; font-weight: 900; color: var(--sky-bright); display: block;
  margin-bottom: 12px; letter-spacing: -0.02em;
}
.step h3 { font-size: 17.5px; font-weight: 800; }
.step p { margin-top: 8px; color: #b9c7e2; font-size: 15px; }

/* Video / help teaser */
.videos__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 40px; }
.video-card {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.video-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(16, 32, 58, 0.12); }
.video-card img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.video-card__body { padding: 16px 18px 18px; }
.video-card__body strong { font-size: 15.5px; font-weight: 800; display: block; }
.video-card__body span.tag { font-size: 13px; color: var(--muted); }

/* Pricing */
.pricing { background: #fff; border-block: 1px solid var(--line); text-align: center; }
.pricing__box {
  max-width: 560px; margin: 36px auto 0; background: var(--paper);
  border: 1.5px dashed var(--sky); border-radius: var(--radius); padding: 36px 30px;
}
.pricing__box .badge {
  display: inline-block; background: var(--sky-wash); color: var(--sky);
  font-weight: 900; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 999px; padding: 6px 16px;
}
.pricing__box p { margin-top: 14px; color: var(--muted); }

/* Contact / footer */
.contact { text-align: center; }
.contact .btn { margin-top: 26px; }
.footer {
  background: var(--navy-deep); color: #8fa3c8; padding: 40px 0;
  font-size: 14px;
}
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer img { height: 26px; opacity: 0.9; filter: brightness(0) invert(1); }
.footer a { color: #cfe8f7; text-decoration: none; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa);
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(6, 52, 28, 0.35);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Help page */
.page-head { background: var(--navy); color: #fff; padding: 64px 0; }
.page-head h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; }
.page-head p { margin-top: 10px; color: #b9c7e2; max-width: 40em; }
.help-section { padding: 56px 0 8px; }
.help-section h2 { font-size: 24px; }
.coming {
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  padding: 22px; color: var(--muted); font-size: 15px; background: #fff;
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .fence { height: 300px; margin-top: 10px; }
  .problem__grid, .features__grid, .steps, .videos__grid { grid-template-columns: 1fr; }
  .nav__links { gap: 14px; }
  .nav__links a.nav__hide-sm { display: none; }
}

/* FAQ */
.faq-list { margin-top: 40px; display: grid; gap: 12px; max-width: 820px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 800;
  font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 22px; font-weight: 800; color: var(--sky); flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-item .faq-a { padding: 16px 20px 20px; color: var(--muted); font-size: 15px; }
.faq-group { margin-top: 48px; }
.faq-group h2 { font-size: 22px; }
