/* 
  Arnoltec Eletrônica - Redesenho Candid Leap (Hero Escuro Curvo e Amarelo Destaque)
  Autor: Antigravity AI
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset exato da altura do header (h-20) */
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
}


:root {
  --primary: #0c1b3d;       /* Azul Escuro Candid Leap */
  --accent-yellow: #ffd037; /* Amarelo Candid Leap */
  --accent-blue: #29ade3;   /* Ciano Elétrico */
  --dark: #060e22;          /* Fundo Escuro do Hero */
  --medium: #5b6b8b;        /* Cinza Azulado */
  --light: #f4f7fc;         /* Fundo Claro Suave */
  --white: #ffffff;
  --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--primary);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Espaçamentos */
.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* Tipografia All-Caps/Display */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--primary);
}

/* Cabeçalho Minimalista Fixo */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: var(--transition-slow);
}

header.scrolled {
  position: fixed;
  background-color: rgba(6, 14, 34, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.scrolled .logo-text,
header.scrolled .nav-link:not(.nav-link-eco),
header.scrolled .menu-icon {
  color: var(--white) !important;
}

.nav-link {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-yellow);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover:not(.nav-link-eco),
.nav-link.active:not(.nav-link-eco) {
  color: var(--white) !important;
}

.nav-link.nav-link-eco {
  color: #34d399 !important; /* text-emerald-400 */
}
.nav-link.nav-link-eco::after {
  background-color: #34d399;
}

/* Hero Section Baseado no Candid Leap */
.hero-candid {
  position: relative;
  background: linear-gradient(180deg, #040c1e 0%, #0c1b3d 100%);
  padding-top: 110px;
  color: var(--white);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero-candid {
    padding-top: 170px;
  }
}

/* Efeito de Estrela Brilhante (Flare) no Hero */
.hero-star-flare {
  position: absolute;
  top: 25%;
  right: 20%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0) 70%);
  z-index: 2;
  pointer-events: none;
}

.hero-star-flare::before, .hero-star-flare::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: var(--white);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.8);
}

/* Eixos do Brilho */
.hero-star-flare::before {
  width: 250px;
  height: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
}

.hero-star-flare::after {
  width: 2px;
  height: 250px;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* Elementos Tecnológicos Flutuantes (Parallax Hero TV) */
.hero-tv-mockup {
  background: radial-gradient(circle at center, #0e244d 0%, #030a1c 100%);
  border: 10px solid #141414;
  border-radius: 1.25rem;
  box-shadow: 0 0 60px rgba(41, 173, 227, 0.35), inset 0 0 25px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
  animation: float-tv 6s ease-in-out infinite, ambilight-glow 6s ease-in-out infinite;
  will-change: transform, box-shadow;
}

@keyframes ambilight-glow {
  0%, 100% { box-shadow: 0 0 60px rgba(41, 173, 227, 0.35), inset 0 0 25px rgba(0, 0, 0, 0.8); }
  50% { box-shadow: 0 0 85px rgba(41, 173, 227, 0.55), inset 0 0 25px rgba(0, 0, 0, 0.8); }
}

.hero-tv-stand {
  width: 110px;
  height: 12px;
  background-color: #141414;
  margin: 0 auto;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  animation: float-tv 6s ease-in-out infinite;
  will-change: transform;
}

.glass-tech-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition: var(--transition-slow);
  will-change: transform;
}

.glass-tech-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.07);
}

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

@keyframes float-card-1 {
  0%, 100% { transform: translate(-45px, -30px) translateY(0); }
  50% { transform: translate(-45px, -30px) translateY(-8px); }
}

@keyframes float-card-2 {
  0%, 100% { transform: translate(65px, 25px) translateY(0); }
  50% { transform: translate(65px, 25px) translateY(8px); }
}

@keyframes float-card-3 {
  0%, 100% { transform: translate(65px, -40px) translateY(0); }
  50% { transform: translate(65px, -40px) translateY(-8px); }
}

@media (max-width: 768px) {
  @keyframes float-card-1 {
    0%, 100% { transform: translate(-10px, -20px) translateY(0) scale(0.85); }
    50% { transform: translate(-10px, -20px) translateY(-5px) scale(0.85); }
  }
  @keyframes float-card-2 {
    0%, 100% { transform: translate(15px, 15px) translateY(0) scale(0.85); }
    50% { transform: translate(15px, 15px) translateY(5px) scale(0.85); }
  }
  @keyframes float-card-3 {
    0%, 100% { transform: translate(10px, -30px) translateY(0) scale(0.85); }
    50% { transform: translate(10px, -30px) translateY(-5px) scale(0.85); }
  }
}

/* Oscilloscope Wave Animation */
.pulse-wave-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: run-pulse 3s linear infinite;
}

@keyframes run-pulse {
  to {
    stroke-dashoffset: -200;
  }
}


.float-delay-1 {
  animation: float-card-1 5s ease-in-out infinite;
}

.float-delay-2 {
  animation: float-card-2 5.5s ease-in-out infinite;
}

.float-delay-3 {
  animation: float-card-3 6s ease-in-out infinite;
}

}

.glass-tech-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Botões do Mockup Candid Leap */
.btn-candid-yellow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--accent-yellow);
  color: #040c1e;
  padding: 1.1rem 2.2rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: var(--transition-fast);
  cursor: pointer;
}

.btn-candid-yellow:hover {
  background-color: var(--white);
  box-shadow: 0 15px 35px rgba(255, 208, 55, 0.2);
}

.btn-candid-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  padding: 0.85rem 1.8rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-candid-outline:hover {
  border-color: var(--white);
  background-color: rgba(255, 255, 255, 0.05);
}

/* Badge de Seção Centralizada (✦ WHY US ✦) */
.section-badge-candid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary);
  color: var(--accent-yellow);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(12, 27, 61, 0.1);
}

/* Seção de Diagnóstico Interativo Avançada */
.diagnostic-box-candid {
  background-color: var(--white);
  border-radius: 2rem;
  box-shadow: 0 30px 80px rgba(12, 27, 61, 0.06);
  border: 1px solid rgba(12, 27, 61, 0.02);
}

.device-tab-candid {
  cursor: pointer;
  transition: var(--transition-slow);
  border-bottom: 3px solid transparent;
}

.device-tab-candid.active {
  border-bottom-color: var(--accent-yellow);
  color: var(--primary);
}

.symptom-btn-candid {
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1.5px solid rgba(12, 27, 61, 0.08);
  border-radius: 8px;
}

.symptom-btn-candid:hover {
  border-color: var(--primary);
  background-color: rgba(12, 27, 61, 0.02);
}

.symptom-btn-candid.active {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(12, 27, 61, 0.2);
}

/* Imagens com Margens e Encaixe Asimétrico */
.overlap-image-candid {
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px rgba(12, 27, 61, 0.1);
  transition: var(--transition-slow);
}

.overlap-image-candid:hover {
  transform: translateY(-6px);
}

/* Widget de WhatsApp */
.whatsapp-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 15px;
  pointer-events: none;
}

.whatsapp-bubble {
  background-color: var(--white);
  color: var(--primary);
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(12, 27, 61, 0.12);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(15px);
  transition: var(--transition-slow);
  border-left: 4px solid #25d366;
}

.whatsapp-floating:hover .whatsapp-bubble,
.whatsapp-bubble.show-bubble {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .whatsapp-floating {
    bottom: 20px;
    right: 20px;
    gap: 10px;
  }
  .whatsapp-bubble {
    white-space: normal;
    max-width: 220px;
    font-size: 0.75rem;
    padding: 10px 15px;
  }
}

.whatsapp-circle-btn {
  width: 62px;
  height: 62px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
  position: relative;
  text-decoration: none;
  pointer-events: auto;
  animation: pulseGreen 2s infinite;
  transition: var(--transition-fast);
}

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

.whatsapp-circle-btn svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Menu Mobile Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--primary);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-slow);
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  margin: 1rem 0;
  transition: var(--transition-fast);
}

.mobile-menu-link:hover {
  color: var(--accent-yellow);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--white);
}
::-webkit-scrollbar-thumb {
  background: var(--medium);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Reveal Transitions (Scroll Reveal) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* TV Screen Simulator */
.tv-simulator-frame {
  background-color: #1c1c1c;
  border: 12px solid #0f0f0f;
  border-radius: 1.5rem;
  box-shadow: 0 35px 80px rgba(12, 27, 61, 0.15), 
              inset 0 0 15px rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.tv-stand {
  width: 140px;
  height: 16px;
  background-color: #0f0f0f;
  margin: 0 auto;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.tv-screen-content {
  background-color: #000000;
  position: relative;
  width: 100%;
  height: 100%;
  transition: background 0.3s ease;
}

/* CRT Scanlines Overlay */
.tv-screen-content::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.22) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.05), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.05));
  z-index: 10;
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
}

/* State: Static Noise (Chuva Analógica) */
.tv-static-noise {
  background-color: #333;
  opacity: 0.95;
  background-image: 
    radial-gradient(circle, #ccc 8%, transparent 9%),
    radial-gradient(circle, #777 8%, transparent 9%),
    radial-gradient(circle, #444 8%, transparent 9%);
  background-size: 5px 5px, 7px 7px, 9px 9px;
  animation: tvNoiseAnimation 0.15s infinite steps(4);
}

@keyframes tvNoiseAnimation {
  0% { background-position: 0px 0px, 0px 0px, 0px 0px; }
  50% { background-position: 2px 3px, -3px 4px, 5px -2px; }
  100% { background-position: -1px -2px, 1px -3px, -2px 3px; }
}

/* State: Flicker (Piscando) */
.tv-flicker {
  animation: tvFlickerAnim 0.12s infinite;
}

@keyframes tvFlickerAnim {
  0% { opacity: 0.95; }
  50% { opacity: 0.25; }
  100% { opacity: 1; }
}

/* Soundwave Visualizer Lines */
.soundwave-container {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 40px;
}

.soundwave-line {
  width: 3px;
  background-color: var(--accent-yellow);
  border-radius: 2px;
  animation: bounceSoundwave 0.8s ease-in-out infinite alternate;
}

@keyframes bounceSoundwave {
  0% { height: 6px; }
  100% { height: 38px; }
}

/* Delay lines */
.soundwave-line:nth-child(2) { animation-delay: 0.15s; }
.soundwave-line:nth-child(3) { animation-delay: 0.35s; }
.soundwave-line:nth-child(4) { animation-delay: 0.1s; }
.soundwave-line:nth-child(5) { animation-delay: 0.25s; }
.soundwave-line:nth-child(6) { animation-delay: 0.4s; }

