/* busville.dabarsoft.com. The colors and the fonts are the game's: the sky of the menu,
   the night shade over its town, the yellow of a level won, Bungee and Nunito. */

@font-face { font-family: "Bungee"; font-weight: 400; src: url("/assets/fonts/Bungee-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Nunito"; font-weight: 200 1000; src: url("/assets/fonts/Nunito-Variable.ttf") format("truetype"); font-display: swap; }

:root {
  --sky: #2977eb;
  --sky-light: #5a9bf5;
  --night: #0a1238;
  --night-soft: #141d4d;
  --line: #2b3877;
  --white: #ffffff;
  --text: #dfe5fb;
  --muted: #aab4dc;
  --yellow: #ffd133;
  --orange: #f58220;
  --page-width: 1040px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 800 17px/1.6 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: var(--white); }
a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 16px; top: -60px; background: var(--white); color: var(--night); padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--page-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--night); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.site-header .brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; font: 400 22px/1 "Bungee", "Arial Black", sans-serif; }
.site-header .brand img { width: 40px; height: 40px; border-radius: 10px; }
.site-header nav { display: flex; align-items: center; gap: 6px 20px; flex-wrap: wrap; font-size: 15px; }
.site-header nav a { color: var(--text); text-decoration: none; padding: 6px 0; }
.site-header nav a:hover { color: var(--yellow); }
.site-header nav .lang-switch { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--muted); }
.site-header nav .lang-switch:hover { border-color: var(--muted); color: var(--white); }

/* Hero: the sky of the menu */
.hero { background: linear-gradient(180deg, var(--sky) 0%, var(--sky-light) 70%, var(--sky) 100%); color: var(--white); }
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 24px 48px; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font: 400 clamp(44px, 9vw, 84px) / 1 "Bungee", "Arial Black", sans-serif; margin: 0 0 18px; text-shadow: 0 4px 0 rgba(10, 18, 56, 0.35); overflow-wrap: anywhere; }
.hero p { margin: 0 0 14px; max-width: 40ch; font-size: 20px; }
.hero .soon { display: inline-block; background: var(--night); color: var(--yellow); border-radius: 999px; padding: 8px 18px; font-size: 15px; margin: 8px 0 0; }
.hero .icon { justify-self: center; width: 100%; max-width: 380px; border-radius: 22%; box-shadow: 0 18px 40px rgba(10, 18, 56, 0.45); }

/* Sections */
section { padding: 60px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font: 400 34px/1.1 "Bungee", "Arial Black", sans-serif; color: var(--white); margin: 0 0 18px; }
h3 { font: 900 20px/1.3 "Nunito", system-ui, sans-serif; color: var(--white); margin: 0 0 6px; }
p { margin: 0 0 16px; }
.text { max-width: 68ch; }

.steps { list-style: none; counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0; padding: 0; }
.steps li { counter-increment: step; background: var(--night-soft); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.steps li::before { content: counter(step); display: inline-block; font: 400 26px/1 "Bungee", "Arial Black", sans-serif; color: var(--yellow); margin: 0 0 10px; }
.steps p { margin: 0; color: var(--muted); }

.features { display: grid; gap: 10px 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 0; padding: 0 0 0 22px; max-width: 900px; }
.features li::marker { color: var(--orange); }

.shots { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); list-style: none; margin: 0; padding: 0; }
.shots img { width: 100%; border-radius: 16px; border: 1px solid var(--line); }

/* Buttons */
.button { display: inline-block; background: var(--yellow); color: var(--night); text-decoration: none; padding: 12px 22px; border-radius: 999px; font-weight: 900; font-size: 16px; }
.button:hover { background: var(--white); color: var(--night); }
.button.secondary { background: transparent; color: var(--white); border: 1px solid var(--line); }
.button.secondary:hover { border-color: var(--muted); background: transparent; color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Legal documents */
.document { padding: 48px 0 72px; }
.document .container { max-width: 760px; }
.document h1 { font: 400 clamp(34px, 7vw, 52px) / 1.05 "Bungee", "Arial Black", sans-serif; color: var(--white); margin: 0 0 8px; overflow-wrap: anywhere; }
.document .product-name { color: var(--yellow); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 10px; }
.document .date { color: var(--muted); font-size: 15px; margin: 0 0 30px; }
.document h2 { font: 900 22px/1.3 "Nunito", system-ui, sans-serif; margin: 36px 0 10px; }
.document ul { padding-left: 22px; margin: 0 0 16px; }
.document li { margin-bottom: 6px; }
.document code { font: 15px ui-monospace, Consolas, monospace; color: var(--yellow); overflow-wrap: anywhere; }
.document .summary { border: 1px solid var(--line); border-left: 4px solid var(--yellow); background: var(--night-soft); border-radius: 12px; padding: 18px 20px; margin: 0 0 8px; }
.document .summary p { color: var(--white); margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--white); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer .studio { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.site-footer .studio img { width: 151px; height: 30px; }

/* Page not found */
.not-found { text-align: center; padding: 90px 0; }
.not-found h1 { font: 400 clamp(56px, 12vw, 110px) / 1 "Bungee", "Arial Black", sans-serif; margin: 0 0 12px; color: var(--yellow); }
.not-found p { color: var(--muted); margin: 0 auto 10px; max-width: 46ch; }
.not-found .actions { justify-content: center; margin-top: 26px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero .container { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 40px; }
  .hero .icon { order: -1; max-width: 220px; }
  .hero p { font-size: 18px; }
  section { padding: 44px 0; }
  h2 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
