/* ===== Tokens (Saturon Design System — tema escuro) ===== */
:root {
  --surface-100: #0b0e17;
  --surface-200: #171c29;
  --ink: #f1ede2;
  --ink-muted: #8d93a6;
  --accent: #d7a94a;
  --accent-ink: #14110a;
  --border: #262c3d;
  /* texto de leitura em cards: entre ink-muted e ink, mais confortável que o cinza puro */
  --ink-soft: color-mix(in srgb, var(--ink-muted) 65%, var(--ink));

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 96px;

  /* layout: um eixo só pra página inteira */
  --container: 1120px;
  --gutter: var(--space-4);
  --pad-x: max(var(--gutter), calc((100% - var(--container)) / 2));
  --section-y: clamp(80px, 10vw, 128px);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Consolas, monospace;
}

/* ===== Reset básico ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* rolagem suave pelas âncoras só pra quem não pediu menos movimento */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* foco visível pra quem navega por teclado (mouse/toque não mostram) */
:where(a, button, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

body {
  background: var(--surface-100);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px, respeitando o tamanho de fonte do usuário */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, summary {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

ul {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* âncoras do menu: o padding-top da seção (--section-y, mín. 80px) já deixa o título
   abaixo do nav fixo (~69px); esse extra só dá uma folga */
section[id] {
  scroll-margin-top: 16px;
}

/* ===== Container =====
   Faixas de largura total; o conteúdo fica num eixo central de --container,
   nunca encostando menos que --gutter na borda da tela. */
.nav,
.hero,
.section,
.footer {
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

@media (min-width: 720px) {
  :root {
    --gutter: var(--space-6);
  }
}

/* (ajustes de mobile ficam no FIM do arquivo, pra vencer as regras base) */

/* ===== Preloader ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--surface-100);
  /* failsafe: some sozinho mesmo se o JS/GSAP nunca rodar */
  animation: preloader-failsafe 0.4s ease 2.5s forwards;
}

.preloader__icon {
  width: 72px;
  height: 72px;
  color: var(--accent);
  overflow: visible;
}

.preloader__spark {
  fill: var(--accent);
}

@keyframes preloader-failsafe {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preloader {
    display: none;
  }
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  /* material translúcido: o conteúdo que passa por baixo tinge levemente o vidro */
  background: rgba(11, 14, 23, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  /* a borda só aparece depois de rolar (classe .is-scrolled, via script.js) */
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(11, 14, 23, 0.8);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.nav__icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.nav__links {
  display: flex;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.nav__links a {
  color: var(--ink-muted);
  transition: color 0.2s ease;
}

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

.nav__right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s ease, background-color 0.2s ease;
}

.nav__cta:hover {
  border-color: var(--accent);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

/* conteúdo do hero acima das camadas decorativas (glow e anel) */
.hero > :not(.hero__glow):not(.hero__ring-field) {
  position: relative;
  z-index: 1;
}

/* feixe de luz diagonal vindo do canto superior direito, no mesmo -35° do anel */
.hero__glow {
  position: absolute;
  top: -15%;
  left: 20%;
  width: 140%;
  height: 50%;
  background: radial-gradient(
    closest-side,
    var(--accent) 0%,
    color-mix(in srgb, var(--accent) 35%, transparent) 45%,
    transparent 100%
  );
  transform: rotate(-35deg);
  opacity: 0.22;
  pointer-events: none;
}

.hero__ring-field {
  position: absolute;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  width: min(70vw, 720px);
  height: min(70vw, 720px);
  opacity: 0.9;
  pointer-events: none;
}

.hero__ring {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero__particle {
  fill: var(--accent);
}

.hero__ring-outline {
  stroke: var(--border);
}

.hero__ring-crescent {
  fill: var(--ink);
  opacity: 0.08;
}

/* sem transform-origin aqui: o rotate(-35 50 50) do atributo já gira no centro,
   e o GSAP define a própria origem na rotação contínua */
.hero__ring-band {
  stroke: var(--accent);
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

/* display: entrelinha justa e tracking negativo (letras parecem afastadas em tamanho grande) */
.hero__wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.25rem, 10vw, 7rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--space-4);
}

.hero__tagline {
  font-size: clamp(1.0625rem, 2vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 34ch;
  margin-bottom: var(--space-5);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px; /* alvo de toque confortável */
  padding: 0 22px;
  border: 1px solid transparent; /* mesma altura em todas as variantes */
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--ghost {
  border-color: var(--border);
  color: var(--ink);
}

/* hover só onde existe hover de verdade (no celular ele "gruda" depois do toque) */
@media (hover: hover) {
  .btn--primary:hover {
    background: color-mix(in srgb, var(--accent) 88%, #fff);
  }

  .btn--ghost:hover {
    border-color: var(--ink-muted);
    background: color-mix(in srgb, var(--surface-200) 60%, transparent);
  }
}

/* resposta no pressionar, não no soltar: instantânea na ida, suave na volta */
.btn:active,
.nav__cta:active,
.contact-card:active {
  transform: scale(0.97);
  transition-duration: 0.06s;
}

.contact-card:active {
  transform: scale(0.99); /* superfície grande: compressão menor */
}

/* ===== Seções ===== */
.section {
  position: relative;
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

/* divisória na largura do conteúdo, esmaecendo nas pontas */
.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--pad-x);
  right: var(--pad-x);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 12%, var(--border) 88%, transparent);
}

.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin-bottom: var(--space-4);
}

.section__lead {
  color: var(--ink-muted);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 58ch;
  margin-bottom: var(--space-5);
}

/* distância fixa entre o cabeçalho da seção e o conteúdo (cards, passos, lista) */
.bento,
.steps,
.pricing,
.faq-list,
.contact-block {
  margin-top: calc(var(--space-6) - var(--space-3));
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-4) 0;
}

.feature-list li {
  position: relative;
  padding-left: var(--space-4);
  color: var(--ink);
  font-size: 16px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--accent);
}

.hero__trust {
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-muted);
}

/* ===== Benefícios (bento) ===== */
/* zigue-zague: largo + estreito / estreito + largo */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

/* material dos cards: gradiente sutil + realce de luz de 1px no topo */
.bento__card,
.pricing__card {
  background: linear-gradient(180deg, var(--surface-200), color-mix(in srgb, var(--surface-200) 60%, var(--surface-100)));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(241, 237, 226, 0.06);
  padding: clamp(var(--space-4), 3vw, 36px);
}

.bento__card--wide {
  grid-column: span 2;
}

.bento__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  font-size: 18px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.bento__card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin-bottom: var(--space-2);
}

.bento__card p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 52ch;
}

/* ===== Como funciona ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.step {
  position: relative;
}

/* marcador circular do passo */
.step__number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-100));
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

/* linha ligando um marcador ao próximo (horizontal no desktop) */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 60px;
  right: calc(16px - var(--space-4)); /* atravessa o gap e para 16px antes do próximo marcador */
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 40%, transparent), var(--border));
}

.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin-bottom: var(--space-2);
}

.step p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}

/* ===== Planos ===== */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.pricing__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pricing__card--highlight {
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(241, 237, 226, 0.08),
    0 24px 64px -28px color-mix(in srgb, var(--accent) 45%, transparent);
}

.pricing__badge {
  position: absolute;
  top: calc(var(--space-4) * -0.5);
  left: clamp(var(--space-4), 3vw, 36px); /* alinhado ao padding do card */
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px var(--space-2);
  border-radius: var(--radius-full);
}

.pricing__card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.pricing__desc {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
  flex-grow: 1;
}

.pricing__card .btn {
  align-self: stretch;
  margin-top: var(--space-2);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-200) 45%, transparent);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.faq-item:hover,
.faq-item[open] {
  border-color: color-mix(in srgb, var(--ink-muted) 45%, var(--border));
}

.faq-item[open] {
  background: var(--surface-200);
}

/* padding no summary: a linha inteira é clicável, não só o texto */
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 20px var(--space-4);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.4;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* o mesmo "+" gira 45° e vira "×" ao abrir */
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  padding: 0 var(--space-4) 20px;
  max-width: 62ch;
}

/* abertura suave onde o navegador sabe animar até height:auto; nos outros abre normal */
@supports (interpolate-size: allow-keywords) {
  .faq-item {
    interpolate-size: allow-keywords;
  }

  .faq-item::details-content {
    height: 0;
    overflow: clip;
    transition: height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), content-visibility 0.35s allow-discrete;
  }

  .faq-item[open]::details-content {
    height: auto;
  }

  @media (prefers-reduced-motion: reduce) {
    .faq-item::details-content {
      transition: none;
    }
  }
}

/* ===== CTA final ===== */
.cta-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(56px, 8vw, 96px) var(--space-4);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface-200);
  box-shadow: inset 0 1px 0 rgba(241, 237, 226, 0.06);
}

/* mesmo feixe de luz do hero: a página começa e termina com a mesma luz */
.cta-panel::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 25%;
  width: 120%;
  height: 90%;
  background: radial-gradient(
    closest-side,
    var(--accent) 0%,
    color-mix(in srgb, var(--accent) 35%, transparent) 45%,
    transparent 100%
  );
  transform: rotate(-35deg);
  opacity: 0.16;
  pointer-events: none;
}

.cta-panel > * {
  position: relative;
}

.cta-panel .section__title {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-5);
}

.contact-block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  max-width: 760px;
}

.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4);
  padding-right: calc(var(--space-4) + 32px); /* espaço pra seta */
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface-200) 45%, transparent);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s ease, background-color 0.2s ease;
}

.contact-card:hover {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  background: var(--surface-200);
}

.contact-card__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.contact-card__value {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: anywhere; /* e-mail longo não estoura no celular */
}

.contact-card__arrow {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  translate: 0 -50%;
  color: var(--accent);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.contact-card:hover .contact-card__arrow {
  transform: translateX(4px);
}

/* ===== Footer ===== */
.footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.footer__icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--pad-x);
  right: var(--pad-x);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 12%, var(--border) 88%, transparent);
}

/* ===== Mobile (fica no fim pra vencer as regras base de mesma especificidade) ===== */
@media (max-width: 719px) {
  /* página única com poucos links: no celular a navegação é rolar; fica só a marca + Contato */
  .nav__links {
    display: none;
  }

  /* anel vira pano de fundo no canto, sem cruzar o texto */
  .hero__ring-field {
    top: -2%;
    right: -36%;
    transform: none;
    width: 84vw;
    height: 84vw;
    opacity: 0.35;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .bento__card--wide {
    grid-column: span 1;
  }

  .steps,
  .pricing,
  .contact-block {
    grid-template-columns: 1fr;
  }

  /* passos viram linha do tempo vertical: marcador à esquerda, linha descendo até o próximo */
  .steps {
    gap: var(--space-5);
  }

  .step {
    padding-left: 64px;
    padding-top: 8px;
  }

  .step__number {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
  }

  .step:not(:last-child)::after {
    /* (linha vertical do mobile) */
    top: 52px;
    left: 22px;
    right: auto;
    bottom: calc(8px - var(--space-5));
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 40%, transparent), var(--border));
  }
}

/* ===== Preferências do sistema ===== */

/* quem desligou transparências: nav sólido, sem blur */
@media (prefers-reduced-transparency: reduce) {
  .nav,
  .nav.is-scrolled {
    background: var(--surface-100);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* quem pediu mais contraste: bordas e texto secundário mais fortes */
@media (prefers-contrast: more) {
  :root {
    --border: #4a5370;
    --ink-muted: #b8bccb;
  }
}
