:root {
  --ink: #0b1226;
  --ink-2: #131c3a;
  --ink-3: #1b2650;
  --lilac: #a39bff;
  --orange: #e8742f;
  --paper: #f1f0ff;
  --mute: #a5acd0;
  --line: rgba(163, 155, 255, 0.22);
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Cabeçalho */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.top .brand img { height: 30px; width: auto; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); font-size: 0.95rem; }
.top nav a { text-decoration: none; color: var(--mute); transition: color .15s; }
.top nav a:hover { color: var(--paper); }
.top nav a[aria-current="page"] { color: var(--paper); }
.top nav .cta { color: var(--ink); background: var(--lilac); padding: 9px 18px; border-radius: 999px; font-weight: 600; }
.top nav .cta:hover { background: var(--paper); color: var(--ink); }

/* Tipografia */
h1, h2, h3 { font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5.2rem); max-width: 16ch; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); max-width: 22ch; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--mute); max-width: 56ch; }
.prose { max-width: 62ch; color: var(--mute); }

/* Hero */
.hero { padding: clamp(56px, 10vw, 128px) 0 clamp(48px, 7vw, 96px); }
.hero .lead { margin-top: 28px; }
.hero .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-logo { width: min(640px, 100%); height: auto; margin: -20px 0 8px -40px; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid var(--lilac);
  transition: background .15s, color .15s, border-color .15s;
}
.btn.solid { background: var(--lilac); color: var(--ink); }
.btn.solid:hover { background: var(--paper); border-color: var(--paper); }
.btn.ghost { color: var(--paper); }
.btn.ghost:hover { background: var(--ink-3); }

/* Seções */
section { padding: clamp(48px, 8vw, 104px) 0; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 56px); }

/* Faixas de produto (home) */
.products { border-top: 1px solid var(--line); }
.product {
  display: grid; grid-template-columns: minmax(220px, 380px) 1fr auto; align-items: center; gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(28px, 4vw, 44px);
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  border-bottom: 1px solid var(--line);
  text-decoration: none; position: relative; isolation: isolate;
  transition: background .2s;
}
.product::before { content: ""; position: absolute; inset: 0; background: var(--ink-2); opacity: 0; z-index: -1; transition: opacity .2s; }
.product:hover::before, .product:focus-visible::before { opacity: 1; }
.product img { width: 100%; max-width: 420px; height: auto; margin-left: -28px; }
.product .copy { color: var(--mute); max-width: 52ch; }
.product .copy strong { display: block; color: var(--paper); font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.01em; }
.product .go { justify-self: start; font-weight: 600; color: var(--lilac); white-space: nowrap; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.product .go small { font-size: inherit; font-weight: inherit; color: var(--mute); margin-left: 6px; }

/* Fluxo entre produtos */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.flow > div { padding: clamp(22px, 3vw, 36px); background: var(--ink-2); position: relative; }
.flow > div + div { border-left: 1px solid var(--line); }
.flow > div + div::before { content: ""; position: absolute; left: -9px; top: 50%; width: 16px; height: 16px; background: var(--ink-2); border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: translateY(-50%) rotate(45deg); }
.flow h3 { margin-bottom: 10px; }
.flow p { color: var(--mute); font-size: 0.98rem; }
.flow .who { color: var(--orange); font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; display: block; }

/* Lista de recursos (páginas de produto) */
.features { border-top: 1px solid var(--line); }
.feature { display: grid; grid-template-columns: minmax(180px, 320px) 1fr; gap: clamp(16px, 4vw, 64px); padding: clamp(24px, 3.5vw, 40px) 0; border-bottom: 1px solid var(--line); }
.feature p { color: var(--mute); max-width: 62ch; }

/* Contato */
.contact { background: var(--ink-2); border-top: 1px solid var(--line); }
.contact .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.contact p { color: var(--mute); }
.contact .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-start; }

/* Rodapé */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--mute); font-size: 0.92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; align-items: center; }
footer img { height: 24px; width: auto; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--paper); text-decoration: underline; }

@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; gap: 16px; }
  .product img { max-width: 320px; margin-left: -20px; }
  .flow { grid-template-columns: 1fr; }
  .flow > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .flow > div + div::before { display: none; }
  .feature { grid-template-columns: 1fr; gap: 8px; }
  .contact .wrap { grid-template-columns: 1fr; }
  .top nav a:not(.cta) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
