/* Oficina MarTech — landing
   Tokens derivados da identidade do app (apps/web/app/globals.css). */

:root {
  --ink: #070810;
  --surface: #0e1120;
  --surface-2: #12162a;
  --indigo: #6b6bf7;
  --violet: #7b3fe4;
  --amber: #f5a524;
  --text: #edeff7;
  --muted: #8a90a8;
  --hairline: rgba(255, 255, 255, 0.08);

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --container: 1120px;
  --radius: 12px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--indigo);
  color: var(--text);
}

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

.container--narrow {
  max-width: 760px;
}

/* ---- Acessibilidade ---- */

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--indigo);
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Tipografia ---- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 16px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 22ch;
  margin-bottom: 56px;
}

/* ---- Botões ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    background-color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out);
}

.btn--primary {
  background: linear-gradient(120deg, var(--indigo), var(--violet));
  color: #fff;
  box-shadow: 0 8px 28px rgba(107, 107, 247, 0.28);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(107, 107, 247, 0.4);
}

.btn--ghost {
  border-color: var(--hairline);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1.0625rem;
}

/* ---- Nav ---- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition:
    background-color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out),
    backdrop-filter 0.3s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(7, 8, 16, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--hairline);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.nav__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.nav__links {
  display: none;
  gap: 32px;
}

.nav__links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.nav__links a:hover {
  color: var(--text);
}

.nav__cta {
  padding: 9px 18px;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }
}

/* ---- Hero ---- */

.hero {
  position: relative;
  padding: 176px 0 128px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -240px;
  left: 50%;
  width: 880px;
  height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(
    closest-side,
    rgba(107, 107, 247, 0.22),
    transparent
  );
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 64px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin-bottom: 20px;
}

.hero__sub {
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.hero__note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---- Pipeline (signature) ---- */

.pipeline {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface), rgba(14, 17, 32, 0.6));
  padding: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.pipeline__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}

.pipeline__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 2s var(--ease-out) infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 165, 36, 0.5);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(245, 165, 36, 0);
  }
}

.pipeline__title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pipeline__status {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--indigo);
  padding: 4px 10px;
  border: 1px solid rgba(107, 107, 247, 0.35);
  border-radius: 999px;
  transition: color 0.4s var(--ease-out);
  white-space: nowrap;
}

.pipeline__status.is-live {
  color: var(--amber);
  border-color: rgba(245, 165, 36, 0.4);
}

.pipeline__steps {
  list-style: none;
  display: grid;
  gap: 4px;
  padding: 20px 0;
}

.pipeline__step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 8px;
  border-radius: 10px;
  opacity: 0.38;
  transition:
    opacity 0.5s var(--ease-out),
    background-color 0.5s var(--ease-out);
}

.pipeline__step.is-active {
  opacity: 1;
  background: rgba(107, 107, 247, 0.08);
}

.pipeline__step.is-done {
  opacity: 0.85;
}

.pipeline__marker {
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  transition:
    border-color 0.4s var(--ease-out),
    background-color 0.4s var(--ease-out);
}

.pipeline__step.is-active .pipeline__marker {
  border-color: var(--indigo);
  background: var(--indigo);
  box-shadow: 0 0 12px rgba(107, 107, 247, 0.6);
}

.pipeline__step.is-done .pipeline__marker {
  border-color: var(--amber);
  background: var(--amber);
  box-shadow: none;
}

.pipeline__text {
  display: grid;
  gap: 2px;
}

.pipeline__label {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.pipeline__desc {
  font-size: 0.8125rem;
  color: var(--muted);
}

.pipeline__track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.pipeline__bar {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--indigo), var(--violet));
  transition: width 0.9s var(--ease-out);
}

.pipeline__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 20px;
}

.metric {
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.metric__value {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.metric__label {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---- Seções ---- */

.section {
  padding: 128px 0;
}

.section--alt {
  background: var(--surface);
  border-block: 1px solid var(--hairline);
}

/* Passos */

.steps {
  list-style: none;
  display: grid;
  gap: 24px;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.steps__item {
  position: relative;
  padding: 28px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    border-color 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
}

.section--alt .steps__item {
  background: var(--ink);
}

.steps__item:hover {
  border-color: rgba(107, 107, 247, 0.4);
  transform: translateY(-4px);
}

.steps__number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: rgba(107, 107, 247, 0.12);
  color: var(--indigo);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
}

.steps__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.steps__desc {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Recursos */

.features {
  display: grid;
  gap: 24px;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.feature {
  padding: 28px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--ink);
  transition:
    border-color 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
}

.feature:hover {
  border-color: rgba(107, 107, 247, 0.4);
  transform: translateY(-4px);
}

.feature__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature__desc {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Planos */

.plans {
  display: grid;
  gap: 24px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--surface);
  transition:
    border-color 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
}

.plan:hover {
  border-color: rgba(107, 107, 247, 0.4);
  transform: translateY(-4px);
}

.plan--featured {
  border-color: rgba(107, 107, 247, 0.55);
  background: linear-gradient(
    180deg,
    rgba(107, 107, 247, 0.1),
    var(--surface) 55%
  );
  box-shadow: 0 24px 56px rgba(107, 107, 247, 0.14);
}

.plan__badge {
  position: absolute;
  top: -13px;
  left: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--indigo), var(--violet));
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.plan__for {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 4px 0 24px;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}

.plan__value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.plan__value--consulta {
  font-size: 1.375rem;
}

.plan__list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}

.plan__list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--amber);
  border-bottom: 2px solid var(--amber);
  transform: rotate(-45deg);
}

.plan__cta {
  width: 100%;
}

/* FAQ */

.faq {
  display: grid;
  gap: 12px;
}

.faq__item {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--ink);
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out);
}

.faq__item[open] {
  border-color: rgba(107, 107, 247, 0.4);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease-out);
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition:
    transform 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out);
}

.faq__item[open] .faq__question::after {
  transform: rotate(-135deg);
  border-color: var(--indigo);
}

.faq__question:hover {
  color: var(--indigo);
}

.faq__answer {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 62ch;
}

/* CTA final */

.cta-final {
  padding: 144px 0;
}

.cta-final__inner {
  display: grid;
  justify-items: center;
  gap: 20px;
  text-align: center;
}

.cta-final__title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
  max-width: 20ch;
}

.cta-final__sub {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 48ch;
  margin-bottom: 12px;
}

/* Footer */

.footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__brand {
  font-family: var(--font-display);
  font-weight: 600;
}

.footer__link {
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.footer__link:hover {
  color: var(--text);
}

.footer__copy {
  color: var(--muted);
  font-size: 0.8125rem;
}

/* ---- Motion: reveals ---- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
