:root {
  --black: #0a0d0c;
  --black-soft: #111614;
  --black-card: #161c1a;
  --green: #00e08a;
  --green-dark: #00b56f;
  --white: #ffffff;
  --gray: #9aa5a2;
  --border: rgba(255,255,255,0.08);
  --radius: 14px;
  --max-width: 1180px;
  --shadow: 0 20px 50px rgba(0,0,0,0.35);
  --font-display: 'Space Grotesk', 'Work Sans', sans-serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0 0 16px; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.15; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2; }
h3 { font-size: 1.2rem; }
p { color: var(--gray); margin: 0 0 16px; }
strong { color: var(--white); }
.text-green { color: var(--green); }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn--primary {
  background: var(--green);
  color: var(--black);
  box-shadow: 0 8px 24px rgba(0, 224, 138, 0.25);
}
.btn--primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }
.btn--sm { padding: 10px 20px; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 12, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 24px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.logo span { display: block; color: var(--green); font-size: 0.95rem; }
.nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav a {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: var(--green); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 72px 0 100px;
  background:
    radial-gradient(circle at 15% 20%, rgba(0,224,138,0.14), transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(0,224,138,0.08), transparent 50%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.tag {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--green);
  color: var(--green);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.hero__subtitle { font-size: 1.05rem; max-width: 560px; }
.hero__badges {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 10px;
}
.hero__badges li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
  color: var(--white);
}
.hero__badges li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}

/* Hero cursor glow (signature ambient effect) */
.hero { position: relative; overflow: hidden; }
.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 20%), rgba(0,224,138,0.14), transparent 70%);
  transition: background 0.15s ease;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; }

/* Hero signature chart */
.hero__chart {
  margin: 8px 0 28px;
  max-width: 420px;
}
.hero__chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart__baseline { stroke: var(--border); stroke-width: 1; }
.chart__path {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  animation: drawChart 1.8s 0.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.chart__dot {
  fill: var(--black);
  stroke: var(--green);
  stroke-width: 2;
  opacity: 0;
  transform-origin: center;
  animation: dotIn 0.5s calc(0.6s + var(--d) * 1.8s) ease forwards;
}
.chart__dot--end { fill: var(--green); animation: dotIn 0.5s calc(0.6s + var(--d) * 1.8s) ease forwards, pulse 2.2s calc(2.4s) ease-in-out infinite; }
.hero__chart-label {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gray);
  letter-spacing: 0.02em;
}

@keyframes drawChart { to { stroke-dashoffset: 0; } }
@keyframes dotIn { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,224,138,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(0,224,138,0); }
}

/* Hero staggered load-in (uses the standalone `translate` property so it
   composes with hover transforms like .btn--primary:hover instead of
   overriding them once both classes are present on the same element) */
.reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), translate 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-loaded .reveal { opacity: 1; translate: 0 0; }
.hero-loaded .hero__content > .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero-loaded .hero__content > .reveal:nth-child(2) { transition-delay: 0.15s; }
.hero-loaded .hero__content > .reveal:nth-child(3) { transition-delay: 0.25s; }
.hero-loaded .hero__content > .reveal:nth-child(4) { transition-delay: 0.35s; }
.hero-loaded .hero__content > .reveal:nth-child(5) { transition-delay: 0.5s; }
.hero-loaded .hero__content > .reveal:nth-child(6) { transition-delay: 0.6s; }
.hero-loaded .hero__form.reveal { transition-delay: 0.4s; }

/* Marquee (client logos) */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track .logo-placeholder { width: 160px; flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Form */
.hero__form {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form h3 { margin-bottom: 6px; }
.form__hint { font-size: 0.85rem; margin-bottom: 20px; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
input, select, textarea {
  width: 100%;
  background: var(--black-soft);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 13px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--green); }
textarea { resize: vertical; margin-bottom: 16px; }
select { color: var(--gray); }
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 16px;
  cursor: pointer;
}
.checkbox input { width: auto; }
.form__feedback {
  text-align: center;
  font-size: 0.85rem;
  margin: 12px 0 0;
  min-height: 18px;
}
.form__feedback.success { color: var(--green); }
.form__feedback.error { color: #ff6b6b; }

/* Sections */
.section { padding: 100px 0; }
.section--dark { background: var(--black-soft); }
.section__head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section__head h2 { margin-bottom: 0; }
.eyebrow {
  color: var(--green);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.section__grid--reverse .results-placeholder { order: 0; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.stat-card {
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, var(--black-card), var(--black-soft));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.3);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.stat-card:hover {
  border-color: rgba(0, 224, 138, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.35), 0 0 24px rgba(0, 224, 138, 0.12);
}
.stat-card__value {
  display: block;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 2.1rem;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  text-shadow: 0 0 22px rgba(0, 224, 138, 0.45);
}
.stat-card__label {
  display: block;
  font-size: 0.78rem;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 8px;
}
.stat-card__caption {
  display: block;
  font-size: 0.7rem;
  font-style: italic;
  color: var(--gray);
}

/* Card highlight (stack) */
.card-highlight {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.stack-group { margin-bottom: 22px; }
.stack-group:last-child { margin-bottom: 0; }
.stack-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin-bottom: 10px;
  font-weight: 700;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--black-soft);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}
.chip--green {
  border-color: var(--green);
  color: var(--green);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.step__number {
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
  opacity: 0.5;
}
.step p { font-size: 0.9rem; margin: 0; }
.center-cta { text-align: center; margin-top: 48px; }

/* Benefits */
.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.benefit {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}
.benefit:hover { border-color: var(--green); transform: translateY(-4px); }
.benefit__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,224,138,0.12);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 18px;
}
.benefit p { font-size: 0.88rem; }

/* Results placeholder */
.results-placeholder {
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.85rem;
  text-align: center;
  padding: 24px;
  background: var(--black-card);
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.testimonial {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.testimonial p { font-size: 0.9rem; font-style: italic; }
.testimonial--placeholder { border-style: dashed; }
.testimonial__author { display: flex; align-items: center; gap: 12px; }
.avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black-soft);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.testimonial__author strong { display: block; font-size: 0.9rem; }
.testimonial__author span { font-size: 0.78rem; color: var(--gray); }

/* Logo placeholder (used inside .marquee__track) */
.logo-placeholder {
  aspect-ratio: 2 / 1;
  background: var(--black-card);
  border: 1px dashed var(--border);
  border-radius: 10px;
}

/* Diferencial */
.diferencial {
  text-align: center;
  max-width: 640px;
}
.diferencial p { font-size: 1rem; }

/* Footer */
.footer { padding: 56px 0 0; border-top: 1px solid var(--border); }
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer__brand p { font-size: 0.85rem; margin-top: 8px; }
.footer__certs { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.footer__contact { display: flex; flex-direction: column; gap: 10px; font-size: 0.88rem; }
.footer__contact a:hover { color: var(--green); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray);
}

/* Fade-in on scroll (same `translate`-vs-`transform` split as .reveal above,
   so hover lift on .stat-card/.benefit keeps working after the reveal fires) */
.fade-init { opacity: 0; translate: 0 16px; transition: opacity 0.6s ease, translate 0.6s ease; }
.fade-init.is-visible { opacity: 1; translate: 0 0; }

/* Responsive */
@media (max-width: 960px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black-soft);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
  }
  .nav.nav--open { display: flex; }
  .nav-toggle { display: flex; }
  .hero__inner { grid-template-columns: 1fr; }
  .section__grid { grid-template-columns: 1fr; }
  .section__grid--reverse { display: flex; flex-direction: column-reverse; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .header__inner .btn--sm { display: none; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .fade-init { opacity: 1 !important; translate: 0 !important; transition: none !important; }
  .chart__path, .chart__dot, .marquee__track { animation: none !important; }
  .chart__path { stroke-dashoffset: 0; }
  .chart__dot { opacity: 1; transform: scale(1); }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
