:root {
  color-scheme: light;
  --background: #f7f9fc;
  --background-secondary: #eef3f9;
  --surface: #ffffff;
  --surface-hover: #f8fbff;
  --border: #dce4ee;
  --border-strong: #c6d3e2;
  --text: #14213d;
  --text-secondary: #53657d;
  --text-muted: #7f8da0;
  --primary: #2457d6;
  --primary-hover: #1847bd;
  --success: #1f9d68;
  --warning: #c78316;
  --danger: #d6475d;
  --code: #f4f7fb;
  --radius: 16px;
  --radius-small: 10px;
  --shadow: 0 14px 36px rgba(36, 62, 99, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0, var(--background) 460px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
button, textarea, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(36, 87, 214, 0.22);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
}
.navigation {
  width: min(1120px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid #b9c9dc;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #2457d6;
  box-shadow: 0 7px 18px rgba(36,87,214,.18);
}
.brand-mark img { width: 24px; height: 24px; display: block; object-fit: contain; }
.navigation-actions { display: flex; align-items: center; gap: 14px; min-width: 0; }
.nav-links { display: flex; align-items: center; gap: 5px; }
.nav-links a {
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: #edf3ff; }
.language-switcher {
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-flex;
  background: #f5f7fa;
}
.language-button {
  min-width: 37px;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  color: var(--text-muted);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}
.language-button.active { color: #fff; background: var(--primary); }

.page { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0 80px; }
.hero { max-width: 760px; margin-bottom: 36px; }
.eyebrow { margin-bottom: 10px; color: var(--primary); font-size: 13px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
h1,h2,h3,p { margin-top: 0; }
h1 { margin-bottom: 16px; font-size: clamp(37px,7vw,62px); line-height: 1.04; letter-spacing: -.045em; }
h2 { margin-bottom: 12px; font-size: 27px; letter-spacing: -.025em; }
h3 { margin-bottom: 8px; font-size: 17px; }
.lead { color: var(--text-secondary); font-size: 18px; }
.card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.status-line { display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 14px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-muted); }
.status-dot.online { background: var(--success); box-shadow: 0 0 0 4px rgba(31,157,104,.10); }
.status-dot.warning { background: var(--warning); }
.status-dot.offline { background: var(--danger); }
.button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--primary);
  font-weight: 700;
  text-decoration: none;
  transition: .15s ease;
}
.button:hover:not(:disabled) { background: var(--primary-hover); transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: not-allowed; }
.button.secondary { border-color: var(--border-strong); color: var(--primary); background: #fff; }
.button.secondary:hover:not(:disabled) { background: #f2f6ff; border-color: #aebfd5; }
.code-block {
  margin: 14px 0;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #243650;
  background: var(--code);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre;
}
.inline-code { padding: 2px 6px; border: 1px solid var(--border); border-radius: 6px; color: #24446f; background: var(--code); font-family: monospace; }
.footer { padding: 30px 16px 50px; color: var(--text-muted); text-align: center; font-size: 13px; }

@media (max-width: 900px) {
  .navigation { padding: 13px 0; align-items: flex-start; flex-direction: column; }
  .navigation-actions { width: 100%; justify-content: space-between; }
  .nav-links { overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
}
@media (max-width: 560px) {
  .navigation-actions { align-items: flex-start; flex-direction: column; }
  .nav-links { width: 100%; }
  .language-switcher { align-self: flex-end; }
}

/* v2 responsive and shared-brand refinements */
.brand-mark {
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.brand-mark img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 24px, 1120px);
    padding-top: 42px;
    padding-bottom: 58px;
  }
  .navigation {
    width: min(100% - 24px, 1120px);
  }
  h1 { font-size: clamp(34px, 11vw, 48px); }
  h2 { font-size: 24px; }
  .lead { font-size: 16px; }
  .card { border-radius: 14px; }
  .code-block { padding: 14px; font-size: 12px; }
}

@media (max-width: 560px) {
  .site-header { position: static; }
  .navigation { gap: 12px; }
  .brand { font-size: 15px; }
  .navigation-actions { gap: 10px; }
  .nav-links a { padding: 7px 9px; font-size: 13px; }
  .language-switcher { align-self: flex-start; }
  .button { width: 100%; }
}
