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

/* ============================================================
   IQUALLI — Design System
   Tech minimalista escuro · laranja vibrante (#EB5E28)
   ============================================================ */

:root {
  /* Surface */
  --background: 30 10% 8%;
  --background-deep: 24 8% 5%;
  --surface: 30 8% 11%;
  --surface-elevated: 30 8% 14%;
  --foreground: 36 18% 94%;

  --card: 30 8% 11%;
  --card-foreground: 36 18% 94%;

  --popover: 30 8% 11%;
  --popover-foreground: 36 18% 94%;

  /* Brand */
  --primary: 16 84% 54%;
  --primary-foreground: 30 10% 8%;
  --primary-glow: 16 95% 62%;

  --secondary: 30 6% 14%;
  --secondary-foreground: 36 18% 94%;

  --muted: 30 6% 16%;
  --muted-foreground: 36 8% 65%;

  --accent: 16 84% 54%;
  --accent-foreground: 30 10% 8%;

  --destructive: 0 72% 55%;
  --destructive-foreground: 36 18% 94%;

  --border: 30 6% 18%;
  --input: 30 6% 18%;
  --ring: 16 84% 54%;

  --radius: 0.75rem;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, hsl(16 84% 54%) 0%, hsl(22 95% 58%) 100%);
  --gradient-hero: linear-gradient(180deg, hsl(30 10% 8% / 0.4) 0%, hsl(30 10% 8% / 0.85) 60%, hsl(30 10% 8%) 100%);
  --gradient-radial: radial-gradient(ellipse at top, hsl(16 84% 54% / 0.15), transparent 60%);
  --gradient-mesh: radial-gradient(at 20% 0%, hsl(16 84% 54% / 0.18) 0px, transparent 50%),
                   radial-gradient(at 80% 50%, hsl(22 95% 58% / 0.10) 0px, transparent 50%),
                   radial-gradient(at 0% 100%, hsl(16 84% 54% / 0.08) 0px, transparent 50%);

  /* Shadows */
  --shadow-glow: 0 0 60px hsl(16 84% 54% / 0.35);
  --shadow-elevated: 0 24px 48px -12px hsl(0 0% 0% / 0.5);
  --shadow-card: 0 8px 24px -8px hsl(0 0% 0% / 0.4);

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 350ms var(--ease-out-expo);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
}

::selection {
  background: hsl(var(--primary) / 0.3);
  color: hsl(var(--foreground));
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul { list-style: none; }

/* ---- Utilities ---- */
.container-iq {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 80rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 768px) {
  .container-iq { padding-left: 2.5rem; padding-right: 2.5rem; }
}

.display-font {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: hsl(var(--primary));
}
.eyebrow::before {
  content: "";
  height: 1px;
  width: 2rem;
  background: hsl(var(--primary));
}

.text-primary { color: hsl(var(--primary)); }
.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }

.bg-background { background-color: hsl(var(--background)); }
.bg-surface { background-color: hsl(var(--surface)); }
.bg-surface-deep { background-color: hsl(var(--background-deep)); }
.bg-surface-elevated { background-color: hsl(var(--surface-elevated)); }

.bg-gradient-primary { background-image: var(--gradient-primary); }
.bg-gradient-hero { background-image: var(--gradient-hero); }
.bg-gradient-radial { background-image: var(--gradient-radial); }
.bg-gradient-mesh { background-image: var(--gradient-mesh); }

.shadow-glow { box-shadow: var(--shadow-glow); }
.shadow-elevated { box-shadow: var(--shadow-elevated); }
.shadow-card { box-shadow: var(--shadow-card); }

.grid-pattern {
  background-image:
    linear-gradient(hsl(var(--border) / 0.4) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--border) / 0.4) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.glass-card {
  background: linear-gradient(145deg, hsl(var(--surface) / 0.8), hsl(var(--surface) / 0.4));
  border: 1px solid hsl(var(--border) / 0.6);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

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

/* ---- Animations ---- */
@keyframes fade-in {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in-slow {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes scale-in {
  0% { opacity: 0; transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.animate-fade-in {
  animation: fade-in 0.7s var(--ease-out-expo) both;
}
.animate-fade-in-slow {
  animation: fade-in-slow 1.2s ease-out both;
}
.animate-scale-in {
  animation: scale-in 0.5s var(--ease-out-expo) both;
}
.animate-glow-pulse {
  animation: glow-pulse 3s ease-in-out infinite;
}
.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: all 500ms var(--ease-out-expo);
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.site-header.scrolled {
  background: hsl(var(--background) / 0.8);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid hsl(var(--border) / 0.6);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .logo img { height: 5rem; width: auto; }
@media (min-width: 768px) { .site-header .logo img { height: 5rem; } }

/* Desktop nav */
.nav-desktop { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 768px) { .nav-desktop { display: flex; } }
.nav-desktop a {
  position: relative;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: color 200ms;
}
.nav-desktop a:hover { color: hsl(var(--foreground)); }
.nav-desktop a::after {
  content: "";
  position: absolute;
  inset: auto 1rem -1px;
  height: 1px;
  background: hsl(var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease-out-expo);
}
.nav-desktop a:hover::after { transform: scaleX(1); }

.header-cta {
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-image: var(--gradient-primary);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-glow);
  transition: transform 200ms;
}
.header-cta:hover { transform: scale(1.03); }
@media (min-width: 768px) { .header-cta { display: inline-flex; } }

.hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.375rem;
  color: hsl(var(--foreground));
}
@media (min-width: 768px) { .hamburger { display: none; } }

/* Mobile nav */
.mobile-nav {
  display: none;
  border-top: 1px solid hsl(var(--border) / 0.6);
  background: hsl(var(--background) / 0.95);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  animation: fade-in 0.3s var(--ease-out-expo) both;
}
.mobile-nav.open { display: block; }
@media (min-width: 768px) { .mobile-nav { display: none !important; } }
.mobile-nav nav { padding: 1rem 0; display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav a {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: color 200ms, background 200ms;
}
.mobile-nav a:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--surface));
}
.mobile-nav .mobile-cta {
  margin-top: 0.5rem;
  border-radius: 9999px;
  background-image: var(--gradient-primary);
  padding: 0.75rem 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-glow);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-video-wrap video {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.hero-video-wrap .overlay-hero { position: absolute; inset: 0; background-image: var(--gradient-hero); }
.hero-video-wrap .overlay-radial { position: absolute; inset: 0; background-image: var(--gradient-radial); opacity: 0.8; }

.hero .hero-content {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 5rem;
}
@media (min-width: 768px) { .hero .hero-content { padding-top: 10rem; padding-bottom: 7rem; } }

.hero .hero-inner { max-width: 48rem; }

.hero h1 {
  margin-top: 1.5rem;
  font-size: 3rem;
  font-weight: 700;
  line-height: 0.95;
  color: hsl(var(--foreground));
}
@media (min-width: 640px) { .hero h1 { font-size: 3.75rem; } }
@media (min-width: 768px) { .hero h1 { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 6rem; } }

.hero .hero-desc {
  margin-top: 1.75rem;
  max-width: 42rem;
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
}
@media (min-width: 768px) { .hero .hero-desc { font-size: 1.25rem; } }

.hero .hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background-image: var(--gradient-primary);
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-glow);
  transition: transform 200ms;
}
.btn-primary:hover { transform: scale(1.03); }
.btn-primary svg { transition: transform 200ms; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border) / 0.8);
  background: hsl(var(--surface) / 0.4);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  transition: background 200ms;
}
.btn-secondary:hover { background: hsl(var(--surface)); }

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--muted-foreground));
}
@media (min-width: 768px) { .scroll-indicator { display: flex; } }
.scroll-indicator span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}
.scroll-indicator .line {
  height: 2.5rem;
  width: 1px;
  background: linear-gradient(to bottom, hsl(var(--primary)), transparent);
}

/* ============================================================
   QUEM SOMOS
   ============================================================ */
.quem-somos { position: relative; padding: 6rem 0; overflow: hidden; }
@media (min-width: 768px) { .quem-somos { padding: 8rem 0; } }
.quem-somos .bg-grid {
  position: absolute; inset: 0; z-index: -1; opacity: 0.4;
}
.quem-somos .grid-layout {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .quem-somos .grid-layout { grid-template-columns: 7fr 5fr; }
}

.quem-somos h2 {
  margin-top: 1rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.05;
}
@media (min-width: 768px) { .quem-somos h2 { font-size: 3rem; } }
@media (min-width: 1024px) { .quem-somos h2 { font-size: 3.75rem; } }

.quem-somos .description {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
  max-width: 42rem;
}
.quem-somos .description .highlight {
  color: hsl(var(--foreground));
  font-weight: 500;
}

/* Decorative card */
.deco-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 1.5rem;
  border: 1px solid hsl(var(--border) / 0.6);
  background-image: var(--gradient-mesh);
  padding: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}
.deco-card .glow-sphere {
  position: absolute;
  top: -5rem;
  right: -5rem;
  height: 16rem;
  width: 16rem;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.3);
  filter: blur(48px);
}
.deco-card .inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.deco-card .tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.deco-card .tag {
  border-radius: 9999px;
  border: 1px solid hsl(var(--border) / 0.8);
  background: hsl(var(--surface) / 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}
.deco-card .big-letter {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
}
@media (min-width: 768px) { .deco-card .big-letter { font-size: 6rem; } }
.deco-card .subtitle {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  max-width: 16rem;
}

/* ============================================================
   STATS
   ============================================================ */
.stats-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
  border-top: 1px solid hsl(var(--border) / 0.6);
  border-bottom: 1px solid hsl(var(--border) / 0.6);
  background-color: hsl(var(--background-deep));
}
@media (min-width: 768px) { .stats-section { padding: 7rem 0; } }
.stats-section .bg-mesh {
  position: absolute; inset: 0; z-index: -1; background-image: var(--gradient-mesh); opacity: 0.6;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.stat-item { text-align: center; }
@media (min-width: 768px) { .stat-item { text-align: left; } }
.stat-value {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: hsl(var(--foreground));
}
@media (min-width: 768px) { .stat-value { font-size: 3.75rem; } }
.stat-label {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
@media (min-width: 768px) { .stat-label { font-size: 1rem; } }

/* ============================================================
   SERVIÇOS
   ============================================================ */
.servicos { position: relative; padding: 6rem 0; }
@media (min-width: 768px) { .servicos { padding: 8rem 0; } }

.servicos .section-header { max-width: 42rem; }
.servicos h2 {
  margin-top: 1rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.05;
}
@media (min-width: 768px) { .servicos h2 { font-size: 3rem; } }
@media (min-width: 1024px) { .servicos h2 { font-size: 3.75rem; } }
.servicos .section-desc {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
}

.services-list { margin-top: 3.5rem; display: flex; flex-direction: column; gap: 1rem; }

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border) / 0.6);
  background: hsl(var(--surface) / 0.4);
  transition: all 500ms var(--ease-out-expo);
}
.service-card:hover {
  border-color: hsl(var(--border));
  background: hsl(var(--surface) / 0.7);
}
.service-card.active {
  border-color: hsl(var(--primary) / 0.4);
  background: hsl(var(--surface));
  box-shadow: var(--shadow-elevated);
}

.service-trigger {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .service-trigger { padding: 2rem; gap: 2rem; align-items: center; }
}

.service-icon {
  flex-shrink: 0;
  display: flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  transition: all 300ms;
  background: hsl(var(--surface-elevated));
  color: hsl(var(--primary));
}
@media (min-width: 768px) { .service-icon { height: 3.5rem; width: 3.5rem; } }
.service-card.active .service-icon {
  background-image: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
}

.service-info { flex: 1; min-width: 0; }
.service-number {
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  font-variant-numeric: tabular-nums;
}
.service-title {
  margin-top: 0.25rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}
@media (min-width: 768px) { .service-title { font-size: 1.875rem; } }
.service-short {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
}
@media (min-width: 768px) { .service-short { font-size: 1rem; } }

.service-chevron {
  flex-shrink: 0;
  color: hsl(var(--muted-foreground));
  transition: transform 500ms var(--ease-out-expo);
}
.service-card.active .service-chevron {
  transform: rotate(180deg);
  color: hsl(var(--primary));
}

/* Expandable content */
.service-expand {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 500ms var(--ease-out-expo);
}
.service-card.active .service-expand {
  grid-template-rows: 1fr;
}
.service-expand-inner { overflow: hidden; }

.service-detail {
  border-top: 1px solid hsl(var(--border) / 0.6);
  display: grid;
  gap: 0;
}
@media (min-width: 1024px) { .service-detail { grid-template-columns: 2fr 3fr; } }

.service-img-wrap {
  position: relative;
  min-height: 220px;
  overflow: hidden;
}
@media (min-width: 1024px) { .service-img-wrap { min-height: 320px; } }
.service-img-wrap img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1s var(--ease-out-expo);
}
.service-card:hover .service-img-wrap img { transform: scale(1.1); }
.service-img-wrap .img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, hsl(var(--surface)), hsl(var(--surface) / 0.4), transparent);
}

.service-groups {
  padding: 1.5rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 640px) { .service-groups { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .service-groups { padding: 2.5rem; } }

.service-group h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.service-group ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.625rem; }
.service-group li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
.service-group li .dot {
  margin-top: 0.5rem;
  height: 4px;
  width: 4px;
  flex-shrink: 0;
  border-radius: 9999px;
  background: hsl(var(--primary));
}

/* ============================================================
   CTA
   ============================================================ */
.cta-section { position: relative; padding: 6rem 0; overflow: hidden; }
@media (min-width: 768px) { .cta-section { padding: 8rem 0; } }

.cta-box {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid hsl(var(--primary) / 0.2);
  background-image: var(--gradient-mesh);
  padding: 2.5rem;
  text-align: center;
}
@media (min-width: 768px) { .cta-box { padding: 4rem; } }
@media (min-width: 1024px) { .cta-box { padding: 5rem; } }

.cta-box .glow {
  position: absolute;
  top: -6rem;
  left: 50%;
  transform: translateX(-50%);
  height: 18rem;
  width: 18rem;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.3);
  filter: blur(48px);
}
.cta-box .cta-inner {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
}
.cta-box .eyebrow { justify-content: center; }
.cta-box h2 {
  margin-top: 1.25rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.05;
}
@media (min-width: 768px) { .cta-box h2 { font-size: 3rem; } }
@media (min-width: 1024px) { .cta-box h2 { font-size: 3.75rem; } }
.cta-box p {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
}
.cta-box .btn-primary { margin-top: 2.5rem; padding: 1rem 2rem; }

/* ============================================================
   DIFERENCIAIS
   ============================================================ */
.diferenciais {
  position: relative;
  padding: 6rem 0;
  background-color: hsl(var(--background-deep));
  background-image: url('../assets/iqualli_bg2.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-top: 1px solid hsl(var(--border) / 0.6);
  border-bottom: 1px solid hsl(var(--border) / 0.6);
}
@media (min-width: 768px) { .diferenciais { padding: 8rem 0; } }
.diferenciais .bg-grid {
  position: absolute; inset: 0; z-index: -1; opacity: 0.3;
}

.diferenciais h2 {
  margin-top: 1rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.05;
}
@media (min-width: 768px) { .diferenciais h2 { font-size: 3rem; } }
@media (min-width: 1024px) { .diferenciais h2 { font-size: 3.75rem; } }

.diff-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .diff-grid { grid-template-columns: repeat(3, 1fr); } }

.diff-card {
  position: relative;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border) / 0.6);
  background: hsl(var(--surface) / 0.6);
  padding: 2rem;
  transition: all 500ms var(--ease-out-expo);
}
.diff-card:hover {
  border-color: hsl(var(--primary) / 0.4);
  background: hsl(var(--surface));
  transform: translateY(-4px);
}
.diff-card .number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  font-variant-numeric: tabular-nums;
}
.diff-card .icon-wrap {
  display: inline-flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background-image: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-glow);
}
.diff-card h3 {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}
.diff-card p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: hsl(var(--muted-foreground));
}
.diff-card .hover-line {
  margin-top: 1.5rem;
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, hsl(var(--primary) / 0.4), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms var(--ease-out-expo);
}
.diff-card:hover .hover-line { transform: scaleX(1); }

/* ============================================================
   CONTATO
   ============================================================ */
.contato { position: relative; padding: 6rem 0; }
@media (min-width: 768px) { .contato { padding: 8rem 0; } }

.contato .grid-layout { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .contato .grid-layout { grid-template-columns: 5fr 7fr; } }

.contato h2 {
  margin-top: 1rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.05;
}
@media (min-width: 768px) { .contato h2 { font-size: 3rem; } }
@media (min-width: 1024px) { .contato h2 { font-size: 3.75rem; } }
.contato .section-desc {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 28rem;
}

.contact-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }

.contact-card {
  border-radius: 1rem;
  border: 1px solid hsl(var(--border) / 0.6);
  background: hsl(var(--surface) / 0.6);
  padding: 1.75rem;
  transition: all 300ms;
}
.contact-card:hover,
a.contact-card:hover {
  border-color: hsl(var(--primary) / 0.4);
  background: hsl(var(--surface));
}
.contact-card .icon-wrap {
  display: inline-flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: hsl(var(--surface-elevated));
  color: hsl(var(--primary));
  transition: all 300ms;
}
a.contact-card:hover .icon-wrap,
.contact-card:hover .icon-wrap {
  background-image: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
}
.contact-card h3 {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
}
.contact-card .info {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid hsl(var(--border) / 0.6);
  background-color: hsl(var(--background-deep));
}
.site-footer .footer-inner {
  padding: 3rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.site-footer p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
}

/* ============================================================
   404
   ============================================================ */
.not-found {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: hsl(var(--muted));
  text-align: center;
}
.not-found h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; }
.not-found p { font-size: 1.25rem; color: hsl(var(--muted-foreground)); margin-bottom: 1rem; }
.not-found a { color: hsl(var(--primary)); text-decoration: underline; }
.not-found a:hover { color: hsl(var(--primary) / 0.9); }
