  :root {
    /* paleta dinâmica — o JS interpola noite -> amanhecer no scroll */
    --c-rgb: 0,229,255;      /* acento 1: ciano (noite) -> dourado (dia) */
    --m-rgb: 255,47,208;     /* acento 2: magenta (noite) -> laranja (dia) */
    --cyan: rgb(var(--c-rgb));
    --magenta: rgb(var(--m-rgb));
    --bg: #0D0D0D;
    --text: #EDEDED;
    --muted: #8A8F98;
    --surface: rgba(255,255,255,0.035);
    --border: rgba(var(--c-rgb), 0.18);
    --border-soft: rgba(255,255,255,0.07);
    --glow-c: 0 0 24px rgba(var(--c-rgb), 0.35);
    --glow-m: 0 0 24px rgba(var(--m-rgb), 0.3);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; overflow-x: clip; }
  body {
    overflow-x: clip;
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    transition: background 0.4s linear;
  }
  ::selection { background: var(--cyan); color: #000; }
  h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.06; }
  .mono { font-family: 'Fira Code', monospace; }
  img { max-width: 100%; display: block; }
  a { text-decoration: none; color: inherit; }
  .wrap { max-width: 1200px; margin: 0 auto; padding: 0 30px; }

  .neon-c { color: var(--cyan); text-shadow: 0 0 16px rgba(var(--c-rgb), 0.55); }
  .neon-m { color: var(--magenta); text-shadow: 0 0 16px rgba(var(--m-rgb), 0.5); }
  .grad { background: linear-gradient(100deg, var(--cyan), var(--magenta)); -webkit-background-clip: text; background-clip: text; color: transparent; }

  /* glitch sutil nas palavras-chave */
  .glitch { position: relative; display: inline-block; }
  .glitch::before, .glitch::after { content: attr(data-t); position: absolute; left: 0; top: 0; width: 100%; overflow: hidden; pointer-events: none; }
  .glitch::before { color: var(--cyan); clip-path: inset(0 0 55% 0); transform: translate(-2px,-1px); opacity: 0.65; animation: gl1 4.2s infinite steps(2); }
  .glitch::after { color: var(--magenta); clip-path: inset(58% 0 0 0); transform: translate(2px,1px); opacity: 0.65; animation: gl2 4.8s infinite steps(2); }
  @keyframes gl1 { 0%,92%,100% { transform: translate(-2px,-1px); } 94% { transform: translate(-5px,-2px); } 97% { transform: translate(3px,1px); } }
  @keyframes gl2 { 0%,90%,100% { transform: translate(2px,1px); } 93% { transform: translate(5px,2px); } 96% { transform: translate(-3px,-1px); } }

  /* ===== CÉU (estrelas -> amanhecer) ===== */
  #sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
  .scanlines { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.32;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.25) 0px, rgba(0,0,0,0.25) 1px, transparent 1px, transparent 3px); }
  .vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none;
    background: radial-gradient(ellipse at 50% 42%, transparent 46%, rgba(0,0,0,0.48) 100%); }
  .cursor-glow { position: fixed; width: 460px; height: 460px; border-radius: 50%; pointer-events: none; z-index: 1; transform: translate(-50%,-50%); background: radial-gradient(circle, rgba(var(--c-rgb),0.06), transparent 62%); opacity: 0; transition: opacity 0.4s; }
  main, header.topo, footer { position: relative; z-index: 2; }

  .moon { display: inline-block; color: var(--cyan); filter: drop-shadow(0 0 8px rgba(var(--c-rgb),0.6)); }
  .moon svg { display: block; width: 100%; height: 100%; }
  .moon svg > circle { fill: var(--cyan); } /* só o disco externo — não o círculo da máscara */

  /* ===== BOOT ===== */
  #boot { position: fixed; inset: 0; z-index: 100; background: radial-gradient(ellipse at 50% 42%, #131318 0%, #0D0D0D 62%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; transition: opacity 0.8s ease; }
  #boot.done { opacity: 0; pointer-events: none; }
  #boot .bmoon { width: 92px; height: 92px; animation: bootRise 1s cubic-bezier(.2,.7,.2,1) both; }
  #boot .bword { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.7rem; letter-spacing: 12px; padding-left: 12px; animation: bootRise 1s .12s both; }
  @keyframes bootRise { 0% { opacity: 0; transform: translateY(12px) scale(0.96); } 100% { opacity: 1; transform: none; } }
  #boot .bbar { width: min(300px,66vw); height: 2px; background: rgba(255,255,255,0.1); overflow: hidden; }
  #boot .bbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #00E5FF, #FF2FD0); box-shadow: 0 0 12px #00E5FF; animation: bootFill 2.1s ease forwards; }
  @keyframes bootFill { to { width: 100%; } }
  #boot .btxt { font-family: 'Fira Code', monospace; font-size: 0.72rem; letter-spacing: 3px; color: var(--muted); }

  /* ===== NAV ===== */
  header.topo { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
  header.topo.rolou { background: rgba(13,13,13,0.7); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
  .navbar { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 14px 30px; }
  .brand { display: flex; align-items: center; gap: 4px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.32rem; letter-spacing: 5px; }
  .brand .moon { width: 1.04em; height: 1.04em; }
  .navbar nav { display: flex; justify-content: center; gap: 28px; }
  .navbar nav a { font-family: 'Fira Code', monospace; font-size: 0.8rem; color: var(--muted); position: relative; transition: color 0.2s; }
  .navbar nav a::before { content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1.5px; background: linear-gradient(90deg, var(--cyan), var(--magenta)); box-shadow: 0 0 8px rgba(var(--c-rgb),0.7); transition: right 0.28s; }
  .navbar nav a:hover { color: var(--text); }
  .navbar nav a:hover::before { right: 0; }
  .btn { display: inline-flex; align-items: center; gap: 8px; font-family: 'Fira Code', monospace; font-weight: 500; font-size: 0.8rem; letter-spacing: 1px; padding: 12px 22px; border-radius: 8px; cursor: pointer; transition: transform 0.18s, box-shadow 0.25s; border: none; }
  .btn-primary { background: var(--cyan); color: #001014; box-shadow: var(--glow-c); font-weight: 600; }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(var(--c-rgb),0.6); }
  .btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
  .btn-ghost:hover { border-color: var(--magenta); color: #fff; box-shadow: var(--glow-m); }
  .cta-short { display: none; }
  /* menu mobile (hambúrguer) */
  .nav-burger { display: none; width: 42px; height: 40px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; background: rgba(var(--c-rgb),0.06); border: 1px solid var(--border); border-radius: 9px; cursor: pointer; padding: 0; }
  .nav-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 6px rgba(var(--c-rgb),0.6); transition: transform 0.25s, opacity 0.2s; }
  .topo.aberto .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .topo.aberto .nav-burger span:nth-child(2) { opacity: 0; }
  .topo.aberto .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  @media (max-width: 920px) {
    .navbar { grid-template-columns: auto 1fr auto auto; padding: 12px 18px; }
    .brand { font-size: 1.12rem; letter-spacing: 3px; }
    .nav-cta { justify-self: end; } .cta-full { display: none; } .cta-short { display: inline; }
    .nav-burger { display: inline-flex; }
    .navbar nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(13,13,13,0.96); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); padding: 6px 0 12px; }
    .navbar nav a { padding: 13px 26px; font-size: 0.9rem; }
    .navbar nav a::before { display: none; }
    .topo.aberto .navbar nav { display: flex; }
    .topo.aberto { background: rgba(13,13,13,0.92); backdrop-filter: blur(16px); border-bottom-color: var(--border); }
  }

  /* ===== HERO ===== */
  .hero { min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 116px 24px 100px; position: relative; text-align: center; }
  /* ===== LUA nítida (SVG) + órbita + sparkles ===== */
  .lua-wrap { position: relative; display: flex; justify-content: center; margin-bottom: clamp(30px, 5vh, 52px); will-change: transform, opacity; }
  .lua { position: relative; width: clamp(190px, 30vh, 280px); aspect-ratio: 1; animation: luaFloat 7.5s ease-in-out infinite; transition: margin 0.4s ease-out; }
  @keyframes luaFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
  .lua::before { content: ''; position: absolute; inset: -22%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--c-rgb),0.2), rgba(var(--m-rgb),0.06) 55%, transparent 72%); filter: blur(6px); }
  .lua .corpo { position: relative; z-index: 1; width: 100%; height: 100%; filter: drop-shadow(0 0 36px rgba(var(--c-rgb),0.35)); }
  .orbita { position: absolute; inset: -14%; border-radius: 50%; border: 1px dashed rgba(var(--c-rgb),0.18); animation: orbitaSpin 11s linear infinite; z-index: 2; }
  @keyframes orbitaSpin { to { transform: rotate(360deg); } }
  .orbita .cometa { position: absolute; top: -5px; left: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 12px rgba(var(--m-rgb),0.9), 0 0 26px rgba(var(--m-rgb),0.5); }
  .orbita .cometa::after { content: ''; position: absolute; right: 9px; top: 3px; width: 36px; height: 2.5px; border-radius: 3px; background: linear-gradient(90deg, transparent, rgba(var(--m-rgb),0.8)); }
  .spark { position: absolute; width: 7px; height: 7px; z-index: 2; background: var(--cyan); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: sparkTw 3.2s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(var(--c-rgb),0.9)); }
  .spark.k1 { top: 4%; left: -9%; } .spark.k2 { top: 66%; right: -11%; animation-delay: 1.1s; background: var(--magenta); filter: drop-shadow(0 0 6px rgba(var(--m-rgb),0.9)); }
  .spark.k3 { bottom: -6%; left: 12%; animation-delay: 2s; } .spark.k4 { top: -11%; right: 16%; animation-delay: 0.6s; width: 5px; height: 5px; }
  @keyframes sparkTw { 0%,100% { opacity: 0.15; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1.15); } }

  /* ===== foguete companheiro de scroll ===== */
  #rocketeer { position: fixed; left: 0; top: 0; z-index: 45; width: 62px; height: 62px; pointer-events: none; opacity: 0; transition: opacity 0.9s ease; will-change: transform; }
  #rocketeer.fly { opacity: 1; }
  #rocketeer svg { width: 100%; height: 100%; overflow: visible; }
  #rocketeer .flame { transform-origin: 14px 32px; animation: flick 0.16s linear infinite alternate; }
  @keyframes flick { from { transform: scaleX(1); } to { transform: scaleX(1.4); } }
  @media (max-width: 720px) { #rocketeer { width: 44px; height: 44px; } }

  /* ===== astronauta do gran finale ===== */
  .astro { position: absolute; right: 1%; bottom: 8px; width: clamp(220px, 24vw, 300px); z-index: 3; opacity: 0; transform: translateY(-130px); transition: opacity 0.9s ease, transform 1.3s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
  .astro.on { opacity: 1; transform: translateY(0); }
  .astro-inner { animation: astroFloat 5.5s ease-in-out infinite; }
  @keyframes astroFloat { 0%,100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-10px) rotate(1.4deg); } }
  @media (max-width: 860px) { .astro { position: relative; right: auto; bottom: auto; margin: 40px auto 0; width: clamp(230px, 70vw, 300px); } .astro.on { transform: none; } }
  .hero-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 50% 40%, transparent 46%, rgba(13,13,13,0.45) 82%, rgba(13,13,13,0.75) 100%); }
  .hero-inner { position: relative; z-index: 2; width: 100%; max-width: 900px; margin: 0 auto; }
  .eyebrow { font-family: 'Fira Code', monospace; font-size: 0.74rem; letter-spacing: 5px; color: var(--cyan); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 12px; max-width: 100%; }
  @media (max-width: 680px) { .eyebrow { font-size: 0.6rem; letter-spacing: 2.5px; gap: 8px; } .eyebrow::before, .eyebrow::after { width: 14px; } }
  .eyebrow::before, .eyebrow::after { content: ''; width: 32px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan)); box-shadow: 0 0 8px rgba(var(--c-rgb),0.7); }
  .eyebrow::after { background: linear-gradient(90deg, var(--cyan), transparent); }

  /* registro da madrugada (fica na seção da virada — hero limpo) */
  .nightlog { max-width: 640px; background: rgba(0,0,0,0.45); border: 1px solid var(--border); border-radius: 12px; padding: 22px 26px; margin-bottom: 46px; box-shadow: inset 0 0 30px rgba(var(--c-rgb),0.04); }
  .nightlog .nl-title { font-size: 0.72rem; letter-spacing: 2px; color: var(--magenta); margin-bottom: 12px; }
  .nightlog .nl-line { font-size: 0.8rem; color: var(--text); padding: 7px 0; border-bottom: 1px dashed var(--border-soft); display: flex; gap: 14px; }
  .nightlog .nl-line:last-child { border-bottom: none; }
  .nightlog .nl-line span { color: var(--cyan); flex: 0 0 auto; }

  .hero-word { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 34px); font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(2rem, 6.5vw, 4.4rem); letter-spacing: clamp(6px, 1.6vw, 16px); text-indent: clamp(6px, 1.6vw, 16px); line-height: 1; margin-bottom: 20px; }
  .hero-word .moon { width: 0.82em; height: 0.82em; }
  .hero h1 { font-size: clamp(2.1rem, 5.6vw, 4rem); font-weight: 700; letter-spacing: 0.5px; margin-bottom: 18px; }
  .hero-tag { font-family: 'Fira Code', monospace; font-size: clamp(0.74rem, 1.8vw, 0.95rem); letter-spacing: clamp(2px,1vw,5px); margin-bottom: 20px; }
  .typed-line { font-family: 'Fira Code', monospace; font-size: 0.82rem; color: var(--cyan); min-height: 1.4em; margin-bottom: 26px; opacity: 0.9; }
  .typed-line .tcur { display: inline-block; width: 8px; height: 1em; background: var(--cyan); vertical-align: text-bottom; margin-left: 3px; animation: blink 0.9s steps(1) infinite; box-shadow: 0 0 8px rgba(var(--c-rgb),0.8); }
  @keyframes blink { 50% { opacity: 0; } }
  .hero .sub { max-width: 580px; margin: 0 auto 32px; color: var(--muted); font-size: clamp(1rem,1.8vw,1.12rem); }
  .cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
  /* cena da deriva: astronauta perdido no espaço à esquerda, nave vindo resgatar */
  .deriva { position: absolute; top: 14%; left: clamp(0px, 3%, 40px); width: clamp(150px, 22vw, 230px); z-index: 3; pointer-events: none; transition: opacity 0.5s ease; }
  .deriva.gone { opacity: 0; }
  .deriva svg { width: 100%; height: auto; overflow: visible; display: block; }
  .deriva .corpo-astro { transform-box: fill-box; transform-origin: 50% 50%; animation: derivaFloat 7s ease-in-out infinite; }
  @keyframes derivaFloat { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(5px,-10px) rotate(8deg); } }
  .deriva .nave { animation: navePulse 1.7s ease-in-out infinite; }
  @keyframes navePulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }
  .deriva .mini-flame { transform-box: fill-box; transform-origin: 50% 0%; animation: miniFlick 0.22s linear infinite alternate; }
  @keyframes miniFlick { from { transform: scaleY(1); } to { transform: scaleY(1.45); } }
  /* balão de pensamento LED (borda gradiente ciano→magenta) */
  .pensa { position: absolute; bottom: 97%; left: 2%; white-space: nowrap; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.8px; color: #F2FCFF; border: 1.5px solid transparent; border-radius: 999px; padding: 10px 18px; background: linear-gradient(rgba(4,10,18,0.93), rgba(4,10,18,0.93)) padding-box, linear-gradient(115deg, rgb(var(--c-rgb)), rgb(var(--m-rgb))) border-box; animation: ledPulse 2.4s ease-in-out infinite, pensaFloat 4.5s ease-in-out infinite; }
  .pensa .psol { color: #FFC24B; text-shadow: 0 0 12px rgba(255,178,44,0.85); }
  @keyframes ledPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(var(--c-rgb),0.3), 0 0 18px rgba(var(--m-rgb),0.1), inset 0 0 8px rgba(var(--c-rgb),0.1); }
    50% { box-shadow: 0 0 20px rgba(var(--c-rgb),0.65), 0 0 44px rgba(var(--m-rgb),0.28), inset 0 0 14px rgba(var(--c-rgb),0.22); }
  }
  @keyframes pensaFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
  .pensa::before, .pensa::after { content: ''; position: absolute; background: rgba(4,10,18,0.93); border: 1.5px solid rgba(var(--c-rgb),0.7); border-radius: 50%; box-shadow: 0 0 8px rgba(var(--c-rgb),0.45); }
  .pensa::before { width: 10px; height: 10px; bottom: -15px; left: 36px; }
  .pensa::after { width: 5px; height: 5px; bottom: -25px; left: 46px; }
  @media (max-width: 680px) { .deriva { top: 4%; width: 128px; } .pensa { font-size: 0.68rem; padding: 8px 13px; } }
  /* cue de scroll: o sol é lá embaixo */
  .leve-cue { margin-top: 36px; font-family: 'Fira Code', monospace; font-size: 0.66rem; letter-spacing: 2.5px; color: var(--cyan); opacity: 0.85; transition: opacity 0.5s ease; }
  .leve-cue .solzao { color: #FFC24B; font-weight: 600; text-shadow: 0 0 12px rgba(255,178,44,0.75); }
  .leve-cue .seta { display: inline-block; animation: desce 1.6s ease-in-out infinite; }
  @keyframes desce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
  .leve-cue.gone { opacity: 0; }

  /* ===== MARQUEE ===== */
  .marquee { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: rgba(255,255,255,0.015); overflow: hidden; padding: 14px 0; position: relative; z-index: 2; }
  .marquee-track { display: flex; gap: 44px; width: max-content; animation: desliza 34s linear infinite; font-family: 'Fira Code', monospace; font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
  .marquee-track span::before { content: '// '; color: var(--magenta); }
  @keyframes desliza { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  /* ===== SECTIONS ===== */
  section { padding: 114px 0; position: relative; }
  .sec-label { font-family: 'Fira Code', monospace; font-size: 0.76rem; letter-spacing: 3px; color: var(--muted); margin-bottom: 16px; }
  .sec-label b { color: var(--cyan); font-weight: 500; }
  .sec-head { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 58px; }
  @media (min-width: 920px) { .sec-head { grid-template-columns: 1.3fr 0.7fr; align-items: end; } .sec-head .meta { text-align: right; } }
  .sec-head h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); font-weight: 700; }
  .sec-head .meta { color: var(--muted); font-size: 0.95rem; }

  .revela { opacity: 0; transform: translateY(30px); filter: blur(5px); transition: opacity 0.8s, transform 0.8s cubic-bezier(.2,.7,.2,1), filter 0.8s; }
  .revela.on { opacity: 1; transform: none; filter: blur(0); }
  .d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.16s; } .d3 { transition-delay: 0.24s; }

  .hudframe { position: relative; }
  .hudframe::before, .hudframe::after { content: ''; position: absolute; width: 12px; height: 12px; border: 1.5px solid var(--cyan); opacity: 0; transition: opacity 0.3s; z-index: 3; }
  .hudframe::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
  .hudframe::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
  .hudframe:hover::before, .hudframe:hover::after { opacity: 1; }

  /* métricas */
  .metricas { padding: 74px 0; }
  .metricas-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
  @media (min-width: 720px) { .metricas-grid { grid-template-columns: repeat(3, 1fr); } }
  .metrica { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 12px; padding: 30px 28px; }
  .metrica .num { font-family: 'Space Grotesk', sans-serif; font-size: 2.5rem; font-weight: 700; color: var(--cyan); text-shadow: 0 0 20px rgba(var(--c-rgb),0.3); }
  .metrica .num [data-count] { display: inline-block; text-align: right; font-variant-numeric: tabular-nums; }
  .metrica .num small { font-size: 1.05rem; margin-left: 5px; color: var(--muted); text-shadow: none; }
  .metrica p { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }

  /* manifesto */
  .manifesto { padding: 88px 0; }
  .manifesto .wrap { text-align: center; }
  .manifesto .mono { color: var(--magenta); font-size: 0.76rem; letter-spacing: 4px; margin-bottom: 24px; }
  .manifesto p { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: clamp(1.5rem, 3.6vw, 2.6rem); line-height: 1.3; max-width: 900px; margin: 0 auto; }

  /* serviços — cards caprichados */
  .servicos-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
  @media (min-width: 680px) { .servicos-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1000px) { .servicos-grid { grid-template-columns: repeat(3, 1fr); } }
  .servico { position: relative; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 14px; padding: 32px 28px 26px; overflow: hidden; transition: transform 0.25s cubic-bezier(.2,.7,.2,1), border-color 0.25s, box-shadow 0.3s; transform-style: preserve-3d; }
  .servico:hover { border-color: var(--border); box-shadow: 0 18px 44px rgba(0,0,0,0.5), var(--glow-c); }
  .servico::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1.5px; background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), transparent); opacity: 0; transition: opacity 0.3s; }
  .servico:hover::before { opacity: 1; }
  .servico .ico { width: 46px; height: 46px; border-radius: 10px; background: rgba(var(--c-rgb),0.08); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
  .servico .ico svg { width: 22px; height: 22px; stroke: var(--cyan); fill: none; stroke-width: 1.6; }
  .servico .num { font-family: 'Fira Code', monospace; font-size: 0.72rem; color: var(--magenta); position: absolute; top: 26px; right: 26px; }
  .servico h3 { font-size: 1.08rem; margin-bottom: 10px; color: #fff; }
  .servico p { font-size: 0.89rem; color: var(--muted); margin-bottom: 16px; }
  .servico .feats { list-style: none; display: grid; gap: 7px; border-top: 1px dashed var(--border-soft); padding-top: 14px; }
  .servico .feats li { display: flex; align-items: center; gap: 9px; font-family: 'Fira Code', monospace; font-size: 0.74rem; color: var(--text); }
  .servico .feats svg { flex: 0 0 auto; width: 13px; height: 13px; stroke: var(--cyan); fill: none; stroke-width: 2.4; filter: drop-shadow(0 0 4px rgba(var(--c-rgb),0.6)); }

  /* ===== A VIRADA (noite -> sol) ===== */
  #virada { overflow: hidden; }
  #virada .sol { position: absolute; left: 50%; bottom: -34vw; transform: translateX(-50%); width: 68vw; height: 68vw; max-width: 900px; max-height: 900px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(255,200,90,0.32) 0%, rgba(255,140,40,0.16) 42%, transparent 70%);
    opacity: 0; transition: opacity 0.5s; }
  .ganhos-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
  @media (min-width: 760px) { .ganhos-grid { grid-template-columns: repeat(2, 1fr); } }
  .ganho { position: relative; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 14px; padding: 30px 28px; transition: border-color 0.25s, box-shadow 0.3s; overflow: hidden; }
  .ganho:hover { border-color: rgba(var(--m-rgb),0.35); box-shadow: var(--glow-m); }
  .ganho .gtag { font-family: 'Fira Code', monospace; font-size: 0.68rem; letter-spacing: 2px; color: var(--magenta); margin-bottom: 12px; }
  .ganho h3 { font-size: 1.3rem; color: #fff; margin-bottom: 10px; }
  .ganho p { font-size: 0.92rem; color: var(--muted); }
  .ganho .gbar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--cyan), var(--magenta)); opacity: 0.7; }

  /* processo */
  .processo-rail { position: relative; display: grid; grid-template-columns: 1fr; gap: 26px; }
  @media (min-width: 900px) { .processo-rail { grid-template-columns: repeat(4, 1fr); } }
  .processo-rail::before { content: ''; position: absolute; top: 7px; left: 8px; right: 8px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), transparent); opacity: 0.5; display: none; }
  @media (min-width: 900px) { .processo-rail::before { display: block; } }
  .passo { position: relative; padding-top: 30px; }
  .passo .node { position: absolute; top: 0; left: 8px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); box-shadow: 0 0 14px rgba(var(--c-rgb),0.7); }
  .passo .num { font-family: 'Fira Code', monospace; font-size: 0.72rem; color: var(--cyan); }
  .passo h4 { font-size: 1rem; margin: 10px 0; color: #fff; }
  .passo p { font-size: 0.88rem; color: var(--muted); }

  /* ===== QUEM CONSTRÓI ===== */
  .quem-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
  @media (min-width: 880px) { .quem-grid { grid-template-columns: 0.85fr 1.15fr; } }
  .foto-frame { position: relative; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #0a0a0c; box-shadow: 0 24px 60px rgba(0,0,0,0.6), var(--glow-c); }
  .foto-frame::before, .foto-frame::after { content: ''; position: absolute; width: 16px; height: 16px; border: 2px solid var(--cyan); z-index: 4; }
  .foto-frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
  .foto-frame::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
  .foto-frame img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(0.92); }
  .foto-fx { position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(135deg, rgba(var(--c-rgb),0.24), transparent 46%, rgba(var(--m-rgb),0.2));
    mix-blend-mode: screen; }
  .foto-fx::after { content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.28) 0px, rgba(0,0,0,0.28) 1px, transparent 1px, transparent 3px); }
  .foto-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 10px 16px; background: rgba(13,13,13,0.78); backdrop-filter: blur(8px); border-top: 1px solid var(--border); font-size: 0.7rem; letter-spacing: 2px; color: var(--cyan); display: flex; justify-content: space-between; }
  .foto-cap span { color: var(--muted); }
  .foto-ph { display: none; }
  .foto-frame.sem-foto img, .foto-frame.sem-foto .foto-fx { display: none; }
  .foto-frame.sem-foto .foto-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; aspect-ratio: 4/5; text-align: center; padding: 30px; }
  .foto-ph .moon { width: 70px; height: 70px; opacity: 0.8; }
  .foto-ph p { font-family: 'Fira Code', monospace; font-size: 0.74rem; color: var(--muted); line-height: 1.8; }
  .foto-ph p b { color: var(--cyan); font-weight: 500; }

  /* registro de campo — provas reais deslizando */
  .provas { margin-top: 52px; }
  .provas-cap { font-family: 'Fira Code', monospace; font-size: 0.72rem; letter-spacing: 2px; color: var(--cyan); margin-bottom: 16px; }
  .provas-cap span { color: var(--muted); letter-spacing: 1px; margin-left: 8px; }
  /* rolagem nativa: swipe no touch, arrastar com mouse no desktop */
  .provas-mask { overflow-x: auto; overflow-y: hidden; cursor: grab;
    scrollbar-width: none; -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
  .provas-mask::-webkit-scrollbar { display: none; }
  .provas-mask.grabbing { cursor: grabbing; user-select: none; }
  .provas-track { display: flex; width: max-content; }
  .prova { flex: 0 0 auto; width: 258px; margin: 0 18px 0 0; border: 1px solid var(--border-soft); border-radius: 12px; overflow: hidden; background: #0a0a0c; transition: border-color 0.3s; }
  .prova img { width: 100%; height: 190px; object-fit: cover; display: block; filter: grayscale(0.85) contrast(1.05) brightness(0.9); transition: filter 0.35s; -webkit-user-drag: none; }
  .prova img.pv-app { object-position: 50% 62%; }
  .prova img.pv-drip { object-position: 50% 32%; }
  /* hover só em ponteiro fino — no touch o hover "gruda" e trava o efeito */
  @media (hover: hover) and (pointer: fine) {
    .prova:hover { border-color: var(--border); }
    .prova:hover img { filter: none; }
  }
  .prova figcaption { font-family: 'Fira Code', monospace; font-size: 0.62rem; letter-spacing: 1.4px; color: var(--muted); padding: 10px 13px; border-top: 1px solid var(--border-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  @media (max-width: 680px) { .prova { width: 210px; } .prova img { height: 158px; } }

  .quem-info h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 22px; }
  .term { background: rgba(0,0,0,0.45); border: 1px solid var(--border); border-radius: 12px; padding: 26px 28px; font-family: 'Fira Code', monospace; box-shadow: inset 0 0 30px rgba(var(--c-rgb),0.04); }
  .term .tl { display: flex; align-items: center; gap: 8px; color: var(--magenta); font-size: 0.78rem; letter-spacing: 1.5px; margin: 18px 0 7px; }
  .term .tl:first-child { margin-top: 0; }
  .term .tl svg { width: 15px; height: 15px; stroke: var(--cyan); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(var(--c-rgb),0.55)); flex: 0 0 auto; }
  .term p { color: var(--text); font-size: 0.88rem; font-family: 'DM Sans', sans-serif; }
  .skills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
  .skill { display: inline-flex; align-items: center; gap: 9px; font-family: 'Fira Code', monospace; font-size: 0.74rem; color: var(--text); background: var(--surface); border: 1px solid var(--border-soft); border-radius: 8px; padding: 9px 14px; cursor: default; transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s; }
  .skill svg { width: 15px; height: 15px; stroke: var(--muted); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; transition: stroke 0.3s, filter 0.3s; }
  .skill:hover { border-color: rgba(var(--c-rgb),0.5); box-shadow: 0 0 20px rgba(var(--c-rgb),0.22); transform: translateY(-2px); }
  .skill:hover svg { stroke: rgb(var(--c-rgb)); filter: drop-shadow(0 0 6px rgba(var(--c-rgb),0.8)); }

  /* projetos */
  .projetos-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
  @media (min-width: 820px) { .projetos-grid { grid-template-columns: 1.1fr 0.9fr; } }
  .projeto { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 14px; overflow: hidden; transition: transform 0.25s, border-color 0.25s, box-shadow 0.3s; }
  .projeto:hover { transform: translateY(-6px); border-color: var(--border); box-shadow: 0 24px 56px rgba(0,0,0,0.6), var(--glow-c); }
  .projeto .shot { position: relative; overflow: hidden; }
  .projeto .shot img { width: 100%; transition: transform 0.5s; }
  .projeto:hover .shot img { transform: scale(1.04); }
  .projeto .shot::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(13,13,13,0.92)); }
  .projeto .info { padding: 24px 26px 28px; }
  .projeto .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
  .projeto .tag { font-family: 'Fira Code', monospace; font-size: 0.68rem; color: var(--cyan); border: 1px solid var(--border); border-radius: 4px; padding: 3px 10px; }
  .projeto h3 { font-size: 1.12rem; margin-bottom: 8px; color: #fff; }
  .projeto p { font-size: 0.89rem; color: var(--muted); }
  .projeto-slot { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; padding: 44px 38px; background: rgba(var(--c-rgb),0.03); border: 1px dashed var(--border); border-radius: 14px; }
  .projeto-slot .mono { color: var(--magenta); font-size: 0.74rem; letter-spacing: 2px; }
  .projeto-slot h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.24rem; color: #fff; }
  .projeto-slot p { color: var(--muted); font-size: 0.9rem; }

  /* faq */
  .faq-list { display: grid; gap: 12px; max-width: 860px; }
  .faq { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 10px; overflow: hidden; transition: border-color 0.25s; }
  .faq[open] { border-color: var(--border); }
  .faq summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.98rem; color: #fff; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary .plus { flex: 0 0 auto; width: 20px; height: 20px; position: relative; transition: transform 0.3s; }
  .faq summary .plus::before, .faq summary .plus::after { content: ''; position: absolute; background: var(--cyan); box-shadow: 0 0 8px rgba(var(--c-rgb),0.7); }
  .faq summary .plus::before { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
  .faq summary .plus::after { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); transition: opacity 0.3s; }
  .faq[open] summary .plus { transform: rotate(180deg); }
  .faq[open] summary .plus::after { opacity: 0; }
  .faq .ans { padding: 0 24px 22px; color: var(--muted); font-size: 0.92rem; }

  /* cta final */
  .cta-final { text-align: center; }
  .cta-final .painel { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 80px 30px; }
  .cta-final .painel::before { content: ''; position: absolute; top: -40%; left: 50%; width: 60%; height: 80%; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(var(--c-rgb),0.14), transparent 60%); pointer-events: none; }
  .cta-final h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: 16px; font-weight: 700; position: relative; }
  .cta-final p { color: var(--muted); max-width: 520px; margin: 0 auto 30px; position: relative; }
  .cta-final .cta-row { justify-content: center; position: relative; }

  /* footer */
  footer { border-top: 1px solid var(--border-soft); background: rgba(0,0,0,0.4); padding: 62px 30px 32px; }
  .foot-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 36px; }
  @media (min-width: 760px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
  .foot-brand { display: flex; align-items: center; gap: 4px; margin-bottom: 16px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.3rem; letter-spacing: 5px; }
  .foot-brand .moon { width: 1.04em; height: 1.04em; }
  .foot-grid > div > p { color: var(--muted); font-size: 0.88rem; max-width: 340px; }
  .foot-grid h5 { font-family: 'Fira Code', monospace; font-size: 0.72rem; letter-spacing: 2px; color: var(--cyan); margin-bottom: 16px; font-weight: 500; }
  .foot-grid a.fl { display: block; color: var(--muted); font-size: 0.88rem; margin-bottom: 10px; transition: color 0.2s; }
  .foot-grid a.fl:hover { color: var(--cyan); }
  .foot-social { display: flex; gap: 10px; margin-top: 18px; }
  .foot-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--border-soft); background: var(--surface); color: var(--muted); transition: color 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.25s; }
  .foot-social a:hover { color: var(--cyan); border-color: rgba(var(--c-rgb),0.5); box-shadow: 0 0 18px rgba(var(--c-rgb),0.22); transform: translateY(-2px); }
  .foot-social svg { width: 17px; height: 17px; fill: currentColor; }
  .foot-bottom { max-width: 1200px; margin: 44px auto 0; padding-top: 22px; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-family: 'Fira Code', monospace; font-size: 0.72rem; color: var(--muted); }
  .foot-legal a { color: var(--muted); text-decoration: none; }
  .foot-legal a:hover { color: var(--cyan); text-decoration: underline; }

  .wpp-float { position: fixed; bottom: 24px; right: 24px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(37,211,102,0.45); transition: transform 0.2s, box-shadow 0.2s; }
  .wpp-float:hover { transform: scale(1.08); box-shadow: 0 10px 32px rgba(37,211,102,0.65); }
  .wpp-float svg { width: 29px; height: 29px; fill: #FFFFFF; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    #sky, .cursor-glow { display: none; }
    .glitch::before, .glitch::after { display: none; }
  }
