:root {
  --color-bg: #000000;
  --color-bg-elevated: #1c1c1e;
  --color-surface: #2c2c2e;

  --color-text: rgba(255, 255, 255, 0.94);
  --color-text-secondary: rgba(255, 255, 255, 0.72);
  --color-text-muted: rgba(255, 255, 255, 0.52);
  --color-text-subtle: rgba(255, 255, 255, 0.36);

  --color-accent: #64d2ff;
  --color-accent-secondary: #bf5af2;
  --color-accent-warm: #ff9f0a;

  --accent-games: #64d2ff;
  --accent-cinema: #bf5af2;
  --accent-music: #ff6482;
  --accent-books: #30d158;

  --glass-fill-top: rgba(255, 255, 255, 0.065);
  --glass-fill-mid: rgba(255, 255, 255, 0.012);
  --glass-fill-bottom: rgba(255, 255, 255, 0.028);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.045);
  --glass-bg-active: rgba(255, 255, 255, 0.065);
  --glass-surface: rgba(255, 255, 255, 0.03);
  --glass-surface-hover: rgba(255, 255, 255, 0.055);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-border-bright: rgba(255, 255, 255, 0.26);
  --glass-border-dim: rgba(255, 255, 255, 0.06);
  --glass-highlight: rgba(255, 255, 255, 0.2);
  --glass-rim-top: rgba(255, 255, 255, 0.32);
  --glass-rim-side: rgba(255, 255, 255, 0.08);
  --glass-blur: 28px;
  --glass-blur-sm: 24px;
  --glass-blur-lg: 56px;
  --glass-saturate: 180%;
  --glass-brightness: 1.06;

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --radius-xl: 38px;
  --radius-pill: 9999px;
  --radius-capsule: var(--radius-pill);

  --radius-card: var(--radius-lg);
  --radius-card-lg: var(--radius-xl);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;

  --text-xs: 0.6875rem;
  --text-sm: 0.8125rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: clamp(2rem, 5vw, 3.25rem);
  --text-hero: clamp(2.25rem, 6.5vw, 4rem);

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;

  --header-height: 56px;
  --content-max: 1120px;
  --content-wide: 1280px;
  --pricing-card-min-h: 440px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.2, 0.64, 1);
  --transition-fast: 180ms var(--ease-out);
  --transition-base: 320ms var(--ease-out);
  --transition-slow: 520ms var(--ease-out);

  --shadow-glass:
    inset 0 1px 0 var(--glass-rim-top),
    0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-elevated: 0 20px 48px rgba(0, 0, 0, 0.45);
  --shadow-glass-hover:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 4px 16px rgba(0, 0, 0, 0.28);
}

/* Light theme */
html[data-theme="light"] {
  color-scheme: light;

  --color-bg: #f2f2f7;
  --color-bg-elevated: #ffffff;
  --color-surface: #e8e8ed;

  --color-text: rgba(0, 0, 0, 0.88);
  --color-text-secondary: rgba(0, 0, 0, 0.65);
  --color-text-muted: rgba(0, 0, 0, 0.48);
  --color-text-subtle: rgba(0, 0, 0, 0.36);

  --glass-fill-top: rgba(255, 255, 255, 0.85);
  --glass-fill-mid: rgba(255, 255, 255, 0.45);
  --glass-fill-bottom: rgba(255, 255, 255, 0.55);
  --glass-bg: rgba(255, 255, 255, 0.5);
  --glass-bg-hover: rgba(255, 255, 255, 0.72);
  --glass-bg-active: rgba(255, 255, 255, 0.88);
  --glass-surface: rgba(255, 255, 255, 0.55);
  --glass-surface-hover: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(0, 0, 0, 0.1);
  --glass-border-bright: rgba(0, 0, 0, 0.16);
  --glass-border-dim: rgba(0, 0, 0, 0.06);
  --glass-highlight: rgba(255, 255, 255, 0.95);
  --glass-rim-top: rgba(255, 255, 255, 0.95);
  --glass-rim-side: rgba(0, 0, 0, 0.06);
  --glass-blur: 32px;
  --glass-saturate: 160%;
  --glass-brightness: 1.02;

  --shadow-glass:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04),
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-elevated: 0 24px 64px rgba(0, 0, 0, 0.12);
  --shadow-glass-hover:
    inset 0 1px 0 #fff,
    0 12px 40px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 90% 60% at 50% -15%, rgba(100, 210, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 45% at 95% 25%, rgba(191, 90, 242, 0.14), transparent 50%),
    radial-gradient(ellipse 45% 40% at 5% 70%, rgba(255, 100, 130, 0.1), transparent 50%),
    radial-gradient(ellipse 40% 35% at 80% 90%, rgba(48, 209, 88, 0.08), transparent 45%),
    var(--color-bg);
}

html[data-theme="light"] .ambient__orb {
  opacity: 0.35;
}

html[data-theme="light"] ::selection {
  background: rgba(100, 210, 255, 0.35);
  color: #000;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 45% at 50% -12%, rgba(100, 210, 255, 0.12), transparent 52%),
    radial-gradient(ellipse 55% 40% at 85% 20%, rgba(191, 90, 242, 0.06), transparent 50%),
    var(--color-bg);
  pointer-events: none;
}

body.page-landing::before {
  background:
    radial-gradient(ellipse 80% 50% at 50% -8%, rgba(100, 210, 255, 0.16), transparent 55%),
    radial-gradient(ellipse 45% 38% at 92% 18%, rgba(191, 90, 242, 0.1), transparent 52%),
    radial-gradient(ellipse 40% 35% at 8% 75%, rgba(255, 100, 130, 0.07), transparent 50%),
    var(--color-bg);
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

::selection {
  background: rgba(100, 210, 255, 0.35);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
