:root {
  color-scheme: dark;
  --bg: #07040d;
  --bg-2: #120622;
  --surface: rgba(20, 13, 31, 0.74);
  --surface-hi: rgba(31, 21, 46, 0.82);
  --text: #f4f0fb;
  --text-2: #a69eb8;
  --text-3: #716a86;
  --accent: #b484ff;
  --accent-2: #ff7ad9;
  --violet-grad: linear-gradient(135deg, #7b3cff 0%, #b44cff 55%, #f06ad6 100%);
  --green: #7ee2a8;
  --red: #ff8a95;
  --amber: #ffd76a;
  --hairline: rgba(255, 255, 255, 0.075);
  --hairline-2: rgba(255, 255, 255, 0.13);
  --fill-1: rgba(255, 255, 255, 0.05);
  --fill-2: rgba(255, 255, 255, 0.09);
  --disp: 'Unbounded', 'Onest', system-ui, sans-serif;
  --body: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 20px;
  --foot-gap: clamp(56px, 9vh, 88px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--body);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
::selection { background: rgba(180, 132, 255, 0.35); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 14% 12%, rgba(102, 33, 235, 0.30), transparent 62%),
    radial-gradient(52vmax 44vmax at 88% 18%, rgba(204, 51, 168, 0.18), transparent 62%),
    radial-gradient(70vmax 50vmax at 52% 108%, rgba(38, 26, 153, 0.24), transparent 65%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 140%);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(7, 4, 13, 0.50), rgba(7, 4, 13, 0.14) 24%, rgba(7, 4, 13, 0.28) 70%, rgba(7, 4, 13, 0.78));
}
.nav {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: max-content;
  max-width: calc(100vw - 24px);
  border-radius: 999px;
  border: 1px solid var(--hairline-2);
  background: rgba(13, 8, 21, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: 0 14px 40px -14px rgba(0, 0, 0, 0.8);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  max-width: none;
  height: auto;
}
.wordmark {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  padding: 0 10px 0 8px;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 2px;
  margin-left: 0;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  padding: 7px 13px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-links a.active {
  color: #fff;
  background: rgba(180, 132, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(180, 132, 255, 0.38);
}
.nav-cta {
  height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--violet-grad);
  color: #fff;
  font: 600 13px/1 var(--body);
  text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(180, 70, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.15s var(--ease), filter 0.2s ease;
  white-space: nowrap;
}
.nav-cta:active { transform: scale(0.96); }
.nav-cta:hover { filter: brightness(1.08); }
.nav-out {
  height: 34px;
  padding: 0 14px;
  margin-left: 4px;
  border-radius: 999px;
  border: 1px solid var(--hairline-2);
  background: var(--fill-1);
  color: var(--text-2);
  font: 500 13px var(--body);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.nav-out:hover { color: var(--text); background: var(--fill-2); }
.nav-out.hidden { display: none; }
.subnav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 6px 0 10px;
}
.subnav a {
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--fill-1);
  color: var(--text-2);
  font-size: .86rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s, border-color .2s, background .2s;
}
.subnav a:hover { color: #fff; border-color: rgba(180, 132, 255, .4); background: var(--fill-2); }
.subnav a.active { color: #fff; border-color: rgba(180, 132, 255, .45); background: rgba(180, 132, 255, .16); }
main { max-width: 980px; margin: 0 auto; padding: 76px 22px var(--foot-gap); flex: 1; width: 100%; }
.btn-primary, .btn-ghost {
  height: 50px;
  display: inline-flex;
  align-items: center;
  padding: 0 28px;
  border-radius: 999px;
  font: 600 15.5px/1 var(--body);
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: transform 0.15s var(--ease), filter 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--violet-grad);
  color: #fff;
  box-shadow: 0 16px 40px -16px rgba(180, 70, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary:hover { filter: brightness(1.08); translate: 0 -1px; }
.btn-ghost { border: 1px solid var(--hairline-2); background: var(--surface); color: var(--text); }
.btn-ghost:active { transform: scale(0.97); }
.btn-ghost:hover { background: var(--surface-hi); border-color: rgba(180, 132, 255, 0.4); }
footer {
  margin-top: auto;
  border-top: 1px solid var(--hairline);
  padding: 44px 22px 34px;
  display: flex;
  justify-content: center;
  gap: 26px;
  color: var(--text-3);
  font-size: 13.5px;
  flex-wrap: wrap;
}
footer a { color: var(--text-3); text-decoration: none; transition: color 0.15s ease; }
footer a:hover { color: var(--text); }
html.js .rv { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s var(--ease); }
html.js .rv.in { opacity: 1; transform: translateY(0); }
@media (max-width: 680px) {
  .nav { top: 8px; width: calc(100vw - 16px); max-width: none; }
  .nav-inner { justify-content: space-between; padding: 5px; gap: 3px; }
  .wordmark { font-size: 14px; padding: 0 6px; }
  .nav-links a { font-size: 13px; padding: 7px 10px; }
  .nav-cta { height: 32px; padding: 0 12px; font-size: 12.5px; }
  main { padding-top: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  html.js .rv { opacity: 1; transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: #120a1c; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
