/* GoinUP v2, site cinematografico. HTML, CSS e JS proprios, sem terceiros. */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-300-normal.woff2?v=b56a4e1e") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-500-normal.woff2?v=1b1a8131") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-700-normal.woff2?v=35f8aec5") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  color-scheme: dark;
  --bg:        #05070a;
  --bg-soft:   #0a0f16;
  --graphite:  #10161f;
  --line:      #1c2733;
  --ice:       #eef4f9;
  --body-c:    #9fb0c0;
  --muted:     #8494a6;
  --blue:      #3d84c0;
  --electric:  #4da3ff;
  --glow:      rgba(77, 163, 255, .45);
  --display:   "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --text:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap:      1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body-c);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--electric); }

h1, h2, h3 {
  font-family: var(--display);
  color: var(--ice);
  line-height: 1.06;
  margin: 0 0 .4em;
  font-weight: 700;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); max-width: 14ch; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.accent { color: var(--electric); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--graphite); color: var(--ice); padding: 12px 18px; z-index: 200; }
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--electric); outline-offset: 3px; border-radius: 2px; }

/* Cabecalho */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s ease, backdrop-filter .35s ease;
}
.site-header.scrolled {
  background: rgba(5, 7, 10, .72);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(28, 39, 51, .6);
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 16px;
}
.brand { flex-shrink: 0; }
.brand img { width: 118px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  color: var(--body-c); text-decoration: none; padding: 6px 4px;
  font-family: var(--display); font-weight: 500; font-size: .92rem;
  letter-spacing: .02em;
}
.site-nav a:hover { color: var(--ice); }
.site-nav .nav-cta {
  color: var(--ice); border: 1px solid var(--line);
  padding: 8px 18px; border-radius: 999px;
  transition: border-color .25s, box-shadow .25s;
}
.site-nav .nav-cta:hover { border-color: var(--electric); box-shadow: 0 0 18px var(--glow); }

/* Linha de voo */
.flight-line {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}
.flight-line path {
  stroke: var(--electric); stroke-width: 1.6; opacity: .5;
  filter: drop-shadow(0 0 6px var(--glow));
}

/* Hero */
.hero { position: relative; height: 300vh; z-index: 2; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }
.hero-poster, .hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-poster img { width: 100%; height: 100%; object-fit: cover; }
.hero-canvas { opacity: 0; transition: opacity .4s ease; filter: contrast(1.04) saturate(1.02); }
.hero-canvas.ready { opacity: 1; }
/* quando o 3D assume, o poster sai de cena para nao duplicar a folha */
.hero-poster { transition: opacity .5s ease; }
.hero-stage.c3d .hero-poster { opacity: 0; }
.lite .hero-stage.c3d .hero-poster { opacity: 1; }
/* Camada que desfoca a cena no inicio e sai de cena quando o brilho comeca */
.hero-blur {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0; visibility: hidden;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  will-change: opacity;
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(5,7,10,.55) 100%);
}

.hero-copy {
  position: absolute; inset: auto 0 auto 0; top: 50%;
  transform: translateY(-50%);
  text-align: center; padding: 0 28px;
  opacity: 0; will-change: opacity, transform;
}
.hero-copy-title { opacity: 1; }
/* translate em vez de margem: sobe o logo sem mexer no centro do bloco */
.hero-logo { width: min(240px, 44.8vw); height: auto; margin: 0 auto 26px; transform: translateY(-20px); }
.hero-copy-title h1 {
  font-weight: 300; letter-spacing: -.005em;
  width: fit-content; max-width: min(16ch, 90vw);
  margin-inline: auto; text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0,0,0,.9);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 22px;
  padding: 24px 40px;
}
.hero-logo { filter: drop-shadow(0 2px 14px rgba(5,7,10,.9)); }
/* Fica colado no rodape do palco e acompanha toda a hero:
   sai do bloco do titulo justamente para nao sumir com ele. */
.scroll-hint {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 34px;
  width: fit-content; margin: 0; text-align: center; color: var(--ice);
  background: rgba(5,7,10,.86); border-radius: 999px; padding: 10px 22px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--display); font-weight: 500; font-size: .85rem;
  letter-spacing: .22em; text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0,0,0,.9);
  pointer-events: none;
}
.scroll-hint-line {
  display: block; width: 1px; height: 44px; margin: 0 auto 14px;
  background: linear-gradient(to bottom, transparent, var(--electric));
  animation: hintPulse 2.2s ease-in-out infinite;
}
@keyframes hintPulse { 0%,100% { opacity: .35; transform: scaleY(.7); } 50% { opacity: 1; transform: scaleY(1); } }

.manifesto, .reveal-line {
  width: fit-content; max-width: min(26ch, 88vw);
  margin-inline: auto;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 30px 44px;
}
.manifesto {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  color: var(--ice);
  text-shadow: 0 2px 30px rgba(0,0,0,.9);
}
.reveal-line {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.6rem, 4.4vw, 3rem); color: var(--ice);
  line-height: 1.15;
  text-shadow: 0 2px 30px rgba(0,0,0,.9);
}
.reveal-line strong { color: var(--ice); font-weight: 300; }
.reveal-divisions {
  display: block; margin-top: .55em;
  font-size: max(.78rem, .42em); font-weight: 300; letter-spacing: .14em;
  text-transform: uppercase; color: var(--body-c);
}

/* Blocos */
.block { position: relative; padding: 130px 0 140px; z-index: 2; }
.fold-top {
  position: absolute; top: -1px; left: 0; right: 0; height: 90px;
  background: linear-gradient(115deg, transparent 49.6%, rgba(77,163,255,.18) 49.9%, transparent 50.3%);
  pointer-events: none;
}
.eyebrow {
  font-family: var(--display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em; font-size: .8rem;
  color: var(--electric); margin-bottom: 1.2em;
}
.support { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--body-c); max-width: 44ch; }


/* Ventures */
.block-ventures { background: linear-gradient(to bottom, var(--bg), var(--bg-soft)); }
.venture-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 56px; }
.venture-card {
  position: relative; display: block; min-height: 380px;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  text-decoration: none; color: inherit; isolation: isolate;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.venture-card:hover { border-color: rgba(77,163,255,.5); transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 40px rgba(77,163,255,.08); }
.venture-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background-size: cover; background-position: center;
  opacity: .55; transition: opacity .4s ease, transform .6s ease; z-index: -1;
  background-color: var(--graphite);
}
.venture-card:hover .venture-bg { opacity: .75; transform: scale(1.04); }
.venture-info {
  position: absolute; inset: auto 0 0 0; padding: 26px 28px;
  background: linear-gradient(to top, rgba(5,7,10,.97) 0%, rgba(5,7,10,.95) 60%, rgba(5,7,10,.72) 85%, rgba(5,7,10,0) 100%);
}
.venture-info h3 { margin-bottom: .25em; }
.venture-info p { color: var(--body-c); font-size: .98rem; max-width: 40ch; }
.venture-link {
  font-family: var(--display); font-weight: 700; font-size: .9rem;
  color: var(--electric); letter-spacing: .04em;
}
.orbit { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.orbit i {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: var(--electric); box-shadow: 0 0 10px var(--glow);
  top: 50%; left: 50%;
  animation: orbitSpin 14s linear infinite;
}
.orbit i:nth-child(2) { animation-duration: 21s; animation-delay: -6s; width: 3px; height: 3px; }
.orbit i:nth-child(3) { animation-duration: 29s; animation-delay: -13s; width: 4px; height: 4px; opacity: .6; }
@keyframes orbitSpin {
  from { transform: rotate(0deg) translateX(170px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(170px) rotate(-360deg); }
}

/* Games */
.block-games { background: var(--bg-soft); overflow: clip; }
.games-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease; z-index: 0;
}
.games-bg.on { opacity: .22; }
.games-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.games-note { color: var(--muted); font-size: .92rem; margin-top: 2em; }
.phone-col { margin: 0 auto; width: min(340px, 82vw); }
.phone-wrap { position: relative; width: 100%; aspect-ratio: 955 / 1930; }
/* recorte com fundo transparente: a sombra segue a silhueta do aparelho */
.phone-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  filter: drop-shadow(0 26px 54px rgba(0,0,0,.6)) drop-shadow(0 0 34px rgba(77,163,255,.14));
  pointer-events: none;
}
.phone-canvas {
  position: absolute; left: 10.2%; top: 5.35%; width: 79.6%; height: 84.1%;
  border-radius: 14px;
  touch-action: none;
  background: #05070a;
}
.phone-hint {
  margin: 18px auto 0; width: fit-content;
  font-family: var(--display); font-weight: 500; font-size: .82rem;
  letter-spacing: .04em; color: var(--body-c);
  background: rgba(10,15,22,.65); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 18px;
  backdrop-filter: blur(8px);
  animation: hintGlow 2.4s ease-in-out infinite;
}
.phone-hint[hidden] { display: none; }
@keyframes hintGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(77,163,255,0); }
  50% { box-shadow: 0 0 22px rgba(77,163,255,.35); }
}

/* Inteligencia */
.block-intel { background: linear-gradient(to bottom, var(--bg-soft), var(--bg)); }
.mesh-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; z-index: 0; }
.btn-line {
  display: inline-block; margin-top: 34px;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  color: var(--ice); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 15px 34px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.btn-line:hover { border-color: var(--electric); box-shadow: 0 0 26px var(--glow); transform: translateY(-2px); }

/* CTA final */
.block-cta { background: var(--bg); padding-bottom: 170px; }
.cta-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; }
.btn-copy {
  position: relative; display: inline-block; margin-top: 26px;
  max-width: 100%; overflow-wrap: anywhere;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  color: var(--bg); background: var(--ice); text-decoration: none;
  border-radius: 14px; padding: 20px clamp(18px, 4vw, 34px);
  transition: box-shadow .25s, transform .25s;
}
.btn-copy:hover { box-shadow: 0 0 44px var(--glow); transform: translateY(-2px); }
.btn-copy-done {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--electric); color: var(--bg); border-radius: 14px;
  opacity: 0; transition: opacity .25s ease;
}
.btn-copy.copied .btn-copy-done { opacity: 1; }
.cta-visual {
  min-height: 300px; border-radius: 18px; border: 1px solid var(--line);
  background-size: cover; background-position: center; opacity: .8;
  background-color: var(--graphite);
}

/* Rodape */
.site-footer { border-top: 1px solid var(--line); padding: 60px 0 50px; position: relative; z-index: 2; background: var(--bg); }
.footer-logo { width: 110px; margin-bottom: 24px; }
.footer-legal p { margin: 0 0 4px; color: var(--muted); font-size: .87rem; }
.footer-legal strong { color: var(--body-c); font-weight: 600; }
.footer-legal a { color: var(--muted); display: inline-block; padding: 4px 0; }
.footer-copy { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

/* Modo leve: sem scrub, hero estatica com manifesto empilhado */
.lite .hero { height: auto; }
.lite .hero-stage {
  position: relative; height: auto; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  gap: 40px; padding: 16vh 0 12vh;
}
.lite .hero-canvas { display: none; }
/* sem rolagem para limpar o desfoque, a camada nao pode existir no modo leve */
.lite .hero-blur { display: none; }
.lite .hero-copy { position: static; transform: none; opacity: 1; }
/* no modo leve o palco e uma coluna: o aviso volta ao fluxo para nao sobrepor */
.lite .scroll-hint { position: static; transform: none; margin: 0 auto; }
.lite .manifesto, .lite .reveal-line { padding: 0 28px; margin: 0 auto; }

/* Responsivo */
@media (max-width: 960px) {
  .venture-cards, .games-grid, .cta-grid { grid-template-columns: 1fr; }
  .games-grid { gap: 40px; }
  .orbit i { animation-name: orbitSpinSm; }
  @keyframes orbitSpinSm {
    from { transform: rotate(0deg) translateX(130px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(130px) rotate(-360deg); }
  }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .block { padding: 84px 0 92px; }
  .header-inner { min-height: 60px; }
  .brand img { width: 96px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: .8rem; }
  .site-nav .nav-cta { padding: 6px 12px; }
  .venture-card { min-height: 320px; }
  .flight-line path { stroke-width: 1.2; }
}
@media (max-width: 520px) {
  .header-inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; row-gap: 6px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 8px; }
}
/* Depois do bloco de 520px de proposito: em 320px os quatro itens somavam
   mais que a largura util e o botao Contato saia da tela. */
@media (max-width: 360px) {
  .header-inner { padding-left: 12px; padding-right: 12px; gap: 6px; }
  .site-nav { gap: 6px; }
  .site-nav a { font-size: .78rem; letter-spacing: 0; padding: 6px 2px; }
  .site-nav .nav-cta { padding: 6px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint-line, .orbit i, .phone-hint { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* Impressao: o rodape carrega razao social e CNPJ, arquivar em PDF precisa funcionar */
@media print {
  .footer-logo { display: none !important; }
  .site-footer { border-top: 1px solid #999; }
  .footer-legal strong, .footer-legal p, .footer-legal a {
    color: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .hero, .flight-line, .site-header, .phone-col, .mesh-canvas,
  .games-bg, .cta-visual, .venture-bg, .orbit, .fold-top, .skip-link { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  h1, h2, h3, .accent, .eyebrow, .footer-legal strong { color: #000 !important; }
  .support, p, .footer-legal p, .footer-legal a, .footer-copy, .games-note { color: #222 !important; }
  .block { padding: 24px 0; page-break-inside: avoid; }
  .venture-info { position: static; background: none !important; }
  .venture-card { min-height: 0 !important; border: 1px solid #ccc; }
  .btn-copy { background: none !important; color: #000 !important; padding: 0; font-size: 1rem; }
  .btn-copy-done { display: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* Pagina 404: sem style inline, para a CSP poder proibir estilo embutido */
.erro-404 { min-height: 100svh; display: flex; align-items: center; }
.erro-404 img { width: 150px; margin-bottom: 40px; }
