:root {
  color-scheme: light dark;
  --background: #f2f5fb;
  --surface: rgba(255, 255, 255, 0.88);
  --text: #171a2b;
  --muted: #5f6478;
  --accent: #ed4c43;
  --accent-dark: #c93832;
  --border: rgba(35, 38, 68, 0.12);
  --shadow: 0 24px 70px rgba(42, 39, 79, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(237, 76, 67, 0.13), transparent 35%),
    radial-gradient(circle at 90% 8%, rgba(72, 69, 121, 0.18), transparent 36%),
    var(--background);
}

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

.site-header,
.site-footer,
main {
  width: min(920px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 4px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  border-radius: 13px;
  background: linear-gradient(145deg, #ff6258, #d93636);
  box-shadow: 0 10px 24px rgba(217, 54, 54, 0.28);
}

nav { display: flex; flex-wrap: wrap; gap: 8px; }

nav a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
  font-weight: 700;
}

nav a:hover,
.button:hover { border-color: rgba(237, 76, 67, 0.45); }

.hero,
.document {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero { padding: clamp(30px, 7vw, 72px); }
.document { padding: clamp(24px, 6vw, 58px); }

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.18; letter-spacing: -0.025em; }
h1 { margin: 0 0 16px; font-size: clamp(2.3rem, 7vw, 4.8rem); }
h2 { margin-top: 2.2em; font-size: 1.5rem; }
h3 { margin-top: 1.7em; font-size: 1.08rem; }
p, li { color: var(--muted); }

.lead { max-width: 680px; font-size: 1.15rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button.primary { color: #fff; border-color: transparent; background: var(--accent); }

.meta {
  margin: 0 0 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.language-links { margin-bottom: 30px; }
.language-links a { margin-right: 14px; font-weight: 750; }
.language-section + .language-section { margin-top: 64px; padding-top: 48px; border-top: 2px solid var(--border); }

.notice {
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: rgba(237, 76, 67, 0.07);
}

.site-footer { padding: 28px 4px 44px; color: var(--muted); font-size: 0.9rem; }

@media (max-width: 680px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .document { border-radius: 20px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111321;
    --surface: rgba(28, 30, 49, 0.9);
    --text: #f4f5fb;
    --muted: #c4c7d6;
    --accent-dark: #ff7168;
    --border: rgba(255, 255, 255, 0.12);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  }
}
