/*
  Crazy Cab City microsites: one stylesheet for the landing, support, privacy
  and terms pages. The look is the game's own menu kit (src/index.css):
  the city navy, frosted dark glass, cyan for actions, white for a selected
  tile, Orbitron for labels and taxi yellow as the brand colour.
*/
:root {
  --navy: #101433;
  --deep: #0a0f24;
  --glass: rgba(16, 24, 52, 0.72);
  --tile: rgba(255, 255, 255, 0.06);
  --tile-hover: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.09);
  --ink: #f4f6fb;
  --muted: rgba(244, 246, 251, 0.64);
  --yellow: #ffd23f;
  --yellow-deep: #ffb62e;
  --cyan: #5ee6eb;
  --cyan-ink: #06202a;
  --fare: #3fe07d;
  --radius: 1.25rem;
  --wrap: 72rem;
  --tech: "Orbitron", "Avenir Next", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
/* Dark, thin scrollbars everywhere: a white bar under a chip row looks broken. */
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.22) transparent; }
::-webkit-scrollbar { width: 8px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.22); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }
a { color: var(--cyan); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* Language: every bilingual string is an element with lang="en" or lang="id".
   site.js sets html[data-lang]; without script English shows. */
html[data-lang="en"] body [lang="id"],
html[data-lang="id"] body [lang="en"],
html:not([data-lang]) body [lang="id"] { display: none !important; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

/* Labels: the game's chips and section tags. */
.tech { font-family: var(--tech); text-transform: uppercase; letter-spacing: 0.08em; }
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font: 700 0.68rem/1 var(--tech); text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.09);
  padding: 0.5rem 0.85rem; border-radius: 999px;
}
.chip.yellow { background: var(--yellow); color: var(--navy); }

/* Buttons: cyan for actions, glass for the rest, as on the home menu. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0 1.4rem; border: 0; border-radius: 1rem;
  font: 900 0.85rem/1 var(--tech); text-transform: uppercase; letter-spacing: 0.08em;
  text-decoration: none; cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.btn:active { transform: scale(0.97); }
.btn-cyan { background: var(--cyan); color: var(--cyan-ink); }
.btn-glass { background: var(--glass); color: var(--ink); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.btn-glass:hover { background: rgba(28, 38, 78, 0.85); }
.btn[aria-disabled="true"] { cursor: default; opacity: 0.8; }
.btn small { font: 600 0.62rem/1 var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); display: block; margin-top: 0.2rem; }
.btn .stack { display: flex; flex-direction: column; align-items: flex-start; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(16, 20, 51, 0.78);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--ink); text-decoration: none; font: 900 0.9rem/1 var(--tech); text-transform: uppercase; letter-spacing: 0.06em; }
.brand img { width: 2.25rem; height: 2.25rem; border-radius: 0.65rem; }
/* The header carries the game logo, not the app icon. */
.brand img.brand-logo { width: auto; height: 2.6rem; border-radius: 0; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45)); }
@media (max-width: 600px) { .brand img.brand-logo { height: 2.2rem; } }
.nav { display: flex; gap: 0.25rem; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font: 700 0.7rem/1 var(--tech); text-transform: uppercase; letter-spacing: 0.1em; padding: 0.7rem 0.75rem; border-radius: 0.7rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--tile); }
.lang { display: inline-flex; background: var(--tile); border-radius: 999px; padding: 0.2rem; }
.lang button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: 800 0.68rem/1 var(--tech); letter-spacing: 0.1em; padding: 0.5rem 0.7rem; border-radius: 999px;
}
.lang button[aria-pressed="true"] { background: #f4f7fb; color: #0d1424; }
@media (max-width: 760px) { .nav { display: none; } .lang { margin-left: auto; } }
/* Section tabs: the landing page's header, used on every page so it never changes. */
.topbar .tabs { display: flex; gap: 0.15rem; margin-left: auto; }
.topbar .tabs a { color: rgba(255, 255, 255, 0.8); text-decoration: none; font: 700 0.66rem/1 var(--tech); letter-spacing: 0.12em; text-transform: uppercase; padding: 0.7rem 0.8rem; border-radius: 0.7rem; white-space: nowrap; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.topbar .tabs a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
@media (max-width: 760px) { .topbar .tabs { display: none; } .topbar .lang { margin-left: auto; } }

/* Sections */
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.eyebrow { margin-bottom: 1rem; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 900; }
h3 { font-size: 1.2rem; font-weight: 800; }
.lede { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.15rem); max-width: 38rem; margin: 1rem 0 0; }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }

/* Glass panel, the game's "hi-tech" card */
.panel {
  background:
    linear-gradient(160deg, rgba(120, 200, 255, 0.08), rgba(255, 255, 255, 0) 45%),
    var(--glass);
  border-radius: 1.6rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* Screens: game captures in a rounded frame */
.screen { border-radius: var(--radius); overflow: hidden; background: var(--deep); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); }
.screen img { width: 100%; height: 100%; object-fit: cover; }

/* Footer */
/* Footer pinned to the bottom of the screen on short pages, whatever the screen height. */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; color: var(--muted); font-size: 0.9rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.footer a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer a:hover { color: var(--cyan); }

/* Document pages (privacy, terms, support) */
.doc-hero { padding: clamp(3rem, 7vw, 5rem) 0 2rem; }
.doc-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 900; }
.doc-hero .meta { color: var(--muted); margin-top: 0.75rem; font-size: 0.92rem; }
.doc { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 3rem; padding: 3rem 0 5rem; align-items: start; }
.doc .toc { position: sticky; top: 5.5rem; display: flex; flex-direction: column; gap: 0.15rem; }
.doc .toc a { color: var(--muted); text-decoration: none; font-size: 0.9rem; padding: 0.4rem 0.75rem; border-radius: 0.6rem; border-left: 2px solid transparent; }
.doc .toc a:hover { color: var(--ink); background: var(--tile); }
.doc .toc a.on { color: var(--ink); border-left-color: var(--yellow); background: var(--tile); }
.doc article { max-width: 44rem; }
.doc article h2 { font-size: 1.35rem; margin: 2.75rem 0 0.75rem; scroll-margin-top: 5.5rem; }
.doc article h2:first-child { margin-top: 0; }
.doc article p, .doc article li { color: rgba(244, 246, 251, 0.82); }
.doc article ul { padding-left: 1.15rem; }
.doc article li { margin: 0.5rem 0; }
.doc article strong { color: var(--ink); }
.doc code { font-size: 0.88em; background: var(--tile); padding: 0.1rem 0.4rem; border-radius: 0.35rem; }
.summary { padding: 1.25rem 1.4rem; border-radius: var(--radius); background: var(--tile); border-left: 4px solid var(--yellow); margin-bottom: 2.5rem; }
.summary p { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.75rem; margin: 1.5rem 0 0; }
.fact { background: var(--tile); border-radius: 1rem; padding: 1rem; }
.fact b { display: block; font: 900 0.72rem/1.3 var(--tech); text-transform: uppercase; letter-spacing: 0.1em; color: #fff; margin-bottom: 0.35rem; }
.fact > span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; gap: 1.5rem; }
  .doc .toc { position: static; flex-direction: row; overflow-x: auto; gap: 0.4rem; padding-bottom: 0.25rem; }
  .doc .toc a { white-space: nowrap; border-left: 0; background: var(--tile); border-radius: 999px; }
  .doc .toc a.on { background: #f4f7fb; color: #0d1424; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
