/* ============================================
   THE IMPACT GUIDANCE — Design System
   "The Michelin Photo Editor"
   Ultra-Premium Antigravity Aesthetic
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ============================================
   ROOT TOKENS
   ============================================ */
:root {
  /* Core Colors */
  --color-bg-absolute: #0a0a0a;
  --color-bg-elevated: #111111;
  --color-bg-surface: #1a1a1a;
  --color-bg-hover: #222222;
  
  /* Accent Colors */
  --color-gold: #ffcc00;
  --color-gold-dim: #cc9900;
  --color-gold-glow: rgba(255, 204, 0, 0.3);
  
  --color-teal: #00e6d2;
  --color-teal-dim: #00b3a3;
  --color-teal-glow: rgba(0, 230, 210, 0.3);
  
  /* Neutral Colors */
  --color-white: #ffffff;
  --color-white-90: rgba(255, 255, 255, 0.9);
  --color-white-70: rgba(255, 255, 255, 0.7);
  --color-white-50: rgba(255, 255, 255, 0.5);
  --color-white-30: rgba(255, 255, 255, 0.3);
  --color-white-10: rgba(255, 255, 255, 0.1);
  --color-white-05: rgba(255, 255, 255, 0.05);
  
  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Font Weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;
  
  /* Letter Spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;
  --tracking-widest: 0.2em;
  
  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.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-32: 8rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* Antigravity Effects */
  --blur-subtle: blur(8px);
  --blur-medium: blur(16px);
  --blur-heavy: blur(24px);
  --blur-extreme: blur(40px);
  
  /* Shadows - Floating Effect */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.6);
  --shadow-float: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  --shadow-glow-gold: 0 0 40px var(--color-gold-glow);
  --shadow-glow-teal: 0 0 40px var(--color-teal-glow);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-luxury: 700ms cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Z-Index Scale */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-overlay: 400;
  --z-tooltip: 500;
  
  /* Container Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
}

/* ============================================
   BASE RESET & DEFAULTS
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: var(--font-regular);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-white);
  background-color: var(--color-bg-absolute);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Selection */
::selection {
  background-color: var(--color-gold);
  color: var(--color-bg-absolute);
}

/* Focus States */
:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */
.text-serif {
  font-family: var(--font-serif);
}

.text-sans {
  font-family: var(--font-sans);
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.text-gold {
  color: var(--color-gold);
}

.text-teal {
  color: var(--color-teal);
}

.text-muted {
  color: var(--color-white-50);
}

/* Heading Styles */
.heading-display {
  font-family: var(--font-serif);
  font-weight: var(--font-medium);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.heading-display-xl {
  font-size: clamp(var(--text-4xl), 8vw, var(--text-7xl));
}

.heading-display-lg {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
}

.heading-display-md {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
}

/* Label Styles - Technical UI */
.label-tech {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-white-50);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--space-6);
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grid {
  display: grid;
}

/* ============================================
   ANTIGRAVITY GLASS MORPHISM
   ============================================ */
.glass {
  background: rgba(17, 17, 17, 0.7);
  backdrop-filter: var(--blur-medium);
  -webkit-backdrop-filter: var(--blur-medium);
  border: 1px solid var(--color-white-10);
}

.glass-subtle {
  background: rgba(17, 17, 17, 0.4);
  backdrop-filter: var(--blur-subtle);
  -webkit-backdrop-filter: var(--blur-subtle);
  border: 1px solid var(--color-white-05);
}

.glass-heavy {
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: var(--blur-heavy);
  -webkit-backdrop-filter: var(--blur-heavy);
  border: 1px solid var(--color-white-10);
}

/* ============================================
   FLOATING CONTAINERS
   ============================================ */
.floating {
  transform: translateY(0);
  transition: transform var(--transition-luxury), box-shadow var(--transition-luxury);
  will-change: transform;
}

.floating:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.floating-card {
  background: var(--color-bg-elevated);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-white-05);
}

/* ============================================
   ANIMATION KEYFRAMES
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px var(--color-gold-glow);
  }
  50% {
    box-shadow: 0 0 40px var(--color-gold-glow);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Animation Classes */
.animate-fade-in-up {
  animation: fadeInUp var(--transition-luxury) forwards;
}

.animate-fade-in {
  animation: fadeIn var(--transition-slow) forwards;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Staggered Animation Delays */
.animate-delay-1 { animation-delay: 100ms; }
.animate-delay-2 { animation-delay: 200ms; }
.animate-delay-3 { animation-delay: 300ms; }
.animate-delay-4 { animation-delay: 400ms; }
.animate-delay-5 { animation-delay: 500ms; }

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --space-6: 1.25rem;
    --space-8: 1.75rem;
    --space-16: 3rem;
  }
}

@media (max-width: 768px) {
  :root {
    --space-6: 1rem;
    --space-8: 1.5rem;
    --space-16: 2.5rem;
  }
  
  html {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
}
