# Design System Documentation

## 1. Overview & Creative North Star

### Creative North Star: "The Neon Nebula"
This design system is a departure from the sterile, flat world of utility-first design. It is an immersive, high-chroma experience where the interface behaves like light passing through polarized glass. We are moving away from "apps" and toward "atmospheres." 

To break the "template" look, we embrace **Intentional Asymmetry**. Do not align every element to a rigid vertical axis; allow large Display typography to bleed into margins and let translucent cards overlap blurred background elements. The depth is not achieved through artificial shadows, but through the physical properties of light: refraction, diffusion, and chromatic vibrance.

---

## 2. Colors

The color palette is anchored in a deep, nocturnal violet (`background: #0e0c20`) which acts as our void. Into this void, we introduce high-energy neon gas: Pink (`primary: #ff7cf5`) and Cyan (`secondary: #00e3fd`).

### The "No-Line" Rule
**Explicit Instruction:** Designers are prohibited from using 1px solid borders for sectioning or containment. Traditional lines create "boxes" that kill the glass effect. Boundaries must be defined solely through:
1.  **Background Color Shifts:** Use `surface-container-low` (#131027) sitting on a `surface` (#0e0c20) background.
2.  **Tonal Transitions:** Define edges via the termination of a gradient or the edge of a blur.

### Surface Hierarchy & Nesting
Treat the UI as a physical stack of frosted glass sheets. Use the `surface-container` tiers to define "altitude":
*   **Lowest Layer:** `surface-container-lowest` (#000000) for recessed areas or sidebars.
*   **Base Layer:** `surface` (#0e0c20).
*   **Active Layers:** `surface-container` (#19162f) through `surface-container-highest` (#25223f).
Each inner container should use a slightly higher tier than its parent to suggest it is closer to the user’s eye.

### The "Glass & Gradient" Rule
Floating elements (modals, player controls, hover states) must use **Glassmorphism**. Apply a semi-transparent version of `surface-variant` (#25223f) with a `backdrop-blur` (20px–40px). 
*   **Signature Texture:** Use a 45-degree linear gradient for main CTAs transitioning from `primary` (#ff7cf5) to `primary-container` (#ff5af9). This creates a "glow from within" effect that flat colors lack.

---

## 3. Typography

**Font Family:** Space Grotesk.
Space Grotesk’s idiosyncratic, geometric terminals provide a technical, high-end editorial feel that balances the softness of the glass elements.

*   **Display Scales (`display-lg`, `display-md`):** Use these sparingly for hero moments or data visualization headers. Set them with tight letter-spacing (-0.02em).
*   **Headline & Title:** These are your anchors. Use `headline-lg` (2rem) for section starts. Ensure there is significant breathing room (Spacing 12 or 16) above headlines.
*   **Body & Labels:** Use `body-lg` for readability. Labels (`label-md`) should be set in all-caps with increased letter-spacing (+0.05em) when used for navigation or metadata to contrast against the expressive headlines.

---

## 4. Elevation & Depth

We eschew traditional material depth for **Luminous Layering**.

### The Layering Principle
Depth is achieved by "stacking" the surface-container tiers. Place a `surface-container-highest` card on a `surface` background to create a soft, natural lift.

### Ambient Shadows
When a "floating" effect is required (e.g., a music player card), use an **Ambient Glow** rather than a shadow. 
*   **Shadow Specs:** Blur: 40px–60px. Opacity: 10%–15%. 
*   **Color:** Use the `primary` (#ff7cf5) or `secondary` (#00e3fd) token as the shadow color rather than black. This simulates neon light reflecting off the background.

### The "Ghost Border" Fallback
If an edge is invisible due to low contrast, use a "Ghost Border." Use the `outline-variant` (#48455c) at **15% opacity**. This provides a hint of a physical edge without creating a hard visual "trap."

---

## 5. Components

### Buttons
*   **Primary:** A vibrant gradient of `primary` to `primary-container`. No border. Corner radius: `full` (9999px).
*   **Secondary:** Glass-fill using `surface-bright` at 20% opacity with a `backdrop-blur`. 
*   **State:** On hover, the button should "glow" by increasing the shadow spread of the `primary` color.

### Cards & Lists
*   **No Dividers:** Prohibit the use of divider lines. Separate list items using the spacing scale (e.g., `spacing-3`) or by alternating between `surface-container-low` and `surface-container-lowest`.
*   **Roundness:** All cards must use `roundness-xl` (3rem) or `roundness-lg` (2rem). High roundness is essential to the "organic glass" aesthetic.

### Input Fields
*   **Default:** `surface-container-high` background, `roundness-md`.
*   **Focus State:** Do not just change the border color. Apply a 2px outer glow using `secondary` (#00e3fd) to make the field appear as if it is "powering on."

### Neon Accents (Glows)
Inject "Light Orbs" into the background of the layout. These are large (400px+), low-opacity (10%) circles of `tertiary` (#ff6b9b) or `secondary` (#00e3fd) placed behind glass cards to create depth through refraction.

---

## 6. Do's and Don'ts

### Do
*   **Do** use asymmetrical layouts where text blocks and images overlap.
*   **Do** lean heavily on Space Grotesk’s larger sizes to create an "editorial" rather than "app" feel.
*   **Do** use the `full` roundness token for all interactive chips and secondary buttons.
*   **Do** use `on-surface-variant` (#aca8c3) for secondary text to maintain a soft hierarchy.

### Don't
*   **Don't** use pure black (#000000) for anything other than the absolute deepest recessed containers (`surface-container-lowest`).
*   **Don't** use standard 1px borders or dividers; they shatter the glass illusion.
*   **Don't** use sharp corners. Anything below 16px (1rem) roundness will feel "cheap" in this system.
*   **Don't** stack more than three levels of glass, or the backdrop blur will become muddy and lose its "luminous" quality.