/* Bang Kurir landing page (bangkurirgame.com).
   Colours and shapes come from the game and its Play Store art:
   - brand orange / navy / pill yellow: marketing/play-store/src/style.css
   - panels, cream rim, yellow buttons, green / red numbers: apps/game/src/ui/*.gd (C_PANEL, C_CARD, C_RIM, C_YELLOW, ...)
   Font: the game's HUD font (Godot fallback Open Sans SemiBold), emboldened in game with variation_embolden,
   here with -webkit-text-stroke. */

@font-face {
  font-family: "HUD";
  src: url("/fonts/OpenSans-SemiBold.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* store art */
  --orange: #f2601c;
  --orange-hi: #ff8a2e;
  --orange-lo: #c9430b;
  --navy: #0d2452;
  --pill: #ffd23f;
  /* game UI */
  --panel: #1a2133;        /* C_PANEL  (0.10, 0.13, 0.20) */
  --card: #26304a;         /* C_CARD   (0.15, 0.19, 0.28) */
  --rim: #fff2d6;          /* C_RIM    (1.0, 0.95, 0.84) */
  --yellow: #ffcc38;       /* C_YELLOW (1.0, 0.80, 0.22) */
  --dark: #1c1a14;         /* C_DARK, text on yellow buttons */
  --green: #66db6b;        /* C_GREEN */
  --red: #ff5c52;          /* C_RED */
  --gray: #5c6375;         /* C_GRAY */
  --dim: rgba(255, 255, 255, 0.62);
  --page: #121826;         /* page background behind the panels */
  --page-alt: #161d2e;

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --shadow: 0 18px 40px rgba(5, 10, 25, 0.45), 0 4px 10px rgba(5, 10, 25, 0.3);
  --wrap: 1180px;
  --gutter: 20px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--page);
  color: #fff;
  font-family: "HUD", "Open Sans", "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

/* emboldened headings, like the game's variation_embolden */
h1, h2, h3, .logo, .pill, .tag, .btn, .tier, .dealer-name, .veh-price, .num, .lv {
  -webkit-text-stroke: 0.04em currentColor;
  paint-order: stroke fill;
}
h1, h2, h3 { font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }

/* highlighted word: yellow on navy, as in the store screenshots */
h1 em, h2 em {
  font-style: normal;
  color: var(--yellow);
  background: linear-gradient(180deg, transparent 10%, var(--navy) 10%, var(--navy) 94%, transparent 94%);
  padding: 0 0.14em;
  margin: 0 -0.02em;
  border-radius: 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.sec h2 em { background: none; padding: 0; margin: 0; color: var(--yellow); }

/* ------------------------------------------------------------------ buttons (the game's yellow pill buttons) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-yellow {
  background: var(--yellow);
  color: var(--dark);
  border: 3px solid var(--rim);
  box-shadow: 0 6px 0 #c99a12, 0 12px 24px rgba(5, 10, 25, 0.35);
}
.btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #c99a12, 0 16px 28px rgba(5, 10, 25, 0.4); }
.btn-yellow:active { transform: translateY(4px); box-shadow: 0 2px 0 #c99a12, 0 6px 12px rgba(5, 10, 25, 0.35); }
.btn-ghost {
  color: #fff;
  border: 3px solid rgba(255, 255, 255, 0.85);
  background: rgba(13, 36, 82, 0.28);
}
.btn-ghost:hover { background: rgba(13, 36, 82, 0.5); }
.btn-sm { min-height: 42px; padding: 6px 18px; font-size: 15px; border-width: 2px; box-shadow: 0 4px 0 #c99a12; }
.btn-sm:hover { box-shadow: 0 6px 0 #c99a12; }
.btn-lg { min-height: 58px; padding: 12px 28px; font-size: 18px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover, .btn:active { transform: none; } }

/* ------------------------------------------------------------------ top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 33, 51, 0.92);
  border-bottom: 2px solid rgba(255, 242, 214, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.topbar-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; letter-spacing: 0.02em; white-space: nowrap; }
.logo img { width: 40px; height: 40px; border-radius: 11px; border: 2px solid #fff; }
.logo b { color: var(--orange-hi); font-weight: inherit; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  text-decoration: none;
  color: var(--dim);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.topbar .btn { margin-left: 8px; }
@media (max-width: 760px) {
  .nav { display: none; }
  .topbar .btn { margin-left: auto; }
  .logo { font-size: 18px; }
  .logo img { width: 36px; height: 36px; }
}

/* ------------------------------------------------------------------ hero (orange, like the store art) */
.hero, .final { position: relative; overflow: hidden; background: var(--orange); isolation: isolate; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 700px at 8% 0%, var(--orange-hi) 0%, rgba(255, 138, 46, 0) 60%),
    radial-gradient(800px 600px at 100% 100%, var(--orange-lo) 0%, rgba(201, 67, 11, 0) 70%);
}
.hero-bg i { position: absolute; display: block; }
.hero-bg .ring { border-radius: 50%; border: 60px solid rgba(255, 255, 255, 0.07); }
.hero-bg .r1 { width: 760px; height: 760px; left: -340px; bottom: -460px; }
.hero-bg .r2 { width: 540px; height: 540px; right: -160px; top: -280px; border-width: 46px; }
.hero-bg .road {
  left: -10%; right: -10%;
  top: 62%;
  height: 240px;
  transform: rotate(-9deg);
  background: rgba(13, 36, 82, 0.16);
}
.hero-bg .road::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 10px;
  margin-top: -5px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 80px, transparent 80px 150px);
}
.hero-bg .dots {
  left: 24px; bottom: 40px;
  width: 220px; height: 160px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 3px, transparent 3.5px);
  background-size: 24px 24px;
}

.hero-in {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-top: 48px;
  padding-bottom: 56px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

.pill, .tag {
  display: inline-block;
  background: var(--pill);
  color: var(--navy);
  font-size: 14px;
  letter-spacing: 0.14em;
  padding: 7px 16px 8px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(13, 36, 82, 0.22);
}

h1 {
  font-size: clamp(44px, 11vw, 84px);
  line-height: 1.08;
  -webkit-text-stroke-width: 0.035em;
  filter: drop-shadow(0 5px 0 rgba(13, 36, 82, 0.16));
}
h1 .l { display: block; }
.lead { font-size: clamp(17px, 2.2vw, 20px); max-width: 560px; color: rgba(255, 255, 255, 0.95); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 14px;
  padding: 5px 14px 6px;
  border-radius: 999px;
  background: rgba(13, 36, 82, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.hero-art { position: relative; width: 100%; max-width: 520px; margin: 0 auto; padding-top: 60px; }
.courier { width: 82%; margin: 0 auto; filter: drop-shadow(0 26px 30px rgba(13, 36, 82, 0.45)); }

/* floating cards, same as the store screenshots' callouts */
.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.float small { display: block; font-size: 12px; line-height: 1.25; }
.float strong { display: block; font-size: 20px; line-height: 1.2; font-weight: 600; -webkit-text-stroke: 0.035em currentColor; }
.card-dark { background: var(--panel); border: 2px solid var(--rim); }
.card-dark small { color: var(--dim); }
.card-light { background: #fff; color: var(--navy); }
.card-light small { color: #5d6680; }
.ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.ic svg { width: 26px; height: 26px; }
.ic-yellow { background: var(--yellow); color: var(--navy); }
.ic-orange { background: var(--orange); }
.ic-green { background: #22a45d; }
/* GPS card sits over the empty corner above the parcel box, clear of the courier's helmet */
.f-gps { top: 0; left: -2%; }
.f-box { bottom: 16%; left: -2%; }
.f-fee { bottom: 0; right: 0; }
.t-green { color: var(--green); }

@media (min-width: 960px) {
  .hero-in { grid-template-columns: 1.05fr 1fr; padding-top: 72px; padding-bottom: 88px; gap: 40px; }
  .hero-art { max-width: none; padding-top: 0; }
  .float small { font-size: 13px; }
  .float strong { font-size: 24px; }
  .ic { width: 52px; height: 52px; border-radius: 14px; }
  .ic svg { width: 30px; height: 30px; }
  .f-gps { left: -8%; top: 4%; }
  .f-box { left: -6%; }
}
@media (max-width: 420px) {
  .float { padding: 8px 12px 8px 8px; gap: 8px; border-radius: 14px; }
  .float strong { font-size: 16px; }
  .float small { font-size: 11px; }
  .ic { width: 36px; height: 36px; border-radius: 10px; }
  .ic svg { width: 22px; height: 22px; }
  .f-gps { left: 0; }
  .f-box { left: 0; }
  .btn-lg { width: 100%; }
}

/* ------------------------------------------------------------------ sections */
.sec { padding: 72px 0; background: var(--page); }
.sec-alt { background: var(--page-alt); }
.sec-head { max-width: 720px; margin-bottom: 36px; }
.sec-head .tag, .career-copy .tag { margin-bottom: 16px; }
.sec h2 { font-size: clamp(32px, 5.4vw, 50px); margin-bottom: 14px; }
.sec-head p, .career-copy > p { color: var(--dim); font-size: 18px; }
@media (min-width: 960px) { .sec { padding: 104px 0; } }

/* game panel: dark navy with the cream rim */
.panel { background: var(--panel); border: 2px solid rgba(255, 242, 214, 0.16); border-radius: var(--r-md); }
.panel-rim { background: var(--panel); border: 3px solid var(--rim); border-radius: var(--r-lg); box-shadow: var(--shadow); }

/* landscape phone frame (from the store art) */
.device {
  padding: 10px;
  border-radius: 34px;
  background: linear-gradient(145deg, #2b3242 0%, #0b0e14 45%, #1c2230 100%);
  box-shadow: 0 0 0 2px #4a5366 inset, 0 0 0 6px #11151e inset, var(--shadow);
}
.screen { border-radius: 24px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.screen img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 720px) {
  .device { padding: 16px; border-radius: 48px; }
  .screen { border-radius: 32px; }
}

/* ------------------------------------------------------------------ how to play */
.how { display: grid; gap: 28px; align-items: center; }
.steps { display: grid; gap: 14px; }
.steps li { display: flex; gap: 16px; padding: 18px 20px; align-items: flex-start; }
.steps h3 { font-size: 21px; margin-bottom: 4px; }
.steps p { color: var(--dim); font-size: 16px; }
.num {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--yellow);
  color: var(--dark);
  font-size: 20px;
  border: 2px solid var(--rim);
}
@media (min-width: 960px) { .how { grid-template-columns: 1.15fr 1fr; gap: 48px; } }

/* ------------------------------------------------------------------ features */
.features { display: grid; gap: 18px; grid-template-columns: 1fr; }
.feat { overflow: hidden; display: flex; flex-direction: column; }
.feat img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-bottom: 2px solid rgba(255, 242, 214, 0.16); }
.feat-body { padding: 18px 20px 22px; }
.feat h3 { font-size: 21px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.feat p { color: var(--dim); font-size: 16px; }
.badge-vip {
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 3px 10px 4px;
  border-radius: 999px;
  color: var(--dark);
  background: linear-gradient(180deg, #ffe08a, #f5b419);
  -webkit-text-stroke: 0;
}
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

/* ------------------------------------------------------------------ dealer panel */
.dealer { padding: 20px; }
.dealer-head { margin-bottom: 18px; }
.dealer-name {
  display: inline-block;
  background: #d62b2b;
  border: 2px solid #ff8f8a;
  border-radius: 10px;
  padding: 4px 14px 5px;
  font-size: 24px;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}
.dealer-sub { display: block; margin-top: 8px; color: var(--dim); font-size: 15px; }
.vehicles {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 78%);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.veh {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  padding: 14px 16px 16px;
}
.veh-own { border: 3px solid var(--green); }
.veh-top { display: flex; justify-content: space-between; gap: 8px; }
.tier {
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 2px 10px 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
}
.tier-green { color: var(--green); background: rgba(102, 219, 107, 0.15); border: 1.5px solid var(--green); }
.veh h3 { font-size: 26px; margin: 8px 0 10px; }
.veh img { border-radius: var(--r-sm); width: 100%; aspect-ratio: 408 / 262; object-fit: cover; }
.veh dl { margin-top: 12px; display: grid; gap: 4px; }
.veh dl div { display: flex; justify-content: space-between; gap: 10px; font-size: 16px; }
.veh dt { color: var(--dim); }
.veh dd { -webkit-text-stroke: 0.03em currentColor; }
.veh-note { color: var(--dim); font-size: 14px; margin-top: 8px; flex: 1; }
.veh-price { margin-top: 14px; text-align: center; font-size: 24px; color: var(--yellow); }
.veh-own .veh-price { font-size: 20px; }
@media (min-width: 1000px) {
  .dealer { padding: 28px; }
  .vehicles { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; }
}

/* ------------------------------------------------------------------ career */
.career { display: grid; gap: 36px; align-items: center; }
.ladder { margin-top: 26px; display: grid; gap: 10px; counter-reset: none; }
.ladder li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  background: var(--panel);
  border: 2px solid rgba(255, 242, 214, 0.16);
  border-radius: var(--r-sm);
  padding: 10px 16px 10px 10px;
}
.ladder b { font-weight: 600; font-size: 18px; letter-spacing: 0.04em; -webkit-text-stroke: 0.03em currentColor; }
.ladder small { grid-column: 2; color: var(--dim); font-size: 14px; line-height: 1.3; }
.lv {
  grid-row: 1 / span 2;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #2f2a52;
  border: 3px solid #9e85ff;           /* the game's EXP violet */
  color: #d0c4ff;
  font-size: 18px;
}
.lv svg { width: 22px; height: 22px; }
.ladder-top { border-color: var(--yellow) !important; }
.ladder-top .lv { background: var(--yellow); border-color: var(--rim); color: var(--dark); }
.ladder-top b { color: var(--yellow); }
@media (min-width: 960px) { .career { grid-template-columns: 1fr 1.1fr; gap: 56px; } }

/* ------------------------------------------------------------------ gallery */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(82vw, 560px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  padding: 4px var(--gutter) 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--gray) transparent;
}
@media (min-width: 1220px) {
  .gallery { padding-left: calc((100vw - var(--wrap)) / 2 + var(--gutter)); scroll-padding-left: calc((100vw - var(--wrap)) / 2 + var(--gutter)); }
}
.gallery a {
  scroll-snap-align: start;
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 3px solid var(--rim);
  box-shadow: var(--shadow);
}
.gallery img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; transition: transform 0.25s ease; }
.gallery a:hover img { transform: scale(1.03); }

/* ------------------------------------------------------------------ FAQ */
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 12px; }
.faq details { padding: 0; overflow: hidden; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 56px 18px 20px;
  position: relative;
  font-size: 18px;
  -webkit-text-stroke: 0.03em currentColor;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 26px; height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1a14' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] { border-color: rgba(255, 204, 56, 0.55); }
.faq details p { padding: 0 20px 20px; color: var(--dim); }
.faq a { color: var(--yellow); }

/* ------------------------------------------------------------------ final CTA */
.final-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding-top: 72px; padding-bottom: 80px; }
.final img { width: 88px; height: 88px; border-radius: 22px; border: 3px solid #fff; box-shadow: 0 10px 24px rgba(13, 36, 82, 0.35); }
.final h2 { font-size: clamp(32px, 6vw, 56px); filter: drop-shadow(0 4px 0 rgba(13, 36, 82, 0.16)); }
.final p { font-size: 19px; color: rgba(255, 255, 255, 0.95); }
.final .btn { margin-top: 8px; }
.final-404 { min-height: 100vh; display: grid; align-items: center; }

/* ------------------------------------------------------------------ footer */
.footer { background: var(--panel); border-top: 2px solid rgba(255, 242, 214, 0.16); padding: 36px 0 44px; font-size: 15px; }
.footer-in { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.footer-brand p { color: var(--dim); margin-top: 10px; max-width: 420px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--dim); text-decoration: none; }
.footer-links a:hover { color: var(--yellow); text-decoration: underline; }
