:root {
  color-scheme: light dark;
  --bg: #f7f0e6;
  --bg-deep: #ecdcc6;
  --text: #2d2219;
  --muted: #6e5c4a;
  --accent: #b4532a;
  --on-accent: #ffffff;
  --hill-back: rgba(180, 83, 42, 0.10);
  --hill-front: rgba(180, 83, 42, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1a16;
    --bg-deep: #15110e;
    --text: #f4ebdf;
    --muted: #c2b09c;
    --accent: #e3825a;
    --on-accent: #1f1a16;
    --hill-back: rgba(227, 130, 90, 0.08);
    --hill-front: rgba(227, 130, 90, 0.14);
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

body > :not(.hills) {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Header and language switch */

.topbar {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.25rem;
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
}

.lang-switch a {
  padding: 0.35rem 1rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.lang-switch a:hover {
  background: var(--text);
  color: var(--bg);
}

/* Centered page content */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem 4rem;
  text-align: center;
}

.bike {
  width: min(200px, 50vw);
  height: auto;
  color: var(--accent);
  animation: ride 2.4s ease-in-out infinite;
}

.brand {
  margin: 1.25rem 0 0;
  font-size: clamp(2.5rem, 9vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
}

.badge {
  margin: 1rem 0;
  padding: 0.25rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.1rem;
  font-weight: 600;
}

.tagline {
  max-width: 30rem;
  margin: 0;
  font-size: 1.15rem;
  color: var(--muted);
}

.code {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.footer {
  padding: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Decorative mountains at the bottom of the page */

.hills {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  width: 100%;
  height: 28vh;
  z-index: 0;
  pointer-events: none;
}

.hill-back {
  fill: var(--hill-back);
}

.hill-front {
  fill: var(--hill-front);
}

@keyframes ride {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .bike {
    animation: none;
  }
}
