/* ============================================
   HORYZON TECNOLOGIA - Tech Overhaul
   Estética cyberpunk/tech, animações, marketing
   ============================================ */

:root {
  --black: #050508;
  --black-soft: #0a0a0f;
  --black-card: #0d0d12;
  --black-border: #15151d;
  
  --purple: #8b5cf6;
  --purple-dim: rgba(139, 92, 246, 0.6);
  --blue: #3b82f6;
  --cyan: #22d3ee;
  
  --gradient: linear-gradient(135deg, #8b5cf6 0%, #6366f1 40%, #3b82f6 80%, #22d3ee 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
  
  --font: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  
  --neon-purple: 0 0 20px rgba(139, 92, 246, 0.5);
  --neon-blue: 0 0 20px rgba(59, 130, 246, 0.5);
  
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--black);
  color: #e4e4e7;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========== CANVAS & EFEITOS DE FUNDO ========== */
#canvas-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.6;
}

.scanline {
  position: fixed;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(139, 92, 246, 0.02) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 1;
  animation: scanline 8s linear infinite;
}

@keyframes scanline {
  0% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

.vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(5, 5, 8, 0.8) 100%);
  pointer-events: none;
  z-index: 2;
}

.container { width: min(90vw, 1200px); margin: 0 auto; padding: 0 1.5rem; }

/* ========== BARRA DE URGÊNCIA ========== */
.urgency-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.urgency-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.urgency-pulse {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { opacity: 0.8; }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.urgency-text { color: #a1a1aa; }
.urgency-text strong { color: #fff; }
.urgency-cta {
  color: var(--purple);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.urgency-cta:hover { color: var(--cyan); }

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(5, 5, 8, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  transition: var(--transition);
}

.nav { display: flex; align-items: center; justify-content: space-between; }

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}

.logo-text { font-family: var(--font-mono); }
.logo-badge {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--purple);
  font-family: var(--font-mono);
}

/* Glitch effect */
.glitch {
  position: relative;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.glitch::before {
  color: var(--cyan);
  animation: glitch-1 2s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}
.glitch::after {
  color: var(--purple);
  animation: glitch-2 3s infinite linear alternate-reverse;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}
@keyframes glitch-1 {
  0% { transform: translate(-2px, 2px); }
  100% { transform: translate(2px, -2px); }
}
@keyframes glitch-2 {
  0% { transform: translate(2px, -2px); }
  100% { transform: translate(-2px, 2px); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: #a1a1aa;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gradient);
  transition: width var(--transition);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ========== BOTÕES ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 6px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
}
.btn-primary:hover { box-shadow: var(--neon-purple); }

.btn-hero {
  padding: 1rem 2rem;
  font-size: 1rem;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(139, 92, 246, 0.5);
}
.btn-hero .btn-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn-hero:hover .btn-bg { opacity: 1; }
.btn-hero .btn-text { position: relative; z-index: 1; }
.btn-hero .btn-arrow {
  position: relative;
  z-index: 1;
  transition: transform var(--transition);
}
.btn-hero:hover .btn-arrow { transform: translateX(4px); }
.btn-hero:hover { border-color: transparent; box-shadow: var(--neon-purple); }

.btn-ghost {
  background: transparent;
  color: #a1a1aa;
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-ghost:hover {
  color: #fff;
  border-color: rgba(139, 92, 246, 0.5);
}

.btn-cta {
  background: var(--gradient);
  color: #fff;
  padding: 1rem 2rem;
}
.btn-cta .btn-bg { display: none; }
.btn-cta:hover { box-shadow: var(--neon-purple); }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(120px + 4rem) 0 4rem;
  z-index: 10;
}

.hero-content { position: relative; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  padding: 0.35rem 1rem;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 4px;
  color: #a78bfa;
  font-family: var(--font-mono);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--purple);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
.badge[data-delay="1"] .badge-dot { animation-delay: 0.3s; }
.badge[data-delay="2"] .badge-dot { animation-delay: 0.6s; }
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-line {
  display: block;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typing-cursor::after {
  content: '|';
  animation: cursor-blink 1s step-end infinite;
  color: var(--purple);
  -webkit-text-fill-color: var(--purple);
}
@keyframes cursor-blink {
  50% { opacity: 0; }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #71717a;
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.service-card {
  padding: 1.25rem;
  background: rgba(13, 13, 18, 0.8);
  border: 1px solid var(--black-border);
  border-radius: 8px;
  font-size: 0.9rem;
  transition: var(--transition);
  perspective: 1000px;
}

.service-card-inner {
  transition: transform var(--transition);
}

.service-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.1);
}

.service-card code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--purple);
  margin-bottom: 0.5rem;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #52525b;
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--purple), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ========== STATS MARKETING ========== */
.stats {
  position: relative;
  z-index: 10;
  padding: 4rem 0;
  border-top: 1px solid var(--black-border);
  border-bottom: 1px solid var(--black-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-mono);
}

.stat-suffix {
  -webkit-text-fill-color: var(--purple);
  font-size: 1.5rem;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: #71717a;
  margin-top: 0.25rem;
}

/* ========== MARQUEE CLIENTES ========== */
.clients {
  position: relative;
  z-index: 10;
  padding: 2rem 0;
  overflow: hidden;
}

.clients-marquee {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 4rem;
  animation: marquee 20s linear infinite;
}

.marquee-track span {
  font-size: 1rem;
  color: #52525b;
  font-weight: 500;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== SEÇÕES ========== */
section { position: relative; z-index: 10; padding: 6rem 0; }

.section-header { margin-bottom: 3rem; }

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--purple);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: #71717a;
  max-width: 560px;
  font-size: 1rem;
}

/* ========== SERVIÇOS ========== */
.services { background: var(--black-soft); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-block {
  position: relative;
  padding: 2rem;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: 8px;
  transition: var(--transition);
  overflow: hidden;
}

.service-block-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-block:hover {
  border-color: rgba(139, 92, 246, 0.3);
}
.service-block:hover .service-block-glow { opacity: 1; }

.service-block-icon {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--purple);
  margin-bottom: 1rem;
}

.service-block h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.service-block p {
  color: #71717a;
  font-size: 0.95rem;
}

/* ========== DEPOIMENTOS ========== */
.testimonials {
  background: var(--black);
  border-top: 1px solid var(--black-border);
}

.testimonials-slider {
  position: relative;
  min-height: 220px;
}

.testimonial-card {
  position: absolute;
  inset: 0;
  padding: 2rem;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.testimonial-card.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 1;
}

.testimonial-quote {
  font-size: 4rem;
  color: var(--purple);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: -1rem;
}

.testimonial-card p {
  font-size: 1.1rem;
  color: #d4d4d8;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-name {
  display: block;
  font-weight: 600;
  color: #fff;
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--purple);
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
}

.testimonial-dot.active {
  background: var(--purple);
}

/* ========== DIFERENCIAIS ========== */
.differentials { background: var(--black-soft); }

.differentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.diff-card {
  padding: 2rem;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: 8px;
  transition: var(--transition);
}

.diff-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.diff-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--purple);
  margin-bottom: 1rem;
}

.diff-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.diff-card p {
  color: #71717a;
  font-size: 0.9rem;
}

/* ========== CASES ========== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.case-card {
  position: relative;
  padding: 2rem;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: 8px;
  transition: var(--transition);
}

.case-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--gradient);
  border-radius: 8px 0 0 8px;
  transition: height 0.4s ease;
}

.case-card:hover {
  border-color: rgba(139, 92, 246, 0.2);
}
.case-card:hover .case-line { height: 100%; }

.case-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--black-border);
}

.case-header h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.case-tag {
  font-size: 0.8rem;
  color: var(--purple);
  font-family: var(--font-mono);
}

.case-item {
  margin-bottom: 1rem;
}

.case-item strong {
  display: block;
  font-size: 0.8rem;
  color: var(--blue);
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
}

.case-item p {
  color: #71717a;
  font-size: 0.9rem;
}

.case-link {
  color: var(--purple);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 1rem;
  display: inline-block;
  transition: color var(--transition);
}
.case-link:hover { color: var(--cyan); }

/* ========== CTA ========== */
.cta { padding: 6rem 0; }

.cta-card {
  position: relative;
  text-align: center;
  padding: 4rem 3rem;
  background: var(--black-card);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  overflow: hidden;
}

.cta-card-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--purple);
  margin-bottom: 1rem;
  display: block;
}

.cta-card h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
  color: #fff;
  position: relative;
}

.cta-card p {
  color: #71717a;
  margin-bottom: 2rem;
  font-size: 1rem;
}
.cta-card p strong { color: var(--purple); }

/* ========== FLOATING CTA ========== */
.floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
}

.floating-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.floating-cta-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50px;
  background: #25D366;
  opacity: 0.3;
  animation: float-pulse 2s ease-out infinite;
}
@keyframes float-pulse {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(1.1); opacity: 0; }
}

.floating-cta-icon { font-size: 1.25rem; }
.floating-cta-text { position: relative; z-index: 1; }

/* ========== FOOTER ========== */
.footer {
  background: var(--black-soft);
  border-top: 1px solid var(--black-border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p {
  color: #52525b;
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.8rem;
  color: #52525b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-links ul { list-style: none; }
.footer-links a {
  display: block;
  color: #71717a;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--purple); }

.footer-contact a {
  display: block;
  color: #71717a;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--purple); }
.footer-whatsapp { color: #25D366 !important; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--black-border);
  text-align: center;
}
.footer-bottom p { font-size: 0.85rem; color: #52525b; }

/* ========== RESPONSIVO ========== */
@media (max-width: 1024px) {
  .hero-services { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .differentials-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header { top: 36px; }
  
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--black-soft);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    border-left: 1px solid var(--black-border);
    transition: right var(--transition);
  }
  .nav-links.active { right: 0; }

  .hero-cta-group { flex-direction: column; }
  .hero-services { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .differentials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  
  .floating-cta-text { display: none; }
}

@media (max-width: 480px) {
  .urgency-bar { font-size: 0.75rem; }
  .urgency-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
