/* ==========================================================================
   AffTraffico — Deep navy + teal/violet aesthetic
   ========================================================================== */
:root {
  --bg: #070b12;
  --bg-2: #0e1420;
  --bg-3: #151c2c;
  --bg-4: #1c2438;
  --teal: #2dd4bf;
  --teal-dim: rgba(45, 212, 191, 0.12);
  --violet: #a78bfa;
  --violet-dim: rgba(167, 139, 250, 0.12);
  --rose: #fb7185;
  --text: #eef1f6;
  --muted: #8b95a8;
  --muted-dim: #5c6578;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --font-display: "Outfit", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --font-mono: "Plus Jakarta Sans", sans-serif;

  /* --- FONT SIZES (increased) --- */
  --text-base: 19px;
  --text-sm: 17px;
  --text-lg: 21px;

  --radius: 10px;
  --radius-sm: 6px;
  --container: 1180px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.link { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--violet); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
}

.gradient-text {
  background: linear-gradient(120deg, var(--teal), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-primary {
  background: linear-gradient(135deg, var(--teal), #14b8a6);
  color: #042f2e;
  box-shadow: 0 4px 24px rgba(45, 212, 191, 0.22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(45, 212, 191, 0.32);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-outline:hover {
  border-color: var(--violet);
  color: var(--violet);
  background: var(--violet-dim);
}
.btn-ghost {
  padding: 10px 14px;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
}
.btn-ghost:hover { color: var(--text); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(7, 11, 18, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding: 0 24px;
}
.logo {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--teal), var(--violet));
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
}
.logo-mark.sm { width: 28px; height: 28px; font-size: 13px; border-radius: 7px; }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 17px;
  color: #c8d0de;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  transition: color 0.18s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: width 0.22s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.mobile-drawer a {
  padding: 12px 0;
  font-size: 18px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.mobile-drawer a:last-child { border-bottom: none; margin-top: 8px; }
.mobile-drawer:not([hidden]) { display: flex; }

@media (max-width: 920px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 96px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.14) 0%, rgba(167, 139, 250, 0.08) 40%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .live-panel { max-width: 520px; }
}
.hero-copy h1 {
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.06;
  margin: 20px 0 22px;
}
.hero-sub {
  color: var(--muted);
  font-size: var(--text-lg);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.trust-item {
  font-size: 16px;
  color: var(--muted-dim);
}
.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 2px;
}

/* Live panel */
.live-panel {
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 10px var(--rose);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.panel-tag { margin-left: auto; color: var(--teal); }
.panel-main { padding: 24px 20px 20px; }
.panel-label { font-size: 14px; color: var(--muted-dim); display: block; margin-bottom: 8px; }
.panel-big {
  font-family: var(--font-mono);
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 500;
  color: var(--text);
}
.panel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}
@media (max-width: 480px) { .panel-stats { grid-template-columns: 1fr; } }
.panel-stat {
  background: var(--bg-3);
  padding: 18px 16px;
}
.panel-stat .lbl { display: block; font-size: 12px; color: var(--muted-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.panel-stat .val { font-family: var(--font-mono); font-size: 21px; display: block; }
.panel-stat .val.green { color: var(--teal); }
.panel-stat .delta { display: block; font-size: 12px; margin-top: 6px; color: var(--muted-dim); }
.panel-stat .delta.up { color: #4ade80; }
.panel-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  background: var(--bg-2);
}

/* ---------- Sections ---------- */
section { padding: 92px 0; border-bottom: 1px solid var(--line); }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(34px, 3.8vw, 46px); margin: 16px 0 14px; }
.section-head p { color: var(--muted); font-size: var(--text-lg); }

/* ---------- Cards grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.section-alt .card { background: var(--bg); }
.card:hover {
  border-color: rgba(45, 212, 191, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}
.card .icon { font-size: 28px; margin-bottom: 16px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: var(--text-base); }

/* ---------- Split cards ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 38px 32px;
}
.section-alt .split-card { background: var(--bg-2); }
.split-card.highlight {
  border-color: rgba(45, 212, 191, 0.4);
  box-shadow: inset 0 1px 0 rgba(45, 212, 191, 0.12);
}
.split-card .tag-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
  display: block;
}
.split-card .tag-label.violet { color: var(--violet); }
.split-card h3 { font-size: 26px; margin-bottom: 12px; }
.split-card > p.desc { color: var(--muted); margin-bottom: 22px; }
.split-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--text-base);
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.split-list li:first-child { border-top: none; }
.split-list li::before {
  content: "✓";
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}
.split-card .btn { margin-top: 24px; }

/* ---------- Feature row ---------- */
.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}
@media (max-width: 960px) { .feature-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feature-row { grid-template-columns: 1fr; } }
.feature-box {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.feature-box .f-icon { font-size: 26px; display: block; margin-bottom: 12px; }
.feature-box h4 { font-size: 19px; margin-bottom: 8px; }
.feature-box p { color: var(--muted); font-size: var(--text-sm); }

/* ---------- Dashboard strip ---------- */
.dash-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(45, 212, 191, 0.06);
}
@media (max-width: 760px) { .dash-strip { grid-template-columns: repeat(2, 1fr); } }
.dash-cell {
  background: var(--bg-2);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease;
}
.dash-cell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--violet));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.dash-cell:hover { background: var(--bg-3); }
.dash-cell:hover::before { opacity: 1; }
.dash-cell .val {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  display: block;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(45, 212, 191, 0.35);
}
.dash-cell .lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
}

/* ---------- Partners marquee ---------- */
.partners-section { padding-bottom: 72px; }
.partners-marquee-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}
.partners-marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partners-marquee:hover .partners-track { animation-play-state: paused; }
.partners-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  will-change: transform;
}
.track-left { animation: marquee-left 42s linear infinite; }
.track-right { animation: marquee-right 38s linear infinite; }
@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.partner-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  cursor: default;
  user-select: none;
  min-width: 190px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.section-alt .partner-logo { background: var(--bg-3); }
.partner-logo:hover {
  border-color: rgba(45, 212, 191, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
  background: var(--bg-4);
}
.p-avatar {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.p-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.p-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #eef1f6;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.partner-logo:hover .p-name { color: #fff; }
.p-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .track-left, .track-right { animation: none; }
  .partners-marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .partners-track { flex-wrap: wrap; width: 100%; justify-content: center; padding: 0 24px; }
  .partner-logo[aria-hidden="true"] { display: none; }
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 20px;
}
.faq-q .plus {
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 22px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a {
  color: var(--muted);
  font-size: var(--text-base);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-a { max-height: 320px; padding-top: 14px; }
.faq-a strong { color: var(--text); }

/* ---------- Contact ---------- */
.contact-title { font-size: clamp(28px, 3vw, 36px); margin: 16px 0 10px; }
.contact-lead { color: var(--muted); margin-bottom: 28px; font-size: var(--text-base); }
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color 0.15s ease;
}
.section-alt .form-row input,
.section-alt .form-row textarea,
.section-alt .form-row select { background: var(--bg-2); }
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--teal);
}
.form-row textarea { resize: vertical; min-height: 110px; }
#form-status { font-size: 15px; margin-top: 12px; min-height: 20px; }
#form-status.ok { color: var(--teal); }
#form-status.err { color: var(--rose); }
#form-status.wait { color: var(--muted); }

.contact-info h3 { font-size: 20px; margin-bottom: 12px; }
.contact-info > p { color: var(--muted); font-size: var(--text-base); margin-bottom: 20px; }
.contact-info .item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  align-items: flex-start;
}
.contact-info .item:first-of-type { border-top: none; }
.contact-info .item .k { color: var(--muted-dim); min-width: 78px; flex-shrink: 0; }
.contact-info a { color: var(--teal); }
.contact-info a:hover { color: var(--violet); }

/* ---------- Footer ---------- */
footer { padding: 56px 0 32px; background: var(--bg); border-top: 1px solid var(--line); }
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.footer-brand { max-width: 320px; color: var(--muted); font-size: 15px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 13px;
  color: var(--muted-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 600;
}
.footer-col li { margin-bottom: 10px; font-size: 15px; color: var(--muted); }
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted-dim);
}
.badges { display: flex; gap: 16px; flex-wrap: wrap; }
.badge { font-family: var(--font-mono); font-size: 12px; }

/* ---------- Legal pages ---------- */
.legal-page { padding: 80px 0 100px; }
.legal-page h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 12px; }
.legal-page .meta {
  color: var(--muted-dim);
  font-size: 15px;
  margin-bottom: 52px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.legal-body h2 { font-size: 22px; margin: 44px 0 14px; color: var(--teal); }
.legal-body h3 { font-size: 18px; margin: 28px 0 10px; }
.legal-body p { color: var(--muted); line-height: 1.8; margin-bottom: 14px; font-size: var(--text-base); }
.legal-body ul { margin: 0 0 16px 0; padding-left: 20px; }
.legal-body ul li { color: var(--muted); line-height: 1.8; margin-bottom: 8px; font-size: var(--text-base); }
.legal-body a { color: var(--teal); }
.legal-body a:hover { color: var(--violet); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 32px;
  transition: color 0.15s ease;
}
.back-link:hover { color: var(--teal); }
.legal-container { max-width: 820px; }
.legal-footer {
  padding-top: 0;
  border-top: none;
  justify-content: center;
  gap: 24px;
}
.legal-footer a { color: var(--muted); }
.legal-footer a:hover { color: var(--teal); }
.legal-footer .sep { color: var(--line); }

/* Honeypot — hidden from users, visible to bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
