:root {
  color-scheme: dark;

  /* Official Infinity Brand Spectrum (Violet -> Royal Blue -> Cyan) */
  --color-brand-violet: #8B5CF6;
  --color-brand-purple: #A855F7;
  --color-brand-blue: #2563EB;
  --color-brand-cyan: #06B6D4;
  --color-brand-aqua: #00F2FE;

  /* Luminous Spectrum Stops for Dark Surfaces & Gradient Display Text */
  --gradient-brand: linear-gradient(135deg, #8B5CF6 0%, #2563EB 50%, #06B6D4 100%);
  --gradient-brand-horizontal: linear-gradient(90deg, #A855F7 0%, #2563EB 50%, #00F2FE 100%);
  --gradient-text-spectrum: linear-gradient(135deg, #C4B5FD 0%, #60A5FA 52%, #22D3EE 100%);
  --gradient-hairline: linear-gradient(
    90deg,
    transparent 0%,
    rgba(139, 92, 246, 0.45) 28%,
    rgba(37, 99, 235, 0.55) 50%,
    rgba(6, 182, 212, 0.45) 72%,
    transparent 100%
  );

  /* Obsidian Surfaces */
  --color-bg: #05070E;              /* Deep Space Obsidian Canvas */
  --color-bg-elevated: #0A0F1D;     /* Banded Section Surface */
  --color-surface: #0E1424;         /* Elevated Card Base */
  --color-surface-muted: #131B2E;   /* Recessed Controls / Pill Tracks */

  /* Typography Ink (WCAG 2.1 AAA Verified on #05070E and #0E1424) */
  --color-text: #F8FAFC;            /* 19.24:1 on #05070E | 17.54:1 on #0E1424 (AAA) */
  --color-text-secondary: #CBD5E1;  /* 13.56:1 on #05070E | 12.36:1 on #0E1424 (AAA) */
  --color-text-muted: #94A3B8;      /*  7.85:1 on #05070E |  7.16:1 on #0E1424 (AAA) */

  /* Primary & Accent Actions (WCAG 2.1 AA/AAA Verified) */
  --color-primary: #F8FAFC;         /* High-contrast studio light CTA */
  --color-primary-hover: #E2E8F0;
  --color-on-primary: #05070E;      /* 19.24:1 on #F8FAFC (AAA) */

  --color-accent: #2563EB;          /* Button fill: 5.17:1 with #FFFFFF (AA) */
  --color-accent-hover: #1D4ED8;    /* Button hover: 6.70:1 with #FFFFFF (AA) */
  --color-on-accent: #FFFFFF;
  --color-link: #60A5FA;            /* Inline links: 7.92:1 on #05070E | 7.22:1 on #0E1424 (AAA) */
  --color-link-hover: #93C5FD;
  --color-accent-cyan: #22D3EE;     /* 10.16:1 on #0E1424 (AAA) */
  --color-accent-violet: #C4B5FD;   /*  9.94:1 on #0E1424 (AAA) */

  /* Semantic Status (WCAG 2.1 AA/AAA on #0E1424) */
  --color-success: #4ADE80;         /* 10.53:1 (AAA) */
  --color-warning: #FBBF24;         /* 10.99:1 (AAA) */
  --color-error: #F87171;           /*  6.63:1 (AA) */

  /* Frosted Glass, Hairline Borders & Specular Inner Shadows */
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.02) 100%);
  --glass-bg-solid: rgba(14, 20, 36, 0.76);
  --glass-header-bg: rgba(5, 7, 14, 0.78);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-strong: rgba(255, 255, 255, 0.16);
  --glass-pill-border: rgba(255, 255, 255, 0.15);
  --glass-blur: blur(20px);
  --glass-inset-specular: inset 0 1px 1px 0 rgba(255, 255, 255, 0.2);
  --glass-inset-soft: inset 0 1px 0 0 rgba(255, 255, 255, 0.12);

  /* Borders, Focus & Elevation */
  --color-border: rgba(255, 255, 255, 0.09);
  --color-border-strong: rgba(255, 255, 255, 0.18);
  --color-focus: #60A5FA;
  --ring-focus: 0 0 0 3px rgba(96, 165, 250, 0.35);

  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.45);
  --shadow-card: var(--glass-inset-specular), 0 20px 44px -16px rgba(0, 0, 0, 0.65);
  --shadow-card-hover:
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.26),
    0 24px 56px -16px rgba(0, 0, 0, 0.75),
    0 0 36px -8px rgba(37, 99, 235, 0.26);
  --shadow-btn-glow:
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.28),
    0 0 28px -4px rgba(37, 99, 235, 0.55),
    0 8px 20px -6px rgba(139, 92, 246, 0.35);

  /* Ambient Infinity Mesh Glows */
  --glow-hero-mesh:
    radial-gradient(58% 48% at 18% 8%, rgba(139, 92, 246, 0.22) 0%, transparent 68%),
    radial-gradient(52% 46% at 84% 14%, rgba(6, 182, 212, 0.18) 0%, transparent 68%),
    radial-gradient(48% 42% at 50% -4%, rgba(37, 99, 235, 0.20) 0%, transparent 72%);
  --glow-cta-mesh:
    radial-gradient(60% 80% at 12% 50%, rgba(139, 92, 246, 0.18) 0%, transparent 70%),
    radial-gradient(60% 80% at 88% 50%, rgba(6, 182, 212, 0.16) 0%, transparent 70%);
  --glow-pennyday-stage:
    radial-gradient(65% 65% at 50% 45%, rgba(139, 92, 246, 0.22) 0%, rgba(37, 99, 235, 0.12) 45%, transparent 75%);
  --glow-loomiwork-stage:
    radial-gradient(65% 65% at 50% 45%, rgba(6, 182, 212, 0.22) 0%, rgba(37, 99, 235, 0.12) 45%, transparent 75%);

  /* Badge Semantic Pairs (WCAG 2.1 AAA Verified) */
  --badge-default-bg: rgba(30, 27, 75, 0.85);
  --badge-default-text: #E0E7FF;      /* 12.98:1 (AAA) */
  --badge-pennyday-bg: rgba(6, 40, 30, 0.9);
  --badge-pennyday-text: #6EE7B7;     /* 10.36:1 (AAA) */
  --badge-pennyday-border: rgba(110, 231, 183, 0.28);
  --badge-loomiwork-bg: rgba(8, 47, 46, 0.9);
  --badge-loomiwork-text: #5EEAD4;    /*  9.75:1 (AAA) */
  --badge-loomiwork-border: rgba(94, 234, 212, 0.28);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Noto Sans TC', sans-serif;
  --font-sans-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans-zh: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --font-sans: var(--font-sans-en), var(--font-sans-zh);
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Spacing Scale (4px / 8px rhythm) */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */

  /* Radii */
  --radius-sm: 0.5rem;   /* 8px */
  --radius-md: 0.75rem;  /* 12px */
  --radius-lg: 1rem;     /* 16px */
  --radius-xl: 1.25rem;  /* 20px */
  --radius-2xl: 1.5rem;  /* 24px */
  --radius-full: 9999px;

  /* Product Icon Squircle System */
  --icon-radius-squircle: 22%;
  --icon-size-card: 3rem;    /* 48px */
  --icon-size-detail: 4rem;  /* 64px */
  --icon-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.14);

  /* Layout & Bento */
  --container-max: 76rem; /* 1216px */
  --prose-max: 72ch;      /* Legal & long-form reading */
  --header-height: 4.5rem;/* 72px */
  --bento-gap: 1.5rem;    /* 24px */

  /* Z-Index */
  --z-base: 0;
  --z-header: 40;
  --z-drawer: 100;

  /* Motion (150ms–250ms ease-out; transform & opacity only) */
  --transition-fast: 160ms cubic-bezier(0.2, 0, 0, 1);
  --transition-base: 220ms cubic-bezier(0.2, 0, 0, 1);
}
