/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0D0D0F;
  --bg-secondary: #1A1A1F;
  --bg-card: #242429;
  --accent-purple: #7C3AED;
  --accent-purple-hover: #9D65F5;
  --accent-orange: #FF4500;
  --accent-orange-soft: #CC3700;
  --text-primary: #F4F4F5;
  --text-secondary: #A1A1AA;
  --border: #3F3F46;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== NAVIGATION ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13, 13, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-ft {
  color: var(--accent-purple);
  text-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

.logo-it {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.3s;
  font-weight: 500;
}

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

.lang-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}

.lang-toggle:hover {
  border-color: var(--accent-purple);
  color: var(--text-primary);
}

.lang-active {
  color: var(--accent-purple);
  font-weight: 700;
}

.lang-inactive {
  color: var(--text-secondary);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s, opacity 0.3s;
}

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

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

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

/* ===== SPLASH SECTION ===== */
#splash {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-primary);
}

.hud-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hud-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--bg-primary) 70%);
}

.splash-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.splash-logo {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -1px;
  position: relative;
}

.splash-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--text-secondary);
  min-height: 1.6em;
}

.splash-cta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent-purple);
  border: 1px solid var(--accent-purple);
  padding: 0.6rem 1.8rem;
  border-radius: 4px;
  transition: background 0.3s, box-shadow 0.3s;
  margin-top: 0.5rem;
}

.splash-cta:hover {
  background: rgba(124, 58, 237, 0.15);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.scroll-arrow {
  margin-top: 2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* ===== GLITCH EFFECT ===== */
.glitch {
  animation: glitchIn 1s ease-out;
}

@keyframes glitchIn {
  0% {
    opacity: 0;
    transform: translate(-2px, 2px);
    text-shadow:
      2px 0 #FF4500,
      -2px 0 #7C3AED;
  }
  10% {
    opacity: 1;
    transform: translate(2px, -1px);
    text-shadow:
      -2px 0 #FF4500,
      2px 0 #7C3AED;
  }
  20% {
    transform: translate(-1px, 1px);
    text-shadow:
      1px 0 #FF4500,
      -1px 0 #7C3AED;
  }
  30% {
    transform: translate(1px, -2px);
    text-shadow:
      -1px 0 #FF4500,
      1px 0 #7C3AED;
  }
  40% {
    transform: translate(0);
    text-shadow: none;
  }
  100% {
    transform: translate(0);
    text-shadow: none;
  }
}

.glitch-hover:hover {
  animation: glitchHover 0.4s ease-in-out;
}

@keyframes glitchHover {
  0% {
    text-shadow: none;
    transform: translate(0);
  }
  20% {
    text-shadow:
      2px 0 #FF4500,
      -2px 0 #7C3AED;
    transform: translate(-1px, 1px);
  }
  40% {
    text-shadow:
      -2px 0 #FF4500,
      2px 0 #7C3AED;
    transform: translate(1px, -1px);
  }
  60% {
    text-shadow:
      1px 0 #FF4500,
      -1px 0 #7C3AED;
    transform: translate(-1px, 0);
  }
  80% {
    text-shadow: none;
    transform: translate(1px, 0);
  }
  100% {
    text-shadow: none;
    transform: translate(0);
  }
}

/* ===== SECTIONS BASE ===== */
section {
  padding: 6rem 0;
}

#hero {
  background: var(--bg-secondary);
  padding-top: 8rem;
}

#services {
  background: var(--bg-primary);
}

#how {
  background: var(--bg-secondary);
}

#differentials {
  background: var(--bg-primary);
}

#contact {
  background: var(--bg-secondary);
}

/* ===== HERO ===== */
.section-content {
  max-width: 700px;
}

#hero h2 {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subhead {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent-purple);
  margin-bottom: 1.5rem;
}

.hero-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--accent-purple);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  background: var(--accent-purple-hover);
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.3s, color 0.3s;
}

.btn-secondary:hover {
  border-color: var(--accent-purple);
  color: var(--text-primary);
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-purple);
  margin-top: 0.75rem;
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.5);
}

/* ===== CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cards-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.card:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
  transform: translateY(-2px);
}

.card-icon {
  margin-bottom: 1.25rem;
}

.card h3 {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== TIMELINE / HOW IT WORKS ===== */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-step {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.step-number {
  position: absolute;
  left: -3rem;
  top: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--bg-primary);
  background: var(--accent-purple);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
}

.step-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.step-content h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-purple);
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== CONTACT ===== */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn-whatsapp {
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.terminal-line {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-purple);
}

.terminal-cursor {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ===== FOOTER ===== */
#footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-cnpj {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.footer-rights {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ===== FLOATING WHATSAPP ===== */
.floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* Mobile */
@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(13, 13, 15, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .cards-grid,
  .cards-grid-4 {
    grid-template-columns: 1fr;
  }

  section {
    padding: 4rem 0;
  }

  #hero {
    padding-top: 6rem;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  .timeline {
    padding-left: 2.5rem;
  }

  .step-number {
    left: -2.5rem;
  }

  .contact-buttons {
    flex-direction: column;
    width: 100%;
  }

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