:root,
:root[data-theme="dark"] {
  --bg-canvas: #09090b;
  --bg-elevated: #111114;
  --bg-surface: #16161a;
  --bg-surface-hover: #1d1d22;
  --bg-glass: rgba(9, 9, 11, 0.74);
  --bg-scrim: linear-gradient(
    180deg,
    rgba(9, 9, 11, 0.56) 0%,
    rgba(9, 9, 11, 0.78) 55%,
    rgba(9, 9, 11, 0.96) 100%
  );

  --text-primary: #fafafa;
  --text-secondary: #b4b4bc;
  --text-muted: #767682;
  --text-inverse: #09090b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.2);

  --accent: #ffffff;
  --accent-contrast: #09090b;
  --spotlight-color: rgba(255, 255, 255, 0.09);
  --particle-color: rgba(255, 255, 255, 0.28);

  --shadow-elevated: 0 24px 60px rgba(0, 0, 0, 0.65);
  --img-filter: grayscale(100%) contrast(1.06) brightness(0.92);
  --img-hover-filter: grayscale(35%) contrast(1.1) brightness(1);
}

:root[data-theme="light"] {
  --bg-canvas: #f6f6f7;
  --bg-elevated: #ffffff;
  --bg-surface: #ededf0;
  --bg-surface-hover: #e4e4e8;
  --bg-glass: rgba(246, 246, 247, 0.78);
  --bg-scrim: linear-gradient(
    180deg,
    rgba(12, 12, 14, 0.45) 0%,
    rgba(12, 12, 14, 0.68) 60%,
    rgba(246, 246, 247, 0.96) 100%
  );

  --text-primary: #0c0c0e;
  --text-secondary: #3f3f46;
  --text-muted: #686873;
  --text-inverse: #fafafa;

  --border-subtle: rgba(12, 12, 14, 0.09);
  --border-strong: rgba(12, 12, 14, 0.24);

  --accent: #0c0c0e;
  --accent-contrast: #fafafa;
  --spotlight-color: rgba(12, 12, 14, 0.06);
  --particle-color: rgba(12, 12, 14, 0.22);

  --shadow-elevated: 0 24px 60px rgba(12, 12, 14, 0.12);
  --img-filter: grayscale(100%) contrast(1.04);
  --img-hover-filter: grayscale(30%) contrast(1.08);
}

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --radius-pill: 999px;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --header-h: 72px;
  --container-w: 1360px;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}