@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

/* ==========================================================================
   DESIGN TOKENS
   Luxury SaaS Design System
   ========================================================================== */

/* -------------------------------------------------------------------------
   CUSTOM FONTS
   ------------------------------------------------------------------------- */

@font-face {
  font-family: 'Michroma';
  src: url('../assets/fonts/Michroma-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ubuntu';
  src: url('../assets/fonts/Ubuntu-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}


:root {
  /* -------------------------------------------------------------------------
     COLORS
     ------------------------------------------------------------------------- */

  /* Primary palette */
  --color-primary: #0a2240;
  --color-primary-light: #143a66;
  --color-primary-dark: #061829;

  /* Neutral palette */
  --color-gray: #a0a0a0;
  --color-gray-100: #fafafa;
  --color-gray-200: #f5f5f5;
  --color-gray-300: #e5e5e5;
  --color-gray-400: #d4d4d4;
  --color-gray-500: #a0a0a0;
  --color-gray-600: #737373;
  --color-gray-700: #525252;
  --color-gray-800: #262626;
  --color-gray-900: #171717;

  /* Semantic colors */
  --color-background: #fafafa;
  --color-surface: rgba(255, 255, 255, 0.8);
  --color-surface-elevated: rgba(255, 255, 255, 0.9);
  --color-text: #171717;
  --color-text-muted: #737373;
  --color-text-subtle: #a0a0a0;
  --color-border: rgba(10, 34, 64, 0.08);
  --color-border-strong: rgba(10, 34, 64, 0.15);

  /* Gradient mesh colors */
  --gradient-mesh-1: rgba(10, 34, 64, 0.03);
  --gradient-mesh-2: rgba(160, 160, 160, 0.05);
  --gradient-mesh-3: rgba(10, 34, 64, 0.02);

  /* -------------------------------------------------------------------------
     TYPOGRAPHY
     ------------------------------------------------------------------------- */

  /* Font families */
  --font-display: 'Michroma', 'Arial Black', sans-serif;
  --font-body: 'Ubuntu', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Font sizes (rem-based scale) */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 2rem;      /* 32px */
  --text-4xl: 2.5rem;    /* 40px */
  --text-5xl: 3.5rem;    /* 56px */
  --text-6xl: 4.5rem;    /* 72px */
  --text-hero: clamp(3rem, 12vw, 10rem);

  /* Font weights */
  --font-normal: 400;
  --font-medium: 500;

  /* Letter spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;
  --tracking-widest: 0.15em;

  /* Line heights */
  --leading-none: 1;
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 1.8;

  /* -------------------------------------------------------------------------
     SPACING (8pt Grid)
     ------------------------------------------------------------------------- */

  --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 */
  --space-32: 8rem;     /* 128px */
  --space-40: 10rem;    /* 160px */
  --space-48: 12rem;    /* 192px */

  /* Section spacing */
  --section-padding-y: clamp(5rem, 12vh, 10rem);
  --container-max: 1400px;
  --container-narrow: 900px;
  --container-padding: clamp(1.5rem, 5vw, 3rem);

  /* -------------------------------------------------------------------------
     EFFECTS
     ------------------------------------------------------------------------- */

  /* Shadows (multi-layer depth system) */
  --shadow-xs: 0 1px 2px rgba(10, 34, 64, 0.03);

  --shadow-sm:
    0 1px 2px rgba(10, 34, 64, 0.04),
    0 2px 4px rgba(10, 34, 64, 0.04);

  --shadow-md:
    0 2px 4px rgba(10, 34, 64, 0.03),
    0 4px 8px rgba(10, 34, 64, 0.04),
    0 8px 16px rgba(10, 34, 64, 0.05);

  --shadow-lg:
    0 4px 6px rgba(10, 34, 64, 0.02),
    0 8px 16px rgba(10, 34, 64, 0.04),
    0 16px 32px rgba(10, 34, 64, 0.06);

  --shadow-xl:
    0 8px 12px rgba(10, 34, 64, 0.02),
    0 16px 24px rgba(10, 34, 64, 0.04),
    0 24px 48px rgba(10, 34, 64, 0.08);

  --shadow-2xl:
    0 12px 20px rgba(10, 34, 64, 0.02),
    0 24px 40px rgba(10, 34, 64, 0.05),
    0 40px 64px rgba(10, 34, 64, 0.1);

  /* Glass morphism */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-bg-hover: rgba(255, 255, 255, 0.88);
  --glass-blur: 16px; /* Reduced from 24px for better Chrome performance */
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-border-hover: rgba(255, 255, 255, 0.7);

  --glass-shadow:
    0 4px 6px rgba(10, 34, 64, 0.02),
    0 8px 24px rgba(10, 34, 64, 0.06),
    0 16px 32px rgba(10, 34, 64, 0.04);

  --glass-shadow-hover:
    0 8px 12px rgba(10, 34, 64, 0.03),
    0 16px 32px rgba(10, 34, 64, 0.08),
    0 24px 48px rgba(10, 34, 64, 0.06);

  --glass-inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.6);

  /* Border radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --radius-2xl: 10px;
  --radius-3xl: 12px;
  --radius-full: 9999px;

  /* -------------------------------------------------------------------------
     ANIMATION
     ------------------------------------------------------------------------- */

  /* Durations */
  --duration-instant: 100ms;
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 700ms;
  --duration-slowest: 1000ms;

  /* Easing curves */
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-elegant: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.4, 0.64, 1);

  /* -------------------------------------------------------------------------
     BREAKPOINTS (Mobile-First)
     Usage: @media (min-width: var(--bp-sm)) { }
     Note: CSS custom properties don't work in media queries,
     so use these values directly: 480px, 640px, 768px, 1024px, 1280px
     ------------------------------------------------------------------------- */

  /* Reference values (use directly in media queries):
     --bp-xs: 480px    - Large phones
     --bp-sm: 640px    - Small tablets
     --bp-md: 768px    - Tablets
     --bp-lg: 1024px   - Small desktops
     --bp-xl: 1280px   - Large desktops
  */

  /* -------------------------------------------------------------------------
     Z-INDEX SCALE
     ------------------------------------------------------------------------- */

  --z-behind: -1;
  --z-base: 0;
  --z-raised: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-header: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-toast: 600;
  --z-tooltip: 700;
}

/* ==========================================================================
   BASE RESET
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

body.menu-open {
  overflow: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

/* Selection */
::selection {
  background-color: var(--color-primary);
  color: white;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
