:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --surface: rgba(255,255,255,.78);
  --surface-strong: #ffffff;
  --text: #15171a;
  --muted: #676d75;
  --line: rgba(21,23,26,.10);
  --accent: #ab3020;
  --accent-strong: #912719;
  --shadow: 0 18px 60px rgba(22, 28, 45, .10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --max: 940px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: rgba(27,30,36,.82);
    --surface-strong: #181b20;
    --text: #f4f5f7;
    --muted: #a6adb7;
    --line: rgba(255,255,255,.10);
    --accent: #ff8a79;
    --accent-strong: #ff8a79;
    --shadow: 0 18px 60px rgba(0,0,0,.26);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% -8%, rgba(255,107,87,.18), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: .18em; }
body { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip-link { position: absolute; left: 16px; top: 12px; max-width: calc(100% - 32px); transform: translateY(-200%); z-index: 30; padding: 12px 16px; background: var(--surface-strong); }
.skip-link:focus { transform: none; }
.nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }
.feature-summary { max-width: 760px; padding-bottom: 40px; }
.feature-summary h2 { letter-spacing: -.025em; }
.feature-summary p { line-height: 1.7; color: var(--muted); }
main:focus { outline: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(140%) blur(20px);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(calc(100% - 32px), var(--max));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 12px 0;
}
.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 40px;
  height: 40px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}
.nav { width: 100%; display: flex; gap: 10px 18px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); font-size: .875rem; }
.nav a:hover { color: var(--text); }
.language-switcher {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 12px;
  font-size: .875rem;
}
.language-switcher a { padding: 6px 0; color: var(--muted); white-space: nowrap; }
.language-switcher a[aria-current="page"] { color: var(--text); font-weight: 700; text-decoration: none; }

main { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.hero { padding: 92px 0 56px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: .8125rem;
  font-weight: 650;
}
h1 {
  margin: 20px 0 18px;
  font-size: clamp(2.625rem, 8vw, 4.625rem);
  line-height: .98;
  letter-spacing: -.055em;
  max-width: 820px;
}
.hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  line-height: 1.55;
  margin: 0;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  text-align: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  font-weight: 700;
}
.button.primary { background: var(--accent); color: var(--surface-strong); border-color: transparent; }
.button.primary:hover { background: var(--accent-strong); }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 72px;
}
.card {
  display: block;
  min-height: 170px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.card:hover { transform: translateY(-2px); transition: transform .18s ease; }
.card h2 { margin: 0 0 10px; font-size: 1.3125rem; letter-spacing: -.025em; }
.card p { margin: 0; color: var(--muted); line-height: 1.55; }
.card .arrow { display: inline-block; margin-top: 18px; color: var(--accent); font-weight: 800; }

.document { padding: 64px 0 84px; }
.document-shell {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 50px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.breadcrumb { margin-bottom: 24px; color: var(--muted); font-size: .875rem; }
.breadcrumb a { text-decoration: none; }
.document h1 {
  hyphens: auto;
  line-height: 1.08;
  font-size: clamp(2.375rem, 7vw, 3.625rem);
  margin: 0 0 12px;
}
.meta { color: var(--muted); margin: 0 0 32px; }
.document h2 { margin: 38px 0 12px; font-size: 1.5rem; letter-spacing: -.025em; }
.document h3 { margin: 28px 0 10px; font-size: 1.125rem; }
.document p, .document li { line-height: 1.7; }
.document p, .document ul { color: color-mix(in srgb, var(--text) 84%, var(--muted)); }
.document ul { padding-left: 22px; }
.notice {
  margin: 24px 0;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
}

footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 26px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8125rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }

@media (max-width: 720px) {
  .site-header { position: static; }
  .nav { gap: 10px 14px; }
  .hero { padding-top: 66px; }
  .grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .header-inner { column-gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card:hover { transform: none; transition: none; }
}
