/* ========================================
   LANDING PAGE - PALETA PROFISSIONAL CLARA
   Azul #2563EB + Verde #16A34A para máxima conversão
   ======================================== */

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

:root {
  /* Cores - Paleta Profissional */
  --bg-primary: #F8F9FF;
  --bg-secondary: #EEF2FF;
  --color-brand: #2563EB;
  --color-cta: #16A34A;
  --color-text: #1A1A2E;
  --color-muted: #6B7280;
  --color-accent: #DBEAFE;
  --color-border: #E2E8F0;

  /* Variações de hover */
  --color-cta-hover: #15803D;
  --color-brand-dark: #1d4ed8;

  /* Tipografia */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.navbar-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-bracket {
  color: var(--color-brand);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.nav-cta {
  background: var(--color-cta);
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 2px solid var(--color-cta);
}

.nav-cta:hover {
  background: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(22, 163, 74, 0.3);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ========== HERO ========== */
.hero {
  background: var(--bg-primary);
  background-image:
    radial-gradient(circle at 20% 50%, rgba(229, 231, 235, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 0%, rgba(22, 163, 74, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, transparent 0%, rgba(219, 234, 254, 0.3) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 5vw 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(0deg, transparent 24%, rgba(37, 99, 235, 0.05) 25%, rgba(37, 99, 235, 0.05) 26%, transparent 27%, transparent 74%, rgba(37, 99, 235, 0.05) 75%, rgba(37, 99, 235, 0.05) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, rgba(37, 99, 235, 0.05) 25%, rgba(37, 99, 235, 0.05) 26%, transparent 27%, transparent 74%, rgba(37, 99, 235, 0.05) 75%, rgba(37, 99, 235, 0.05) 76%, transparent 77%, transparent);
  background-size: 60px 60px;
  background-position: 0 0, 30px 30px;
  pointer-events: none;
  opacity: 0.3;
  z-index: 0;
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: var(--color-brand);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-cta);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.highlight-brand {
  color: var(--color-brand);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 500px;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--color-cta);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--color-cta);
  transition: all 0.3s ease;
  display: inline-block;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.25);
}

.btn-secondary {
  background: white;
  color: var(--color-brand);
  padding: 0.875rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--color-brand);
  transition: all 0.3s ease;
  display: inline-block;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.15);
}

.cta-microcopy {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  font-weight: 500;
}

.hero-metrics {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.metric {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-brand);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-value span {
  font-size: 0.8em;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-weight: 500;
}

/* ========== HERO CODE BLOCK ========== */
.hero-code-block {
  display: flex;
  justify-content: center;
}

.code-editor {
  width: 100%;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--color-border);
}

.code-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #FF5F57;
}

.dot.yellow {
  background: #FFBD2E;
}

.dot.green {
  background: #28C940;
}

.code-filename {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-family: var(--font-body);
  margin-left: 12px;
}

.code-body {
  padding: 1.5rem;
  background: white;
  font-family: 'Fira Code', 'SF Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-text);
  min-height: 300px;
  max-height: 400px;
  overflow-y: auto;
}

/* ========== SYNTAX HIGHLIGHTING - VSCode Theme ========== */
.code-body .kw {
  color: #0066CC;
  font-weight: 600;
}

.code-body .fn {
  color: #D4A574;
  font-weight: 500;
}

.code-body .str {
  color: #22863A;
  font-weight: 500;
}

.code-body .tag {
  color: #6F42C1;
  font-weight: 500;
}

.code-body .attr {
  color: #E89C2A;
  font-weight: 500;
}

.code-body .num {
  color: #005CC5;
  font-weight: 500;
}

.code-body .sel {
  color: #0066CC;
  font-weight: 600;
}

.code-body .com {
  color: #999999;
  font-style: italic;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== SECTION SERVIÇOS ========== */
.section-services {
  display: block;
  width: 100%;
  background: var(--bg-primary);
  padding: 6rem 5vw;
}

.section-header {
  margin-bottom: 3rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  background: white;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  hover: border 1.5px solid var(--color-brand);
}

.service-card:hover {
  border-color: var(--color-brand);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.1);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.service-description {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.meta-tag {
  background: var(--color-accent);
  color: var(--color-brand);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
}

.services-cta {
  text-align: center;
}

/* ========== SECTION PROJETOS ========== */
.section-projects {
  display: block;
  width: 100%;
  background: var(--bg-secondary);
  padding: 6rem 5vw;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.project-card {
  background: white;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-card:hover {
  border-color: var(--color-brand);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.1);
  transform: translateY(-4px);
}

.project-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.tag-site {
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-brand);
}

.tag-sistema {
  background: rgba(22, 163, 74, 0.1);
  color: var(--color-cta);
}

.tag-auto {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}

.tag-bot {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.project-icon {
  font-size: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--color-accent), var(--bg-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card>* {
  padding: 1.5rem;
}

.project-card> :first-child {
  padding: 0;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.project-description {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-tech span {
  background: var(--color-accent);
  color: var(--color-brand);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
}

.projects-disclaimer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-muted);
  padding: 1rem;
  background: rgba(22, 163, 74, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(22, 163, 74, 0.15);
}

/* ========== SECTION PROCESSO ========== */
.section-process {
  display: block;
  width: 100%;
  background: var(--bg-primary);
  padding: 6rem 5vw;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}

.step {
  background: var(--bg-secondary);
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.step:hover {
  border-color: var(--color-brand);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.08);
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-brand);
  margin-bottom: 1rem;
  line-height: 1;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.step-description {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.step-connector {
  display: none;
  height: 2px;
  background: var(--color-border);
  position: absolute;
  top: 50%;
  left: -1rem;
  right: -1rem;
  z-index: 1;
}

/* ========== SECTION DEPOIMENTOS ========== */
.section-testimonials {
  display: block;
  width: 100%;
  background: var(--bg-primary);
  padding: 6rem 5vw;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: white;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card:hover {
  border-color: var(--color-brand);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.08);
  transform: translateY(-4px);
}

.quote-icon {
  font-size: 3rem;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-info strong {
  color: var(--color-text);
  font-size: 0.95rem;
}

.author-info span {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* ========== SECTION CTA FINAL ========== */
.section-cta-final {
  display: block;
  width: 100%;
  background: var(--color-brand);
  color: white;
  padding: 4rem 5vw;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.cta-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.btn-cta-final {
  background: var(--color-cta);
  color: white;
  padding: 0.875rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--color-cta);
  display: inline-block;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.btn-cta-final:hover {
  background: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.3);
}

.cta-footnote {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ========== FLOATING WHATSAPP ========== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: var(--color-cta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.3);
  transition: all 0.3s ease;
  z-index: 50;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 12px 32px rgba(22, 163, 74, 0.4);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--color-text);
  color: white;
  padding: 3rem 5vw;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer .section-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 0.8;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
  }

  .hero-code-block {
    max-height: 300px;
    margin-top: 2rem;
  }
}

@media (max-width: 1020px) {

  .services-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar-container {
    gap: 1rem;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
    order: -1;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1.5rem 5vw;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer .section-container {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .hero-metrics {
    gap: 1.5rem;
  }

  .services-grid,
  .projects-grid,
  .process-steps,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}