:root {
  --gold: #e40700;
  --gold-bright: #ffffff;
  --red: #e40700;
  --navy: #081738;
  --blue: #123b7a;
  --ink: #050b1a;
  --smoke: #b6bfce;
  --line: rgba(255,255,255,.14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: #f1f0ea; background: var(--ink); font-family: Manrope, sans-serif; overflow-x: hidden; }
#hex-bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
a { color: inherit; }
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; cursor: default; touch-action: pan-y; }
#scene:active { cursor: grabbing; }
.ambient { position: fixed; z-index: 1; pointer-events: none; width: 60vw; height: 60vw; border-radius: 50%; filter: blur(100px); opacity: .16; background: var(--red); }
.ambient--top { top: -42vw; right: -18vw; }
.ambient--bottom { bottom: -46vw; left: -20vw; background: #174d9a; }
.noise { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .17; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.23'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 14px 42px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(3,8,20,.94), rgba(8,23,56,.35)); backdrop-filter: blur(10px); }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; text-transform: uppercase; }
.brand-logo { display: block; width: 132px; height: 48px; object-fit: cover; object-position: center; border-radius: 7px; }
.header-nav { position: absolute; left: 50%; display: flex; align-items: center; gap: 28px; transform: translateX(-50%); }
.header-nav a { color: #aaa9a2; font-size: 9px; font-weight: 700; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; transition: color .2s; }
.header-nav a:hover, .header-nav a:focus-visible { color: #f1f0ea; }
.header-meta { display: flex; align-items: center; gap: 32px; }
.header-status { color: #888; text-transform: uppercase; font-size: 9px; letter-spacing: .19em; }
.header-status i { display: inline-block; width: 5px; height: 5px; margin-right: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.header-cta { text-decoration: none; text-transform: uppercase; font-size: 10px; letter-spacing: .13em; font-weight: 700; padding-bottom: 5px; border-bottom: 1px solid var(--gold); }
.header-cta span { color: var(--gold); margin-left: 6px; }
main { position: relative; z-index: 5; pointer-events: none; }
.scene-section { min-height: 100svh; position: relative; display: flex; align-items: center; padding: 120px clamp(30px, 7vw, 120px) 80px; pointer-events: none; }
.scene-section::before { display: none; }
.scene-section--right { justify-content: flex-end; }
.section-content { position: relative; z-index: 3; width: min(570px, 47vw); pointer-events: auto; }
.scene-section--right .section-content { width: min(525px, 44vw); }
.eyebrow { display: flex; align-items: center; gap: 13px; margin: 0 0 24px; color: #b9b8b1; font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow span { color: var(--gold); }
.eyebrow::after { content:""; width: 42px; height: 1px; background: var(--gold); opacity: .7; }
h1, h2 { margin: 0; font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: -.035em; line-height: .9; text-wrap: balance; text-shadow: 0 3px 30px rgba(0,0,0,.6); }
h1 { font-size: clamp(66px, 8vw, 132px); }
h2 { font-size: clamp(58px, 6.3vw, 105px); }
h1 em, h2 em { color: var(--gold-bright); font-style: italic; font-weight: 700; }
.lead, .copy { color: #aaa9a2; font-size: clamp(13px, 1.05vw, 16px); line-height: 1.8; max-width: 530px; margin: 30px 0 0; }
.lead { max-width: 510px; }
.hero-actions { margin-top: 36px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; gap: 35px; align-items: center; justify-content: space-between; padding: 17px 20px; text-decoration: none; text-transform: uppercase; font-size: 10px; letter-spacing: .14em; font-weight: 800; border: 1px solid var(--gold); transition: background .25s, color .25s, transform .25s; }
.button span { font-size: 16px; }
.button--primary { background: var(--red); color: #fff; }
.button--primary:hover { background: #fff; color: var(--navy); transform: translateY(-2px); }
.button--outline { background: rgba(5,11,26,.62); color: #f1f0ea; }
.button--outline:hover { background: rgba(255,255,255,.09); transform: translateY(-2px); }
.button--large { min-width: 285px; margin-top: 32px; padding: 21px 23px; }
.drag-hint { flex-basis: 100%; margin-top: 6px; color: #74746e; text-transform: uppercase; font-size: 8px; letter-spacing: .16em; }
.scene-index { position: absolute; z-index: 3; bottom: 35px; right: 45px; display: flex; align-items: baseline; gap: 5px; color: #555; font: 600 10px Manrope; }
.scene-index strong { color: #b4b3ac; font: 600 22px "Barlow Condensed"; }
.scene-section--right .scene-index { right: auto; left: 45px; }
.data-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 38px; background: var(--line); border: 1px solid var(--line); }
.data-row div { background: rgba(8,23,56,.78); padding: 18px 14px; backdrop-filter: blur(8px); }
.data-row strong, .data-row span { display: block; }
.data-row strong { color: var(--gold-bright); font: 700 29px "Barlow Condensed"; text-transform: uppercase; }
.data-row span { color: #777; margin-top: 4px; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.feature-list { list-style: none; margin: 35px 0 0; padding: 0; border-top: 1px solid var(--line); }
.feature-list li { display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); color: #b3b2ab; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.feature-list span { color: var(--gold); font-size: 9px; }
.statement { display: flex; gap: 18px; align-items: stretch; margin-top: 34px; color: #8e8d87; font-size: 11px; line-height: 1.7; text-transform: uppercase; letter-spacing: .11em; }
.statement span { width: 2px; background: var(--gold); }
.statement p { margin: 0; }
.statement strong { color: #e4e2da; font-weight: 600; }
.scene-section--contact { min-height: 145svh; justify-content: center; text-align: center; padding-top: 170px; background: radial-gradient(circle at center, rgba(228,7,0,.15), rgba(8,23,56,.88) 70%); }
.scene-section--contact::before { background: linear-gradient(180deg, transparent, rgba(8,23,56,.3) 42%, rgba(3,8,20,.98)); }
.contact-panel { position: relative; z-index: 3; display: flex; align-items: center; flex-direction: column; margin-top: 12vh; pointer-events: auto; }
.contact-panel .eyebrow::after { display: none; }
.contact-panel p:not(.eyebrow) { color: #aaa9a2; max-width: 480px; font-size: 14px; line-height: 1.7; }
.contact-panel small { display: block; margin-top: 16px; color: #555; text-transform: uppercase; font-size: 7px; letter-spacing: .16em; }

.solutions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; width: min(920px, 80vw); margin: 38px 0 6px; padding: 1px; background: rgba(255,255,255,.12); text-align: left; }
.solution-card { position: relative; min-height: 148px; padding: 22px; overflow: hidden; background: rgba(4,13,32,.88); transition: background .25s, transform .25s; }
.solution-card::after { content: ""; position: absolute; right: -45px; bottom: -62px; width: 125px; height: 125px; border: 1px solid rgba(228,7,0,.22); border-radius: 50%; }
.solution-card:hover { z-index: 1; background: rgba(12,32,70,.94); transform: translateY(-3px); }
.solution-card > span { color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .18em; }
.solution-card h3 { margin: 12px 0 8px; color: #f1f0ea; font: 700 23px/1 "Barlow Condensed", sans-serif; letter-spacing: -.01em; text-transform: uppercase; }
.solution-card p { margin: 0 !important; color: #8e96a5 !important; font-size: 11px !important; line-height: 1.55 !important; }

.commercial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 680px;
  margin: 32px 0 16px;
  text-align: left;
}
.comm-card {
  background: rgba(8, 23, 56, 0.6);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}
.comm-card h3 {
  margin: 0 0 10px;
  font-family: "Barlow Condensed", sans-serif;
  color: #ffffff;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.comm-card p {
  margin: 0;
  color: #a9a1a2 !important;
  font-size: 12px !important;
  line-height: 1.6;
}

@media (max-width: 899px) {
  .header-nav { display: none; }
  .commercial-grid {
    grid-template-columns: 1fr;
    width: 100%;
    margin: 24px 0 8px;
  }
  .solutions-grid { grid-template-columns: 1fr; width: 100%; margin-top: 24px; }
  .solution-card { min-height: 118px; padding: 18px; }
}

footer { position: absolute; z-index: 4; bottom: 0; left: 42px; right: 42px; padding: 22px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: #555; text-transform: uppercase; font-size: 8px; letter-spacing: .14em; pointer-events: auto; }
.progress-nav { position: fixed; left: 32px; top: 50%; z-index: 20; height: 185px; transform: translateY(-50%); display: flex; gap: 12px; }
.progress-line { width: 1px; height: 100%; background: rgba(255,255,255,.12); position: relative; }
.progress-line i { position: absolute; left: 0; top: 0; width: 1px; height: 0; background: var(--gold); transition: height .1s linear; }
.progress-dots { display: flex; flex-direction: column; justify-content: space-between; }
.progress-dots a { display: flex; align-items: center; text-decoration: none; color: #555; font-size: 7px; transition: color .3s; }
.progress-dots a::before { content:""; width: 4px; height: 4px; margin-right: 8px; background: #555; transform: rotate(45deg); transition: background .3s, transform .3s; }
.progress-dots a.active { color: var(--gold); }
.progress-dots a.active::before { background: var(--gold); transform: rotate(45deg) scale(1.5); box-shadow: 0 0 8px var(--gold); }
.floating-contact { display: none; position: fixed; z-index: 20; right: 25px; bottom: 24px; width: 106px; height: 106px; border-radius: 50%; border: 1px solid rgba(228,7,0,.7); background: rgba(8,23,56,.88); backdrop-filter: blur(12px); text-decoration: none; align-items: center; justify-content: center; gap: 7px; text-transform: uppercase; font-size: 7px; letter-spacing: .1em; line-height: 1.5; transition: transform .25s, background .25s; }
.floating-contact:hover { transform: rotate(-5deg) scale(1.05); background: var(--gold); color: #090a0a; }
.floating-contact i { color: var(--gold); font-style: normal; font-size: 17px; }
.floating-contact:hover i { color: #090a0a; }
.pose-save {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(16px);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(8,23,56,.94);
  color: #fff;
  font: 700 9px/1 Manrope, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s, background .2s;
}
.pose-save.visible { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.pose-save:hover { background: var(--red); }
.pose-save strong { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #fff; color: var(--navy); }
.webgl-fallback { display: none; position: fixed; z-index: 0; inset: 0; overflow: hidden; background: radial-gradient(circle at 60% 45%, #242520, #080909 62%); }
.fallback-hose { position: absolute; top: 48%; left: 50%; width: min(70vw, 850px); height: 38px; border-radius: 30px; transform: translate(-50%, -50%) rotate(-13deg); background: linear-gradient(180deg, #292a28, #090a0a 45%, #20211f); box-shadow: 0 22px 45px #000, inset 0 2px 2px #454641; }
.no-webgl #scene { display: none; }
.no-webgl .webgl-fallback { display: block; }

/* Indicadores Técnicos */
.indicators-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  width: 100vw;
  height: 100vh;
}
.indicator-pointer {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: scale(0.85) translate(-50%, -50%);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.indicator-pointer.active {
  opacity: 1;
  transform: scale(1) translate(-50%, -50%);
}
.pointer-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--red);
  box-shadow: 0 0 12px var(--red);
}
.pointer-line {
  width: 1px;
  height: 45px;
  background: linear-gradient(180deg, var(--red) 0%, rgba(228, 7, 0, 0) 100%);
  margin: 4px 0;
}
.pointer-label {
  background: rgba(8, 23, 56, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: Manrope, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

@media (min-width: 900px) { .floating-contact { display: flex; } }
@media (min-width: 900px) and (max-width: 1100px) {
  .scene-section { padding-left: 70px; padding-right: 70px; }
  .section-content { width: min(510px, 52vw); }
  h1 { font-size: clamp(64px, 7.4vw, 82px); }
  h2 { font-size: clamp(54px, 6vw, 70px); }
  .lead, .copy { max-width: 440px; }
  .solutions-grid { width: min(820px, 84vw); }
}
@media (max-width: 899px) {
  .site-header { padding: 18px 20px; }
  .header-status, .header-cta, .progress-nav, .scene-index, .drag-hint { display: none; }
  
  /* Ajuste para separar conteúdo do viewport do 3D */
  .scene-section, .scene-section--right {
    min-height: 100svh;
    padding: 340px 20px 80px;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .scene-section::before, .scene-section--right::before {
    background: linear-gradient(180deg, rgba(3,8,20,0) 0%, rgba(3,8,20,0.85) 250px, rgba(3,8,20,0.98) 100%);
    opacity: 1;
  }
  .section-content, .scene-section--right .section-content {
    width: 100%;
    max-width: 100%;
  }
  h1 { font-size: clamp(38px, 12vw, 54px); }
  h2 { font-size: clamp(34px, 10vw, 48px); }
  .lead, .copy { margin-top: 16px; font-size: 13px; line-height: 1.6; max-width: 100%; }
  .hero-actions { margin-top: 20px; flex-direction: column; align-items: stretch; }
  .button { width: 100%; text-align: center; justify-content: center; }
  .button--large { margin-top: 24px; }
  .data-row { margin-top: 20px; grid-template-columns: 1fr; gap: 8px; }
  .data-row div { padding: 14px; }
  .scene-section--contact { min-height: auto; justify-content: center; align-items: center; padding-top: 120px; padding-bottom: 120px; }
  .pose-save { bottom: 14px; }
  .contact-panel { margin-top: 10vh; }
  footer { left: 20px; right: 20px; }
  footer span:nth-child(2) { display: none; }
  .indicators-overlay { display: none; } /* Ocultar indicadores no celular para evitar clutter visual */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  #scene { opacity: .72; }
}

/* Embutido como fundo da tela de entrada do app: o canto superior direito é
   ocupado pelo botão "Acessar portal" do app. Esconde o CTA/status do header
   do site para não sobrepor. O contato segue no botão flutuante inferior. */
.header-meta { display: none !important; }
