:root {
  color-scheme: dark;
  --ink: #f7f7fb;
  --ink-soft: #c8c9d4;
  --ink-muted: #9294a3;
  --panel: rgba(17, 18, 27, 0.74);
  --panel-solid: #12131b;
  --panel-soft: rgba(255, 255, 255, 0.055);
  --stroke: rgba(255, 255, 255, 0.12);
  --stroke-strong: rgba(255, 255, 255, 0.2);
  --violet: #9c7cff;
  --violet-bright: #b7a3ff;
  --cyan: #65dded;
  --coral: #ff856d;
  --green: #6ee7a8;
  --yellow: #ffd66d;
  --danger: #ff5f57;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shadow-window: 0 36px 110px rgba(0, 0, 0, 0.56), 0 8px 28px rgba(0, 0, 0, 0.3);
  --ease-spring: cubic-bezier(0.2, 0.84, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --menu-height: 34px;
  --dock-safe: 108px;
  --cursor-x: 50vw;
  --cursor-y: 50vh;
  --wallpaper-shift-x: 0px;
  --wallpaper-shift-y: 0px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #08090d;
  text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #08090d;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  background: none;
}

button:not(:disabled),
a {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 5.1rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 3rem);
}

h3 {
  font-size: 1.15rem;
}

::selection {
  background: rgba(156, 124, 255, 0.38);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
  background-clip: padding-box;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 8px;
  left: 12px;
  transform: translateY(-160%);
  border-radius: 10px;
  background: #fff;
  color: #111;
  padding: 9px 14px;
  font-weight: 650;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

kbd {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.32);
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 10px;
  line-height: 1;
  padding: 0 5px;
}

.glass-panel {
  border: 1px solid var(--stroke);
  background: rgba(18, 19, 28, 0.72);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  backdrop-filter: blur(28px) saturate(1.35);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--violet-bright);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.gradient-text {
  background: linear-gradient(110deg, #fff 15%, #c3b6ff 52%, #75dfec 84%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 17px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  overflow: hidden;
  transition: transform 180ms var(--ease-out), box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.18), transparent 75%);
  content: "";
  transform: translateX(-120%);
  transition: transform 600ms var(--ease-out);
}

.button:hover::before {
  transform: translateX(120%);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button-primary {
  background: linear-gradient(135deg, #8563ff, #6951de);
  box-shadow: 0 10px 30px rgba(117, 85, 238, 0.28);
  color: #fff;
}

.button-primary:hover {
  box-shadow: 0 14px 38px rgba(117, 85, 238, 0.4);
}

.button-secondary {
  border-color: var(--stroke);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--stroke-strong);
  background: rgba(255, 255, 255, 0.1);
}

.button-small {
  min-height: 36px;
  border-radius: 10px;
  padding: 0 13px;
  font-size: 12px;
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--violet-bright);
  font-weight: 650;
  padding: 0;
}

.text-action span {
  transition: transform 180ms var(--ease-out);
}

.text-action:hover span {
  transform: translate(2px, -2px);
}

.icon-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-soft);
  font-size: 20px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  transform: scale(1.04);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 580;
  line-height: 1;
  padding: 7px 10px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 10px rgba(110, 231, 168, 0.65);
}

.skeleton-line {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.skeleton-line::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  content: "";
  transform: translateX(-100%);
  animation: shimmer 1.8s infinite;
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

.boot-screen {
  position: fixed;
  z-index: 20000;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(116, 91, 232, 0.16), transparent 30%),
    #08090d;
  opacity: 1;
  transition: opacity 700ms var(--ease-out), visibility 700ms;
}

.boot-screen.is-complete {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.boot-mark {
  position: relative;
  width: 60px;
  height: 60px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.035));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.4);
}

.boot-mark span {
  position: absolute;
  top: 16px;
  width: 18px;
  height: 28px;
  border-radius: 50% 10% 50% 10%;
  background: linear-gradient(160deg, var(--violet-bright), var(--cyan));
  filter: drop-shadow(0 0 10px rgba(156, 124, 255, 0.5));
}

.boot-mark span:first-child {
  left: 14px;
  transform: rotate(25deg);
}

.boot-mark span:last-child {
  right: 14px;
  transform: rotate(205deg);
}

.boot-screen p {
  margin-bottom: 15px;
  color: var(--ink-soft);
  font-size: 12px;
}

.boot-progress {
  width: 148px;
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
}

.boot-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  animation: boot-progress 1.2s var(--ease-out) forwards;
  transform: translateX(-100%);
}

@keyframes boot-progress {
  to { transform: translateX(0); }
}

.ambient-cursor {
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 102, 255, 0.1), transparent 68%);
  pointer-events: none;
  transform: translate3d(calc(var(--cursor-x) - 220px), calc(var(--cursor-y) - 220px), 0);
  transition: opacity 300ms ease;
  will-change: transform;
}

.noscript-fallback {
  max-width: 760px;
  margin: 10vh auto;
  padding: 40px;
}

.noscript-fallback a {
  display: inline-flex;
  margin: 15px 0 40px;
  border-radius: 12px;
  background: var(--violet);
  padding: 12px 17px;
  font-weight: 650;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ambient-cursor {
    display: none;
  }
}
