/* Smeraldo AI — Design System 3.0 | Viola Imperiale × Oro Ambra */

:root {
  --primary: #1E0A3C;
  --primary-mid: #2D1B69;
  --primary-light: #3D2A85;
  --accent: #F59E0B;
  --accent-hover: #D97706;
  --accent2: #8B5CF6;
  --accent2-light: #A78BFA;
  --slate: #6B7280;
  --light-gray: #F5F3FF;
  --white: #FFFFFF;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.15), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 25px -3px rgb(139 92 246 / 0.15), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 30px rgb(139 92 246 / 0.25);

  /* Tailwind-compatible aliases */
  --ai-violet: #7C3AED;
  --ai-amber: #F59E0B;
  --ai-indigo: #4F46E5;
  --ai-purple: #9333EA;
}

/* ─── Animations ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
  50%       { box-shadow: 0 0 20px 6px rgba(139, 92, 246, 0.3); }
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.animate-fade-in-up     { animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-fade-in        { animation: fadeIn 0.6s ease-out forwards; }
.animate-slide-in-right { animation: slideInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-float          { animation: floatUp 4s ease-in-out infinite; }
.animate-glow           { animation: glowPulse 3s ease-in-out infinite; }

.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Glassmorphism ─── */
.glass {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.08);
}

.glass-dark {
  background: rgba(30, 10, 60, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.glass-violet {
  background: rgba(45, 27, 105, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(167, 139, 250, 0.15);
}

/* ─── Cards ─── */
.card-hover {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
}

/* ─── Navigation ─── */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, #7C3AED, #F59E0B);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.nav-link:hover::after { width: 100%; }
.nav-link-active::after { width: 100%; }

/* ─── Mobile Menu ─── */
.burger-menu {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.burger-menu.active { opacity: 1 !important; pointer-events: auto !important; }
.burger-menu.active .translate-x-full { transform: translateX(0) !important; }

.burger-button.active .burger-icon:nth-child(1)  { transform: rotate(45deg) translate(4px, 4px); }
.burger-button.active .burger-icon:nth-child(2)  { opacity: 0; }
.burger-button.active .burger-icon:nth-child(3)  { transform: rotate(-45deg) translate(4px, -4px); }

/* ─── Cookie Banner ─── */
.cookie-banner { animation: slideInUp 0.5s ease-out; }

/* ─── Forms ─── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: 2px solid transparent;
  outline-offset: 2px;
  color: #1E0A3C;
}

.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
  border-color: #7C3AED;
}

/* ─── Buttons ─── */
.btn-primary {
  background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
  color: #ffffff !important;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 1rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #6D28D9 0%, #4C1D95 100%);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.5);
  transform: translateY(-1px);
}

.btn-primary:active  { transform: scale(0.97); }

.btn-secondary {
  background-color: #ffffff;
  color: #1E0A3C;
  border: 1px solid #DDD6FE;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background-color: #F5F3FF;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

.btn-secondary:active { transform: scale(0.97); }

/* ─── Violet section gradients ─── */
.bg-violet-gradient {
  background: linear-gradient(135deg, #1E0A3C 0%, #2D1B69 50%, #1E0A3C 100%);
}

.text-gradient-violet {
  background: linear-gradient(90deg, #A78BFA, #F59E0B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Shimmer accent ─── */
.shimmer-gold {
  background: linear-gradient(90deg, #F59E0B 0%, #FDE68A 50%, #F59E0B 100%);
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}