:root {
  color-scheme: light dark;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eaeff6;
  --border: rgba(16, 32, 64, 0.1);
  --text: #0f1726;
  --muted: #5a6475;
  --accent: #0a64d0;
  --accent-text: #ffffff;
  --accent-soft: rgba(10, 100, 208, 0.1);
  --header-bg: rgba(246, 248, 251, 0.8);
  --shadow: 0 24px 60px -24px rgba(16, 32, 64, 0.28);
  --radius: 18px;
  --max: 1120px;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Manrope', var(--font-body);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --surface: #161c25;
    --surface-2: #1f2733;
    --border: rgba(214, 228, 255, 0.1);
    --text: #eef2f8;
    --muted: #9aa5b6;
    --accent: #4b9bff;
    --accent-text: #06111f;
    --accent-soft: rgba(75, 155, 255, 0.14);
    --header-bg: rgba(13, 17, 23, 0.8);
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
}

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 10px 30px -10px var(--accent);
}

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

/* Simple text pages: status and error */
.page {
  padding: 5rem 0 6rem;
}

.page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.page p {
  color: var(--muted);
  max-width: 40rem;
}

.page .btn {
  margin-top: 1rem;
}

.request-id code {
  font-size: 0.9em;
}
