/* ============================================
   LanovaPay Design System
   Brand colours extracted from official logo SVG
   ============================================ */

:root {
  /* ─── Brand Colours (from logo) ─── */
  --lanova-purple: #5C5BA7;
  --lanova-magenta: #E0457B;

  /* ─── Extended Palette ─── */
  --purple-50:  #EEEDF7;
  --purple-100: #D5D4EC;
  --purple-200: #AEADE0;
  --purple-300: #8786C7;
  --purple-400: #6F6EB7;
  --purple-500: #5C5BA7;
  --purple-600: #4A4990;
  --purple-700: #3A3975;
  --purple-800: #2B2A5A;
  --purple-900: #1B1B3F;

  --magenta-50:  #FDF0F4;
  --magenta-100: #F9D4E0;
  --magenta-200: #F0A3BF;
  --magenta-300: #E8729F;
  --magenta-400: #E0457B;
  --magenta-500: #C93568;
  --magenta-600: #A82B57;
  --magenta-700: #882246;
  --magenta-800: #681935;
  --magenta-900: #480F24;

  /* ─── Semantic Colours ─── */
  --color-primary: var(--lanova-purple);
  --color-accent: var(--lanova-magenta);
  --color-success: #0F9D58;
  --color-warning: #F4B400;
  --color-error: #C5221F;
  --color-info: #4285F4;

  /* ─── Trust Navy ─── */
  --navy-900: #1B1E4B;
  --navy-800: #252859;
  --navy-700: #2F3267;

  /* ─── Neutrals ─── */
  --neutral-0:   #FFFFFF;
  --neutral-50:  #F9FAFB;
  --neutral-100: #F3F4F6;
  --neutral-200: #E5E7EB;
  --neutral-300: #D1D5DB;
  --neutral-400: #9CA3AF;
  --neutral-500: #6B7280;
  --neutral-600: #4B5563;
  --neutral-700: #374151;
  --neutral-800: #1F2937;
  --neutral-900: #111827;

  /* ─── Gradients ─── */
  --gradient-brand: linear-gradient(135deg, var(--lanova-purple) 0%, var(--lanova-magenta) 100%);
  --gradient-brand-reverse: linear-gradient(135deg, var(--lanova-magenta) 0%, var(--lanova-purple) 100%);
  --gradient-hero: linear-gradient(135deg, #EEEDF7 0%, #FFFFFF 50%, #FDF0F4 100%);
  --gradient-dark: linear-gradient(135deg, var(--navy-900) 0%, var(--purple-900) 100%);
  --gradient-subtle: linear-gradient(135deg, var(--purple-50) 0%, var(--magenta-50) 100%);
  --gradient-text: linear-gradient(135deg, var(--lanova-purple) 0%, var(--lanova-magenta) 100%);

  /* ─── Typography ─── */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;

  /* Type Scale (1.25 ratio) */
  --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:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-caps: 0.1em;

  /* ─── Spacing (4px base) ─── */
  --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 */

  /* ─── Border Radius ─── */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-full: 9999px;

  /* ─── Shadows ─── */
  --shadow-xs:     0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm:     0 2px 8px rgba(92, 91, 167, 0.08);
  --shadow-md:     0 4px 16px rgba(92, 91, 167, 0.12);
  --shadow-lg:     0 8px 32px rgba(92, 91, 167, 0.15);
  --shadow-xl:     0 16px 48px rgba(92, 91, 167, 0.18);
  --shadow-glow:   0 0 24px rgba(224, 69, 123, 0.25);
  --shadow-card:   0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 8px 30px rgba(92, 91, 167, 0.15);

  /* ─── Transitions ─── */
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;

  /* ─── Z-Index Scale ─── */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-toast: 600;
  --z-tooltip: 700;

  /* ─── Container ─── */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-2xl: 1440px;
  --container-padding: var(--space-5);
}

/* ─── Reset ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--neutral-900);
  background-color: var(--neutral-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--neutral-900);
}

h1 { font-size: var(--text-5xl); font-weight: 400; font-family: var(--font-display); letter-spacing: -0.02em; }
h2 { font-size: var(--text-4xl); font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em; }
h3 { font-size: var(--text-2xl); letter-spacing: 0; }
h4 { font-size: var(--text-xl); font-weight: 600; }
h5 { font-size: var(--text-lg); font-weight: 600; }
h6 { font-size: var(--text-base); font-weight: 600; }

p { 
  color: var(--neutral-700); 
  line-height: var(--leading-relaxed);
}

/* ─── Utility: Gradient Text ─── */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Utility: Container ─── */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }

/* ─── Utility: Section Spacing ─── */
.section {
  padding: var(--space-24) 0;
}

.section-sm {
  padding: var(--space-16) 0;
}

.section-lg {
  padding: var(--space-32) 0;
}

/* ─── Utility: Visually Hidden (accessible) ─── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Focus-Visible (keyboard accessibility) ─── */
:focus-visible {
  outline: 2px solid var(--lanova-purple);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--lanova-purple);
  outline-offset: 2px;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  :root {
    --container-padding: var(--space-6);
  }
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
}

@media (max-width: 768px) {
  :root {
    --container-padding: var(--space-4);
  }
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
  .section { padding: var(--space-16) 0; }
}

@media (max-width: 480px) {
  h1 { font-size: var(--text-2xl); }
}
