/* ============================================
   DESIGN SYSTEM PREMIUM - NOTA 10
   ELEVADO E SOFISTICADO
   ============================================ */

:root {
  /* ===== CORES PRIMÁRIAS EXPANDIDAS ===== */
  --primary-color: #db2777;
  --primary-light: #ec4899;
  --primary-lighter: #f9a8d4;
  --primary-dark: #be185d;
  --primary-darker: #9d174d;
  --primary-darkest: #831843;
  --secondary-color: #9d174d;
  --secondary-light: #be185d;

  /* ===== CORES COMPLEMENTARES ===== */
  --accent-purple: #a855f7;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-orange: #f97316;
  --accent-gold: #fbbf24;

  /* ===== CORES DE TEXTO ===== */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* ===== CORES DE FUNDO ===== */
  --bg-white: #ffffff;
  --bg-gray-50: #f8fafc;
  --bg-gray-100: #f1f5f9;
  --bg-gray-200: #e2e8f0;
  --bg-dark: #0f172a;
  --bg-dark-secondary: #1e293b;
  --bg-dark-tertiary: #334155;

  /* ===== GRADIENTES PREMIUM ===== */
  --gradient-primary: linear-gradient(135deg, #db2777 0%, #be185d 50%, #9d174d 100%);
  --gradient-primary-light: linear-gradient(135deg, #ec4899 0%, #db2777 50%, #be185d 100%);
  --gradient-primary-vivid: linear-gradient(135deg, #f472b6 0%, #db2777 50%, #be185d 100%);
  --gradient-hero: linear-gradient(135deg, #ffffff 0%, #fdf2f8 30%, #fce7f3 60%, #f3e8ff 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 100%);

  /* ===== GRADIENTES HOLOGRÁFICOS ===== */
  --gradient-holographic: linear-gradient(135deg, #db2777 0%, #a855f7 25%, #3b82f6 50%, #06b6d4 75%, #db2777 100%);
  --gradient-aurora: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 20%, #fbcfe8 40%, #bfdbfe 60%, #ddd6fe 80%, #fce7f3 100%);
  --gradient-sunset: linear-gradient(135deg, #fef3c7 0%, #fcd34d 25%, #fb923c 50%, #f472b6 75%, #a855f7 100%);
  --gradient-cosmic: radial-gradient(circle at 20% 50%, rgba(219, 39, 119, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);

  /* ===== GRADIENTES MESH ===== */
  --gradient-mesh-1: radial-gradient(at 0% 0%, #fdf2f8 0%, transparent 50%),
    radial-gradient(at 100% 0%, #fae8ff 0%, transparent 50%),
    radial-gradient(at 100% 100%, #fbcfe8 0%, transparent 50%),
    radial-gradient(at 0% 100%, #ddd6fe 0%, transparent 50%);
  --gradient-mesh-2: radial-gradient(at 40% 20%, rgba(219, 39, 119, 0.08) 0%, transparent 50%),
    radial-gradient(at 80% 0%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    radial-gradient(at 0% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);

  /* ===== ESPAÇAMENTO (GRID 8px) ===== */
  --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 */

  /* ===== RAIOS DE BORDA ===== */
  --radius-sm: 0.5rem;
  /* 8px */
  --radius-md: 0.75rem;
  /* 12px */
  --radius-lg: 1rem;
  /* 16px */
  --radius-xl: 1.5rem;
  /* 24px */
  --radius-2xl: 2rem;
  /* 32px */
  --radius-3xl: 3rem;
  /* 48px */
  --radius-full: 9999px;

  /* ===== GLASSMORPHISM AVANÇADO ===== */
  --glass-blur-sm: blur(8px);
  --glass-blur-md: blur(12px);
  --glass-blur-lg: blur(20px);
  --glass-blur-xl: blur(30px);
  --glass-opacity-light: rgba(255, 255, 255, 0.7);
  --glass-opacity-medium: rgba(255, 255, 255, 0.5);
  --glass-opacity-heavy: rgba(255, 255, 255, 0.3);
  --glass-border: 1px solid rgba(255, 255, 255, 0.3);

  /* ===== SOMBRAS PREMIUM (SISTEMA DE ELEVAÇÃO) ===== */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-3xl: 0 35px 60px -15px rgba(0, 0, 0, 0.3);

  /* ===== SOMBRAS COLORIDAS ===== */
  --shadow-primary: 0 10px 30px -5px rgba(219, 39, 119, 0.3);
  --shadow-primary-lg: 0 20px 40px -10px rgba(219, 39, 119, 0.4);
  --shadow-primary-xl: 0 30px 60px -15px rgba(219, 39, 119, 0.5);
  --shadow-glow: 0 0 20px rgba(219, 39, 119, 0.3);
  --shadow-glow-lg: 0 0 40px rgba(219, 39, 119, 0.4);
  --shadow-purple: 0 10px 30px -5px rgba(168, 85, 247, 0.3);
  --shadow-blue: 0 10px 30px -5px rgba(59, 130, 246, 0.3);

  /* ===== SOMBRAS INTERNAS (DEPTH) ===== */
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  --shadow-inner-lg: inset 0 4px 8px 0 rgba(0, 0, 0, 0.1);

  /* ===== SOMBRAS DE TEXTO ===== */
  --text-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
  --text-shadow-md: 0 2px 4px rgba(0, 0, 0, 0.15);
  --text-shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.2);
  --text-shadow-glow: 0 0 20px rgba(219, 39, 119, 0.5);
  --text-shadow-glow-lg: 0 0 40px rgba(219, 39, 119, 0.6), 0 0 60px rgba(219, 39, 119, 0.4);

  /* ===== ANIMAÇÕES PREMIUM ===== */
  --transition-instant: 100ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slower: 800ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-elastic: 800ms cubic-bezier(0.68, -0.6, 0.32, 1.6);
  --transition-smooth: 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-smooth-in: 300ms cubic-bezier(0.42, 0, 1, 1);
  --transition-smooth-out: 300ms cubic-bezier(0, 0, 0.58, 1);

  /* ===== EFEITOS 3D ===== */
  --perspective: 1000px;
  --perspective-xl: 1500px;
  --transform-3d-hover: translateY(-8px) rotateX(2deg) scale(1.02);
  --transform-3d-active: translateY(-4px) rotateX(1deg) scale(1.01);

  /* ===== BLUR EFFECTS ===== */
  --blur-sm: blur(4px);
  --blur-md: blur(8px);
  --blur-lg: blur(12px);
  --blur-xl: blur(16px);
  --blur-2xl: blur(24px);

  /* ===== TIPOGRAFIA PREMIUM ===== */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-family-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;

  --font-size-xs: 0.75rem;
  /* 12px */
  --font-size-sm: 0.875rem;
  /* 14px */
  --font-size-base: 1rem;
  /* 16px */
  --font-size-lg: 1.125rem;
  /* 18px */
  --font-size-xl: 1.25rem;
  /* 20px */
  --font-size-2xl: 1.5rem;
  /* 24px */
  --font-size-3xl: 1.875rem;
  /* 30px */
  --font-size-4xl: 2.25rem;
  /* 36px */
  --font-size-5xl: 3rem;
  /* 48px */
  --font-size-6xl: 3.75rem;
  /* 60px */
  --font-size-7xl: 4.5rem;
  /* 72px */
  --font-size-8xl: 6rem;
  /* 96px */
  --font-size-9xl: 8rem;
  /* 128px */

  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;

  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;

  --letter-spacing-tight: -0.05em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;

  /* ===== Z-INDEX ===== */
  --z-base: 1;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ===== RESET E BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overscroll-behavior-x: none;
  overscroll-behavior-y: auto;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background-color: var(--bg-white);
  overflow-x: hidden;
  position: relative;
  width: 100%;
  max-width: 100vw;
  touch-action: pan-y;
  overscroll-behavior-x: none;
  -webkit-overflow-scrolling: touch;
}

#root {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  touch-action: pan-y;
  overscroll-behavior-x: none;
}

/* Títulos com fonte display */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
}

/* ===== UTILITÁRIOS ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 639px) {
  .container {
    padding: 0 var(--space-4);
    max-width: 100%;
    overflow-x: hidden;
    /* Apenas horizontal */
  }
}

@media (min-width: 640px) {
  .container {
    padding: 0 var(--space-8);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-12);
  }
}

.grid {
  display: grid;
}

.text-center {
  text-align: center;
}

/* ===== LINKS ===== */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--primary-color);
}

/* ===== BOTÕES ===== */
button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: inherit;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* ===== ANIMAÇÕES GLOBAIS PREMIUM ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -40px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translate3d(0, -40px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translate3d(-40px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translate3d(40px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scaleInBounce {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes floatSlow {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  33% {
    transform: translate3d(-10px, -15px, 0);
  }

  66% {
    transform: translate3d(10px, 10px, 0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

@keyframes shimmerFast {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(200%);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(219, 39, 119, 0.4);
  }

  50% {
    box-shadow: 0 0 40px rgba(219, 39, 119, 0.8);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateY {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(360deg);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }

  70% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes wiggle {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-3deg);
  }

  75% {
    transform: rotate(3deg);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translate3d(100px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translate3d(-100px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes morphBorder {

  0%,
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }

  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }

  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }

  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
}

/* ===== CLASSES DE ANIMAÇÃO PREMIUM ===== */
.animate-fade-in {
  animation: fadeIn var(--transition-slow) ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp var(--transition-slow) ease-out;
}

.animate-fade-in-down {
  animation: fadeInDown var(--transition-slow) ease-out;
}

.animate-slide-up {
  animation: slideUp var(--transition-slow) ease-out;
}

.animate-slide-down {
  animation: slideDown var(--transition-slow) ease-out;
}

.animate-slide-right {
  animation: slideRight var(--transition-slow) ease-out;
}

.animate-slide-left {
  animation: slideLeft var(--transition-slow) ease-out;
}

.animate-scale-in {
  animation: scaleIn var(--transition-base) ease-out;
}

.animate-scale-in-bounce {
  animation: scaleInBounce var(--transition-slow) ease-out;
}

.animate-bounce-in {
  animation: bounceIn var(--transition-slow) ease-out;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-slow {
  animation: floatSlow 8s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

.animate-shimmer {
  animation: shimmer 3s linear infinite;
}

.animate-rotate {
  animation: rotate 20s linear infinite;
}

.animate-wiggle {
  animation: wiggle 1s ease-in-out;
}

.animate-gradient-shift {
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}

/* ===== SCROLLBAR PERSONALIZADA ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===== UTILITÁRIOS PREMIUM ===== */
.glass {
  background: var(--glass-opacity-light);
  backdrop-filter: var(--glass-blur-lg);
  -webkit-backdrop-filter: var(--glass-blur-lg);
  border: var(--glass-border);
}

.glass-medium {
  background: var(--glass-opacity-medium);
  backdrop-filter: var(--glass-blur-xl);
  -webkit-backdrop-filter: var(--glass-blur-xl);
  border: var(--glass-border);
}

.glass-heavy {
  background: var(--glass-opacity-heavy);
  backdrop-filter: var(--glass-blur-xl);
  -webkit-backdrop-filter: var(--glass-blur-xl);
  border: var(--glass-border);
}

.text-gradient-primary {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-holographic {
  background: var(--gradient-holographic);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
}

.text-glow {
  text-shadow: var(--text-shadow-glow);
}

.text-glow-lg {
  text-shadow: var(--text-shadow-glow-lg);
}

.shadow-lifted {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.shadow-primary-lifted {
  box-shadow: var(--shadow-primary-xl);
  transform: translateY(-8px);
}

.hover-lift {
  transition: all var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.hover-glow {
  transition: all var(--transition-base);
}

.hover-glow:hover {
  box-shadow: var(--shadow-glow-lg);
}

.hover-scale {
  transition: transform var(--transition-base);
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-rotate {
  transition: transform var(--transition-base);
}

.hover-rotate:hover {
  transform: rotate(5deg);
}

.perspective {
  perspective: var(--perspective);
}

.perspective-xl {
  perspective: var(--perspective-xl);
}

.transform-3d {
  transform-style: preserve-3d;
}

.gpu-accelerated {
  transform: translateZ(0);
  will-change: transform;
}

/* ===== OVERLAY E BACKGROUNDS ===== */
.bg-gradient-mesh {
  background: var(--gradient-mesh-1);
}

.bg-gradient-cosmic {
  background: var(--gradient-cosmic);
}

.bg-gradient-aurora {
  background: var(--gradient-aurora);
}

/* ===== UTILIDADES DE PERFORMANCE ===== */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

.backface-hidden {
  backface-visibility: hidden;
}