/* Rodada 4: o site da Nexora com a vitrine do NexField.
   Três eixos de cor no <html>: data-marca (nexora | nexfield), data-tema (claro | escuro) e data-paleta (a | b | c, só na Nexora).
   As cores são propriedades registradas (@property), então trocar de marca ou de tema anima a cor em vez de pular. */
@font-face { font-family: 'Geist'; src: url('vendor/fontes/geist-latin-wght-normal.woff2') format('woff2-variations'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist'; src: url('vendor/fontes/geist-latin-ext-wght-normal.woff2') format('woff2-variations'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; src: url('vendor/fontes/geist-mono-latin-wght-normal.woff2') format('woff2-variations'); font-weight: 100 900; font-display: swap; }

@property --fundo { syntax: '<color>'; inherits: true; initial-value: #EFECE6; }
@property --fundo-2 { syntax: '<color>'; inherits: true; initial-value: #E6E2DA; }
@property --sup { syntax: '<color>'; inherits: true; initial-value: #F8F6F2; }
@property --txt { syntax: '<color>'; inherits: true; initial-value: #1C1B19; }
@property --txt-2 { syntax: '<color>'; inherits: true; initial-value: #46433E; }
@property --muted { syntax: '<color>'; inherits: true; initial-value: #7A756C; }
@property --linha { syntax: '<color>'; inherits: true; initial-value: rgba(28, 27, 25, .12); }
@property --acento { syntax: '<color>'; inherits: true; initial-value: #A4532A; }
@property --acento-txt { syntax: '<color>'; inherits: true; initial-value: #fff; }
@property --vidro { syntax: '<color>'; inherits: true; initial-value: rgba(248, 246, 242, .7); }
@property --veu { syntax: '<color>'; inherits: true; initial-value: rgba(239, 236, 230, .8); }
@property --luz-1 { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --luz-2 { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --luz-3 { syntax: '<color>'; inherits: true; initial-value: transparent; }

:root {
  --azul: #2747F5; --azul-fundo: #1B2FD9; --violeta: #6A3BFF; --ciano: #00A6FF; --rosa: #FF4FA3; --amarelo: #FFC23D;
  --gradiente: linear-gradient(150deg, #1B2FD9 0%, #2747F5 34%, #6A3BFF 68%, #00A6FF 100%);
  --sombra: 0 30px 80px -34px rgba(0, 0, 0, .35);
  --r-card: 26px;
  transition: --fundo .7s, --fundo-2 .7s, --sup .7s, --txt .7s, --txt-2 .7s, --muted .7s, --linha .7s, --acento .7s, --acento-txt .7s, --vidro .7s, --veu .7s, --luz-1 .9s, --luz-2 .9s, --luz-3 .9s;
}

/* ---------- Nexora: três paletas neutras, cada uma em claro e escuro ---------- */
/* A · Areia e grafite, acento ocre queimado */
:root[data-marca="nexora"][data-paleta="a"] { --fundo: #EFECE6; --fundo-2: #E6E2DA; --sup: #F8F6F2; --txt: #1C1B19; --txt-2: #46433E; --muted: #78736A; --linha: rgba(28, 27, 25, .12); --acento: #A4532A; --acento-txt: #FFF8F2; --vidro: rgba(248, 246, 242, .72); --veu: rgba(239, 236, 230, .82); color-scheme: light; }
:root[data-marca="nexora"][data-paleta="a"][data-tema="escuro"] { --fundo: #141312; --fundo-2: #1B1A18; --sup: #211F1D; --txt: #F1EEE8; --txt-2: #CFCAC1; --muted: #968F85; --linha: rgba(255, 250, 240, .1); --acento: #DB9467; --acento-txt: #1C1B19; --vidro: rgba(33, 31, 29, .72); --veu: rgba(20, 19, 18, .82); color-scheme: dark; }
/* B · Pedra fria, acento verde-petróleo */
:root[data-marca="nexora"][data-paleta="b"] { --fundo: #F2F3F1; --fundo-2: #E6E8E5; --sup: #FBFBFA; --txt: #16181B; --txt-2: #3F444A; --muted: #707780; --linha: rgba(22, 24, 27, .12); --acento: #1F6F6B; --acento-txt: #F2FBFA; --vidro: rgba(251, 251, 250, .72); --veu: rgba(242, 243, 241, .82); color-scheme: light; }
:root[data-marca="nexora"][data-paleta="b"][data-tema="escuro"] { --fundo: #0F1113; --fundo-2: #15181B; --sup: #1B1F22; --txt: #EEF0EE; --txt-2: #C6CBCB; --muted: #889094; --linha: rgba(240, 255, 250, .1); --acento: #5DBDB2; --acento-txt: #0F1113; --vidro: rgba(27, 31, 34, .72); --veu: rgba(15, 17, 19, .82); color-scheme: dark; }
/* C · Papel e tinta, acento azul-marinho */
:root[data-marca="nexora"][data-paleta="c"] { --fundo: #FAF9F7; --fundo-2: #F0EEEA; --sup: #FFFFFF; --txt: #0E0E0E; --txt-2: #3A3A3A; --muted: #6E6E6E; --linha: rgba(14, 14, 14, .11); --acento: #1E2A5A; --acento-txt: #F4F6FF; --vidro: rgba(255, 255, 255, .74); --veu: rgba(250, 249, 247, .82); color-scheme: light; }
:root[data-marca="nexora"][data-paleta="c"][data-tema="escuro"] { --fundo: #0C0C0D; --fundo-2: #131315; --sup: #19191C; --txt: #F2F2F0; --txt-2: #C9C9C6; --muted: #8C8C8A; --linha: rgba(255, 255, 255, .1); --acento: #8C9BE6; --acento-txt: #0C0C0D; --vidro: rgba(25, 25, 28, .72); --veu: rgba(12, 12, 13, .82); color-scheme: dark; }

/* ---------- NexField: a identidade do produto, em claro e escuro ---------- */
:root[data-marca="nexfield"] { --fundo: #EEF0FB; --fundo-2: #E3E6F8; --sup: #FFFFFF; --txt: #0B1150; --txt-2: #39407A; --muted: #646A98; --linha: rgba(11, 17, 80, .12); --acento: #00876F; --acento-txt: #fff; --vidro: rgba(255, 255, 255, .66); --veu: rgba(238, 240, 251, .84);
  --luz-1: rgba(39, 71, 245, .16); --luz-2: rgba(106, 59, 255, .14); --luz-3: rgba(0, 166, 255, .14); color-scheme: light; }
:root[data-marca="nexfield"][data-tema="escuro"] { --fundo: #06071A; --fundo-2: #0B0E2A; --sup: #10143A; --txt: #F3F3F0; --txt-2: #C9CCE0; --muted: #9AA0BE; --linha: rgba(255, 255, 255, .12); --acento: #00E0B8; --acento-txt: #06071A; --vidro: rgba(14, 18, 52, .58); --veu: rgba(4, 5, 18, .8);
  --luz-1: rgba(27, 47, 217, .45); --luz-2: rgba(106, 59, 255, .38); --luz-3: rgba(0, 166, 255, .28); color-scheme: dark; }

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: auto; background: var(--fundo); }
body { margin: 0; min-height: 100vh; color: var(--txt); font-family: 'Geist', 'Segoe UI', system-ui, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  background: radial-gradient(60vmax 50vmax at 15% 10%, var(--luz-1), transparent 60%), radial-gradient(50vmax 45vmax at 90% 30%, var(--luz-2), transparent 60%), radial-gradient(55vmax 40vmax at 60% 100%, var(--luz-3), transparent 60%), var(--fundo); background-attachment: fixed; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }
:root[data-marca="nexfield"] .so-nexora, :root[data-marca="nexora"] .so-nexfield, body:not(.na-historia) .so-historia { display: none !important; }

/* ---------- A marca: o "N" em uma cor só (Nexora) ou em fitas coloridas (NexField) ---------- */
.marca { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.02em; font-size: 17px; cursor: pointer; background: none; border: 0; color: inherit; font-family: inherit; padding: 0; }
.simbolo { position: relative; width: 30px; aspect-ratio: 256 / 180; flex: none; }
.simbolo i { position: absolute; inset: 0; transition: opacity .7s; }
.simbolo .mono { background: currentColor; -webkit-mask: url('vendor/nx-256.png') center / contain no-repeat; mask: url('vendor/nx-256.png') center / contain no-repeat; }
.simbolo .cor { background: url('vendor/nx-256.png') center / contain no-repeat; opacity: 0; }
:root[data-marca="nexfield"] .simbolo .mono { opacity: 0; }
:root[data-marca="nexfield"] .simbolo .cor { opacity: 1; }
.marca .nome-nexfield, :root[data-marca="nexfield"] .marca .nome-nexora { display: none; }
:root[data-marca="nexfield"] .marca .nome-nexfield { display: inline; }
.marca small { font-family: 'Geist Mono', monospace; font-weight: 400; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 3px 8px; border-radius: 999px; border: 1px solid var(--linha); }

/* ---------- Barra do topo ---------- */
.barra { position: fixed; z-index: 20; top: 14px; left: 50%; transform: translateX(-50%); width: min(1200px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--vidro); border: 1px solid var(--linha); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.barra nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--txt-2); }
.barra nav a:hover { color: var(--txt); }
.barra .acoes { display: flex; gap: 8px; margin-left: 18px; align-items: center; }
.barra nav:empty + .acoes, .barra .acoes:first-of-type { margin-left: auto; }
.tema { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; border: 0; cursor: pointer; background: transparent; color: var(--txt-2); box-shadow: inset 0 0 0 1px var(--linha); }
.tema:hover { color: var(--txt); background: color-mix(in srgb, var(--txt) 6%, transparent); }
.tema .lua, :root[data-tema="escuro"] .tema .sol { display: none; }
:root[data-tema="escuro"] .tema .lua { display: block; }

.botao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 550; font-size: 14.5px; white-space: nowrap; border: 0; cursor: pointer; transition: transform .15s, filter .15s, background .15s; font-family: inherit; color: inherit; }
.botao:active { transform: scale(.97); }
.botao-pri { background: var(--acento); color: var(--acento-txt); }
.botao-pri:hover { filter: brightness(1.08); }
:root[data-marca="nexfield"] .botao-pri { background: var(--gradiente); color: #fff; box-shadow: 0 10px 30px -10px rgba(106, 59, 255, .8); }
.botao-vidro { background: color-mix(in srgb, var(--txt) 5%, transparent); color: var(--txt); box-shadow: inset 0 0 0 1px var(--linha); }
.botao-vidro:hover { background: color-mix(in srgb, var(--txt) 10%, transparent); }
.botao-grande { min-height: 52px; padding: 0 26px; font-size: 16px; }

@media (max-width: 900px) {
  .barra nav { display: none; }
  .barra .acoes { margin-left: auto; }
  .barra .acoes .botao-pri, .barra .acoes .portal { display: none; }
  .marca small { display: none; }
}

/* ---------- Textos comuns ---------- */
main { position: relative; z-index: 2; }
.secao { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px max(24px, calc((100vw - 1200px) / 2)) 80px; }
.olho { font-family: 'Geist Mono', monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--acento); display: inline-block; }
h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; margin: 18px 0 18px; max-width: 13ch; text-wrap: balance; }
h1 em { font-style: normal; color: var(--acento); }
:root[data-marca="nexfield"] h1 em { background: linear-gradient(90deg, #2747F5, #6A3BFF 45%, #00A6FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-marca="nexfield"][data-tema="escuro"] h1 em { background-image: linear-gradient(90deg, #8EA2FF, #B79BFF 45%, #5CD6FF); }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--txt-2); max-width: 52ch; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.provisorio { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding: 3px 9px; border-radius: 999px; border: 1px dashed var(--muted); color: var(--muted); font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.em-breve { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--acento) 14%, transparent); color: var(--acento); font-family: 'Geist Mono', monospace; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }

/* ---------- História (vem da rodada 3, agora com tokens) ---------- */
.secao.longa { min-height: 170vh; align-items: flex-start; }
.secao.longa .painel { position: sticky; top: 22vh; }
.abertura { flex-direction: column; justify-content: center; align-items: flex-start; }
#historia .abertura { background: linear-gradient(90deg, var(--veu) 0%, color-mix(in srgb, var(--veu) 45%, transparent) 45%, transparent 70%); }
.rolar { margin-top: 56px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.rolar i { width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid var(--muted); position: relative; }
.rolar i::after { content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--txt); animation: rolar 1.8s ease-in-out infinite; }
@keyframes rolar { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(9px); opacity: 0; } }

.painel { max-width: 440px; padding: 28px; border-radius: var(--r-card); background: var(--vidro); border: 1px solid var(--linha); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: var(--sombra); }
.painel .passo { font-family: 'Geist Mono', monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.painel .passo b { color: var(--acento); font-weight: 500; }
.painel h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -.035em; font-weight: 600; margin: 10px 0 12px; text-wrap: balance; }
.painel p { color: var(--txt-2); margin: 0; }
.fichas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ficha { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 13px; background: color-mix(in srgb, var(--txt) 6%, transparent); border: 1px solid var(--linha); }
.ficha::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--acento); }
.ficha.breve { border-style: dashed; color: var(--txt-2); }
.ficha.breve::before { background: transparent; border: 1.5px solid var(--muted); width: 5px; height: 5px; }
.ficha.breve small { font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--acento); }

/* Aviso do relatório gerado */
.envio { position: fixed; z-index: 15; right: max(24px, calc((100vw - 1200px) / 2)); top: 96px; display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px; border-radius: 20px; background: var(--vidro); border: 1px solid color-mix(in srgb, var(--acento) 40%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 60px -20px color-mix(in srgb, var(--acento) 50%, transparent); opacity: 0; transform: translateY(-16px) scale(.96); transition: opacity .4s, transform .5s cubic-bezier(.2, .8, .2, 1); pointer-events: none; max-width: calc(100vw - 48px); }
.envio.visivel { opacity: 1; transform: none; }
.envio .icone { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--acento) 15%, transparent); color: var(--acento); flex: none; }
.envio b { display: block; font-size: 14px; font-weight: 550; }
.envio small { display: block; font-size: 12.5px; color: var(--muted); }

/* Trilho dos passos, à direita */
.trilho { position: fixed; z-index: 10; right: 22px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.trilho i { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--txt) 25%, transparent); transition: background .3s, transform .3s; }
.trilho i.ativo { background: var(--acento); transform: scale(1.5); }

/* O seletor da maquete (rodadas) fica em site.css. */

/* Troca de tema: a cor nova se espalha a partir do botão, como no app. */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: gota var(--gota-t, .62s) cubic-bezier(.2, .8, .2, 1); }
@keyframes gota { from { clip-path: circle(0 at var(--gota-x, 50%) var(--gota-y, 50%)); } to { clip-path: circle(var(--gota-r, 150vmax) at var(--gota-x, 50%) var(--gota-y, 50%)); } }

@media (max-width: 900px) {
  .secao { padding: 96px 16px 32px; }
  .secao.longa { min-height: 190vh; align-items: flex-end; }
  .secao.longa .painel { top: auto; bottom: 16px; }
  #historia .secao:not(.abertura):not(.fim):not(.solta) { align-items: flex-end; }
  .painel { padding: 20px; max-width: none; width: 100%; }
  .painel h2 { font-size: 24px; }
  .painel p { font-size: 15px; }
  .trilho { display: none; }
  .envio { left: 16px; right: 16px; top: 84px; }
  #historia .abertura { justify-content: flex-end; padding-bottom: 90px; background: linear-gradient(0deg, var(--veu) 0%, color-mix(in srgb, var(--veu) 50%, transparent) 55%, transparent 80%); }
  .rolar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
