/* =============================================
   iD Tráfego × PBXP 2026 — Página de Captura
   Dark Premium · Azul Elétrico
============================================= */

/* CUSTOM PROPERTIES */
:root {
  --brand:       #1877F2;
  --brand-rgb:   24, 119, 242;
  --brand-light: #3B9EFF;
  --brand-dark:  #1260CC;
  --void:        #050810;
  --carbon:      #0D1117;
  --surface:     #111827;
  --border:      rgba(255,255,255,0.06);
  --border-blue: rgba(24,119,242,0.25);
  --text-1:      #F0F6FF;
  --text-2:      #8BA3C7;
  --text-3:      #4A6080;
  --font:        'Inter', -apple-system, sans-serif;
  --glow-sm:     0 0 20px rgba(24,119,242,0.2);
  --glow-md:     0 0 40px rgba(24,119,242,0.3);
  --glow-lg:     0 0 80px rgba(24,119,242,0.15);
}

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

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-1);
  background: var(--void);
  min-height: 100vh;
  overflow-x: hidden;
}

/* BACKGROUNDS */
.bg-grid {
  position: fixed;
  inset: 0;
  background-size: 60px 60px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.018) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}

.bg-noise {
  position: fixed;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* PROGRESS BAR */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-light), var(--brand));
  background-size: 200% auto;
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(var(--brand-rgb), 0.8);
  animation: shimmer-bar 2s linear infinite;
}

@keyframes shimmer-bar {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding-left: clamp(24px, 5vw, 64px);
  padding-right: clamp(24px, 5vw, 64px);
  position: relative;
  z-index: 1;
}

/* ANIMAÇÕES */
@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%       { transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes float-2 {
  0%, 100% { transform: scale(1) translateY(0); }
  50%       { transform: scale(1.1) translateY(-12px); }
}

@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--brand); }
  50%       { opacity: 0.3; box-shadow: none; }
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50%       { background-position: 200% center; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* =============================================
   HEADER
============================================= */
.site-header {
  position: relative;
  z-index: 10;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 8, 16, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-logo {
  max-width: 110px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* =============================================
   HERO
============================================= */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 48px 0 80px;
}

/* Orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: rgba(var(--brand-rgb), 0.12);
  top: 40%;
  left: 50%;
  animation: float 10s ease-in-out infinite;
}

.hero-orb-2 {
  width: 350px;
  height: 350px;
  background: rgba(var(--brand-rgb), 0.07);
  bottom: 10%;
  right: 5%;
  animation: float-2 13s ease-in-out infinite;
  animation-delay: -4s;
}

.hero-orb-3 {
  width: 250px;
  height: 250px;
  background: rgba(100, 180, 255, 0.06);
  top: 10%;
  left: 8%;
  animation: float-2 9s ease-in-out infinite;
  animation-delay: -7s;
}

/* Hero content */
.hero-inner {
  animation: fade-up 0.8s ease forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-light);
  background: rgba(var(--brand-rgb), 0.08);
  border: 1px solid rgba(var(--brand-rgb), 0.25);
  box-shadow: var(--glow-sm);
  margin-bottom: 36px;
}

.badge-dot {
  position: relative;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
}

.badge-dot-inner {
  width: 7px;
  height: 7px;
  background: var(--brand);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.badge-dot-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--brand);
  animation: pulse-ring 2s ease-out infinite;
}

.hero h1 {
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text-1);
  margin-bottom: 24px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--brand-light) 0%, #90C8FF 40%, var(--brand) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto 48px;
  line-height: 1.65;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.35;
}

.scroll-hint span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
}

.scroll-hint svg {
  animation: float-2 2s ease-in-out infinite;
}

/* =============================================
   GLASS CARD (utilitário)
============================================= */
.glass {
  background: linear-gradient(135deg, rgba(17,24,39,0.7) 0%, rgba(10,15,25,0.6) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  pointer-events: none;
}

/* =============================================
   SEÇÃO CONTEXTO
============================================= */
.context-section {
  padding: 80px 0;
}

.context-card {
  padding: 36px 40px;
}

.context-card p {
  font-size: 17px;
  color: var(--text-1);
  line-height: 1.75;
}

.context-card p + p {
  margin-top: 16px;
  color: var(--text-2);
}

.context-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-light);
  margin-bottom: 20px;
}

.context-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

/* =============================================
   BENEFÍCIOS
============================================= */
.benefits-section {
  padding: 0 0 80px;
}

.section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

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

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(17,24,39,0.4);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  cursor: default;
}

.benefit-item:hover {
  border-color: rgba(var(--brand-rgb), 0.35);
  box-shadow: 0 0 24px rgba(var(--brand-rgb), 0.08), inset 0 0 40px rgba(var(--brand-rgb), 0.03);
  transform: translateX(4px);
}

.benefit-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(var(--brand-rgb), 0.12);
  border: 1px solid rgba(var(--brand-rgb), 0.2);
  color: var(--brand-light);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
  margin-top: 1px;
}

.benefit-text {
  font-size: 16px;
  color: var(--text-1);
  line-height: 1.55;
}

/* =============================================
   SEPARADOR
============================================= */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--brand-rgb), 0.3), transparent);
  margin: 8px 0;
}

/* =============================================
   CREDENCIAL
============================================= */
.credential-section {
  padding: 72px 0;
  text-align: center;
}

.credential-section p {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto;
}

.credential-section strong {
  color: var(--brand-light);
  font-weight: 600;
}

/* =============================================
   FORMULÁRIO
============================================= */
.form-section {
  padding: 0 0 100px;
}

.form-wrapper {
  padding: 40px;
  border-color: var(--border-blue);
}

.form-header {
  margin-bottom: 32px;
  text-align: center;
}

.form-header h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-1);
  margin-bottom: 8px;
}

.form-header p {
  font-size: 14px;
  color: var(--text-2);
}

.form-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.form-input {
  background: rgba(5, 8, 16, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px 18px;
  font-size: 16px;
  font-family: var(--font);
  color: var(--text-1);
  width: 100%;
  outline: none;
  -webkit-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.form-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.15);
}

.btn-cta {
  position: relative;
  background: var(--brand);
  border: none;
  border-radius: 10px;
  width: 100%;
  min-height: 58px;
  padding: 0 28px;
  color: #fff;
  font-size: 14px;
  font-family: var(--font);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  -webkit-appearance: none;
  margin-top: 8px;
  overflow: hidden;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  box-shadow: 0 4px 24px rgba(var(--brand-rgb), 0.5), 0 1px 0 rgba(255,255,255,0.1) inset;
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.5s;
}

.btn-cta:hover {
  background: var(--brand-light);
  box-shadow: 0 6px 32px rgba(var(--brand-rgb), 0.65);
}

.btn-cta:hover::before {
  left: 150%;
}

.btn-cta:active {
  transform: scale(0.99);
}

.micro-copy {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

.micro-copy svg {
  display: inline;
  vertical-align: middle;
  margin-right: 4px;
  opacity: 0.5;
}

/* =============================================
   FOOTER
============================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  padding-bottom: max(48px, env(safe-area-inset-bottom, 48px));
  text-align: center;
  background: rgba(5, 8, 16, 0.5);
  backdrop-filter: blur(12px);
}

.site-footer p {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
}

.footer-brand {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  margin-top: 6px;
  letter-spacing: 0.04em;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 480px) {
  .hero { min-height: 80vh; padding: 60px 0; }
  .context-card { padding: 24px 20px; }
  .form-wrapper { padding: 28px 20px; }
  .benefit-item { padding: 18px 16px; }
}

@media (min-width: 768px) {
  .hero { min-height: 85vh; }
}

@media (min-width: 1200px) {
  .hero { min-height: 80vh; }
  .context-section { padding: 100px 0; }
  .benefits-section { padding: 0 0 100px; }
  .credential-section { padding: 80px 0; }
}
