/* Landing do Thoth — idee.haus/thoth/ (out/2026)
   Direção: arquivo de escriba. Azul-tinta como fundo, papel como material (os documentos),
   dourado para o que foi achado. Títulos em serifa — Thoth é o deus da escrita. Assinatura: a
   busca se digita e a linha de leitura varre o papel escaneado até destacar o trecho. */
@font-face { font-family: "Instrument Serif"; src: url("fontes/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fontes/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fontes/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fontes/manrope-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fontes/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fontes/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fontes/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --tinta: #0a1a3f;
  --tinta2: #0f2352;
  --tinta3: #17306a;
  --linha: rgba(255, 255, 255, .1);
  --papel: #f3eee2;
  --papel-txt: #2b2a26;
  --ouro: #d9b04a;
  --asas: #fe1817;
  --texto: #eaf0ff;
  --cinza: #9aa9cc;
  --serifa: "Instrument Serif", Georgia, "Times New Roman", serif;
  --corpo: "Manrope", system-ui, -apple-system, sans-serif;
  --mono: "Plex Mono", ui-monospace, monospace;
  --margem: clamp(20px, 5vw, 72px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--tinta); color: var(--texto); font-family: var(--corpo); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--serifa); letter-spacing: -.005em; }
h1 em, h2 em { color: var(--ouro); }
.pular { position: absolute; left: -9999px; top: 8px; background: var(--ouro); color: #000; padding: 8px 14px; z-index: 100; }
.pular:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ouro); outline-offset: 3px; }
.sobretitulo { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ouro); margin: 0 0 18px; }

.botao { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 10px; background: var(--ouro); color: #10173a; font-weight: 700; text-decoration: none; font-size: 16px; border: 1px solid var(--ouro); transition: transform .2s, background .2s; }
.botao:hover { transform: translateY(-2px); background: #e6c063; }
.botao--linha { background: transparent; color: var(--texto); border-color: rgba(255,255,255,.3); }
.botao--linha:hover { background: rgba(255,255,255,.06); }
.botao--mini { padding: 10px 16px; font-size: 14px; }

.topo { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 14px max(var(--margem), calc((100vw - 1320px) / 2 + var(--margem))); background: rgba(10, 26, 63, .8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--linha); }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serifa); font-size: 28px; line-height: 1; }
.topo nav { display: flex; gap: 24px; margin-left: auto; }
.topo nav a { text-decoration: none; color: var(--cinza); font-size: 15px; }
.topo nav a:hover { color: var(--texto); }

/* ── Abertura + assinatura ── */
.abertura { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: center; min-height: calc(100vh - 70px); padding: 60px var(--margem) 90px; max-width: 1320px; margin: 0 auto; }
.abertura h1 { font-size: clamp(46px, 6.2vw, 92px); line-height: .98; }
.abertura h1 em { display: block; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: #c8d2ec; max-width: 32em; margin: 28px 0 36px; }
.acoes { display: flex; flex-wrap: wrap; gap: 14px; }

.busca-demo { position: relative; min-height: 600px; }
.busca-caixa, .resultados { width: 78%; }
.busca-caixa { position: relative; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; background: #fff; color: #1b2440; font-size: 18px; box-shadow: 0 24px 60px -24px rgba(0,0,0,.7); }
.busca-caixa svg { color: #6b7799; flex: none; }
.cursor { display: inline-block; width: 2px; height: 1.15em; background: currentColor; vertical-align: -3px; margin-left: 1px; animation: piscar 1s steps(1) infinite; }
@keyframes piscar { 50% { opacity: 0; } }
.resultados { position: relative; z-index: 3; list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.resultados li { display: grid; gap: 2px; padding: 14px 18px; border-radius: 12px; background: var(--tinta2); border: 1px solid var(--linha); opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; }
.resultados b { font-weight: 600; font-size: 15px; }
.caminho { font-family: var(--mono); font-size: 12px; color: var(--cinza); }
.trecho { font-size: 14px; color: #c8d2ec; }
mark { background: rgba(217, 176, 74, .28); color: #ffe8a8; padding: 0 3px; border-radius: 3px; }
.achou .resultados li { opacity: 1; transform: none; }
.achou .resultados li:nth-child(2) { transition-delay: .25s; }
.papel { position: absolute; right: 0; top: 262px; z-index: 4; width: 56%; aspect-ratio: 3 / 3.6; padding: 26px 24px; background: var(--papel); color: var(--papel-txt); border-radius: 4px; transform: rotate(4deg); box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); overflow: hidden; }
.papel-titulo { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .04em; margin: 18px 0 6px; }
.papel-sub { font-family: var(--mono); font-size: 12px; margin: 0 0 18px; }
.papel-linha { height: 7px; border-radius: 3px; background: rgba(43, 42, 38, .14); margin: 10px 0; }
.papel-linha.curta { width: 62%; }
.papel-linha.l1 { width: 40%; } .papel-linha.l2 { width: 28%; }
.achado { transition: background .4s .6s; border-radius: 3px; padding: 0 3px; }
.achou .achado { background: rgba(217, 176, 74, .55); }
.varredura { position: absolute; left: 0; right: 0; top: -20%; height: 18%; background: linear-gradient(180deg, transparent, rgba(217, 176, 74, .35), transparent); border-bottom: 2px solid rgba(217, 176, 74, .9); animation: varrer 3.4s ease-in-out infinite; }
@keyframes varrer { 0% { top: -20%; } 60%, 100% { top: 105%; } }

/* ── Seções gerais ── */
section { scroll-margin-top: 70px; }
.cabeca { max-width: 760px; margin-bottom: 52px; }
.lugar, .busca, .dentro, .pedido, .seguranca, .video { padding: 110px var(--margem); max-width: 1320px; margin: 0 auto; }
.lugar h2, .busca h2, .dentro h2, .pedido h2, .seguranca h2, .video h2 { font-size: clamp(36px, 4.4vw, 62px); line-height: 1.02; }
.duas { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.duas p:not(.sobretitulo):not(.legenda):not(.fala) { color: #c8d2ec; margin: 22px 0 0; max-width: 32em; }
.duas--inverso > :first-child { order: 2; }

/* Arquivar: os soltos entram nas pastas */
.arquivar { display: grid; gap: 34px; }
.soltos { position: relative; height: 120px; }
.arq { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; background: var(--papel); color: var(--papel-txt); font-family: var(--mono); font-size: 13px; white-space: nowrap; box-shadow: 0 14px 30px -16px rgba(0,0,0,.8); transition: transform 1s cubic-bezier(.5, 0, .2, 1), opacity .6s 1s; }
.arq::before { content: ""; width: 10px; height: 13px; border: 1.5px solid currentColor; border-radius: 2px; opacity: .6; }
.a1 { left: 2%;  top: 8px;  transform: rotate(-6deg); }
.a2 { left: 22%; top: 60px; transform: rotate(5deg); }
.a3 { left: 43%; top: 0;    transform: rotate(-3deg); }
.a4 { left: 63%; top: 56px; transform: rotate(7deg); }
.a5 { left: 80%; top: 10px; transform: rotate(-5deg); }
.visivel .a1 { transform: translate(0, 150px) scale(.6); opacity: 0; }
.visivel .a2 { transform: translate(14%, 96px) scale(.6); opacity: 0; transition-delay: .15s, 1.15s; }
.visivel .a3 { transform: translate(-10%, 160px) scale(.6); opacity: 0; transition-delay: .3s, 1.3s; }
.visivel .a4 { transform: translate(-6%, 100px) scale(.6); opacity: 0; transition-delay: .45s, 1.45s; }
.visivel .a5 { transform: translate(-4%, 150px) scale(.6); opacity: 0; transition-delay: .6s, 1.6s; }
.pastas { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.pasta { position: relative; padding: 26px 18px 18px; border-radius: 4px 14px 14px 14px; background: var(--tinta2); border: 1px solid var(--linha); display: grid; gap: 4px; transition: border-color .4s, background .4s; }
.pasta::before { content: ""; position: absolute; left: -1px; top: -12px; width: 44%; height: 13px; border-radius: 8px 8px 0 0; background: inherit; border: 1px solid var(--linha); border-bottom: 0; }
.pasta b { font-weight: 600; }
.pasta small { color: var(--cinza); font-size: 13px; }
.pasta small::before { content: "🔒 "; }
.visivel .pasta { border-color: rgba(217, 176, 74, .5); background: var(--tinta3); transition-delay: 1.2s; }

/* Scanner */
.scanner { display: grid; justify-items: center; gap: 14px; }
.folha { position: relative; width: min(100%, 420px); padding: 30px 28px; background: var(--papel); color: var(--papel-txt); border-radius: 4px; transform: rotate(-2deg); overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); filter: contrast(.92) sepia(.08); }
.folha-cab { font-family: var(--mono); font-weight: 500; letter-spacing: .05em; margin: 0 0 16px; }
.folha-txt { font-family: var(--mono); font-size: 14px; margin: 8px 0; }
.marca-ler { border-radius: 3px; padding: 0 3px; transition: background .5s 1.4s; }
.visivel .marca-ler { background: rgba(217, 176, 74, .6); }
.raio { position: absolute; left: 0; right: 0; height: 3px; top: 0; background: var(--ouro); box-shadow: 0 0 18px 4px rgba(217, 176, 74, .55); opacity: 0; }
.visivel .raio { animation: raio 2.2s ease-in-out 1 forwards; }
@keyframes raio { 0% { top: 0; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.legenda { font-family: var(--mono); font-size: 12px; color: var(--cinza); margin: 0; }

/* Diagrama: nada sai daqui */
.diagrama { display: grid; justify-items: center; color: rgba(255,255,255,.45); }
.servidor { width: min(100%, 380px); padding: 26px 22px 22px; border: 1.5px solid rgba(217, 176, 74, .7); border-radius: 16px; position: relative; background: rgba(15, 35, 82, .6); }
.servidor span { position: absolute; top: -11px; left: 18px; background: var(--tinta); padding: 0 8px; font-family: var(--mono); font-size: 13px; color: var(--ouro); }
.docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.docs i { aspect-ratio: 3 / 4; background: #e9edf8; border-radius: 3px; box-shadow: inset 0 6px 0 -3px #c9d1e6, inset 0 13px 0 -9px #c9d1e6, inset 0 20px 0 -16px #c9d1e6; }
.ligacao { position: relative; display: grid; place-items: center; margin: 8px 0; }
.fio path { stroke-dashoffset: 0; animation: fio 1.2s linear infinite; }
@keyframes fio { to { stroke-dashoffset: -22; } }
.xis { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.xis path { stroke-dasharray: 34; stroke-dashoffset: 34; transition: stroke-dashoffset .5s .6s; }
.visivel .xis path { stroke-dashoffset: 0; }
.visivel .xis path + path, .xis path:nth-child(1) { transition-delay: .6s; }
.nuvem { padding: 14px 26px; border: 1.5px dashed rgba(255,255,255,.35); border-radius: 999px; font-family: var(--mono); font-size: 13px; color: var(--cinza); opacity: .55; }

/* Pedido em português */
.conversa { display: grid; gap: 18px; }
.fala { margin: 0; padding: 18px 20px; border-radius: 16px 16px 4px 16px; background: #fff; color: #1b2440; font-size: 17px; min-height: 64px; justify-self: end; max-width: 100%; }
.feito { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s; }
.arq--fixo { position: static; }
.seta { color: var(--ouro); font-size: 20px; }
.pasta--mini { padding: 14px 18px 12px; }
.pasta--mini::before { width: 50%; }
.ok { font-family: var(--mono); font-size: 13px; color: #6fe3a7; }
.respondeu .feito { opacity: 1; transform: none; }

/* Segurança */
.grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.item { padding: 28px; border-radius: 18px; background: var(--tinta2); border: 1px solid var(--linha); }
.icone { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(217, 176, 74, .14); color: var(--ouro); font-size: 20px; margin-bottom: 18px; }
.item h3 { font-family: var(--corpo); font-weight: 700; font-size: 19px; margin-bottom: 8px; }
.item p { margin: 0; color: #c0cbe6; font-size: 15.5px; }

/* Vídeo */
.video { display: grid; grid-template-columns: 1fr minmax(260px, 360px); gap: clamp(32px, 6vw, 96px); align-items: center; max-width: 1180px; }
.video-texto p:not(.sobretitulo) { color: #c8d2ec; margin: 18px 0 28px; }
.video-tela { position: relative; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: var(--tinta2); box-shadow: 0 0 0 1px var(--linha), 0 40px 90px -40px rgba(217, 176, 74, .35); }
.video-tela video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tocar { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px 12px 16px; border: 0; border-radius: 999px; background: var(--asas); color: #fff; font: 600 15px/1 var(--corpo); cursor: pointer; white-space: nowrap; }
.tocar[hidden] { display: none; }

.final { text-align: center; padding: 120px var(--margem) 140px; display: flex; flex-direction: column; align-items: center; gap: 22px; background: radial-gradient(ellipse at 50% 0%, rgba(217, 176, 74, .14), transparent 60%); }
.final h2 { font-size: clamp(42px, 5.6vw, 80px); line-height: 1; }
.final p { color: #c8d2ec; margin: 0 0 8px; max-width: 34em; }
.rodape { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 28px var(--margem); border-top: 1px solid var(--linha); color: var(--cinza); font-size: 14px; }
.rodape p { margin: 0; }

.revelar { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s cubic-bezier(.2, .8, .2, 1); }
.revelar.visivel { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .abertura { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .busca-demo { min-height: 0; }
  .papel { position: relative; right: auto; top: auto; width: 74%; margin: 18px 0 0 auto; }
  .busca-caixa, .resultados { width: 100%; }
  .duas { grid-template-columns: 1fr; }
  .duas--inverso > :first-child { order: 0; }
  .pastas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .soltos { height: 150px; }
  .arq { font-size: 12px; }
  .a2 { left: 30%; top: 50px; } .a3 { left: 4%; top: 104px; } .a4 { left: 46%; top: 104px; } .a5 { left: 52%; top: 4px; }
  .grade { grid-template-columns: 1fr; }
  .video { grid-template-columns: 1fr; }
  .video-tela { max-width: 340px; width: 100%; margin: 0 auto; }
  .topo nav { display: none; }
  .topo .botao--mini { margin-left: auto; }
}
@media (max-width: 520px) { .acoes .botao, .video-texto .botao, .final .botao { width: 100%; justify-content: center; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revelar, .resultados li, .feito { opacity: 1 !important; transform: none !important; }
  .arq { display: none; } .arq--fixo { display: inline-flex; }
  .varredura, .raio { display: none; }
  .xis path { stroke-dashoffset: 0; }
}
