:root {
  --bg: #0d1117;
  --bg2: #121823;
  --card: #171f2c;
  --line: #263142;
  --text: #e6ebf2;
  --muted: #8d99ab;
  --gold: #44e84f;
  --gold2: #9dff9f;
  --hunted: #e5484d;
  --friend: #30a46c;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; }
a { color: var(--gold); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .12s, background .12s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #06170a; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--card); }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* topo */
.top { position: sticky; top: 0; z-index: 10; background: rgb(13 17 23 / .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 19px; }
.top-nav { display: flex; align-items: center; gap: 22px; }
.top-nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; }
.top-nav a:not(.btn):hover { color: var(--text); }

/* hero */
.hero { padding: 72px 0 64px; background: radial-gradient(900px 420px at 80% 0%, rgb(68 232 79 / .10), transparent 70%); }
.hero-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.pill { display: inline-block; padding: 5px 12px; border-radius: 99px; border: 1px solid rgb(68 232 79 / .35); color: var(--gold); font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.lead { font-size: 18px; color: #c3ccd9; max-width: 34em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--muted); font-size: 15px; }
.hero-points li::before { content: "✓"; color: var(--friend); font-weight: 700; margin-right: 8px; }

/* demonstração do TS */
.ts-demo { background: #1f2329; border: 1px solid #333a44; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgb(0 0 0 / .45); font-size: 13px; }
.ts-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #2a2f37; border-bottom: 1px solid #333a44; color: #aab3c0; }
.ts-bar span { width: 10px; height: 10px; border-radius: 50%; background: #4a515c; }
.ts-bar b { margin-left: 8px; font-weight: 600; font-size: 12px; }
.ts-body { display: grid; grid-template-columns: 1fr 1.15fr; min-height: 340px; }
.ts-tree { padding: 10px 6px; border-right: 1px solid #333a44; color: #d7dce3; overflow: hidden; }
.ts-row { white-space: nowrap; overflow: hidden; padding: 2px 4px; border-radius: 4px; }
.ts-center { text-align: center; }
.ts-line { color: #9aa3ad; letter-spacing: -1px; text-align: center; font-size: 11px; }
.ts-dash { color: #6f7884; text-align: center; font-size: 11px; }
.ts-active { background: #34465f; }
.ts-desc { padding: 12px 14px; background: #262a31; }
.ts-desc-title { font-weight: 800; font-size: 15px; }
.ts-desc-title small { font-size: 11px; }
.ts-desc-title.hunted { color: var(--hunted); }
.ts-desc-sub { font-weight: 700; margin: 4px 0 10px; color: #d7dce3; }
.ok { color: var(--friend); }
.bad { color: var(--hunted); }
.ts-player { display: flex; align-items: center; gap: 5px; color: #d7dce3; white-space: nowrap; padding: 1px 0; }
.ts-player b { font-size: 10px; color: #aab3c0; }
.ts-player img { image-rendering: pixelated; }
.ts-player i { font-style: normal; color: var(--friend); }
.ts-player span { color: #aab3c0; }
.ts-poke { margin-top: 14px; padding: 8px 10px; border-radius: 6px; background: rgb(229 72 77 / .15); border: 1px solid rgb(229 72 77 / .4); color: #ff8a8e; }

/* seções */
.section { padding: 80px 0; scroll-margin-top: 64px; }
#checkout { scroll-margin-top: 84px; }
.section-alt { background: var(--bg2); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.01em; }
.section-lead { color: var(--muted); font-size: 17px; margin: 0 0 36px; max-width: 40em; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature h3 { font-size: 18px; margin-top: 12px; }
.feature p { color: #b6c0ce; margin: 0; font-size: 15px; }
.f-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: rgb(68 232 79 / .1); border: 1px solid rgb(68 232 79 / .22); color: var(--gold); }

.servers { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.servers li { padding: 9px 16px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-weight: 600; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps p { color: #b6c0ce; margin: 0; font-size: 15px; }
.step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: #06170a; font-weight: 800; margin-bottom: 14px; }

/* planos */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.plan { position: relative; text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; color: var(--text); font: inherit; cursor: pointer; transition: border-color .12s, transform .12s; }
.plan:hover { border-color: #3a4a62; transform: translateY(-2px); }
.plan.selected { border-color: var(--gold); box-shadow: 0 0 0 4px rgb(68 232 79 / .12); }
.plan-name { font-size: 15px; color: var(--muted); font-weight: 600; }
.plan-price { font-size: 34px; font-weight: 800; margin: 6px 0 2px; }
.plan-per { color: var(--muted); font-size: 14px; }
.plan-old { text-decoration: line-through; color: var(--muted); font-size: 14px; margin-left: 6px; }
.plan-badge { position: absolute; top: 14px; right: 14px; padding: 3px 10px; border-radius: 99px; background: rgb(48 164 108 / .15); color: #5fd49b; font-size: 12px; font-weight: 700; }
.plan-pick { margin-top: 16px; font-weight: 600; color: var(--gold); font-size: 14px; }
/* plano em destaque (semestral): borda dourada e selo no topo */
.plan.featured { border-color: rgb(68 232 79 / .55); }
.plan-star { position: absolute; top: -12px; left: 18px; padding: 3px 10px; border-radius: 99px; background: var(--gold); color: #1a1406; font-size: 12px; font-weight: 800; }
.plan.selected .plan-pick::before { content: "✓ "; }

.checkout { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.checkout h3 { font-size: 20px; margin-bottom: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.checkout label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.checkout small { color: var(--muted); font-weight: 400; }
.checkout input, .checkout select { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #0f141c; color: var(--text); font: inherit; }
.checkout input:focus, .checkout select:focus { outline: 2px solid rgb(68 232 79 / .5); border-color: var(--gold); }
.checkout-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.checkout-total { font-size: 17px; }
.form-error { color: #ff8a8e; min-height: 1.4em; margin: 12px 0 0; }
.form-error.note { color: var(--gold); }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; }
.faq details p { color: #b6c0ce; margin: 0 0 16px; }

/* faixa de confiança */
.trust { border-block: 1px solid var(--line); background: var(--bg2); }
.trust-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 22px 0; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item svg { color: var(--gold); width: 26px; height: 26px; }
.trust-item b { display: block; font-size: 15px; }
.trust-item span { color: var(--muted); font-size: 13.5px; }

/* comandos + conversa de exemplo */
.cmds { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.cmd-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cmd-list li { display: flex; align-items: baseline; gap: 14px; padding: 10px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.cmd-list li > code:first-child { color: var(--gold); font-weight: 600; min-width: 138px; }
.cmd-list span { color: #b6c0ce; font-size: 15px; }
.chat { background: #1f2329; border: 1px solid #333a44; border-radius: 14px; padding: 16px; display: grid; gap: 10px; box-shadow: 0 30px 80px rgb(0 0 0 / .4); font-size: 14px; }
.chat-head { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid #333a44; }
.chat-head span { margin-left: auto; color: var(--muted); font-size: 12px; }
.msg { max-width: 85%; padding: 9px 13px; border-radius: 12px; line-height: 1.45; }
.msg.me { justify-self: end; background: #34465f; border-bottom-right-radius: 4px; font-family: ui-monospace, Consolas, monospace; }
.msg.bot { justify-self: start; background: #2a2f37; border-bottom-left-radius: 4px; }

/* rodapé */
.foot { padding: 56px 0 28px; border-top: 1px solid var(--line); background: #0a0d12; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { margin: 4px 0 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.foot-grid a:not(.logo) { display: block; color: #c3ccd9; text-decoration: none; margin-bottom: 9px; font-size: 15px; }
.foot-grid a:not(.logo):hover { color: var(--gold); }
.foot-brand p { margin: 14px 0 0; max-width: 22em; font-size: 15px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* páginas legais */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: 34px; letter-spacing: -.02em; }
.legal h2 { font-size: 20px; margin-top: 34px; }
.legal p, .legal li { color: #c3ccd9; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 28px; }

/* página de acesso */
.access { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 0; }
.access-card { width: min(460px, 100% - 32px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; text-align: center; }
.access-card form { display: grid; gap: 12px; text-align: left; margin-top: 18px; }
.access-card label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.access-card input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #0f141c; color: var(--text); font: inherit; }
.access-icon { font-size: 42px; }
.spinner { width: 38px; height: 38px; margin: 0 auto 14px; border: 4px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero-in, .cmds { grid-template-columns: 1fr; }
  .trust-in { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .features, .steps, .plans { grid-template-columns: 1fr 1fr; }
  .top-nav a:not(.btn) { display: none; }
}
@media (max-width: 620px) {
  .features, .steps, .plans, .grid2, .trust-in { grid-template-columns: 1fr; }
  .cmd-list li { flex-direction: column; gap: 2px; }
  .ts-body { grid-template-columns: 1fr; }
  .ts-tree { border-right: 0; border-bottom: 1px solid #333a44; }
  .hero { padding-top: 44px; }
  .section { padding: 56px 0; }
}

/* ── Logo TXBot (arte oficial, 08/10/2026): wordmark no topo/rodapé, banner no hero ── */
.logo .wordmark { height: 38px; width: auto; display: block; }
.foot-brand .logo .wordmark { height: 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-logo { display: block; width: min(100%, 560px); height: auto; margin: 0 0 22px -6px; filter: drop-shadow(0 0 32px rgb(68 232 79 / .30)); }
@media (max-width: 720px) { .hero-logo { margin-left: 0; } }

/* ── Menu do celular (hambúrguer) ── */
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .top-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: rgb(13 17 23 / .97); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
  .top-nav.open { display: flex; }
  .top-nav a:not(.btn) { padding: 12px 6px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .top-nav .btn { margin-top: 12px; text-align: center; }
}

/* ── Demonstração animada do TS no hero: canais entram um a um, depois o poke chega ── */
@media (prefers-reduced-motion: no-preference) {
  .ts-tree .ts-row { opacity: 0; animation: tsRowIn .35s ease-out forwards; }
  .ts-tree .ts-row:nth-child(1) { animation-delay: .2s } .ts-tree .ts-row:nth-child(2) { animation-delay: .35s } .ts-tree .ts-row:nth-child(3) { animation-delay: .5s }
  .ts-tree .ts-row:nth-child(4) { animation-delay: .65s } .ts-tree .ts-row:nth-child(5) { animation-delay: .8s } .ts-tree .ts-row:nth-child(6) { animation-delay: .95s }
  .ts-tree .ts-row:nth-child(7) { animation-delay: 1.1s } .ts-tree .ts-row:nth-child(8) { animation-delay: 1.25s } .ts-tree .ts-row:nth-child(9) { animation-delay: 1.4s }
  .ts-tree .ts-row:nth-child(10) { animation-delay: 1.55s } .ts-tree .ts-row:nth-child(11) { animation-delay: 1.7s } .ts-tree .ts-row:nth-child(12) { animation-delay: 1.85s }
  .ts-tree .ts-row:nth-child(n+13) { animation-delay: 2s }
  .ts-desc { opacity: 0; animation: tsRowIn .5s ease-out 1.2s forwards; }
  .ts-player { opacity: 0; animation: tsRowIn .3s ease-out forwards; }
  .ts-player:nth-child(3) { animation-delay: 1.5s } .ts-player:nth-child(4) { animation-delay: 1.65s } .ts-player:nth-child(5) { animation-delay: 1.8s } .ts-player:nth-child(6) { animation-delay: 1.95s } .ts-player:nth-child(7) { animation-delay: 2.1s }
  .ts-poke { opacity: 0; animation: pokeIn .45s cubic-bezier(.2,.9,.3,1.2) 2.8s forwards, pokePulse 2.4s ease-in-out 3.4s infinite; }
  @keyframes tsRowIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
  @keyframes pokeIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
  @keyframes pokePulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(229 72 77 / 0); } 50% { box-shadow: 0 0 0 6px rgb(229 72 77 / .18); } }
}

/* ── Página de comandos ── */
.docs .wrap { max-width: 860px; }
.doc-tip { padding: 14px 16px; border-radius: 12px; background: rgb(68 232 79 / .08); border: 1px solid rgb(68 232 79 / .3); color: #c3ccd9; margin: 18px 0 22px; }
.doc-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.doc-toc a { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 14px; }
.doc-toc a:hover { color: var(--text); border-color: #3a4a62; }
.doc-table { width: 100%; border-collapse: collapse; margin: 12px 0 8px; }
.doc-table td { padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: #c3ccd9; }
.doc-table td:first-child { white-space: nowrap; width: 1%; }
.doc-table code, .docs code { background: #182030; border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; color: var(--gold); font-size: 14px; }
@media (max-width: 620px) { .doc-table td:first-child { white-space: normal; } }
