/* ============================================================
   Mapay Gunung — Landing Page (mapaygunung.id)
   Palet & makna warna: docs/branding.md §3
   ============================================================ */

:root {
  --hijau-rimba: #14532d;
  --hijau-rimba-tua: #0c3a1f;
  --jingga-fajar: #f97316;
  --merah-merapi: #dc2626;
  --kuning-belerang: #eab308;
  --hijau-lumut: #16a34a;
  --putih-kabut: #f8fafc;
  --batu-basalt: #1c1917;
  --abu: #57534e;
  --garis: rgba(28, 25, 23, 0.1);
  --radius: 18px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--batu-basalt);
  background: var(--putih-kabut);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--jingga-fajar);
  color: #fff;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(249, 115, 22, 0.45); }
.btn-ghost {
  background: transparent;
  color: var(--putih-kabut);
  border: 2px solid rgba(248, 250, 252, 0.35);
}
.btn-ghost:hover { border-color: rgba(248, 250, 252, 0.8); }
.btn-small { padding: 10px 20px; font-size: 14px; }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 0;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.nav.scrolled {
  background: rgba(12, 58, 31, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}
.nav-inner { display: flex; align-items: center; gap: 32px; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo { width: 36px; height: 36px; border-radius: 9px; }
.nav-wordmark {
  color: var(--putih-kabut);
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 15px;
}
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a {
  color: rgba(248, 250, 252, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.nav-links a:hover { color: #fff; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(249, 115, 22, 0.18), transparent 60%),
    linear-gradient(160deg, var(--hijau-rimba-tua) 0%, var(--hijau-rimba) 55%, #1a6b3a 100%);
  color: var(--putih-kabut);
  padding: 150px 0 140px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
/* Merah-putih kecil — bendera di puncak (branding §2) */
.flag-dot {
  width: 14px; height: 14px;
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--merah-merapi) 50%, #fff 50%);
  display: inline-block;
}
.hero h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--jingga-fajar); }
.hero-sub {
  margin: 22px 0 32px;
  font-size: 18px;
  color: rgba(248, 250, 252, 0.82);
  max-width: 520px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 36px; margin-top: 44px; }
.badge-item { display: flex; flex-direction: column; }
.badge-item strong { font-size: 22px; font-weight: 800; }
.badge-item span { font-size: 13px; color: rgba(248, 250, 252, 0.65); }

.hero-ridge {
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; height: 90px;
}
.hero-ridge path { fill: var(--putih-kabut); }

/* ===== Phone mockup ===== */
.hero-phone { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 280px;
  border-radius: 44px;
  background: #0b0b0b;
  padding: 12px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(255, 255, 255, 0.08);
  z-index: 2;
}
.phone-notch {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 26px;
  background: #0b0b0b;
  border-radius: 999px;
  z-index: 3;
}
.phone-screen {
  border-radius: 34px;
  overflow: hidden;
  background: #101c14;
  display: flex;
  flex-direction: column;
}
.phone-map { position: relative; height: 260px; background: linear-gradient(180deg, #16341f, #1d4428); }
.phone-map svg { width: 100%; height: 100%; }
.contour { fill: none; stroke: rgba(248, 250, 252, 0.12); stroke-width: 1.5; }
.trail-casing { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; }
.trail {
  fill: none;
  stroke: var(--jingga-fajar);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: draw-trail 3s ease-out 0.6s forwards;
}
@keyframes draw-trail { to { stroke-dashoffset: 0; } }
.dot-start { fill: var(--hijau-lumut); stroke: #fff; stroke-width: 2; }
.dot-end { fill: var(--merah-merapi); stroke: #fff; stroke-width: 2; }
.map-chip {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--batu-basalt);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
}
.map-offline {
  position: absolute;
  top: 40px; right: 12px;
  background: var(--hijau-rimba);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.phone-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
}
.metric {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}
.metric-value {
  color: var(--putih-kabut);
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.metric-label { color: rgba(248, 250, 252, 0.55); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; }
.phone-checkin {
  margin: 0 12px 14px;
  background: rgba(22, 163, 74, 0.18);
  color: #6ee7a0;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: center;
}
.phone-glow {
  position: absolute;
  inset: 40px -20px -20px;
  background: radial-gradient(closest-side, rgba(249, 115, 22, 0.25), transparent);
  filter: blur(30px);
  z-index: 1;
}

/* ===== Strip ===== */
.strip { background: var(--batu-basalt); color: rgba(248, 250, 252, 0.85); padding: 18px 0; }
.strip-inner { text-align: center; font-size: 14px; }
.strip strong { color: var(--jingga-fajar); }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-eyebrow {
  color: var(--jingga-fajar);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; margin-bottom: 14px; }
.section-sub { color: var(--abu); font-size: 17px; max-width: 620px; }

.grid { display: grid; gap: 22px; margin-top: 48px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--garis);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(20, 83, 45, 0.12); }
.card-icon { font-size: 30px; margin-bottom: 14px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--abu); font-size: 15px; }

/* ===== Split sections ===== */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.split-reverse { grid-template-columns: 0.9fr 1.1fr; }
.split-reverse .split-copy { order: 2; }
.split-reverse .split-visual { order: 1; }
.split-copy p { color: inherit; font-size: 17px; }

.check-list { list-style: none; margin: 24px 0; display: flex; flex-direction: column; gap: 16px; }
.check-list li { padding-left: 34px; position: relative; font-size: 16px; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 1px;
  width: 24px; height: 24px;
  border-radius: 999px;
  background: var(--hijau-lumut);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fine { font-size: 13px; opacity: 0.65; }

/* Keselamatan (dark) */
.section-dark {
  background: linear-gradient(170deg, var(--batu-basalt), #2a1512);
  color: var(--putih-kabut);
}
.section-dark .section-sub, .section-dark .split-copy p { color: rgba(248, 250, 252, 0.82); }
.eyebrow-light { color: var(--kuning-belerang); }

.sos-card {
  background: var(--merah-merapi);
  color: #fff;
  border-radius: 22px;
  padding: 26px;
  max-width: 340px;
  margin: 0 auto;
  box-shadow: 0 30px 60px rgba(220, 38, 38, 0.35);
}
.sos-header { font-size: 12px; font-weight: 800; letter-spacing: 0.2em; opacity: 0.85; margin-bottom: 12px; }
.sos-coord {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 21px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  margin-bottom: 16px;
}
.sos-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
}
.sos-row span { opacity: 0.8; }
.sos-btn {
  margin-top: 18px;
  background: #fff;
  color: var(--merah-merapi);
  font-weight: 800;
  text-align: center;
  padding: 13px;
  border-radius: 999px;
  font-size: 15px;
}

/* Offline demo */
.offline-demo {
  background: #fff;
  border: 1px solid var(--garis);
  border-radius: 22px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 24px 60px rgba(20, 83, 45, 0.12);
}
.offline-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--putih-kabut);
  font-weight: 600;
  font-size: 14.5px;
}
.offline-row em { margin-left: auto; font-style: normal; font-size: 12.5px; color: var(--abu); }
.offline-dot { width: 10px; height: 10px; border-radius: 999px; flex-shrink: 0; }
.offline-on .offline-dot { background: var(--hijau-lumut); box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15); }
.offline-off { opacity: 0.6; }
.offline-off .offline-dot { background: #b8b2ac; }

/* Indonesia (green) */
.section-green {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(249, 115, 22, 0.14), transparent 65%),
    var(--hijau-rimba);
  color: var(--putih-kabut);
}
.center { text-align: center; }
.center .section-sub { margin: 0 auto; }
.sub-light { color: rgba(248, 250, 252, 0.82); }
.about-logo {
  width: 190px;
  border-radius: 26px;
  margin-bottom: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.about-logo-inline {
  width: 220px;
  border-radius: 28px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 24px 60px rgba(20, 83, 45, 0.18);
}
.logo-caption {
  text-align: center;
  font-size: 13px;
  color: var(--abu);
  margin-top: 16px;
}
.name-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}
.name-card {
  background: var(--putih-kabut);
  border: 1px solid var(--garis);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.name-card strong { font-size: 22px; color: var(--hijau-rimba); }
.name-card span:last-child { font-size: 13px; color: var(--abu); }
.name-lang {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jingga-fajar);
}
.value-row { display: flex; justify-content: center; gap: 48px; margin-top: 44px; flex-wrap: wrap; }
.value { display: flex; flex-direction: column; max-width: 220px; }
.value strong { font-size: 17px; }
.value span { font-size: 13.5px; color: rgba(248, 250, 252, 0.65); }

/* Waitlist */
.narrow { max-width: 640px; }
.waitlist { display: flex; gap: 12px; margin: 30px auto 14px; max-width: 460px; }
.waitlist input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 999px;
  border: 2px solid var(--garis);
  font-size: 16px;
  font-family: var(--font);
  background: #fff;
}
.waitlist input:focus { outline: none; border-color: var(--jingga-fajar); }
.waitlist-done { color: var(--hijau-lumut); font-weight: 700; margin-bottom: 10px; }

/* Footer */
.footer { background: var(--hijau-rimba-tua); color: var(--putih-kabut); padding: 48px 0 28px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand p { font-size: 13px; color: rgba(248, 250, 252, 0.6); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: rgba(248, 250, 252, 0.8); text-decoration: none; font-size: 14px; font-weight: 600; }
.footer-links a:hover { color: #fff; }
.footer-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  font-size: 12.5px;
  color: rgba(248, 250, 252, 0.5);
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { max-width: 560px; }
  .hero-phone { margin-top: 24px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split, .split-reverse { grid-template-columns: 1fr; gap: 36px; }
  .split-reverse .split-copy { order: 1; }
  .split-reverse .split-visual { order: 2; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .name-cards { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 110px; }
  .hero h1 { font-size: 36px; }
  .hero-cta { flex-direction: column; width: 100%; max-width: 320px; }
  .hero-cta .btn { text-align: center; }
  .hero-badges { gap: 18px; flex-wrap: wrap; justify-content: center; }
  .eyebrow { font-size: 11px; }
  .nav-wordmark { font-size: 13px; }
  .waitlist { flex-direction: column; }
  .footer-inner, .footer-note { flex-direction: column; align-items: flex-start; }
}
