/* ------------------------------------------------------------------
 * Cassini design tokens
 * Single source of truth for colors, typography, spacing, radii,
 * shadows, motion and layout. All component / section styles must
 * consume these variables instead of hard-coded values.
 * ------------------------------------------------------------------ */

:root {
    /* ----- Color palette ------------------------------------------- */
    --color-bg: #050711;
    --color-bg-deep: #03050d;
    --color-bg-mid: #080d1c;
    --color-bg-soft: #101322;

    --color-surface: rgba(255, 255, 255, 0.068);
    --color-surface-strong: rgba(255, 255, 255, 0.105);
    --color-surface-soft: rgba(255, 255, 255, 0.052);
    --color-surface-hi: rgba(255, 255, 255, 0.13);

    --color-border: rgba(226, 232, 255, 0.14);
    --color-border-soft: rgba(226, 232, 255, 0.095);
    --color-border-strong: rgba(226, 232, 255, 0.20);

    --color-text: #f7f8ff;
    --color-text-muted: #b9c2da;
    /* Subtle text on `--color-bg`. Bumped to ≈7.4:1 contrast against
       #050713 — comfortably AA, near AAA for normal text. Used in
       .hero-note, footer copyright, captions, install notes. */
    --color-text-subtle: #a4adcf;
    --color-text-disabled: #8590b6;
    --color-text-on-accent: #06101c;
    --color-text-on-saturn: #07101c;

    --color-accent-blue: #67d3ff;
    --color-accent-violet: #a78bfa;
    --color-accent-saturn: #f6d27a;
    --color-accent-saturn-soft: #ffe5a8;
    --color-accent-saturn-text: #f7df9a;
    --color-accent-saturn-warm: #d9d1b6;
    --color-accent-saturn-glow: #f3e7bf;

    --color-success: #25c26e;
    --color-warning: #f6d27a;
    --color-danger: #ff7777;

    --color-focus-ring: var(--color-accent-blue);
    --color-overlay: rgba(2, 4, 18, 0.74);
    --color-overlay-strong: rgba(2, 4, 18, 0.82);
    --color-modal-bg-1: rgba(20, 29, 62, 0.96);
    --color-modal-bg-2: rgba(6, 8, 24, 0.98);

    /* ----- Background gradients ------------------------------------ */
    /* shadcn-style semantic aliases. The static site consumes the older
       Cassini token names, while these aliases make future component work
       map cleanly to the shadcn vocabulary without adding a build step. */
    --background: var(--color-bg);
    --foreground: var(--color-text);
    --card: rgba(12, 17, 31, 0.78);
    --card-foreground: var(--color-text);
    --popover: rgba(10, 14, 28, 0.96);
    --popover-foreground: var(--color-text);
    --primary: var(--color-accent-saturn);
    --primary-foreground: var(--color-text-on-saturn);
    --secondary: rgba(255, 255, 255, 0.07);
    --secondary-foreground: var(--color-text);
    --muted: rgba(255, 255, 255, 0.055);
    --muted-foreground: var(--color-text-muted);
    --accent: rgba(103, 211, 255, 0.12);
    --accent-foreground: var(--color-text);
    --destructive: var(--color-danger);
    --destructive-foreground: var(--color-text);
    --input: var(--color-border-soft);
    --ring: var(--color-focus-ring);

    --bg-page: linear-gradient(125deg, rgba(103, 211, 255, 0.14) 0%, transparent 32%),
    linear-gradient(235deg, rgba(167, 139, 250, 0.12) 0%, transparent 34%),
    linear-gradient(180deg, var(--color-bg-deep) 0%, var(--color-bg-mid) 39%, var(--color-bg-soft) 71%, var(--color-bg) 100%);

    --bg-stars: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(246, 210, 122, 0.65) 0 1px, transparent 1.4px);

    --gradient-accent: linear-gradient(135deg, var(--color-accent-saturn), var(--color-accent-blue) 56%, var(--color-accent-violet));
    --gradient-accent-warm: linear-gradient(135deg, var(--color-accent-saturn), var(--color-accent-blue));
    --gradient-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.082), rgba(255, 255, 255, 0.038));
    --gradient-surface-strong: linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));

    /* ----- Typography ---------------------------------------------- */
    --font-family-base: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;

    --font-size-xs: 12px;
    --font-size-sm: 13px;
    --font-size-md: 14px;
    --font-size-base: 16px;
    --font-size-lg: 17px;
    --font-size-xl: 18px;
    --font-size-2xl: 20px;
    --font-size-3xl: 21px;
    --font-size-h3: 24px;
    --font-size-h2: 44px;
    --font-size-h2-strong: 48px;
    --font-size-modal: 42px;
    --font-size-display: 72px;

    --line-height-tight: 0.94;
    --line-height-snug: 1.1;
    --line-height-normal: 1.5;

    --letter-spacing-tight: 0;
    --letter-spacing-medium: 0;
    --letter-spacing-soft: 0;
    --letter-spacing-card: 0;
    --letter-spacing-uppercase: 0.08em;

    /* ----- Spacing scale ------------------------------------------- */
    --space-0: 0;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 28px;
    --space-8: 32px;
    --space-9: 40px;
    --space-10: 48px;
    --space-11: 56px;
    --space-12: 64px;
    --space-13: 72px;
    --space-14: 88px;

    /* ----- Radii --------------------------------------------------- */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 12px;
    --radius-2xl: 14px;
    --radius-pill: 999px;

    /* shadcn radius base. Components consume the named tokens above,
       this alias exists so shadcn-style helpers that read `--radius`
       resolve to the project's medium radius. */
    --radius: var(--radius-md);

    /* ----- Shadows / glows ----------------------------------------- */
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.30);
    --shadow-md: 0 14px 42px rgba(0, 0, 0, 0.30);
    --shadow-lg: 0 22px 70px rgba(0, 0, 0, 0.38);
    --shadow-xl: 0 26px 82px rgba(0, 0, 0, 0.44);
    --shadow-2xl: 0 32px 96px rgba(0, 0, 0, 0.48);
    --shadow-modal: 0 28px 90px rgba(0, 0, 0, 0.62);
    --shadow-lightbox: 0 32px 100px rgba(0, 0, 0, 0.68);
    --shadow-glow-blue: 0 14px 38px rgba(103, 211, 255, 0.18);
    --shadow-glow-blue-strong: 0 14px 38px rgba(103, 211, 255, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.32);

    /* ----- Motion -------------------------------------------------- */
    --duration-fast: 160ms;
    --duration-normal: 260ms;
    --duration-slow: 420ms;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);

    /* ----- Layout -------------------------------------------------- */
    --container-max: 1180px;
    --container-gutter: 20px;
    --container-gutter-sm: 15px;
    --section-padding-y: 70px;
    --section-padding-y-sm: 54px;
    --nav-height: 72px;
    --scroll-anchor-offset: 88px;

    /* ----- Z-index scale ------------------------------------------- */
    --z-nav: 20;
    --z-sticky: 60;
    --z-modal: 80;
    --z-lightbox: 100;
}
