/* ===== CSS Variables / Design Tokens ===== */
:root {
  --background: 210 20% 98%;
  --foreground: 215 25% 12%;

  --card: 0 0% 100%;
  --card-foreground: 215 25% 12%;

  --popover: 0 0% 100%;
  --popover-foreground: 215 25% 12%;

  /* Primary: Tech Blue */
  --primary: 210 100% 45%;
  --primary-foreground: 0 0% 100%;

  /* Secondary: Soft Blue */
  --secondary: 210 40% 96%;
  --secondary-foreground: 210 100% 35%;

  /* Accent: Warm Amber - Humanization */
  --accent: 38 92% 50%;
  --accent-foreground: 0 0% 100%;

  --muted: 210 20% 96%;
  --muted-foreground: 215 15% 45%;

  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;

  --border: 214 20% 90%;
  --input: 214 20% 90%;
  --ring: 210 100% 45%;

  --radius: 0.75rem;

  /* WhatsApp */
  --whatsapp: 142 70% 45%;
  --whatsapp-foreground: 0 0% 100%;
}

.dark {
  --background: 215 25% 8%;
  --foreground: 210 20% 98%;

  --card: 215 25% 12%;
  --card-foreground: 210 20% 98%;

  --popover: 215 25% 12%;
  --popover-foreground: 210 20% 98%;

  --primary: 210 100% 55%;
  --primary-foreground: 215 25% 8%;

  --secondary: 215 20% 18%;
  --secondary-foreground: 210 100% 70%;

  --accent: 38 92% 55%;
  --accent-foreground: 215 25% 8%;

  --muted: 215 20% 18%;
  --muted-foreground: 215 15% 60%;

  --destructive: 0 62% 50%;
  --destructive-foreground: 0 0% 100%;

  --border: 215 20% 20%;
  --input: 215 20% 20%;
  --ring: 210 100% 55%;
}

/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
}

/* ===== Gradient Classes ===== */
.gradient-primary {
  background: linear-gradient(135deg, hsl(210 100% 45%) 0%, hsl(185 80% 40%) 100%);
}

.gradient-hero {
  background: linear-gradient(180deg, hsl(210 30% 97%) 0%, hsl(210 40% 94%) 100%);
}

.dark .gradient-hero {
  background: linear-gradient(180deg, hsl(215 25% 10%) 0%, hsl(215 25% 8%) 100%);
}

.gradient-accent {
  background: linear-gradient(135deg, hsl(38 92% 50%) 0%, hsl(25 95% 55%) 100%);
}

.gradient-dark {
  background: linear-gradient(135deg, hsl(215 25% 12%) 0%, hsl(220 30% 18%) 100%);
}

/* ===== Text Gradient ===== */
.text-gradient {
  background: linear-gradient(135deg, hsl(210 100% 45%) 0%, hsl(185 80% 40%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Shadow Classes ===== */
.shadow-soft {
  box-shadow: 0 4px 20px -4px hsl(210 100% 45% / 0.15);
}

.shadow-glow {
  box-shadow: 0 0 40px -8px hsl(210 100% 45% / 0.3);
}

.shadow-card {
  box-shadow: 0 8px 32px -8px hsl(215 25% 12% / 0.08);
}

/* ===== Button Styles ===== */
.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, hsl(210 100% 45%) 0%, hsl(185 80% 40%) 100%);
  color: white;
  box-shadow: 0 0 40px -8px hsl(210 100% 45% / 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-hero:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.btn-hero:active {
  transform: scale(0.98);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  background: transparent;
  color: hsl(var(--primary));
  border: 2px solid hsl(var(--primary));
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-outline:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  background: hsl(var(--whatsapp));
  color: white;
  box-shadow: 0 10px 25px -5px hsl(142 70% 45% / 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-whatsapp:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* ===== Animations ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.fade-in-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Header Styles ===== */
#header.scrolled {
  background-color: hsl(var(--background) / 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px hsl(var(--border) / 0.5);
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

/* ===== Theme Toggle ===== */
.dark .sun-icon {
  display: none;
}

.dark .moon-icon {
  display: block;
}

.sun-icon {
  display: block;
}

.moon-icon {
  display: none;
}

/* ===== Accordion Styles ===== */
.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-item.open .accordion-content {
  max-height: 500px;
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* ===== Smooth Scroll ===== */
html {
  scroll-behavior: smooth;
}

/* ===== Selection ===== */
::selection {
  background-color: hsl(var(--primary) / 0.2);
  color: hsl(var(--foreground));
}
