/* Design tokens */
:root {
  /* Surface System */
  --surface-page: #07070a;
  --surface-section: #101018;
  --surface-card: #161621;
  --surface-elevated: #1d1d2a;
  --surface-interactive: #252538;
  --surface-interactive-strong: #2e2e46;
  --surface-overlay: rgba(10, 10, 14, 0.82);

  /* Accents */
  --accent: #8b5cf6;
  --accent-hover: #9b72ff;
  --accent-strong: #b79cff;
  --accent-rgb: 139, 92, 246;
  --accent-muted: rgba(139, 92, 246, 0.14);
  --accent-soft: rgba(139, 92, 246, 0.08);
  --accent-line: rgba(196, 181, 253, 0.3);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-active: rgba(139, 92, 246, 0.5);

  /* Typography */
  --text-primary: #f7f7fb;
  --text-secondary: #9CA3AF;
  --text-muted: #9CA3AF;
  --text-tertiary: #9090a3;
  --text-quaternary: #707085;
  --font-sans: "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, monospace;

  /* Semantic States */
  --state-success: #10B981;
  --state-success-soft: rgba(16, 185, 129, 0.14);
  --state-warning: #F59E0B;
  --state-warning-soft: rgba(245, 158, 11, 0.14);
  --state-error: #EF4444;
  --state-error-soft: rgba(239, 68, 68, 0.14);

  /* Shadows */
  --shadow-panel: 0 28px 80px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 16px 44px rgba(0, 0, 0, 0.28);
  --shadow-accent: 0 18px 40px rgba(139, 92, 246, 0.18);

  /* Sizing & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;

  --spacing-xs: 6px;
  --spacing-sm: 10px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 40px;
  --spacing-2xl: 64px;

  /* Layout Base Variables */
  --layout-width: 70%;
  --layout-margin: 24px;

  --container: 1440px;
  --transition: 220ms cubic-bezier(0.22, 1, 0.36, 1);
  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);

  /* Breakpoints (for reference, use in media queries) */
  /* --breakpoint-sm: 640px;  Mobile */
  /* --breakpoint-md: 768px;  Tablet */
  /* --breakpoint-lg: 1024px; Desktop */
  /* --breakpoint-xl: 1280px; Large Desktop */
  /* --breakpoint-2xl: 1440px; Huge Desktop */

  /* Legacy aliases used by landing.css */
  --bg-dark: var(--surface-page);
  --bg-panel: var(--surface-section);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--surface-page);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(var(--accent-rgb), 0.32);
  color: var(--text-primary);
}
