:root {
  color-scheme: dark;
  --bg: #0b1016;
  --bg-raised: #101820;
  --panel: #151f29;
  --panel-deep: #0d151d;
  --line: #2b3946;
  --line-soft: rgba(185, 202, 216, .16);
  --text: #eef3f7;
  --muted: #b6c2cc;
  --quiet: #8c9ba8;
  --blue: #81bdf1;
  --blue-strong: #2f76b5;
  --blue-deep: #1b4f7b;
  --steel: #c4ced6;
  --metal: #d3aa68;
  --good: #7bd0a2;
  --warn: #f0c66e;
  --bad: #ff9292;
  font-family: Inter, "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(135deg, transparent 48.8%, rgba(129, 189, 241, .025) 49.3%, transparent 49.8%),
    linear-gradient(45deg, transparent 48.8%, rgba(211, 170, 104, .018) 49.3%, transparent 49.8%);
  background-size: 220px 220px, 280px 280px;
  line-height: 1.62;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .22em; }
a:hover { color: #c0e0fc; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--metal);
  outline-offset: 3px;
  border-radius: 4px;
}
button, a { -webkit-tap-highlight-color: transparent; }
[hidden], .hidden { display: none !important; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.topbar { background: #080c11; border-bottom: 1px solid #202b35; color: var(--steel); font-size: .75rem; letter-spacing: .035em; }
.topbar-inner { width: min(1180px, calc(100% - 44px)); min-height: 31px; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.topbar-inner span:last-child { color: var(--quiet); }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(11, 16, 22, .97); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { width: min(1180px, calc(100% - 44px)); min-height: 82px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 11px; padding: 5px 10px; color: var(--text); background: #07131e; border: 1px solid #263541; border-radius: 7px; line-height: 1; text-decoration: none; }
.brand img { display: block; width: 160px; max-height: 52px; object-fit: contain; }
.brand span { border-left: 1px solid #526575; padding-left: 11px; color: var(--steel); font-size: .91rem; font-weight: 760; white-space: nowrap; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(9px, 1.2vw, 17px); }
.site-nav a { min-height: 42px; display: inline-flex; align-items: center; padding: 7px 3px; color: var(--steel); font-size: .87rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px var(--metal); }
.site-nav .nav-cta { min-height: 42px; padding: 8px 13px; border: 1px solid var(--blue-strong); border-radius: 7px; background: var(--blue-strong); color: #fff; }
.site-nav .nav-cta:hover { background: #286498; border-color: #286498; color: #fff; }
.menu-toggle { display: none; min-height: 44px; padding: 8px 12px; border: 1px solid #536576; border-radius: 7px; background: #101922; color: var(--text); font: inherit; font-size: .86rem; font-weight: 730; cursor: pointer; }
.menu-bars { margin-right: 6px; color: var(--blue); }
.site-footer { min-height: 74px; padding: 20px max(22px, calc((100% - 1180px) / 2)); display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px 24px; border-top: 1px solid #263440; background: #080d12; color: var(--quiet); font-size: .84rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

button, input, select { font: inherit; }
button { color: #fff; }
input, select {
  min-height: 45px;
  border: 1px solid #526575;
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--text);
  background: #0d151d;
}
input::placeholder { color: #8293a2; opacity: 1; }
input:disabled, select:disabled { opacity: .72; }
button:disabled { cursor: not-allowed; opacity: .68; }

@media (max-width: 1060px) {
  .header-inner { min-height: 76px; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 3px; padding: 11px 16px 17px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; background: #0b1219; box-shadow: 0 18px 32px rgba(0, 0, 0, .36); }
  .site-nav.open { display: flex; }
  .site-nav a { min-height: 44px; padding: 9px 10px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 var(--metal); }
  .site-nav .nav-cta { justify-content: center; margin-top: 4px; }
}
@media (max-width: 600px) {
  .topbar-inner { width: calc(100% - 32px); min-height: 30px; justify-content: flex-start; }
  .topbar-inner span:last-child { display: none; }
  .header-inner { width: calc(100% - 28px); min-height: 70px; gap: 9px; }
  .brand { gap: 8px; padding: 4px 6px; }
  .brand img { width: 139px; max-height: 43px; }
  .brand span { padding-left: 8px; font-size: .8rem; }
  .menu-toggle { min-height: 42px; padding: 7px 9px; font-size: .8rem; white-space: nowrap; }
  .menu-bars { margin-right: 4px; }
  .site-footer { padding: 19px 16px; gap: 9px 17px; }
}
@media (max-width: 360px) {
  .brand img { width: 118px; }
  .brand span { font-size: .74rem; }
  .menu-toggle { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
