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

:root {
  --bg: #070b1a;
  --bg-2: #0a0e27;
  --bg-3: #0f1530;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(6, 182, 212, 0.3);
  --text: #e8edf7;
  --text-dim: #94a3b8;
  --text-faint: #64748b;
  --teal: #00d4aa;
  --cyan: #06b6d4;
  --blue: #0066ff;
  --blue-dark: #0044cc;
  --grad: linear-gradient(135deg, #00d4aa 0%, #06b6d4 50%, #0066ff 100%);
  --grad-soft: linear-gradient(135deg, rgba(0,212,170,0.15), rgba(0,102,255,0.15));
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 102, 255, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(0, 212, 170, 0.1), transparent);
}

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

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(7, 11, 26, 0.8);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 38px; height: 38px; border-radius: 10px; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}
.brand-dot { color: var(--cyan); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 18px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff !important;
  font-weight: 600;
}
.nav-cta:hover { opacity: 0.9; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--text);
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 80%);
}
.glow {
  position: absolute; border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: floatGlow 12s ease-in-out infinite;
}
.glow-1 { width: 500px; height: 500px; background: var(--cyan); top: -100px; left: -100px; }
.glow-2 { width: 400px; height: 400px; background: var(--blue); bottom: -100px; right: -50px; animation-delay: -6s; }

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.1); }
}

.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(0, 212, 170, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  font-family: inherit;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 102, 255, 0.45);
}
.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--border-bright); }
.btn-block { width: 100%; justify-content: center; }

.hero-stats { display: flex; gap: 40px; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stat span { font-size: 0.82rem; color: var(--text-faint); }

/* ===== HERO VISUAL: Sync animation ===== */
.hero-visual {
  position: relative;
  height: 480px;
  display: flex; align-items: center; justify-content: center;
}
.sync-orbit {
  position: relative;
  width: 340px; height: 340px;
}
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.ring-1 { width: 340px; height: 340px; border-color: rgba(6, 182, 212, 0.2); animation: spin 30s linear infinite; }
.ring-2 { width: 250px; height: 250px; border-color: rgba(0, 212, 170, 0.25); animation: spin 20s linear infinite reverse; }
.ring-3 { width: 160px; height: 160px; border-color: rgba(0, 102, 255, 0.3); animation: spin 15s linear infinite; }

@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.sync-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100px; height: 100px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft);
  border: 1px solid var(--border-bright);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 60px rgba(6, 182, 212, 0.4);
  animation: corePulse 4s ease-in-out infinite;
}
@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 40px rgba(6, 182, 212, 0.3); }
  50% { box-shadow: 0 0 80px rgba(6, 182, 212, 0.6); }
}
.sync-icon { width: 56px; height: 56px; }

.float-card {
  position: absolute;
  width: 52px; height: 72px;
  background: linear-gradient(135deg, #1a2342, #0f1530);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.float-card .card-suit { font-size: 1.3rem; color: var(--teal); line-height: 1; }
.float-card .card-suit.red { color: #ff4757; }
.float-card .card-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text);
  margin-top: 2px;
}
.card-1 { top: 10%; left: 50%; animation: cardFloat1 6s ease-in-out infinite; }
.card-2 { top: 50%; right: -2%; animation: cardFloat2 7s ease-in-out infinite; }
.card-3 { bottom: 10%; left: 50%; animation: cardFloat1 8s ease-in-out infinite reverse; }
.card-4 { top: 50%; left: -2%; animation: cardFloat2 6.5s ease-in-out infinite reverse; }

@keyframes cardFloat1 {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-15px); }
}
@keyframes cardFloat2 {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(-15px); }
}

/* data packets traveling around */
.packet {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
  top: 50%; left: 50%;
}
.p1 { animation: orbit1 4s linear infinite; }
.p2 { animation: orbit2 5s linear infinite; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.p3 { animation: orbit3 6s linear infinite; background: var(--blue); box-shadow: 0 0 12px var(--blue); }

@keyframes orbit1 {
  0% { transform: rotate(0deg) translateX(170px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(170px) rotate(-360deg); }
}
@keyframes orbit2 {
  0% { transform: rotate(120deg) translateX(125px) rotate(-120deg); }
  100% { transform: rotate(480deg) translateX(125px) rotate(-480deg); }
}
@keyframes orbit3 {
  0% { transform: rotate(240deg) translateX(80px) rotate(-240deg); }
  100% { transform: rotate(600deg) translateX(80px) rotate(-600deg); }
}

/* poker chips */
.chip {
  position: absolute;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 3px dashed rgba(255,255,255,0.3);
  opacity: 0.7;
}
.chip-1 { top: 15%; right: 8%; background: linear-gradient(135deg, var(--teal), var(--cyan)); animation: chipSpin 4s linear infinite; }
.chip-2 { bottom: 18%; left: 5%; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); animation: chipSpin 5s linear infinite reverse; }
.chip-3 { top: 60%; right: 2%; background: linear-gradient(135deg, #ff4757, #c0392b); animation: chipSpin 6s linear infinite; }

@keyframes chipSpin { to { transform: rotate(360deg); } }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-2); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub { color: var(--text-dim); font-size: 1.05rem; }

/* ===== STEPS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  position: relative;
  padding: 36px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  overflow: hidden;
}
.step::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}
.step:hover { border-color: var(--border-bright); transform: translateY(-4px); }
.step:hover::before { opacity: 1; }

.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 16px;
}
.step-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  color: var(--cyan);
  margin-bottom: 16px;
}
.step-icon svg { width: 24px; height: 24px; }
.step h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--text-dim); font-size: 0.95rem; }

/* ===== FEATURES ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}
.feature:hover {
  border-color: var(--border-bright);
  background: var(--surface-hover);
  transform: translateY(-3px);
}
.feature-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft);
  border: 1px solid var(--border-bright);
  border-radius: 14px;
  color: var(--cyan);
  margin-bottom: 20px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.feature p { color: var(--text-dim); font-size: 0.92rem; }

/* ===== SITES ===== */
.sites {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.site {
  padding: 20px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: all 0.3s;
  min-height: 90px;
}
.site img {
  max-height: 40px;
  max-width: 100%;
  width: auto;
  opacity: 0.9;
  transition: all 0.3s;
}
.site:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
}
.site:hover img {
  opacity: 1;
  transform: scale(1.05);
}
.sites-note { text-align: center; color: var(--text-faint); font-size: 0.9rem; }

/* ===== CONTACT ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info .section-title { text-align: left; }
.contact-info .section-sub { text-align: left; }

.contact-channels { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.channel {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.25s;
}
.channel:hover { border-color: var(--border-bright); background: var(--surface-hover); }
.channel-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}
.channel-icon.wa { background: rgba(0, 212, 170, 0.15); color: var(--teal); }
.channel-icon.mail { background: rgba(0, 102, 255, 0.15); color: var(--blue); }
.channel-icon svg { width: 22px; height: 22px; }
.channel-label { display: block; font-size: 0.78rem; color: var(--text-faint); }
.channel-value { display: block; font-weight: 600; color: var(--text); }

.contact-form {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; margin-bottom: 18px; }
.contact-form label span {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-faint); }

.form-feedback {
  margin-top: 14px;
  font-size: 0.88rem;
  text-align: center;
  min-height: 20px;
}
.form-feedback.success { color: var(--teal); }
.form-feedback.error { color: #ff4757; }

/* ===== Honeypot anti-spam =====
   Invisível para humanos (fora da tela), presente no DOM para atrair bots.
   Não usar display:none, pois alguns bots ignoram campos escondidos assim. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-top: 56px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand .brand-logo { width: 42px; height: 42px; }
.footer-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
}
.footer-tag { color: var(--text-dim); font-size: 0.88rem; margin-top: 8px; max-width: 300px; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-links a, .footer-contact a {
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.82rem;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 380px; order: -1; }
  .steps, .features { grid-template-columns: repeat(2, 1fr); }
  .sites { grid-template-columns: repeat(3, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(7, 11, 26, 0.98);
    backdrop-filter: blur(16px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%);
    transition: transform 0.3s;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .hero { padding-top: 100px; }
  .hero-stats { gap: 20px; }
  .steps, .features { grid-template-columns: 1fr; }
  .sites { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 70px 0; }
}
