/* ==========================================================================
   Deedio Marketing Portal - Design Tokens, Typography & Resets
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  /* Color Palette */
  --primary: #4F46E5;
  --primary-light: #6366F1;
  --primary-dark: #3730A3;
  --primary-subtle: #EEF2FF;
  
  --accent: #F59E0B;
  --accent-gold: #FBBF24;
  --accent-orange: #EA580C;
  --accent-subtle: #FEF3C7;

  --success: #10B981;
  --success-dark: #059669;
  --success-subtle: #D1FAE5;

  --danger: #EF4444;
  --danger-dark: #B91C1C;
  --danger-subtle: #FEE2E2;

  --purple: #8B5CF6;
  --purple-subtle: #EDE9FE;

  /* Neutrals */
  --bg-page: #F8FAFC;
  --bg-gradient: linear-gradient(135deg, #F0F4FF 0%, #FAF5FF 50%, #F0FDF4 100%);
  --surface: #FFFFFF;
  --surface-subtle: #F1F5F9;
  --surface-glass: rgba(255, 255, 255, 0.85);
  
  --text-main: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --border-glass: rgba(255, 255, 255, 0.7);

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-floating: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(79, 70, 229, 0.22);
  --shadow-gold: 0 0 20px rgba(245, 158, 11, 0.25);

  /* Typography */
  --font-heading: 'Fredoka', cursive, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
  --transition-normal: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

section {
  scroll-margin-top: 84px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-page);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Global Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Accessible Visually Hidden */
.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 Outline for Accessibility */
:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 3px;
}

/* Motion Preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
