/* Float Space Design Tokens — Apple editorial minimalism × Float Space cool palette */
:root {
  color-scheme: light dark;

  /* Light Mode (Apple Crisp Fog-White) */
  --bg: #ffffff;
  --bg-elevated: #f5f5f7;
  --bg-subtle: #eceef2;
  --surface: #ffffff;
  --surface-tint: rgba(245, 245, 247, 0.76);
  --surface-glass: rgba(255, 255, 255, 0.78);
  --surface-glass-strong: rgba(255, 255, 255, 0.90);

  --ink: #101319;
  --ink-secondary: #515968;
  --ink-tertiary: #7b8494;

  --accent: #243852;
  --accent-bright: #3470a2;
  --accent-ice: #7fb8dc;
  --accent-lavender: #8a82b5;
  --accent-soft: rgba(36, 56, 82, 0.08);
  --accent-glow: rgba(127, 184, 220, 0.22);

  --on-accent: #ffffff;
  --hairline: rgba(16, 19, 25, 0.08);
  --hairline-strong: rgba(16, 19, 25, 0.16);

  --shadow-card: 0 2px 10px rgba(16, 19, 25, 0.03), 0 18px 44px rgba(16, 19, 25, 0.055);
  --shadow-glass: 0 8px 32px rgba(16, 19, 25, 0.08);
  --shadow-hover: 0 14px 48px rgba(36, 56, 82, 0.11);

  --fl0ze-aura: radial-gradient(circle at 50% 45%, rgba(127, 184, 220, 0.14) 0%, rgba(138, 130, 181, 0.05) 48%, transparent 72%);
  --fl0ze-drop-shadow: drop-shadow(0 18px 32px rgba(16, 19, 25, 0.08));

  /* Hero Spatial Stage */
  --hero-grid-dot: rgba(36, 56, 82, 0.14);
  --hero-grid-line: rgba(36, 56, 82, 0.045);
  --hero-cursor-glow: rgba(127, 184, 220, 0.24);
  --hero-watermark-ink: rgba(16, 19, 25, 0.042);
  --hero-watermark-stroke: rgba(36, 56, 82, 0.14);
  --hero-card-hover-border: rgba(52, 112, 162, 0.34);

  /* Typography */
  --font-sans: "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "HarmonyOS Sans SC", "Microsoft YaHei UI", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "SF Pro Display", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", -apple-system, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Geometry & Rhythm */
  --container-max: 1200px;
  --container-narrow: 760px;
  --nav-height: 64px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Motion */
  --ease-apple: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
  --dur-fast: 180ms;
  --dur-mid: 380ms;
  --dur-slow: 680ms;
}

/* Dark Mode (Apple Pro Space Obsidian × Cool Tech) */
html[data-theme="dark"] {
  --bg: #0b0e14;
  --bg-elevated: #10141c;
  --bg-subtle: #161c28;
  --surface: #121722;
  --surface-tint: rgba(20, 25, 36, 0.72);
  --surface-glass: rgba(16, 20, 28, 0.74);
  --surface-glass-strong: rgba(18, 22, 32, 0.88);

  --ink: #f2f4f8;
  --ink-secondary: #9aa4b6;
  --ink-tertiary: #6d778a;

  --accent: #7fb8dc;
  --accent-bright: #9fd0ef;
  --accent-ice: #7fb8dc;
  --accent-lavender: #8a82b5;
  --accent-soft: rgba(127, 184, 220, 0.13);
  --accent-glow: rgba(127, 184, 220, 0.18);

  --on-accent: #0b0e14;
  --hairline: rgba(232, 233, 238, 0.085);
  --hairline-strong: rgba(232, 233, 238, 0.17);

  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.28), 0 24px 56px rgba(0, 0, 0, 0.42);
  --shadow-glass: 0 10px 36px rgba(0, 0, 0, 0.48);
  --shadow-hover: 0 18px 54px rgba(0, 0, 0, 0.56);

  --fl0ze-aura: radial-gradient(circle at 50% 45%, rgba(127, 184, 220, 0.20) 0%, rgba(36, 56, 82, 0.28) 44%, transparent 72%);
  --fl0ze-drop-shadow: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.55));

  --hero-grid-dot: rgba(127, 184, 220, 0.17);
  --hero-grid-line: rgba(127, 184, 220, 0.055);
  --hero-cursor-glow: rgba(127, 184, 220, 0.20);
  --hero-watermark-ink: rgba(242, 244, 248, 0.036);
  --hero-watermark-stroke: rgba(127, 184, 220, 0.18);
  --hero-card-hover-border: rgba(127, 184, 220, 0.40);
}

/* No-JS fallback honoring visitor OS preference */
@media (prefers-color-scheme: dark) {
  html:not(.js) {
    --bg: #0b0e14;
    --bg-elevated: #10141c;
    --bg-subtle: #161c28;
    --surface: #121722;
    --surface-tint: rgba(20, 25, 36, 0.72);
    --surface-glass: rgba(16, 20, 28, 0.74);
    --surface-glass-strong: rgba(18, 22, 32, 0.88);
    --ink: #f2f4f8;
    --ink-secondary: #9aa4b6;
    --ink-tertiary: #6d778a;
    --accent: #7fb8dc;
    --accent-bright: #9fd0ef;
    --accent-soft: rgba(127, 184, 220, 0.13);
    --on-accent: #0b0e14;
    --hairline: rgba(232, 233, 238, 0.085);
    --hairline-strong: rgba(232, 233, 238, 0.17);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.28), 0 24px 56px rgba(0, 0, 0, 0.42);
    --fl0ze-aura: radial-gradient(circle at 50% 45%, rgba(127, 184, 220, 0.20) 0%, rgba(36, 56, 82, 0.28) 44%, transparent 72%);
    --fl0ze-drop-shadow: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.55));
    --hero-grid-dot: rgba(127, 184, 220, 0.17);
    --hero-grid-line: rgba(127, 184, 220, 0.055);
    --hero-cursor-glow: rgba(127, 184, 220, 0.20);
    --hero-watermark-ink: rgba(242, 244, 248, 0.036);
    --hero-watermark-stroke: rgba(127, 184, 220, 0.18);
    --hero-card-hover-border: rgba(127, 184, 220, 0.40);
  }
}
