:root {
  --fundo: #06080A;
  --painel: #0A0F0C;
  --campo: #0C110E;
  --linha: #141A17;
  --borda: #25332C;
  --texto: #E8EDEA;
  --texto-2: #A7B2AC;
  --texto-3: #8C9993;
  --verde: #4BF5A0;
  --verde-escuro: #2E6B4D;
  --aviso: #F2B661;
  --titulo: 'Space Grotesk', system-ui, sans-serif;
  --corpo: Inter, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fundo); color: var(--texto); font-family: var(--corpo); font-size: 16px; line-height: 1.55; }
a { color: var(--verde); text-decoration: none; }
a:hover { color: #9DFFCB; }
h1, h2, h3 { font-family: var(--titulo); font-weight: 600; letter-spacing: -0.03em; margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: -9999px; }
.pular:focus { left: 16px; top: 16px; background: var(--verde); color: var(--fundo); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.rotulo { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--verde); }

/* topo */
.topo { max-width: 1200px; margin: 0 auto; padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.marca { display: flex; align-items: center; gap: 10px; color: var(--texto); }
.marca-icone { font-family: var(--mono); font-weight: 500; color: var(--fundo); background: var(--verde); width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.marca-nome { font-family: var(--titulo); font-weight: 600; font-size: 19px; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.menu a { color: var(--texto-2); padding: 10px 14px; font-size: 15px; }
.menu a:hover { color: var(--texto); }
.menu .menu-botao { color: var(--fundo); background: var(--texto); border-radius: 999px; padding: 10px 18px; font-weight: 600; }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--linha); }
.chuva { position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 55%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 55%, transparent 100%); }
.chuva div { position: absolute; top: 0; white-space: pre; font-family: var(--mono); line-height: 1.75; color: var(--verde-escuro);
  animation: chuva linear infinite; will-change: transform; }
.chuva div.claro { color: var(--verde); }
@keyframes chuva { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.hero-conteudo { position: relative; max-width: 1200px; margin: 0 auto; padding: 112px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.selo { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--verde); background: rgba(6,8,10,.8); border: 1px solid #1E2A24; border-radius: 999px; padding: 6px 12px; }
.hero h1 { font-size: clamp(38px, 6vw, 76px); line-height: 1.03; letter-spacing: -0.035em; max-width: 920px; }
.hero h1 span { color: var(--verde); }
.sub { margin: 0; font-size: 19px; color: var(--texto-2); max-width: 620px; }
.campo { width: 100%; max-width: 720px; display: flex; align-items: center; gap: 8px; background: var(--campo); border: 1px solid var(--borda); border-radius: 16px; padding: 8px 8px 8px 20px; transition: border-color .2s, box-shadow .2s; }
.campo:focus-within { border-color: var(--verde); box-shadow: 0 0 0 4px rgba(75,245,160,.12); }
.prompt { font-family: var(--mono); color: var(--verde); font-size: 18px; }
.campo input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--texto); font: inherit; font-size: 18px; padding: 14px 0; }
.campo input::placeholder { color: #7C8983; }
.campo button { flex: none; background: var(--verde); color: var(--fundo); border: 0; border-radius: 12px; padding: 0 22px; height: 52px; font-weight: 600; }
.campo button:disabled { opacity: .6; cursor: wait; }
.exemplos { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 820px; }
.chip { background: rgba(6,8,10,.8); border: 1px solid var(--borda); color: var(--texto-2); border-radius: 999px; padding: 10px 16px; font-size: 14px; min-height: 44px; }
.chip:hover { border-color: var(--verde); color: var(--texto); }

/* resultado */
.resultado { max-width: 880px; margin: 0 auto; padding: 56px 24px 72px; display: flex; flex-direction: column; gap: 20px; border-bottom: 1px solid var(--linha); }
.resultado-cabeca { display: flex; flex-direction: column; gap: 10px; }
.resultado h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -0.025em; }
.aviso-teste { margin: 0; font-size: 14px; color: var(--aviso); border: 1px solid #5A4526; border-radius: 12px; padding: 10px 14px; }
.aviso-teste strong { color: var(--texto); }
.estado { margin: 0; font-family: var(--mono); font-size: 14px; color: var(--texto-3); }
.trechos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: t; }
.trechos li { counter-increment: t; border: 1px solid #1A231F; border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; background: var(--painel); }
.trechos .cabeca { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.trechos .cabeca::before { content: counter(t); font-family: var(--mono); font-size: 12px; color: var(--fundo); background: var(--verde); border-radius: 6px; padding: 1px 8px; }
.trechos .titulo { font-weight: 600; }
.trechos .onde { font-family: var(--mono); font-size: 13px; color: var(--texto-3); }
.trechos .texto { margin: 0; color: #CFD8D3; font-size: 15px; white-space: pre-line; }
.trechos .mais { background: none; border: 0; color: var(--verde); padding: 0; font-family: var(--mono); font-size: 13px; align-self: flex-start; min-height: 32px; }
.trechos .link { font-family: var(--mono); font-size: 13px; word-break: break-all; }
.resposta { background: var(--painel); border: 1px solid #1E2A24; border-radius: 18px; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.resposta p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--texto); }
.resposta p:first-child { font-family: var(--titulo); font-size: 20px; font-weight: 500; line-height: 1.45; }
.ver-fontes { align-self: flex-start; background: none; border: 1px solid var(--borda); color: var(--texto-2); border-radius: 999px; padding: 10px 16px; font-size: 14px; min-height: 44px; }
.ver-fontes:hover { border-color: var(--verde); color: var(--texto); }
.ver-fontes:disabled { opacity: .6; cursor: wait; }
.lembrete { margin: 0; font-size: 13px; color: var(--texto-3); }

/* números */
.numeros { max-width: 1200px; margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.numeros div { display: flex; flex-direction: column; gap: 4px; }
.numeros strong { font-family: var(--titulo); font-size: 40px; font-weight: 600; letter-spacing: -0.02em; }
.numeros span { font-size: 14px; color: var(--texto-3); }

/* como funciona */
.como { max-width: 1200px; margin: 0 auto; padding: 104px 24px; display: flex; flex-wrap: wrap; gap: 64px; align-items: center; border-top: 1px solid var(--linha); }
.como-texto { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.como h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; }
.passos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 26px; }
.passos li { display: flex; gap: 20px; }
.passos li > span { font-family: var(--mono); color: var(--verde); font-size: 14px; padding-top: 3px; }
.passos h3 { font-family: var(--corpo); font-size: 18px; letter-spacing: 0; margin-bottom: 4px; }
.passos p { margin: 0; color: var(--texto-2); }
.terminal { flex: 1 1 440px; min-width: 0; background: var(--painel); border: 1px solid #1E2A24; border-radius: 20px; padding: 28px; font-family: var(--mono); font-size: 14px; line-height: 1.9; color: var(--texto-2); }
.terminal p { margin: 0; }
.terminal b { color: var(--verde); font-weight: 400; }
.terminal em { color: var(--texto); font-style: normal; }
.terminal .apagado { color: #6B7872; margin-top: 10px; }
.terminal-bolinhas { display: flex; gap: 8px; margin-bottom: 18px; }
.terminal-bolinhas i { width: 10px; height: 10px; border-radius: 50%; background: var(--borda); }
.cursor { color: var(--verde); animation: piscar 1.1s steps(1) infinite; }
@keyframes piscar { 50% { opacity: 0; } }

/* fontes */
.fontes { max-width: 1200px; margin: 0 auto; padding: 96px 24px; display: flex; flex-direction: column; gap: 28px; border-top: 1px solid var(--linha); }
.fontes h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; max-width: 760px; }
.fontes ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.fontes li { font-family: var(--mono); font-size: 14px; color: #CFD8D3; border: 1px solid var(--borda); border-radius: 8px; padding: 10px 14px; }

/* rodapé */
.rodape { border-top: 1px solid var(--linha); max-width: 1200px; margin: 0 auto; padding: 32px 24px 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--texto-3); }
.rodape p { margin: 0; max-width: 640px; }
.dominio { font-family: var(--mono); }

@media (max-width: 640px) {
  .hero-conteudo { padding: 72px 16px; gap: 22px; }
  .sub { font-size: 17px; }
  .campo { padding-left: 14px; }
  .campo input { font-size: 16px; }
  .campo button { padding: 0 16px; height: 48px; }
  .menu a:not(.menu-botao) { display: none; }
  .como, .fontes { padding: 72px 16px; }
  .terminal { font-size: 12.5px; padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chuva div, .cursor { animation: none; }
}
