/* =========================
   DESIGN SYSTEM
========================= */
:root {
  --bg: #000000;
  --bg-soft: #0a0e13;
  --bg-card: rgba(15, 23, 32, 0.6);
  --primary: #00d4ff;
  --primary-dark: #00a8cc;
  --primary-soft: rgba(0,212,255,0.15);
  --primary-glow: rgba(0,212,255,0.4);
  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --muted: rgba(255,255,255,0.6);
  --border: rgba(255,255,255,0.08);
  --border-bright: rgba(0,212,255,0.2);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================
   LAYOUT BASE
========================= */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 6%;
}

.section {
  padding: 140px 0;
  position: relative;
}

.section.dark {
  background: var(--bg-soft);
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 64px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* =========================
   HEADER
========================= */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  width: 120px;
  height: 40px;
  object-fit: cover;
  filter: drop-shadow(0 0 20px var(--primary-soft));
  transition: filter 0.3s ease;
}

.logo:hover {
  filter: drop-shadow(0 0 28px var(--primary-glow));
}

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

.nav a {
  padding: 8px 18px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.85;
  transition: all 0.2s ease;
  border-radius: 8px;
}

.nav a:not(.btn):hover {
  opacity: 1;
  background: rgba(255,255,255,0.05);
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--primary);
  color: #000;
  box-shadow: 0 4px 20px rgba(0,212,255,0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 28px rgba(0,212,255,0.5);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: rgba(0,212,255,0.05);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(0,212,255,0.15);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0,212,255,0.3);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
}

/* =========================
   HERO (HUMANO + ROBÔ)
========================= */
.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero.hero-split {
  display: grid;
  grid-template-columns: 1fr minmax(580px, 640px) 1fr;
  align-items: center;
}

/* Fundo */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 30% 40%, rgba(0,212,255,0.08), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(0,100,150,0.06), transparent 50%),
    linear-gradient(to bottom, rgba(0,0,0,0.95), rgba(0,0,0,0.98));
}

/* Figuras */
.hero-figure {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  max-height: 90%;
  opacity: 0.28;
  filter: saturate(0.85) contrast(1.1) brightness(0.95);
  pointer-events: none;
  z-index: 2;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-figure.human {
  left: -3%;
  animation: floatHuman 8s ease-in-out infinite;
}

.hero-figure.robot {
  right: -4%;
  animation: floatRobot 8s ease-in-out infinite;
}

@keyframes floatHuman {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-52%) translateX(-10px); }
}

@keyframes floatRobot {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-48%) translateX(10px); }
}

/* Conteúdo central */
.hero-center {
  position: relative;
  z-index: 3;
  grid-column: 2;
  justify-self: center;
  text-align: left;
  max-width: 640px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  padding: 6px 16px;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

.hero-center h1 {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 1.08;
  margin: 6px 0 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-center p {
  max-width: 540px;
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.7;
  font-weight: 400;
}

.hero-cta {
  margin-top: 48px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.scroll-line {
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(10px); }
}

/* =========================
   TRUST BAR
========================= */
.trust {
  padding: 40px 0;
  text-align: center;
  background: rgba(255,255,255,0.02);
  font-size: 0.95rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* =========================
   MARQUEE
========================= */
.marquee-section {
  padding: 24px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border-bright);
  border-bottom: 1px solid var(--border-bright);
  overflow: hidden;
}

.marquee {
  display: flex;
  white-space: nowrap;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 0; /* o espaçamento agora é controlado manualmente */
  padding: 12px 0;
  min-width: max-content;
  animation: marqueeScroll 22s linear infinite;
}

.marquee-content span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* TEXTO */
.marquee-content span:nth-child(odd) {
  margin-right: 24px;
}

/* BOLINHA */
.marquee-content span:nth-child(even) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 24px; /* espaço IGUAL antes e depois */
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}


/* =========================
   FEATURE CARDS
========================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-bright);
  background: rgba(15, 23, 32, 0.8);
  box-shadow: 0 20px 60px rgba(0,212,255,0.15);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,212,255,0.1);
  border-radius: 12px;
  margin-bottom: 24px;
  color: var(--primary);
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
  background: rgba(0,212,255,0.2);
  transform: scale(1.1);
}

.feature h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--text);
}

.feature p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* =========================
   WORKFLOW STEPS
========================= */
.workflow-steps {
  display: grid;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.workflow-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-left: 2px solid var(--border);
  position: relative;
  transition: all 0.4s ease;
}

.workflow-step::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--primary);
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.workflow-step.active::before {
  height: 100%;
}

.step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.3;
  transition: all 0.4s ease;
  padding-left: 32px;
}

.workflow-step:hover .step-number {
  opacity: 1;
  transform: scale(1.1);
}

.step-content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.step-content p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

/* =========================
   INFRA GRID
========================= */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.infra-card {
  padding: 28px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.infra-card:hover {
  border-left-color: var(--primary);
  border-left-width: 5px;
  background: rgba(15, 23, 32, 0.8);
  transform: translateX(4px);
}

.infra-card h4 {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.infra-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* =========================
   CASES
========================= */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.case-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-bright);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.case-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0,212,255,0.15);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  margin-bottom: 20px;
}

.case-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.case-card p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.case-metric {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.metric-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
}

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

/* =========================
   STATS
========================= */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.stat-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.4s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
  box-shadow: 0 12px 40px rgba(0,212,255,0.12);
}

.stat-card strong {
  font-size: 3rem;
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================
   COMPARISON TABLE
========================= */
.comparison-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.comparison-col {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
}

.comparison-col.highlight {
  border-color: var(--primary);
  background: rgba(0,212,255,0.05);
  position: relative;
}

.comparison-col.highlight::before {
  content: 'Recomendado';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #000;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.comparison-col h3 {
  font-size: 1.5rem;
  margin-bottom: 28px;
  text-align: center;
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.comparison-list li::before {
  content: '';
  min-width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.comparison-list.positive li::before {
  background-color: rgba(0,212,255,0.2);
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 3L4.5 8.5L2 6' stroke='%2300d4ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.comparison-list.negative li::before {
  background-color: rgba(255,100,100,0.2);
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 3L3 9M3 3L9 9' stroke='%23ff6464' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.comparison-list.negative li {
  color: var(--muted);
}

.comparison-list.positive li {
  color: var(--text-secondary);
}

/* =========================
   TECH GRID
========================= */
.tech-header {
  text-align: center;
  margin-bottom: 64px;
}

.tech-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.tech-category {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: all 0.3s ease;
}

.tech-category:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
}

.tech-category h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--primary);
  font-weight: 600;
}

.tech-category ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-category li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding-left: 20px;
  position: relative;
}

.tech-category li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 600;
}

/* =========================
   CTA
========================= */
.cta {
  padding: 180px 0;
  text-align: center;
  background: 
    radial-gradient(circle at 50% 50%, rgba(0,212,255,0.08), transparent 60%),
    var(--bg);
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.5;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
  font-weight: 700;
}

.cta-content > p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 20px auto 48px;
}

/* =========================
   FORM
========================= */
.form {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.form input {
  padding: 18px 24px;
  min-width: 240px;
  flex: 1;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}

.form input::placeholder {
  color: var(--muted);
}

.form button {
  flex-shrink: 0;
}

.form-disclaimer {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   REVEAL ANIMATION
========================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   FOOTER
========================= */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  width: 120px;
  filter: grayscale(1) brightness(1.2);
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 24px;
}

.footer-social a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--primary);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 960px) {
  .hero.hero-split {
    grid-template-columns: 1fr;
    padding: 120px 0 80px;
  }

  .hero-center {
    padding: 0 6%;
    text-align: center;
    grid-column: 1;
  }

  .hero-figure {
    display: none;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-center h1 {
    font-size: clamp(2.2rem, 7vw, 3.2rem);
  }

  .workflow-step {
    grid-template-columns: 60px 1fr;
    gap: 20px;
  }

  .step-number {
    font-size: 2rem;
    padding-left: 20px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .comparison-table {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 80px 0;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .grid-3,
  .cases-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .form {
    flex-direction: column;
  }

  .form input {
    min-width: 100%;
  }

  .nav a:not(.btn) {
    display: none;
  }
}