/* C8 Studio — site novo. Linguagem do DESIGN.md (Auros) com as cores do logo C8. */
:root {
  --abyss: #050d12;      /* canvas */
  --deep: #03090d;       /* superfície afundada (rodapé) */
  --kelp: #0b1b23;       /* card elevado */
  --kelp-2: #0f2530;
  --line: rgba(88, 200, 224, 0.16);
  --white: #ffffff;
  --mist: #e8f7fb;       /* texto de destaque */
  --silver: #93aab5;     /* texto secundário */
  --accent: #58c8e0;     /* ciano do logo */
  --brand: #1b7896;
  --dark: #126280;
  --pale: #a5e6f5;       /* números grandes / destaque */
  --grad-bio: linear-gradient(90deg, #126280 0%, #58c8e0 55%, #a5e6f5 100%);
  --grad-aurora: linear-gradient(90deg, #a5e6f5 0%, #e8f7fb 40%, #ffffff 55%, #58c8e0 100%);
  --r-card: 16px;
  --r-sm: 6px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1360px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--abyss); color-scheme: dark; }
body { background: var(--abyss); color: var(--silver); font: 400 16px/1.4 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(var(--maxw), calc(100% - 64px)); margin: 0 auto; position: relative; }
.eyebrow { font: 500 12px/1.4 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); }
.eyebrow.dim { color: var(--silver); }
h1, h2, h3 { color: var(--white); font-weight: 500; line-height: 1; }
h2 { font-size: clamp(40px, 5.2vw, 72px); letter-spacing: -0.04em; }
h3 { font-size: clamp(26px, 2.4vw, 36px); letter-spacing: -0.02em; }
.lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--silver); max-width: 560px; }

/* botões: 6px de raio, gradiente só no CTA principal */
.btn { display: inline-flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: var(--r-sm); font: 500 13px/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; transition: transform .25s ease, background-color .25s ease, color .25s ease; }
.btn svg { width: 12px; height: 12px; transition: transform .25s ease; }
.btn:hover svg { transform: translate(3px, -3px); }
.btn:active { transform: scale(.98); }
.btn-grad { background: var(--grad-aurora); color: #062029; }
.btn-ghost { color: var(--white); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.btn-ghost:hover { background: rgba(88,200,224,.08); }

/* ---------- navegação ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 76px; display: flex; align-items: center; transition: background-color .3s ease, backdrop-filter .3s ease; }
.nav.solid { background: rgba(5, 13, 18, .78); backdrop-filter: blur(14px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.nav .logo img { height: 30px; width: auto; }
.nav ul { display: flex; gap: 30px; list-style: none; }
.nav ul a { font: 400 12px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--silver); transition: color .2s; }
.nav ul a:hover, .nav ul a.hot { color: var(--white); }
.nav ul a.hot::after { content: " ↗"; color: var(--accent); }
.nav .btn { padding: 14px 18px; font-size: 12px; }
.burger { display: none; background: none; border: 0; color: var(--white); width: 44px; height: 44px; }

/* ---------- linhas-guia (camada sobre a página toda) ---------- */
#guides { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 1; overflow: visible; }
#guides path { fill: none; vector-effect: non-scaling-stroke; }
main, header, footer { position: relative; }
section { position: relative; z-index: 2; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 150px 0 0; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 78%, rgba(27,120,150,.30), transparent 70%), radial-gradient(40% 30% at 50% 100%, rgba(88,200,224,.18), transparent 70%); pointer-events: none; }
.hero .eyebrow { margin-bottom: 26px; position: relative; }
.hero h1 { font-size: clamp(46px, 6.4vw, 96px); letter-spacing: -0.045em; max-width: 1000px; position: relative; }
.hero h1 em { font-style: normal; background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 28px auto 38px; text-align: center; position: relative; }
.hero .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.logo-lines { position: relative; width: min(860px, 92vw); margin-top: 34px; aspect-ratio: 1300 / 700; }
.logo-lines svg { width: 100%; height: 100%; overflow: visible; }
.logo-lines .ol { fill: none; stroke: var(--accent); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.logo-lines .ol.b { stroke: var(--pale); opacity: .45; }
.logo-lines .ol.c { stroke: var(--brand); opacity: .7; }
.logo-lines .cons { fill: none; stroke: rgba(165,230,245,.22); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 4 8; }
.logo-lines .node { fill: var(--abyss); stroke: var(--accent); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-62%); font: 400 11px var(--font); letter-spacing: .2em; color: var(--silver); text-transform: uppercase; }

/* ---------- texto gigante ---------- */
.kinetic { padding: 120px 0 40px; overflow: hidden; white-space: nowrap; }
.kinetic p { display: inline-block; padding: 0 0.06em 0.12em; font: 500 clamp(110px, 17vw, 300px)/0.95 var(--font); letter-spacing: -0.05em; white-space: nowrap; background: linear-gradient(90deg, #ffffff 0%, #a5e6f5 45%, #58c8e0 75%, #1b7896 100%); -webkit-background-clip: text; background-clip: text; color: transparent; will-change: transform; }

/* ---------- manifesto (palavra a palavra) ---------- */
.statement { padding: 120px 0 160px; }
.statement p { font: 500 clamp(32px, 4.2vw, 64px)/1.08 var(--font); letter-spacing: -0.035em; color: var(--white); max-width: 1180px; margin: 0 auto; text-align: center; }
.statement .w { opacity: .14; transition: opacity .2s linear; }

/* ---------- trabalhos ---------- */
.works { padding: 40px 0 120px; }
.works .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 90px; }
.works .head .lead { max-width: 420px; }
.work-list { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 120px; }
.work { grid-column: span 4; position: relative; }
.work:nth-child(6n+1) { grid-column: 1 / span 4; }
.work:nth-child(6n+2) { grid-column: 9 / span 4; margin-top: 180px; }
.work:nth-child(6n+3) { grid-column: 5 / span 4; margin-top: -60px; }
.work:nth-child(6n+4) { grid-column: 2 / span 4; }
.work:nth-child(6n+5) { grid-column: 8 / span 4; margin-top: 120px; }
.work:nth-child(6n+6) { grid-column: 5 / span 4; margin-top: -40px; }
.work .media { position: relative; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 9 / 16; background: var(--kelp); clip-path: inset(0 0 100% 0 round 16px); }
.work .media video, .work .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.work:hover .media video { transform: scale(1.03); }
.work .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 18px; opacity: 0; transform: translateY(8px); }
.work .meta b { font: 500 20px/1.2 var(--font); color: var(--white); letter-spacing: -0.02em; }
.work .meta span { font: 400 11px/1.4 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); text-align: right; }
.work .dot { position: absolute; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--abyss); border: 1.5px solid var(--accent); left: 50%; margin-left: -9px; z-index: 3; opacity: 0; }

/* ---------- serviços ---------- */
.services { padding: 120px 0; }
.services .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.services .cards { display: flex; flex-direction: column; gap: 16px; margin-top: 48px; }
.svc { display: block; background: var(--kelp); border-radius: var(--r-card); padding: 40px 36px; position: relative; transition: background-color .3s ease, transform .3s ease; }
.svc:hover { background: var(--kelp-2); transform: translateY(-2px); }
.svc h3 { padding-right: 56px; }
.svc p { margin-top: 14px; max-width: 520px; }
.svc .arr { position: absolute; top: 36px; right: 32px; width: 32px; height: 32px; border-radius: var(--r-sm); background: rgba(27,120,150,.45); display: grid; place-items: center; color: var(--white); }
.svc .arr svg { width: 12px; height: 12px; }
.svc.games { background: linear-gradient(135deg, #0f2a35 0%, #0b1b23 60%); box-shadow: inset 0 0 0 1px rgba(88,200,224,.35); }
.services .diagram { position: sticky; top: 120px; aspect-ratio: 1; }
.services .diagram svg { width: 100%; height: 100%; overflow: visible; }

/* ---------- números ---------- */
.stats { padding: 120px 0; text-align: center; }
.stats .lead { margin: 20px auto 56px; text-align: center; }
.bento { display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; text-align: left; }
.stat { background: var(--kelp); border-radius: var(--r-card); padding: 32px 30px; display: flex; flex-direction: column; justify-content: space-between; min-height: 230px; }
.stat .eyebrow { color: var(--mist); }
.stat b { font: 500 clamp(56px, 6vw, 92px)/1 var(--font); letter-spacing: -0.046em; color: var(--pale); margin-top: 40px; }
.stat.big { grid-row: span 2; background: linear-gradient(180deg, #a5e6f5 0%, #58c8e0 100%); }
.stat.big .eyebrow { color: #06303d; }
.stat.big b { color: #04222b; font-size: clamp(80px, 9vw, 150px); }

/* ---------- jogos ---------- */
.games-band { padding: 60px 0 120px; }
.games-card { border-radius: var(--r-card); background: var(--kelp); overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; min-height: 520px; position: relative; }
.games-card .txt { padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; gap: 26px; position: relative; z-index: 2; }
.games-card .txt p { max-width: 440px; }
.games-card .vids { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 28px; }
.games-card .vids { align-items: center; }
.games-card .vids video { width: 100%; aspect-ratio: 9 / 16; height: auto; max-height: 470px; object-fit: cover; border-radius: 12px; }
.games-card .vids video:nth-child(2) { transform: translateY(36px); }

/* ---------- depoimentos ---------- */
.quotes { padding: 120px 0; }
.quotes .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.quote { background: var(--kelp); border-radius: var(--r-card); padding: 32px 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.quote p { color: #e3eef2; font-size: 16px; line-height: 1.5; }
.quote cite { font: 500 12px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-style: normal; }

/* ---------- clientes ---------- */
.clients { padding: 40px 0 120px; overflow: hidden; }
.marquee { display: flex; gap: 72px; white-space: nowrap; margin-top: 36px; width: max-content; }
.marquee span { font: 500 clamp(28px, 3vw, 44px)/1 var(--font); letter-spacing: -0.03em; color: rgba(232,247,251,.38); transition: color .3s; }
.marquee span:hover { color: var(--white); }

/* ---------- contato ---------- */
.contact { padding: 120px 0 160px; text-align: center; }
.contact h2 { max-width: 900px; margin: 0 auto; }
.contact .lead { margin: 26px auto 40px; text-align: center; }
.contact .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
footer { background: var(--deep); padding: 90px 0 48px; z-index: 2; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
footer img { height: 34px; width: auto; }
footer h4 { font: 500 12px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); margin-bottom: 18px; }
footer li { list-style: none; margin-bottom: 10px; }
footer li a:hover { color: var(--white); }
footer .base { margin-top: 72px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; font-size: 13px; }

/* ---------- voltar ao topo ---------- */
.to-top { position: fixed; left: 24px; bottom: 24px; z-index: 60; display: inline-flex; align-items: center; gap: 14px; padding: 18px 22px;
  border: 0; border-radius: var(--r-sm); background: var(--grad-aurora); color: #062029;
  font: 500 13px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top.show:active { transform: scale(.98); }
.to-top:hover svg { transform: translateY(-3px); }
.to-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.to-top svg { width: 12px; height: 12px; transition: transform .25s ease; }

/* ---------- aviso de cookies ---------- */
.cookies { position: fixed; right: 24px; bottom: 24px; z-index: 70; width: min(400px, calc(100vw - 32px)); background: var(--kelp); border-radius: var(--r-card); padding: 22px 22px 20px; box-shadow: inset 0 0 0 1px rgba(88,200,224,.22); }
.cookies[hidden] { display: none; }
.cookies p { font-size: 14px; line-height: 1.5; color: #c9dbe1; }
.ck-btns { display: flex; gap: 10px; margin-top: 16px; }
.ck-btns .btn { flex: 1; justify-content: center; padding: 15px 16px; border: 0; cursor: pointer; }
.ck-btns .btn-ghost { background: transparent; }
.ck-btns .btn-ghost:hover { background: rgba(88,200,224,.08); }
footer .base a { text-decoration: underline; text-underline-offset: 3px; }
footer .base a:hover { color: var(--white); }

/* ---------- celular ---------- */
@media (max-width: 900px) {
  .wrap { width: calc(100% - 32px); }
  .nav ul, .nav .btn { display: none; }
  .burger { display: grid; place-items: center; }
  .nav.open ul { display: flex; flex-direction: column; position: fixed; top: 76px; left: 0; right: 0; background: var(--abyss); padding: 28px 16px 36px; gap: 22px; }
  .nav.open ul a { font-size: 15px; }
  .hero { padding-top: 120px; }
  .scroll-cue { display: none; }
  .to-top { left: 16px; bottom: 16px; width: 48px; height: 48px; padding: 0; justify-content: center; }
  .to-top span { display: none; }
  .cookies { right: 16px; left: 16px; bottom: 76px; width: auto; }
  .works .head { flex-direction: column; align-items: flex-start; margin-bottom: 56px; }
  .work-list { grid-template-columns: 1fr 1fr; column-gap: 14px; row-gap: 56px; }
  .work, .work:nth-child(n) { grid-column: span 1; margin-top: 0; }
  .work:nth-child(even) { margin-top: 70px; }
  .work .meta { flex-direction: column; gap: 4px; }
  .work .meta b { font-size: 16px; }
  .work .meta span { text-align: left; font-size: 10px; }
  .services .grid { grid-template-columns: 1fr; }
  .services .diagram { display: none; }
  .svc { padding: 30px 24px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .stat.big { grid-row: auto; grid-column: span 2; }
  .stat { min-height: 170px; padding: 24px 20px; }
  .games-card { grid-template-columns: 1fr; }
  .games-card .txt { padding: 40px 26px; }
  .quotes .row { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  footer .base { flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .work .media { clip-path: none; }
  .work .meta, .work .dot { opacity: 1; transform: none; }
  .statement .w { opacity: 1; }
}
