:root {
  --ink: #20384f;
  --ink-soft: #536d84;
  --muted: #74899b;
  --brand: #347db7;
  --brand-deep: #246591;
  --brand-pale: #e9f4fb;
  --lavender: #b5a5c4;
  --amber: #eeae52;
  --paper: #ffffff;
  --canvas: #f3f7fb;
  --line: #dce6ef;
  --shadow: 0 18px 50px rgba(32, 56, 79, .09);
  --radius: 22px;
  --pill: 999px;
  --brand-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 14%, rgba(52,125,183,.10) 0 4px, transparent 5px),
    radial-gradient(circle at 88% 30%, rgba(181,165,196,.13) 0 6px, transparent 7px),
    linear-gradient(180deg, #f8fbfd 0, var(--canvas) 42%, #f5f8fb 100%);
  font-family: var(--brand-font);
  min-height: 100vh;
}
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
  animation: brand-float 12s ease-in-out infinite alternate;
}
body::before {
  width: 340px; height: 340px; left: -150px; top: 16vh;
  background: rgba(52,125,183,.08);
}
body::after {
  width: 280px; height: 280px; right: -110px; top: 58vh;
  background: rgba(181,165,196,.10);
  animation-delay: -4s;
}
@keyframes brand-float {
  to { transform: translate3d(18px, -24px, 0) scale(1.06); }
}
@keyframes brand-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

a { color: var(--brand-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
button, input, select { font: inherit; }
button {
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(255,255,255,.94);
  color: var(--ink);
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
button:hover {
  background: var(--brand-pale);
  border-color: #bad6e8;
  transform: translateY(-1px);
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(52,125,183,.35);
  outline-offset: 3px;
}

.site-header {
  min-height: 76px;
  padding: 12px max(22px, calc((100vw - 1390px)/2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid rgba(220,230,239,.95);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  width: 38px; height: 38px;
  display: grid;
  grid-template-columns: repeat(3, 5px);
  grid-auto-rows: 5px;
  place-content: center;
  gap: 3px;
  border-radius: 13px;
  background: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 8px 22px rgba(52,125,183,.20);
}
.brand-mark i { width: 5px; height: 5px; border-radius: 50%; background: white; opacity: .92; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(6), .brand-mark i:nth-child(8) { opacity: .52; transform: scale(.72); }
.brand-name { font-size: 12px; font-weight: 850; letter-spacing: 1.35px; }
.brand-section { color: var(--muted); font-size: 12px; }
.brand-slash { color: #bccad6; }
.site-nav { display: flex; gap: 6px; align-items: center; margin: 0; padding: 0; border: 0; }
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: var(--pill);
}
.site-nav a:hover { color: var(--brand-deep); background: var(--brand-pale); }
.site-nav a[aria-current="page"] { color: var(--brand-deep); background: white; border-color: var(--line); box-shadow: 0 4px 14px rgba(32,56,79,.07); }

.brand-eyebrow, .eyebrow {
  color: var(--brand-deep) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 1.8px !important;
  text-transform: uppercase;
}
.brand-card, .card, .visual, .controls, .compare-card {
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid #d4e6f2;
  border-radius: var(--pill) !important;
  color: var(--brand-deep) !important;
  background: var(--brand-pale) !important;
}
.primary {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
  box-shadow: 0 9px 22px rgba(52,125,183,.22);
}
.primary:hover { background: var(--brand-deep) !important; }

.source-note {
  margin: 28px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 26px 0 32px;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
.site-footer strong { color: var(--ink-soft); letter-spacing: 1.2px; }
.brand-enter { animation: brand-rise .55s cubic-bezier(.2,.75,.3,1) both; }

@media (max-width: 720px) {
  .site-header { min-height: 68px; padding: 10px 14px; gap: 10px; align-items: flex-start; flex-direction: column; }
  .site-nav { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .site-nav a { font-size: 11px; padding: 7px 10px; }
  .brand-section, .brand-slash { display: none; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
