/*==============================================================
  Lunar Logic v2.0
  Design Tokens
  File: tokens.css
  Version: 2.0
==============================================================*/

/*==============================================================
  Root Variables
==============================================================*/

:root {

    /*==========================================================
      Brand
    ==========================================================*/

    --color-brand-50: #eef5ff;
    --color-brand-100: #d9e8ff;
    --color-brand-200: #b8d4ff;
    --color-brand-300: #8cb8ff;
    --color-brand-400: #5d97ff;
    --color-brand-500: #2f6fff;
    --color-brand-600: #1b54dc;
    --color-brand-700: #1543af;
    --color-brand-800: #15398f;
    --color-brand-900: #132f73;

    /* Aliases used by about.css / industries.css / odoo.css */
    --color-primary: var(--color-brand-500);
    --color-primary-light: var(--color-brand-300);

    /*==========================================================
      Accent
    ==========================================================*/

    --color-accent: #6ce5ff;
    --color-accent-soft: #dff9ff;

    /*==========================================================
      Neutral Palette
    ==========================================================*/

    --color-white: #ffffff;

    --color-neutral-50: #fafbfc;
    --color-neutral-100: #f4f6f8;
    --color-neutral-200: #e8edf2;
    --color-neutral-300: #d5dce5;
    --color-neutral-400: #9ba8ba;
    --color-neutral-500: #66768d;
    --color-neutral-600: #49566a;
    --color-neutral-700: #354155;
    --color-neutral-800: #212c3d;
    --color-neutral-900: #111827;

    /*==========================================================
      Surface
    ==========================================================*/

    --color-background: #ffffff;
    --color-background-alt: #eef2f8;

    --color-surface: #f7f9fc;
    --color-surface-hover: #eef2f8;
    --color-surface-active: #e3e9f2;

    --color-border: rgba(13,30,55,.10);
    --color-border-strong: rgba(13,30,55,.20);

    /*==========================================================
      Text
    ==========================================================*/

    --color-heading: #0d1830;

    --color-text: rgba(13,24,48,.84);

    --color-text-soft: rgba(13,24,48,.66);

    --color-text-muted: rgba(13,24,48,.46);

    --color-link: var(--color-brand-400);

    --color-link-hover: var(--color-brand-300);

    /* Aliases: several component files (button, badge, card, metric,
       services) were written against an older token naming scheme.
       Kept here so every component gets correct values without
       touching each file individually. */
    --color-text-primary: var(--color-text);
    --color-text-secondary: var(--color-text-soft);
    --font-size-xs: var(--fs-xs);
    --font-size-sm: var(--fs-sm);
    --font-size-base: var(--fs-base);
    --transition-base: var(--duration-base);

    /* Secondary button — theme-aware so it works on both the dark
       hero and the light sections; hero overrides these locally. */
    --button-secondary-border: rgba(13,30,55,.16);
    --button-secondary-hover-bg: rgba(13,30,55,.05);
    --button-secondary-hover-border: rgba(13,30,55,.28);

    /*==========================================================
      Status
    ==========================================================*/

    --color-success: #00c27a;
    --color-warning: #f5a623;
    --color-danger: #ef4444;
    --color-info: #38bdf8;

    /*==========================================================
      Typography
    ==========================================================*/

    --font-family-base:
        "Inter",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    --font-family-heading:
        "Inter",
        system-ui,
        sans-serif;

    --font-family-mono:
        "IBM Plex Mono",
        Consolas,
        monospace;

    /*==========================================================
      Font Sizes
    ==========================================================*/

    --fs-xs: .75rem;
    --fs-sm: .875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 2rem;
    --fs-3xl: 2.75rem;
    --fs-4xl: 3.5rem;
    --fs-5xl: 4.5rem;

    /*==========================================================
      Font Weights
    ==========================================================*/

    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;

    /*==========================================================
      Line Heights
    ==========================================================*/

    --lh-tight: 1.1;
    --lh-heading: 1.15;
    --lh-body: 1.7;
    --lh-loose: 1.9;

    /*==========================================================
      Letter Spacing
    ==========================================================*/

    --tracking-tight: -.04em;
    --tracking-normal: 0;
    --tracking-wide: .08em;

    /*==========================================================
      Layout
    ==========================================================*/

    --container-width: 1240px;
    --container-narrow: 880px;
    --container-wide: 1440px;

    --header-height: 88px;

    /*==========================================================
      Spacing Scale
    ==========================================================*/

    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-28: 7rem;
    --space-32: 8rem;

    /*==========================================================
      Radius
    ==========================================================*/

    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /*==========================================================
      Shadows
    ==========================================================*/

    --shadow-xs:
        0 1px 2px rgba(0,0,0,.10);

    --shadow-sm:
        0 6px 18px rgba(0,0,0,.18);

    --shadow-md:
        0 18px 45px rgba(0,0,0,.28);

    --shadow-lg:
        0 28px 80px rgba(0,0,0,.38);

    --shadow-glow:
        0 0 60px rgba(47,111,255,.25);

    /*==========================================================
      Blur
    ==========================================================*/

    --blur-sm: 6px;
    --blur-md: 14px;
    --blur-lg: 30px;

    /*==========================================================
      Borders
    ==========================================================*/

    --border-width: 1px;
    --border:
        var(--border-width)
        solid
        var(--color-border);

    --border-strong:
        1px
        solid
        var(--color-border-strong);

    /*==========================================================
      Motion
    ==========================================================*/

    --duration-fast: 160ms;
    --duration-base: 260ms;
    --duration-slow: 500ms;

    --ease-standard:
        cubic-bezier(.2,.8,.2,1);

    --ease-emphasis:
        cubic-bezier(.16,1,.3,1);

    /*==========================================================
      Layering
    ==========================================================*/

    --z-base: 1;
    --z-header: 100;
    --z-dropdown: 300;
    --z-overlay: 500;
    --z-modal: 1000;
    --z-toast: 1200;

}

/*==============================================================
  Responsive Typography
==============================================================*/

@media (max-width: 1200px) {

    :root {

        --fs-5xl: 4rem;
        --fs-4xl: 3.2rem;
        --fs-3xl: 2.5rem;

    }

}

@media (max-width: 992px) {

    :root {

        --header-height: 78px;

        --fs-5xl: 3.25rem;
        --fs-4xl: 2.75rem;
        --fs-3xl: 2.25rem;

        --space-24: 5rem;
        --space-32: 6rem;

    }

}

@media (max-width: 768px) {

    :root {

        --fs-5xl: 2.75rem;
        --fs-4xl: 2.4rem;
        --fs-3xl: 2rem;
        --fs-2xl: 1.75rem;

        --space-20: 4rem;
        --space-24: 4.5rem;

    }

}

@media (prefers-reduced-motion: reduce) {

    :root {

        --duration-fast: 0ms;
        --duration-base: 0ms;
        --duration-slow: 0ms;

    }

}