/* =============================================
   LEVEL 3 DESIGN SYSTEM - GLOBAL STYLES
   ============================================= */

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

:root {
  /* Premium Light Mode Palette */
  --bg-main: #f8fafc;        /* Soft pearl background */
  --bg-surface: #ffffff;     /* Pure white for cards */
  --bg-surface-hover: #f1f5f9; /* Subtle hover state */

  /* Primary Brand - Azure Blue */
  --brand-light: #e0f2fe;
  --brand-default: #0ea5e9;
  --brand-hover: #0284c7;
  --brand-dark: #0369a1;

  /* Accent - Soft Amber/Coral */
  --accent-light: #fef3c7;
  --accent-default: #f59e0b;
  --accent-hover: #d97706;

  /* Text Colors */
  --text-primary: #0f172a;   /* Near black for high contrast */
  --text-secondary: #475569; /* Soft gray for body text */
  --text-muted: #94a3b8;     /* Very soft gray for tertiary info */
  --text-inverse: #ffffff;   /* Text on dark backgrounds */

  /* Borders & Dividers */
  --border-light: rgba(14, 165, 233, 0.1);
  --border-default: #e2e8f0;

  /* Shadows - Soft & Premium */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.2);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing Grid (8px baseline) */
  --space-2: 0.5rem;   /* 8px */
  --space-4: 1rem;     /* 16px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-24: 6rem;    /* 96px */
  --space-32: 8rem;    /* 128px */

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   RESETS
   ============================================= */

*, *::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);
  background-color: var(--bg-main);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

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

button, input, textarea, select {
  font: inherit;
  border: none;
  outline: none;
  background: transparent;
}

button {
  cursor: pointer;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: var(--space-4);
}

.text-lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =============================================
   LAYOUT UTILITIES
   ============================================= */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

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

@media (max-width: 768px) {
  .section { padding: var(--space-16) 0; }
  .section-sm { padding: var(--space-8) 0; }
  .container { padding: 0 var(--space-4); }
}

/* =============================================
   BUTTONS
   ============================================= */

.btn, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary, .button:not(.button-secondary):not(.button-small) {
  background-color: var(--brand-default);
  color: var(--text-inverse);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover, .button:not(.button-secondary):not(.button-small):hover {
  background-color: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
  color: var(--text-inverse);
}

.btn-secondary, .button-secondary {
  background-color: var(--bg-surface);
  color: var(--brand-default);
  border: 2px solid var(--border-light);
}

.btn-secondary:hover, .button-secondary:hover {
  border-color: var(--brand-default);
  color: var(--brand-hover);
  background-color: var(--brand-light);
  transform: translateY(-2px);
}

.button-small {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* =============================================
   ANIMATIONS & MICRO-INTERACTIONS
   ============================================= */

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Image Placeholder Style for nice uniform look */
.img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--border-default);
  border-radius: inherit;
}
