:root {
  --ink: #0d0d12;
  --amber: #f59e0b;
  --paper: #ffffff;
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: #767680;
  --line: #e7e7ea;
  --surface: #f5f5f7;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --expo: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --pad: clamp(20px, 5vw, 64px);
}
/* seções tinta: a marca alterna branco e tinta */
.on-ink {
  --bg: var(--ink);
  --fg: #ffffff;
  --muted: #9a9aa5;
  --line: #26262e;
  --surface: #17171d;
  background: var(--bg);
  color: var(--fg);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
a { color: inherit; }
.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; }

/* topo translúcido */
.top { position: sticky; top: 0; z-index: 10; background: rgba(13, 13, 18, .72); color: #fff; -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: #26262e; }
.top-in { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 30px); font-size: .9375rem; font-weight: 500; }
.top nav > a:not(.btn) { text-decoration: none; color: #9a9aa5; transition: color .2s; white-space: nowrap; }
.top nav > a:not(.btn):hover { color: #fff; }

/* logo: tr3sd_ com cursor sempre esperando digitar */
.logo { font: 500 1.5rem/1 var(--mono); letter-spacing: -.06em; text-decoration: none; display: inline-flex; align-items: baseline; }
.cursor { display: inline-block; width: .62em; height: .12em; background: var(--amber); margin-left: .06em; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; background: var(--amber); color: var(--ink); font-weight: 600; text-decoration: none; padding: 14px 24px; border-radius: 10px; transition: transform .25s var(--spring), filter .2s; }
.btn:hover { filter: brightness(1.06); transform: scale(1.03); }
.btn:active { transform: scale(.97); }
.btn-small { padding: 9px 16px; font-size: .9375rem; border-radius: 8px; }
.link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* hero */
.hero { padding-top: clamp(64px, 12vh, 130px); padding-bottom: clamp(72px, 12vw, 140px); }
h1 { font: 700 clamp(2.2rem, 6vw, 5rem)/1.05 var(--sans); letter-spacing: -.035em; margin: 0; max-width: 17ch; text-wrap: balance; }
h1 mark { background: none; color: inherit; background-image: linear-gradient(var(--amber), var(--amber)); background-repeat: no-repeat; background-position: 0 92%; background-size: 100% .14em; }
.lead { font-size: clamp(1.0625rem, 1.7vw, 1.375rem); color: var(--muted); max-width: 36ch; margin: 28px 0 36px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }

/* demo de atendimento */
.demo { margin: clamp(56px, 9vw, 104px) 0 0; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(16px, 3vw, 32px); align-items: stretch; transform-origin: 50% 0; }
.demo-chat, .demo-log { background: var(--surface); border-radius: 20px; padding: clamp(18px, 3vw, 32px); }
.demo-bar { display: flex; align-items: center; gap: 12px; font-weight: 600; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); font: 800 .8rem/1 var(--sans); letter-spacing: -.05em; }
.msgs { display: flex; flex-direction: column; gap: 10px; min-height: 380px; }
.msg { margin: 0; max-width: 82%; padding: 11px 16px; border-radius: 18px; font-size: .9875rem; line-height: 1.45; }
.msg.in { align-self: flex-start; background: var(--paper); border-bottom-left-radius: 6px; }
.msg.out { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.msg.out.ok { background: var(--amber); color: var(--ink); font-weight: 600; }
.typing { align-self: flex-end; margin: 0; display: flex; gap: 5px; padding: 14px 16px; background: var(--ink); border-radius: 18px; border-bottom-right-radius: 6px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9a9aa5; animation: dot 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-4px); background: #fff; } }
.demo-log { display: flex; flex-direction: column; }
.log-title { font: 500 .8125rem/1.2 var(--mono); color: var(--muted); margin: 0 0 18px; }
.demo-log ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.demo-log li { font: 500 .9375rem/1.3 var(--mono); display: flex; align-items: center; gap: 12px; }
.demo-log li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d4d4d9; transition: background .4s var(--expo), border-color .4s var(--expo); }
.demo-log li.done::before { background: var(--amber); border-color: var(--amber); }
.log-note { margin: auto 0 0; padding-top: 24px; font: 400 .8125rem/1.2 var(--mono); color: var(--muted); }

/* frase em scroll */
.statement { min-height: 100dvh; display: grid; align-items: center; }
.statement-in { padding-block: 12vh; }
.words { font: 700 clamp(1.7rem, 4.6vw, 3.6rem)/1.18 var(--sans); letter-spacing: -.03em; margin: 0; max-width: 24ch; text-wrap: balance; }
.words .w { display: inline-block; opacity: .2; }
.words .w.hot { color: var(--amber); }
.no-js .words .w, .words:not(.split) { opacity: 1; }

/* automação */
h2 { font: 700 clamp(1.8rem, 3.8vw, 3rem)/1.12 var(--sans); letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.automacao { padding-block: clamp(72px, 11vw, 140px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.auto-head { position: sticky; top: 104px; }
.auto-head > p { color: var(--muted); max-width: 38ch; margin: 20px 0 0; }
.folha { margin-top: clamp(32px, 5vw, 56px); padding-top: 28px; border-top: 1px solid var(--line); position: relative; }
.folha::before { content: ""; position: absolute; top: -1px; left: 0; width: 28px; height: 3px; background: var(--amber); }
.folha h3 { font: 700 1.375rem/1.25 var(--sans); letter-spacing: -.015em; margin: 0 0 12px; }
.folha p { margin: 0; color: var(--muted); max-width: 44ch; }
.tarefas { list-style: none; margin: 0; background: var(--surface); border-radius: 20px; padding: 8px clamp(16px, 3vw, 28px); }
.tarefa { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.tarefa:first-child { border-top: 0; }
.tarefa .nome { font-weight: 600; letter-spacing: -.01em; }
.estado { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.rotulo { font: 500 .8125rem/1 var(--mono); color: var(--muted); min-width: 6.4em; text-align: right; transition: color .4s; }
.sw { position: relative; width: 46px; height: 28px; border-radius: 14px; background: #d4d4d9; transition: background .45s var(--expo); }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(13,13,18,.25); transition: transform .5s var(--spring); }
.tarefa.auto .sw { background: var(--amber); }
.tarefa.auto .sw::after { transform: translateX(18px); }
.tarefa.auto .rotulo { color: var(--fg); }

/* sistemas */
.sistemas { padding-block: clamp(72px, 11vw, 140px); }
.sistemas h2 { margin-bottom: clamp(36px, 6vw, 64px); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px) clamp(32px, 6vw, 96px); }
.item { border-top: 1px solid var(--line); padding-top: 28px; position: relative; }
.item::before { content: ""; position: absolute; top: -1px; left: 0; width: 28px; height: 3px; background: var(--amber); }
.item h3 { font: 700 1.375rem/1.25 var(--sans); letter-spacing: -.015em; margin: 0 0 12px; }
.item p { margin: 0; color: var(--muted); max-width: 42ch; }

/* jeito */
.jeito { padding-block: clamp(72px, 11vw, 140px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 8vw, 120px); align-items: start; }
.jeito-head { position: sticky; top: 104px; }
.jeito-head p { color: var(--muted); max-width: 32ch; margin: 20px 0 0; }
.regras { list-style: none; margin: 0; padding: 0; }
.regras li { padding: 28px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.regras li:last-child { border-bottom: 1px solid var(--line); }
.regras strong { font: 600 1.25rem/1.3 var(--sans); letter-spacing: -.01em; }
.regras span { color: var(--muted); max-width: 46ch; }

/* contato */
.contato { padding-top: clamp(80px, 13vw, 150px); }
.contato h2 { font-size: clamp(2.2rem, 6vw, 5rem); letter-spacing: -.035em; line-height: 1.05; }
.contato h2 em { font-style: normal; color: var(--amber); }
.contato-in > p { color: var(--muted); font-size: 1.1875rem; max-width: 36ch; margin: 24px 0 36px; }
.rodape { margin-top: clamp(72px, 12vw, 140px); padding-block: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; justify-content: space-between; font-size: .9375rem; color: var(--muted); }
.rodape a { text-decoration-color: var(--amber); text-underline-offset: 4px; }
.logo-foot { font-size: 1.25rem; color: var(--fg); }

/* movimento: estado inicial só quando o JS vai animar (sem JS tudo aparece) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--expo), transform 1s var(--expo); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

@media (max-width: 860px) {
  .grid, .jeito, .automacao, .demo { grid-template-columns: minmax(0, 1fr); }
  .jeito-head, .auto-head { position: static; }
  .top nav > a:not(.btn) { display: none; }
  h1 { max-width: none; }
  .msgs { min-height: 0; }
  .words { max-width: none; }
}
@media (max-width: 420px) {
  .tarefa { flex-wrap: wrap; }
  .estado { width: 100%; justify-content: flex-end; }
}
