*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #050508;
  --bg-subtle: #0A0A10;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.06);
  --text: #EEEEF0;
  --text-muted: #A0A3B5;
  --text-dim: #6B6F85;
  --red: #E63946;
  --red-glow: rgba(230, 57, 70, 0.2);
  --red-soft: #FF6B6B;
  --red-dark: #C1121F;
  --red-subtle: rgba(230, 57, 70, 0.08);
  --border: rgba(255,255,255,0.05);
  --border-hover: rgba(230, 57, 70, 0.25);
  --radius: 16px;
  --radius-sm: 12px;
}

html { scroll-behavior: smooth; }

html, body, nav, .service-card, .service-icon,
.hero-tag, .lang-dropdown, .lang-btn, .theme-toggle, footer {
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Noise texture overlay — grão sutil global */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

[data-theme="light"] body::before {
  opacity: 0.025;
}

/* ─── SECTION GLOW BLOBS ─── */
section {
  position: relative;
}

/* Sobre — glow vermelho esquerda */
#sobre::before {
  content: '';
  position: absolute;
  top: -10%; left: -15%;
  width: 600px; height: 500px;
  background: radial-gradient(circle, rgba(230,57,70,0.18) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: section-drift-1 16s ease-in-out infinite;
}

/* Produtos — glow roxo direita */
#produtos::after {
  content: '';
  position: absolute;
  top: 10%; right: -10%;
  width: 700px; height: 500px;
  background: radial-gradient(circle, rgba(120,70,230,0.15) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: section-drift-2 20s ease-in-out infinite;
}

/* Serviços — glow vermelho centro */
#servicos::before {
  content: '';
  position: absolute;
  bottom: -5%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(circle, rgba(230,57,70,0.12) 0%, transparent 55%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: section-drift-3 18s ease-in-out infinite;
}

/* Contato — glow azul esquerda */
#contato::before {
  content: '';
  position: absolute;
  top: 0; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(56,132,244,0.14) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: section-drift-1 22s ease-in-out infinite reverse;
}

@keyframes section-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.06); }
  66% { transform: translate(-20px, 15px) scale(0.97); }
}

@keyframes section-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(-35px, 25px) scale(1.08); }
  70% { transform: translate(25px, -15px) scale(0.95); }
}

@keyframes section-drift-3 {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-45%) translateY(-20px) scale(1.1); }
}

/* Seções alternadas — fundo sutil */
#sobre {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-subtle) 50%, var(--bg) 100%);
}

#contato {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-subtle) 40%, var(--bg-subtle) 60%, var(--bg) 100%);
}

/* Light theme — glows mais suaves */
[data-theme="light"] #sobre::before {
  background: radial-gradient(circle, rgba(230,57,70,0.08) 0%, transparent 60%);
}
[data-theme="light"] #produtos::after {
  background: radial-gradient(circle, rgba(120,70,230,0.07) 0%, transparent 60%);
}
[data-theme="light"] #servicos::before {
  background: radial-gradient(circle, rgba(230,57,70,0.06) 0%, transparent 55%);
}
[data-theme="light"] #contato::before {
  background: radial-gradient(circle, rgba(56,132,244,0.06) 0%, transparent 60%);
}
[data-theme="light"] #sobre {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-subtle) 50%, var(--bg) 100%);
}
[data-theme="light"] #contato {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-subtle) 40%, var(--bg-subtle) 60%, var(--bg) 100%);
}

::selection { background: var(--red); color: white; }

/* ─── LIGHT THEME ─── */
[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-subtle: #F5F5F8;
  --bg-card: rgba(0,0,0,0.03);
  --bg-card-hover: rgba(0,0,0,0.06);
  --text: #111827;
  --text-muted: #4B5563;
  --text-dim: #9CA3AF;
  --red-subtle: rgba(230, 57, 70, 0.07);
  --border: rgba(0,0,0,0.08);
  --border-hover: rgba(230, 57, 70, 0.25);
}

[data-theme="light"] nav {
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

[data-theme="light"] .nav-logo {
  box-shadow: 0 2px 10px rgba(230,57,70,0.2);
}

[data-theme="light"] .hero-stat .number { color: #111827; }

[data-theme="light"] .hero h1 .line-muted { color: #9CA3AF; }

[data-theme="light"] .hero-bg .glow-1 {
  background: radial-gradient(circle, rgba(230,57,70,0.15) 0%, rgba(230,57,70,0.04) 40%, transparent 65%);
}

[data-theme="light"] .hero-bg .glow-2 {
  background: radial-gradient(circle, rgba(120,70,230,0.1) 0%, rgba(120,70,230,0.03) 40%, transparent 65%);
}

[data-theme="light"] .hero-bg .glow-3 {
  background: radial-gradient(circle, rgba(56,132,244,0.1) 0%, rgba(56,132,244,0.03) 40%, transparent 65%);
}

[data-theme="light"] .hero-bg .grid-pattern {
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
}

[data-theme="light"] .hero-tag {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .hero-stats {
  border-top-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .btn-primary {
  box-shadow: 0 2px 16px rgba(230,57,70,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
}

[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 4px 24px rgba(230,57,70,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
}

[data-theme="light"] .lang-dropdown {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

[data-theme="light"] .lang-option:hover {
  background: rgba(0,0,0,0.04);
}

[data-theme="light"] .services-section {
  background: var(--bg-subtle);
  border-top-color: rgba(0,0,0,0.04);
  border-bottom-color: rgba(0,0,0,0.04);
}

[data-theme="light"] .service-card {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

[data-theme="light"] .service-card:hover {
  background: #FFFFFF;
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

[data-theme="light"] .service-icon {
  background: rgba(230, 57, 70, 0.06);
}



[data-theme="light"] footer {
  border-top-color: rgba(0,0,0,0.06);
  color: #6B7280;
}

/* ─── LIGHT MODE CONTRAST FIXES ─── */
[data-theme="light"] .section-label {
  color: var(--red);
  opacity: 0.9;
}

[data-theme="light"] .section-title {
  color: #111827;
}

[data-theme="light"] .section-header p,
[data-theme="light"] .hero-desc {
  color: #4B5563;
}

[data-theme="light"] .hero h1 {
  color: #111827;
}

[data-theme="light"] .hero h1 .accent {
  color: var(--red);
}

[data-theme="light"] .hero h1 .line-muted {
  color: #6B7280;
}

[data-theme="light"] .hero-tag {
  color: #374151;
}

[data-theme="light"] .hero-stat .label {
  color: #6B7280;
}

[data-theme="light"] .process-step h3 {
  color: #111827;
}

[data-theme="light"] .process-step p {
  color: #4B5563;
}

[data-theme="light"] .about-text p {
  color: #374151;
}

[data-theme="light"] .about-card h4 {
  color: #111827;
}

[data-theme="light"] .about-card p {
  color: #4B5563;
}

[data-theme="light"] .contact-text h2 {
  color: #111827;
}

[data-theme="light"] .contact-text p {
  color: #4B5563;
}

[data-theme="light"] .product-card h3 {
  color: #111827;
}

[data-theme="light"] .product-card p {
  color: #4B5563;
}

[data-theme="light"] .btn-ghost {
  color: #374151;
  border-color: rgba(0,0,0,0.12);
}

[data-theme="light"] .btn-ghost:hover {
  color: var(--red);
  border-color: var(--border-hover);
}

[data-theme="light"] .theme-toggle {
  border-color: rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.03);
}

[data-theme="light"] .lang-btn {
  border-color: rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.03);
}

/* ─── THEME TOGGLE ─── */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  padding: 0;
  color: var(--text-muted);
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: scale(1.05);
  color: var(--text);
}

.theme-toggle svg {
  width: 18px; height: 18px;
  position: absolute;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover svg { transform: rotate(20deg); }

.theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }

[data-theme="light"] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0deg) scale(1); }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }
[data-theme="light"] .theme-toggle:hover .icon-sun { transform: rotate(20deg) scale(1); }

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(5,5,8,0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

/* Theme sweep flash */
nav::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(230,57,70,0.15) 40%, rgba(230,57,70,0.25) 50%, rgba(230,57,70,0.15) 60%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  z-index: 200;
}

nav.theme-sweep::after {
  opacity: 1;
  animation: navSweep 0.5s ease-out forwards;
}

[data-theme="light"] nav::after {
  background: linear-gradient(90deg, transparent 0%, rgba(230,57,70,0.1) 40%, rgba(230,57,70,0.18) 50%, rgba(230,57,70,0.1) 60%, transparent 100%);
}

@keyframes navSweep {
  0%   { left: -100%; }
  100% { left: 100%; }
}

.nav-brand {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.nav-logo {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  color: white;
}

.nav-right { display: flex; gap: 24px; align-items: center; }

.nav-links { display: flex; gap: 32px; align-items: center; }

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.2px;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--red);
  color: white !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  transition: all 0.2s !important;
}

.nav-cta:hover {
  background: var(--red-dark) !important;
  color: white !important;
  transform: translateY(-1px);
}

/* ─── LANG SWITCHER ─── */
.lang-switcher {
  position: relative;
}

.lang-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  overflow: hidden;
  padding: 0;
}

.lang-btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: scale(1.05);
}

.lang-btn .flag {
  width: 22px; height: 22px;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #12121A;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  min-width: 160px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: all 0.2s ease;
  z-index: 200;
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
}

.lang-option:hover { background: rgba(255,255,255,0.05); color: var(--text); }

.lang-option.active { color: var(--text); background: var(--red-subtle); }

.lang-option .flag {
  width: 20px; height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.lang-option .check {
  margin-left: auto;
  color: var(--red);
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.15s;
}

.lang-option.active .check { opacity: 1; }

/* ─── FLAG SVGs (inline circles) ─── */
.flag-svg {
  width: 22px; height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lang-option .flag-svg {
  width: 20px; height: 20px;
}

/* ─── SECTIONS ─── */
section { padding: 180px 48px 140px; }
#contato { padding-top: 140px; padding-bottom: 80px; }
.container { max-width: 1120px; width: 100%; margin: 0 auto; position: relative; z-index: 1; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg .grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero-bg .glow-1 {
  position: absolute;
  top: -20%; left: 30%;
  width: 900px; height: 700px;
  background: radial-gradient(circle, rgba(230,57,70,0.35) 0%, rgba(230,57,70,0.08) 40%, transparent 65%);
  filter: blur(60px);
  animation: mesh-drift-1 18s ease-in-out infinite;
}

.hero-bg .glow-2 {
  position: absolute;
  bottom: -10%; right: -5%;
  width: 800px; height: 650px;
  background: radial-gradient(circle, rgba(120,70,230,0.25) 0%, rgba(120,70,230,0.06) 40%, transparent 65%);
  filter: blur(60px);
  animation: mesh-drift-2 22s ease-in-out infinite;
}

.hero-bg .glow-3 {
  position: absolute;
  top: 30%; left: -15%;
  width: 700px; height: 550px;
  background: radial-gradient(circle, rgba(56,132,244,0.2) 0%, rgba(56,132,244,0.05) 40%, transparent 65%);
  filter: blur(60px);
  animation: mesh-drift-3 20s ease-in-out infinite;
}

@keyframes mesh-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(80px, -50px) scale(1.15); }
  50% { transform: translate(-40px, 60px) scale(0.9); }
  75% { transform: translate(50px, 30px) scale(1.1); }
}

@keyframes mesh-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  30% { transform: translate(-70px, -40px) scale(1.2); }
  60% { transform: translate(50px, 50px) scale(0.85); }
  80% { transform: translate(-30px, -60px) scale(1.1); }
}

@keyframes mesh-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  35% { transform: translate(60px, 40px) scale(1.18); }
  65% { transform: translate(-50px, -30px) scale(0.88); }
  85% { transform: translate(30px, 50px) scale(1.12); }
}

.hero-content { position: relative; z-index: 2; max-width: 720px; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 32px;
}

.hero-tag .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; box-shadow: 0 0 8px var(--red-glow); }
}

.hero h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: var(--text);
}

.hero h1 .line-muted { color: var(--text-dim); }

.hero h1 .accent {
  background: linear-gradient(135deg, var(--red) 20%, var(--red-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  letter-spacing: -0.2px;
}

.btn svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

.btn-primary {
  background: var(--red);
  color: white;
  box-shadow: 0 2px 16px var(--red-glow), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(230,57,70,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 13px 20px;
}

.btn-ghost:hover { color: var(--text); }

/* ─── STATS BAR ─── */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero-stat .number {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: white;
}

.hero-stat .number span { color: var(--red); }

.hero-stat .label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* ─── SECTION HEADERS ─── */
.section-header { max-width: 540px; margin-bottom: 56px; }

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.center .section-label { justify-content: center; }

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--red);
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
  line-height: 1.15;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ─── SERVICES ─── */
.services-section {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--red-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-icon svg {
  width: 22px; height: 22px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.service-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ─── PROCESS ─── */
#processo {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] #processo {
  background: #F8F8FA;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
  position: relative;
}

/* Timeline connector line */
.process-grid::before {
  content: '';
  position: absolute;
  top: 52px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--red) 15%, var(--red) 85%, transparent 100%);
  opacity: 0.25;
}

[data-theme="light"] .process-grid::before {
  opacity: 0.35;
}

.process-step {
  position: relative;
  padding: 32px 24px;
  text-align: center;
}

/* Step number circle */
.process-step::before {
  counter-increment: step;
  content: counter(step);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.3);
}

[data-theme="light"] .process-step::before {
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.25);
}

.process-step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.process-step p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 220px;
  margin: 0 auto;
}

/* ─── ABOUT ─── */
#sobre {
  position: relative;
}

#sobre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 14px;
}

.about-counters {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.about-counter .num {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--red), var(--red-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.about-counter .lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s;
}

.about-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

[data-theme="light"] .about-card {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

[data-theme="light"] .about-card:hover {
  background: #FFFFFF;
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.about-card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--red-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-card-icon svg {
  width: 20px; height: 20px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.about-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

/* ─── PRODUCTS ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.product-card:hover::before { opacity: 1; }

[data-theme="light"] .product-card {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

[data-theme="light"] .product-card:hover {
  background: #FFFFFF;
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(59, 130, 246, 0.1);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.15);
  margin-bottom: 18px;
}

.product-badge svg {
  width: 10px; height: 10px;
  fill: currentColor;
}

[data-theme="light"] .product-badge {
  background: rgba(59, 130, 246, 0.08);
  color: #2563EB;
  border-color: rgba(59, 130, 246, 0.15);
}

.product-badge.badge-soon {
  background: rgba(255, 170, 50, 0.1);
  color: #FFAA32;
  border-color: rgba(255, 170, 50, 0.15);
}

[data-theme="light"] .product-badge.badge-soon {
  background: rgba(217, 119, 6, 0.08);
  color: #B45309;
  border-color: rgba(217, 119, 6, 0.15);
}

.product-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--red-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.product-icon svg {
  width: 24px; height: 24px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.product-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ─── CONTACT ─── */
#contato {
  position: relative;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(230, 57, 70, 0.04) 50%, var(--bg) 100%);
}

#contato::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 400px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.08) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

[data-theme="light"] #contato {
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(230, 57, 70, 0.03) 50%, #FFFFFF 100%);
}

[data-theme="light"] #contato::before {
  background: radial-gradient(circle, rgba(230, 57, 70, 0.06) 0%, transparent 70%);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 14px;
  line-height: 1.1;
}

.contact-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s;
}

.contact-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

[data-theme="light"] .contact-card {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

[data-theme="light"] .contact-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.contact-card svg {
  width: 18px;
  height: 18px;
  fill: var(--red);
  flex-shrink: 0;
}


/* --- CONTACT FORM --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  transition: all 0.25s;
  outline: none;
}

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 50px #080810 inset !important;
  -webkit-text-fill-color: #e8e8f0 !important;
  caret-color: #e8e8f0;
  transition: background-color 5000s ease-in-out 0s;
}

[data-theme="light"] .form-group input:-webkit-autofill,
[data-theme="light"] .form-group input:-webkit-autofill:hover,
[data-theme="light"] .form-group input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 50px #ffffff inset !important;
  -webkit-text-fill-color: #0F172A !important;
  caret-color: #0F172A;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238E91A4' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group select option {
  background-color: #1a1a2e;
  color: #e8e8f0;
}

.contact-card.email svg { fill: var(--red); }
.contact-card.linkedin svg { fill: #0A66C2; }

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  background: var(--red);
  color: white;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: -0.2px;
  box-shadow: 0 2px 16px var(--red-glow), inset 0 1px 0 rgba(255,255,255,0.1);
  width: 100%;
  margin-top: 4px;
}

.form-submit:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(230,57,70,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.form-submit:active {
  transform: translateY(0);
}

.form-submit svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show {
  display: block;
}

.form-success .success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}

.form-success h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-success p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background-color: #FFFFFF;
  color: #0F172A;
  border-color: rgba(0,0,0,0.1);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.1);
}

[data-theme="light"] .form-group select {
  background-color: #FFFFFF;
  color: #0F172A;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234B5563' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

[data-theme="light"] .form-group select option {
  background-color: #FFFFFF;
  color: #0F172A;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(230, 57, 70, 0.06);
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), var(--red-soft), transparent);
}

.form-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.form-card-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

[data-theme="light"] .form-card {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.06);
  box-shadow: 0 4px 24px rgba(230, 57, 70, 0.06), 0 2px 12px rgba(0,0,0,0.04);
}

/* Responsive form */
@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 20px;
  color: var(--text-dim);
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.3px;
}

footer span { color: var(--red); font-weight: 600; }

[data-theme="light"] footer {
  border-top-color: rgba(0,0,0,0.06);
}

@media (max-width: 768px) {
  footer { padding: 24px 20px; }
}

/* ─── ANIMATIONS ─── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }
.stagger-7 { transition-delay: 0.35s; }
.stagger-8 { transition-delay: 0.4s; }

/* ─── HAMBURGER MENU ─── */
.hamburger {
  display: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: all 0.25s;
}

.hamburger:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 99;
  padding: 32px 24px;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s, transform 0.25s;
}

.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s;
}

.mobile-menu a:hover { background: var(--bg-card-hover); }

.mobile-menu a svg {
  width: 18px; height: 18px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── PREFERS REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up { opacity: 1; transform: none; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  section { padding: 120px 20px 80px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .process-grid { grid-template-columns: 1fr; gap: 0; }
  .process-grid::before { display: none; }
  .process-step { text-align: left; padding: 24px 0; }
  .process-step::before { margin: 0 0 12px; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .hero-stat { min-width: 80px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; max-width: 300px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .lang-dropdown { right: -8px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-counters { gap: 24px; }
  .products-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  section { padding: 100px 16px 70px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { gap: 0; }
  .process-step { padding: 20px 0; }
  .process-step::before { width: 36px; height: 36px; font-size: 0.95rem; }
  .hero h1 { font-size: 2.2rem; letter-spacing: -1px; }
  .hero-desc { font-size: 0.95rem; }
  .service-card { padding: 22px 18px; }
  .about-counters { flex-wrap: wrap; }
}
