/* Site da Kora. Mesma linguagem do app: noite, ciano (haste) e magenta (chevron), cantos retos, fitas de marcador. Brilho contido; o movimento é o destaque. */
:root {
  --noite: #070a1c; --camada: #0c1230; --camada2: #111a42;
  --linha: rgba(140, 190, 255, .14); --linha-forte: rgba(140, 200, 255, .32);
  --texto: #e7ecff; --mudo: #99a3c8; --fraco: #7681aa;
  --ciano: #3df0ff; --magenta: #f046b4; --violeta: #8d7bff; --verde: #5ef2b0; --ambar: #f2b705; --coral: #ff6b8b; --azul: #6fb6ff; --laranja: #ff9a3d; --lima: #c8f03c;
  --corpo: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --titulo: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --gutter: clamp(20px, 4.5vw, 56px);
  --fita: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
}
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 76px; }
html { overflow-x: clip; }
body { margin: 0; background: var(--noite); color: var(--texto); font: 400 16px/1.55 var(--corpo); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
code { font: .88em ui-monospace, Menlo, monospace; padding: .1em .4em; border: 1px solid var(--linha); border-radius: 4px; color: var(--ciano); }
:focus-visible { outline: 2px solid var(--ciano); outline-offset: 3px; }
.pular { position: absolute; left: -999px; } .pular:focus { left: 16px; top: 12px; z-index: 99; background: var(--camada); padding: 8px 12px; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1, h2, h3 { font-family: var(--titulo); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; margin: 0; }
.k { color: var(--ciano); }

/* ---- botões ---- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 22px; border-radius: 8px; font: 600 16px var(--corpo); color: #05101c; background: var(--ciano); border: 1px solid var(--ciano); transition: background .15s, transform .15s; }
.btn::after { content: ""; width: 8px; height: 8px; border-top: 3px solid currentColor; border-right: 3px solid currentColor; transform: rotate(45deg); margin: 0 4px 0 2px; transition: transform .2s; }
.btn:hover { background: #7af5ff; } .btn:hover::after { transform: translateX(4px) rotate(45deg); }
.btn.mini { min-height: 38px; padding: 0 16px; font-size: 15px; }
.btn.grande { min-height: 48px; padding: 0 24px; font-size: 16px; }
.btn.fantasma { background: transparent; color: var(--texto); border-color: var(--linha-forte); }
.btn.fantasma:hover { border-color: var(--ciano); color: var(--ciano); background: transparent; }

/* ---- topo ---- */
.topo { position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 var(--gutter); background: rgba(7, 10, 28, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--linha); }
.logo img { display: block; height: 26px; width: auto; }
.topo nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); font-weight: 500; font-size: 15px; color: var(--mudo); }
.topo nav a:not(.btn):hover { color: var(--texto); }
@media (max-width: 720px) { .topo nav a:not(.btn) { display: none; } }

/* ---- trama (o padrão do rosto) ---- */
.trama { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72' fill='none' stroke-width='1.6'%3E%3Cpath d='M36 4 68 36 36 68 4 36Z' stroke='%233df0ff' stroke-opacity='.2'/%3E%3Cpath d='M0 0 36 36 72 0M0 72 36 36 72 72' stroke='%23f046b4' stroke-opacity='.14'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, #000 0%, transparent 100%); mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, #000 0%, transparent 100%);
  animation: deriva 40s linear infinite; }
.trama.escura { opacity: .7; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 20%, transparent 100%); mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 20%, transparent 100%); }
@keyframes deriva { to { background-position: 72px 72px; } }

/* ---- hero ---- */
.hero { position: relative; min-height: min(100vh, 720px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 32px; padding: 104px var(--gutter) 56px; overflow: hidden; }
.hero-texto { position: relative; z-index: 2; max-width: 640px; }
.selo-hero { display: inline-block; margin: 0 0 22px; padding: 6px 12px; border: 1px solid var(--linha-forte); border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--mudo); letter-spacing: .03em; }
.hero h1 { font-size: clamp(36px, 5vw, 68px); }
.hero h1 .k { display: inline-block; position: relative; }
.sub { margin: 20px 0 28px; max-width: 54ch; font-size: clamp(16px, 1.3vw, 18px); color: var(--mudo); }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-marca { overflow: hidden; position: relative; z-index: 1; display: grid; place-items: center; min-height: 420px; }
.k-grande { width: min(100%, 340px); height: auto; overflow: visible; }
.k-haste { fill: var(--ciano); } .k-chevron { fill: var(--magenta); }
/* entrada: a haste cai de cima, o chevron desliza da direita */
.k-grande .k-haste { transform-box: fill-box; animation: cai 1s cubic-bezier(.2, 1.3, .4, 1) .2s backwards; }
.k-grande .k-chevron { transform-box: fill-box; animation: entra 1s cubic-bezier(.2, .9, .2, 1) .7s backwards; }
@keyframes cai { from { transform: translateY(-130%); opacity: 0; } 55% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes entra { from { transform: translateX(80%); opacity: 0; } to { transform: none; opacity: 1; } }
/* depois de pousar, o chevron respira */
.k-grande .k-chevron { animation: entra 1s cubic-bezier(.2, .9, .2, 1) .7s backwards, pulsa 5s ease-in-out 2.2s infinite; }
@keyframes pulsa { 0%, 100% { transform: none; } 50% { transform: translateX(-9%); } }
.orbita { position: absolute; border: 1.5px solid var(--linha-forte); border-radius: 50%; pointer-events: none; }
.orbita::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; background: var(--ciano); transform: rotate(45deg); }
.o1 { width: 92%; aspect-ratio: 1; animation: gira 38s linear infinite; }
.o2 { width: 66%; aspect-ratio: 1; animation: gira 24s linear infinite reverse; }
.o2::after { background: var(--magenta); }
@keyframes gira { to { transform: rotate(360deg); } }

@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 104px; min-height: 0; } .hero-marca { order: -1; min-height: 260px; } .k-grande { width: 190px; } .o1 { width: 250px; } .o2 { width: 180px; } }

/* ---- faixa ---- */
.faixa { overflow: hidden; border-block: 1px solid var(--linha); background: var(--camada); }
.faixa-trilho { display: flex; width: max-content; gap: 24px; padding: 14px 0; align-items: center; font: 800 18px/1 var(--titulo); letter-spacing: -.02em; color: var(--mudo); animation: corre 40s linear infinite; }
.faixa-trilho i { width: 9px; height: 9px; border-top: 3px solid var(--magenta); border-right: 3px solid var(--magenta); transform: rotate(45deg); flex: none; }
@keyframes corre { to { transform: translateX(-33.333%); } }

/* ---- seções ---- */
section { position: relative; }
.como, .acervo, .cats, .bast, .final { padding: clamp(48px, 6vw, 88px) var(--gutter); }
.como h2, .acervo h2, .cats h2, .bast h2, .final h2, .nome h2 { font-size: clamp(28px, 3.6vw, 48px); }

/* como funciona */
.como-grade > * { min-width: 0; }
.como-grade { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; max-width: 1240px; margin: 0 auto; }
.como-cena { position: sticky; top: max(96px, calc(50vh - 260px)); }
.como-texto h2 { margin-bottom: 28px; }
.passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; padding-bottom: 30vh; counter-reset: p; }
.passo { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 24px; min-height: 22vh; align-content: center; border: 1px solid var(--linha); border-radius: 10px; background: rgba(12, 18, 46, .55); opacity: .45; transition: opacity .35s, border-color .35s, background .35s; position: relative; }
.passo::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px; background: var(--ciano); border-radius: 10px 0 0 10px; transform: scaleY(0); transform-origin: top; transition: transform .35s; }
.passo.ativo { opacity: 1; border-color: var(--linha-forte); background: rgba(18, 28, 66, .8); } .passo.ativo::before { transform: scaleY(1); }
.num { display: grid; place-items: center; width: 40px; height: 52px; padding-bottom: 8px; clip-path: var(--fita); background: rgba(61, 240, 255, .14); color: var(--ciano); font: 800 20px var(--titulo); transition: background .3s, color .3s; }
.passo.ativo .num { background: var(--ciano); color: #05101c; }
.passo > div { min-width: 0; }
.passo h3 { font-size: 19px; letter-spacing: -.02em; margin-bottom: 6px; }
.passo p { margin: 0; overflow-wrap: anywhere; color: var(--mudo); font-size: 15px; }
@media (max-width: 900px) { .como-grade { grid-template-columns: 1fr; } .como-cena { position: static; } .passo { opacity: 1; min-height: 0; } .passos { padding-bottom: 0; } }

/* telegram */
.tg { border: 1px solid var(--linha-forte); border-radius: 14px; background: linear-gradient(180deg, #0d1538, #090e28); overflow: hidden; max-width: 420px; margin: 0 auto; }
.tg-topo { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--linha); background: rgba(255, 255, 255, .02); }
.tg-av { width: 34px; height: 34px; display: grid; place-items: center; background: var(--noite); border-radius: 8px; } .tg-av svg { width: 20px; height: 24px; }
.tg-topo small { color: var(--fraco); margin-left: auto; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.tg-msgs { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px 22px; min-height: 380px; }
.bal { margin: 0; max-width: 86%; padding: 10px 14px; font-size: 15px; line-height: 1.45; border-radius: 10px; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .4s, transform .4s; }
.bal.eu { align-self: flex-end; background: var(--ciano); color: #05101c; border-bottom-right-radius: 2px; font-weight: 500; word-break: break-all; }
.bal.kora { align-self: flex-start; background: var(--camada2); border: 1px solid var(--linha); border-bottom-left-radius: 2px; }
.bal b { color: var(--ciano); } .bal small { display: block; margin-top: 4px; color: var(--fraco); font-size: 12px; }
.marca-salvo { display: inline-block; width: 8px; height: 12px; margin-right: 8px; background: var(--magenta); clip-path: var(--fita); }
.como-cena[data-e="1"] .b1, .como-cena[data-e="2"] .b1, .como-cena[data-e="2"] .b2, .como-cena[data-e="3"] .b1, .como-cena[data-e="3"] .b2, .como-cena[data-e="3"] .b3, .como-cena[data-e="4"] .bal, .como-cena[data-e="1"] .b2 { opacity: 1; transform: none; }
.como-cena[data-e="1"] .b2 { transition-delay: .5s; }

/* acervo */
.acervo { background: var(--camada); border-block: 1px solid var(--linha); }
.acervo-cab { max-width: 1240px; margin: 0 auto 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); gap: 32px 64px; align-items: end; }
.acervo-cab p { margin: 0; color: var(--mudo); font-size: 16px; }
@media (max-width: 900px) { .acervo-cab { grid-template-columns: 1fr; } }
.janela { max-width: 1100px; margin: 0 auto; border: 1px solid var(--linha-forte); border-radius: 12px; background: var(--noite); box-shadow: 0 40px 90px rgba(0, 0, 0, .5); overflow: hidden; transform-style: preserve-3d; transition: transform .25s ease-out; will-change: transform; }
.j-topo { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; border-bottom: 1px solid var(--linha); }
.j-abas { display: flex; gap: 18px; font-size: 14px; color: var(--mudo); font-weight: 500; } .j-abas b { color: var(--ciano); }
.j-busca { display: flex; align-items: center; justify-content: space-between; margin: 22px 22px 0; padding: 0 18px; height: 52px; border-left: 5px solid var(--ciano); border-radius: 8px; background: var(--camada); border-top: 1px solid var(--linha-forte); border-right: 1px solid var(--linha-forte); border-bottom: 1px solid var(--linha-forte); color: var(--fraco); font-size: 16px; }
.j-busca kbd { font: 500 12px var(--corpo); border: 1px solid var(--linha-forte); border-radius: 5px; padding: 1px 7px; }
.j-miolo { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; padding: 22px; }
.j-filtros { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; align-content: start; }
.j-filtros li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--mudo); font-size: 14px; } .j-filtros li span { flex: 1; } .j-filtros em { font-style: normal; font-size: 12px; color: var(--fraco); }
.j-filtros li.on { color: var(--ciano); background: rgba(255, 255, 255, .05); }
.sg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 3.6; stroke-linejoin: miter; stroke-miterlimit: 4; } .sg .cheio, .grade-sigilos .cheio, .fita .cheio { fill: currentColor; stroke: none; }
.j-cont { margin: 0 0 12px; color: var(--mudo); font-size: 14px; } .j-cont b { font: 800 34px var(--titulo); color: var(--ciano); margin-right: 8px; letter-spacing: -.03em; }
.j-card { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 16px; margin-bottom: 10px; border: 1px solid var(--linha); border-radius: 10px; background: rgba(12, 18, 46, .6); transition: background .2s, border-color .2s; }
.j-card::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px; border-radius: 10px 0 0 10px; background: currentColor; transform: scaleY(0); transform-origin: top; transition: transform .2s; }
.j-card:hover { background: rgba(18, 28, 66, .8); border-color: var(--linha-forte); } .j-card:hover::before { transform: scaleY(1); }
.j-card h3 { font-size: 17px; letter-spacing: -.015em; line-height: 1.3; margin-bottom: 4px; color: var(--texto); }
.j-card p { margin: 0; color: var(--mudo); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fita { display: grid; place-items: center; width: 44px; height: 54px; padding-bottom: 10px; clip-path: var(--fita); background: color-mix(in srgb, currentColor 16%, transparent); color: inherit; transition: background .2s, color .2s; }
.fita svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3.6; stroke-linejoin: miter; stroke-miterlimit: 4; }
.j-card:hover .fita { background: currentColor; } .j-card:hover .fita svg { stroke: #05101c; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .tags span { font-size: 12px; padding: 3px 8px; border: 1px solid var(--linha); border-radius: 5px; color: var(--fraco); }
@media (max-width: 760px) { .j-miolo { grid-template-columns: 1fr; } .j-filtros { display: none; } }
.c-cian { color: var(--ciano); } .c-vio { color: var(--violeta); } .c-mag { color: var(--magenta); } .c-ver { color: var(--verde); } .c-amb { color: var(--ambar); } .c-cor { color: var(--coral); } .c-azu { color: var(--azul); } .c-lar { color: var(--laranja); } .c-lim { color: var(--lima); }

/* categorias */
.cats { max-width: 1240px; margin: 0 auto; }
.cats-sub { max-width: 60ch; margin: 16px 0 32px; color: var(--mudo); font-size: 16px; }
.grade-sigilos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.grade-sigilos li { display: grid; gap: 14px; justify-items: start; padding: 18px 16px; border: 1px solid var(--linha); border-radius: 10px; background: rgba(12, 18, 46, .5); transition: border-color .2s, transform .2s; }
.grade-sigilos li:hover { border-color: currentColor; transform: translateY(-4px); }
.grade-sigilos svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 3.6; stroke-linejoin: miter; stroke-miterlimit: 4; stroke-dasharray: 220; stroke-dashoffset: 220; }
.grade-sigilos .cheio { opacity: 0; transition: opacity .4s .8s; }
.grade-sigilos.vista svg { animation: traca 1.1s cubic-bezier(.5, 0, .2, 1) forwards; } .grade-sigilos.vista .cheio { opacity: 1; }
.grade-sigilos li:nth-child(2) svg { animation-delay: .06s; } .grade-sigilos li:nth-child(3) svg { animation-delay: .12s; } .grade-sigilos li:nth-child(4) svg { animation-delay: .18s; } .grade-sigilos li:nth-child(5) svg { animation-delay: .24s; } .grade-sigilos li:nth-child(6) svg { animation-delay: .3s; } .grade-sigilos li:nth-child(7) svg { animation-delay: .36s; } .grade-sigilos li:nth-child(8) svg { animation-delay: .42s; } .grade-sigilos li:nth-child(9) svg { animation-delay: .48s; } .grade-sigilos li:nth-child(10) svg { animation-delay: .54s; }
@keyframes traca { to { stroke-dashoffset: 0; } }
.grade-sigilos span { font: 600 15px var(--corpo); color: var(--texto); }

/* nome */
.nome { position: relative; padding: clamp(64px, 9vw, 120px) var(--gutter); text-align: center; border-block: 1px solid var(--linha); overflow: hidden; }
.nome-miolo { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.sobre { margin: 0 0 18px; color: var(--magenta); font: 700 14px var(--titulo); letter-spacing: .16em; text-transform: uppercase; }
.nome h2 { font-size: clamp(38px, 6vw, 80px); margin-bottom: 20px; }
.nome p:not(.sobre) { margin: 0 auto; max-width: 52ch; color: var(--mudo); font-size: 17px; }
.k-meio { width: 84px; height: auto; margin-top: 32px; }

/* bastidores */
.bast { max-width: 1240px; margin: 0 auto; }
.cartoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 32px; }
.cartao { position: relative; padding: 22px 22px 24px; border: 1px solid var(--linha); border-radius: 10px; background: rgba(12, 18, 46, .55); }
.cartao::before { content: ""; position: absolute; top: -1px; left: 26px; width: 18px; height: 30px; background: var(--ciano); clip-path: var(--fita); transform: translateY(-1px); }
.cartao:nth-child(2n)::before { background: var(--magenta); }
.cartao h3 { margin: 18px 0 8px; font-size: 18px; letter-spacing: -.02em; } .cartao p { margin: 0; color: var(--mudo); font-size: 15px; }

/* final */
.final { text-align: center; background: var(--camada); border-top: 1px solid var(--linha); }
.final h2 { font-size: clamp(34px, 5.4vw, 72px); } .final p { margin: 16px 0 26px; color: var(--mudo); font-size: 17px; }

/* rodapé */
.rodape { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 32px var(--gutter); color: var(--fraco); font-size: 14px; } .rodape p { margin: 0; } .assina { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; } .jov { display: inline-flex; padding: 4px 0; opacity: .92; transition: opacity .15s, transform .15s; } .jov:hover { opacity: 1; transform: translateY(-2px); } .jov img { display: block; height: 40px; width: auto; } .rodape img { height: 24px; width: auto; }

/* revelar ao rolar */
.rev { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.rev.vista { opacity: 1; transform: none; }
.cartao.rev:nth-child(2) { transition-delay: .08s; } .cartao.rev:nth-child(3) { transition-delay: .16s; } .cartao.rev:nth-child(4) { transition-delay: .24s; }
.k-meio.rev { transform: translateY(26px) rotate(-6deg); } .k-meio.rev.vista { transform: none; }

@media (max-width: 900px) {
  .hero-marca { min-height: 200px; } .k-grande { width: 130px; } .o1 { width: 190px; } .o2 { width: 140px; }
  .hero { padding-top: 88px; padding-bottom: 40px; }
  .como-cena { max-width: 420px; margin: 0 auto 8px; } .tg-msgs { min-height: 0; }
  .bal { opacity: 1; transform: none; }
  .j-busca { height: 46px; margin: 16px 16px 0; font-size: 14px; } .j-miolo { padding: 16px; } .j-topo { padding: 12px 16px; }
  .j-card { grid-template-columns: 40px 1fr; gap: 12px; padding: 14px; } .fita { width: 36px; height: 46px; }
  .topo nav { gap: 12px; } .rodape { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) { .acoes .btn { width: 100%; justify-content: center; } .grade-sigilos { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rev, .bal { opacity: 1; transform: none; } .passo { opacity: 1; }
  .grade-sigilos svg { stroke-dashoffset: 0; } .grade-sigilos .cheio { opacity: 1; }
}
