:root {
  color-scheme: dark;
  --bg: #050506;
  --bg-2: #0a0a0c;
  --surface: #111217;
  --surface-2: #171a23;
  --surface-3: #262834;
  --surface-card: rgba(17, 18, 24, 0.84);
  --surface-card-hover: rgba(23, 26, 35, 0.92);
  --glass: rgba(21, 23, 29, 0.58);
  --glass-strong: rgba(17, 18, 24, 0.94);
  --glass-soft: rgba(255, 255, 255, 0.045);
  --glass-soft-hover: rgba(255, 255, 255, 0.085);
  --text: #f4f4f5;
  --text-soft: #d4d4dc;
  --muted: #a1a1ab;
  --dim: #85858f;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-3: rgba(255, 255, 255, 0.22);
  --line-strong: rgba(255, 255, 255, 0.16);
  --specular: inset 0 1px 0 rgba(255, 255, 255, 0.11);
  --shadow: 0 20px 54px rgba(0, 0, 0, 0.56);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.44);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.54);
  --shadow-lg: 0 28px 72px rgba(0, 0, 0, 0.66);
  --accent: #cdceed;
  --accent-hi: #eeeeff;
  --accent-deep: #555c8a;
  --accent-ink: #15171d;
  --glow: rgba(126, 131, 169, 0.55);
  --glow-soft: rgba(126, 131, 169, 0.16);
  --blue: #cdceed;
  --blue-hover: #eeeeff;
  --blue-ring: rgba(205, 206, 237, 0.24);
  --blue-soft: rgba(205, 206, 237, 0.12);
  --ice: #eeeeff;
  --ok: #4ade80;
  --ok-soft: rgba(74, 222, 128, 0.12);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.12);
  --bad: #f87171;
  --bad-soft: rgba(248, 113, 113, 0.12);
  --orb-1: rgba(126, 131, 169, 0.16);
  --orb-2: rgba(85, 92, 138, 0.12);
  --orb-3: rgba(205, 206, 237, 0.07);
  --icon-filter: brightness(0) invert(0.95);
  --icon-muted-filter: brightness(0) invert(0.66);
  --brand-badge-bg: rgba(255, 255, 255, 0.95);
  --brand-badge-line: rgba(255, 255, 255, 0.22);
  --display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --radius-card: 24px;
  --radius-tile: 18px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }

.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.aurora::before,
.aurora::after,
.aurora-orb {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.9;
}

.aurora::before {
  width: 680px;
  height: 540px;
  top: -200px;
  left: -100px;
  background: radial-gradient(circle, var(--orb-1), transparent 70%);
}

.aurora::after {
  width: 620px;
  height: 540px;
  top: -120px;
  right: -120px;
  background: radial-gradient(circle, var(--orb-2), transparent 70%);
}

.aurora-orb {
  width: 720px;
  height: 480px;
  bottom: -200px;
  left: 28%;
  background: radial-gradient(circle, var(--orb-3), transparent 70%);
}

#sky {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.wrap {
  width: min(max(1200px, 64vw), 100% - 32px);
  margin: 0 auto;
}

.wrap-narrow {
  width: min(860px, 100% - 32px);
  margin: 0 auto;
}

.ui-ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  filter: var(--icon-filter);
  transition: filter 0.2s ease;
}

.ui-ico-muted {
  filter: var(--icon-muted-filter);
}

.ui-ico-white {
  filter: brightness(0) invert(1);
}

.cta-blue .ui-ico,
.nav-cta .ui-ico,
.btn-primary .ui-ico {
  filter: brightness(0) opacity(0.88);
}

.glass-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 5, 6, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.glass-bar {
  width: min(max(1200px, 64vw), 100% - 32px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 17px/1 var(--display);
  letter-spacing: -0.01em;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

.brand-mark .ui-ico {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(0.95) drop-shadow(0 0 8px var(--glow));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.8vw, 28px);
  margin-left: auto;
}

.nav-links a {
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.glass-bar > .nav-actions:not(.nav-links ~ .nav-actions) {
  margin-left: auto;
}

.theme-pill {
  display: none !important;
}

.nav-support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid var(--line-2);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-support:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-3);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-hi) -40%, var(--accent) 55%);
  border: 1px solid rgba(238, 238, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 0 22px -6px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: box-shadow 0.28s var(--ease), transform 0.16s var(--ease);
}

.nav-cta:hover {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 0 36px 0 var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.support {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
}

.support b {
  display: none;
}

.support a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--glass-soft);
  border: 1px solid var(--line);
  font-weight: 500;
  color: var(--text-soft);
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.support a:hover {
  background: var(--glass-soft-hover);
  border-color: var(--line-3);
  color: #fff;
}

.cta-blue,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-hi) -40%, var(--accent) 55%);
  border: 1px solid rgba(238, 238, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 0 26px -4px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  font: 500 15px/1 var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  transition: box-shadow 0.32s var(--ease), transform 0.16s var(--ease);
}

.cta-blue:hover,
.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 0 46px 0 var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.cta-blue:active,
.btn-primary:active { transform: scale(0.98); }

.cta-blue[disabled],
.btn-primary[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cta-glass,
.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 var(--line), inset 0 -14px 18px -14px var(--glow-soft);
  color: var(--text);
  font: 500 15px/1 var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.28s var(--ease), border-color 0.28s var(--ease), transform 0.16s var(--ease);
}

.cta-glass:hover,
.btn-glass:hover {
  border-color: var(--line-3);
  background: rgba(255, 255, 255, 0.065);
}

.cta-glass:active,
.btn-glass:active { transform: scale(0.98); }

.glass-panel {
  background: linear-gradient(180deg, rgba(23, 26, 35, 0.90), rgba(8, 8, 12, 0.95));
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
  box-shadow: var(--specular), var(--shadow-md);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .ui-ico {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

.mono { font-family: var(--font-mono); }

.brand-chip {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--brand-badge-bg);
  border: 1px solid var(--brand-badge-line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  padding: 6px;
}

.brand-chip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-chip.is-dark-logo {
  background: #141924;
  border-color: rgba(255, 255, 255, 0.14);
}

.brand-chip.is-pair {
  width: auto;
  padding: 5px 8px;
  gap: 5px;
  display: inline-flex;
}

.brand-chip.is-pair img {
  width: 20px;
  height: 20px;
}

.glass-footer {
  margin-top: 72px;
  padding: 34px 0 50px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.footer-who,
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.footer-legal a,
.footer-who a {
  color: var(--muted);
  transition: color 0.18s ease;
}

.footer-legal a:hover,
.footer-who a:hover {
  color: #fff;
}

.footer-tg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 500;
}

.footer-tg:hover {
  color: #fff;
}

@media (max-width: 1040px) {
  .nav-links { display: none; }
  .glass-bar .support { margin-left: auto; }
}

@media (max-width: 640px) {
  .glass-bar { gap: 8px; min-height: 64px; }
  .brand { gap: 8px; font-size: 16px; }
  .nav-actions { gap: 6px; }
  .support a { width: 34px; height: 34px; padding: 0; justify-content: center; }
  .support a span { display: none; }
  .nav-support { min-height: 34px; padding: 0 11px; font-size: 10.5px; letter-spacing: 0.12em; }
  .nav-cta { min-height: 34px; padding: 0 13px; font-size: 12px; }
}

@media (max-width: 340px) {
  .glass-bar .support { display: none; }
  .nav-actions { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
