:root {
  --bg: #02040a;
  --text: #f6f9ff;
  --muted: #b9c5d6;
  --cyan: #22f7ff;
  --lime: #8dff61;
  --pink: #ff38d4;
  --violet: #8c5cff;
  --orange: #ffb84d;
  --line: rgba(196, 231, 255, 0.2);
  --glass: rgba(5, 12, 22, 0.74);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(140, 92, 255, 0.16), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(34, 247, 255, 0.13), transparent 32%),
    linear-gradient(180deg, #02040a, #030712 58%, #010207);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a,
button {
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
}

.neural-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: #02040a;
}

.presentation {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

.topbar {
  position: absolute;
  top: clamp(10px, 2vh, 18px);
  left: clamp(10px, 2vw, 22px);
  right: clamp(10px, 2vw, 22px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.brand,
.soundless-status {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-orbit {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(34, 247, 255, 0.44), inset 0 0 16px rgba(255, 56, 212, 0.3);
}

.brand-orbit::before,
.brand-orbit::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.brand-orbit::before {
  inset: 7px;
  border: 1px solid var(--pink);
}

.brand-orbit::after {
  inset: 14px;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(141, 255, 97, 0.8);
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand strong {
  font-size: clamp(0.76rem, 1.4vw, 0.96rem);
  line-height: 1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: clamp(0.62rem, 1vw, 0.72rem);
  font-weight: 800;
}

.soundless-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid rgba(34, 247, 255, 0.28);
  border-radius: 999px;
  color: #06100d;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  box-shadow: 0 0 28px rgba(34, 247, 255, 0.22);
  font-weight: 950;
  cursor: pointer;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #06100d;
  box-shadow: 0 0 16px rgba(6, 16, 13, 0.7);
}

.neural-brain {
  position: absolute;
  inset: clamp(58px, 9vh, 82px) clamp(12px, 3vw, 48px) clamp(38px, 6vh, 54px);
  display: grid;
  place-items: center;
  isolation: isolate;
}

.brain-outline {
  position: absolute;
  top: 4%;
  bottom: 4%;
  width: 50%;
  border: 1px solid rgba(34, 247, 255, 0.32);
  background:
    repeating-radial-gradient(ellipse at 50% 50%, rgba(34, 247, 255, 0.13) 0 1px, transparent 2px 28px),
    repeating-radial-gradient(ellipse at 46% 54%, rgba(255, 56, 212, 0.12) 0 1px, transparent 2px 37px),
    radial-gradient(circle at 48% 38%, rgba(34, 247, 255, 0.16), transparent 34%),
    rgba(5, 12, 22, 0.42);
  box-shadow: inset 0 0 90px rgba(34, 247, 255, 0.12), 0 0 80px rgba(34, 247, 255, 0.08);
  pointer-events: none;
}

.brain-outline.left {
  left: 5%;
  border-radius: 58% 34% 42% 60% / 42% 58% 42% 58%;
  clip-path: polygon(1% 34%, 11% 15%, 30% 5%, 56% 3%, 80% 14%, 95% 34%, 99% 55%, 91% 78%, 68% 94%, 40% 99%, 15% 88%, 2% 66%);
}

.brain-outline.right {
  right: 5%;
  border-radius: 34% 58% 60% 42% / 58% 42% 58% 42%;
  clip-path: polygon(1% 55%, 5% 34%, 20% 14%, 44% 3%, 70% 5%, 89% 15%, 99% 34%, 98% 66%, 85% 88%, 60% 99%, 32% 94%, 9% 78%);
}

.brain-divider {
  position: absolute;
  top: 7%;
  bottom: 8%;
  left: 50%;
  z-index: 2;
  width: clamp(10px, 1.2vw, 18px);
  transform: translateX(-50%);
  pointer-events: none;
}

.brain-divider::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(34, 247, 255, 0.72), rgba(255, 56, 212, 0.54), transparent);
  clip-path: polygon(46% 0, 62% 10%, 42% 24%, 60% 39%, 39% 56%, 58% 73%, 49% 100%, 38% 75%, 54% 57%, 36% 41%, 55% 25%, 39% 11%);
  filter: drop-shadow(0 0 18px rgba(34, 247, 255, 0.46));
}

.neural-path {
  position: absolute;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 247, 255, 0.9), transparent);
  box-shadow: 0 0 14px rgba(34, 247, 255, 0.5);
  transform-origin: center;
  pointer-events: none;
}

.p1 {
  left: 28%;
  top: 37%;
  width: 44%;
  transform: rotate(14deg);
}

.p2 {
  left: 24%;
  top: 58%;
  width: 52%;
  transform: rotate(-18deg);
}

.p3 {
  left: 32%;
  top: 23%;
  width: 33%;
  transform: rotate(-32deg);
}

.p4 {
  right: 22%;
  top: 67%;
  width: 36%;
  transform: rotate(34deg);
}

.p5 {
  left: 18%;
  top: 76%;
  width: 64%;
  transform: rotate(3deg);
}

.neuron {
  position: absolute;
  z-index: 8;
  display: grid;
  place-items: center;
  gap: 8px;
  width: clamp(82px, 10vw, 126px);
  height: clamp(82px, 10vw, 126px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.neuron span {
  position: relative;
  display: block;
  width: clamp(40px, 4.8vw, 58px);
  height: clamp(40px, 4.8vw, 58px);
  border: 1px solid rgba(34, 247, 255, 0.55);
  border-radius: 50%;
  background: radial-gradient(circle, var(--lime) 0 14%, rgba(34, 247, 255, 0.55) 15% 28%, rgba(5, 12, 22, 0.86) 29%);
  box-shadow: 0 0 22px rgba(34, 247, 255, 0.48), inset 0 0 18px rgba(255, 56, 212, 0.24);
}

.neuron span::before,
.neuron span::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(34, 247, 255, 0.22);
  border-radius: 50%;
}

.neuron span::before {
  inset: -12px;
}

.neuron span::after {
  inset: -24px;
  opacity: 0.52;
}

.neuron strong {
  max-width: 120px;
  color: var(--text);
  font-size: clamp(0.72rem, 1.1vw, 0.86rem);
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 12px #000;
}

.neuron:hover span,
.neuron:focus-visible span,
.neuron.is-active span {
  border-color: var(--lime);
  box-shadow: 0 0 34px rgba(141, 255, 97, 0.64), inset 0 0 22px rgba(34, 247, 255, 0.34);
}

.neuron:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 6px;
  border-radius: 50%;
}

.n-creator {
  left: 17%;
  top: 28%;
}

.n-automation {
  right: 19%;
  top: 25%;
}

.n-presence {
  left: 20%;
  bottom: 19%;
}

.n-finance {
  right: 22%;
  bottom: 18%;
}

.n-contact {
  left: 50%;
  bottom: 5%;
  transform: translateX(-50%);
}

.brain-core {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 49%;
  display: grid;
  place-items: center;
  width: clamp(230px, 25vw, 330px);
  height: clamp(230px, 25vw, 330px);
  border: 1px solid rgba(34, 247, 255, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(34, 247, 255, 0.2), rgba(5, 12, 22, 0.72) 56%, rgba(255, 56, 212, 0.13));
  box-shadow: 0 0 70px rgba(34, 247, 255, 0.18), inset 0 0 64px rgba(255, 56, 212, 0.14);
  transform: translate(-50%, -50%);
}

.core-video {
  width: 44%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(34, 247, 255, 0.28);
  border-radius: 8px;
  background: #000;
  box-shadow: 0 0 42px rgba(34, 247, 255, 0.18);
}

.core-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.core-copy {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(48vw, 620px);
  text-align: center;
  transform: translate(-50%, calc(-50% + clamp(150px, 16vw, 210px)));
}

.core-copy p,
.window-kicker {
  margin: 0 0 8px;
  color: var(--lime);
  font-size: clamp(0.68rem, 1vw, 0.82rem);
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.core-copy h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.9vw, 5.6rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 0 0 28px rgba(34, 247, 255, 0.32), 0 4px 16px #000;
}

.neural-window {
  position: absolute;
  z-index: 12;
  width: min(360px, 31vw);
  min-height: 176px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(34, 247, 255, 0.34);
  border-radius: 8px;
  background: rgba(4, 10, 20, 0.88);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.48), 0 0 34px rgba(34, 247, 255, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92) translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(18px);
}

.neural-window.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

.neural-window h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  line-height: 1.04;
}

.neural-window p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
}

[data-window="creator"] {
  left: 8%;
  top: 12%;
}

[data-window="automation"] {
  right: 7%;
  top: 12%;
}

[data-window="presence"] {
  left: 7%;
  bottom: 13%;
}

[data-window="finance"] {
  right: 8%;
  bottom: 12%;
}

[data-window="contato"] {
  left: 50%;
  bottom: 11%;
  transform: translateX(-50%) scale(0.92) translateY(10px);
}

[data-window="contato"].is-open {
  transform: translateX(-50%) scale(1) translateY(0);
}

.window-close {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.whatsapp-button,
.call-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 12px;
  border-radius: 8px;
  font-weight: 950;
  text-align: center;
}

.whatsapp-button {
  color: #05100d;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
}

.call-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.hint-panel {
  position: absolute;
  left: clamp(12px, 2vw, 24px);
  bottom: clamp(10px, 2vh, 18px);
  z-index: 18;
  display: grid;
  gap: 2px;
  pointer-events: none;
}

.hint-panel span {
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hint-panel strong {
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .brain-outline.left {
    left: -12%;
    width: 68%;
  }

  .brain-outline.right {
    right: -12%;
    width: 68%;
  }

  .brain-core {
    width: clamp(190px, 32vw, 280px);
    height: clamp(190px, 32vw, 280px);
  }

  .core-copy {
    width: min(78vw, 600px);
  }

  .neural-window {
    width: min(330px, 39vw);
  }
}

@media (max-width: 720px) {
  .presentation {
    min-height: 620px;
  }

  .soundless-status {
    min-height: 38px;
    padding: 9px 11px;
    font-size: 0.78rem;
  }

  .neural-brain {
    inset: 66px 8px 12px;
  }

  .brain-outline {
    opacity: 0.62;
  }

  .brain-outline.left {
    left: -46%;
    width: 100%;
  }

  .brain-outline.right {
    right: -46%;
    width: 100%;
  }

  .brain-divider {
    opacity: 0.4;
  }

  .neural-path {
    opacity: 0.45;
  }

  .brain-core {
    top: 38%;
    width: 172px;
    height: 172px;
  }

  .core-video {
    width: 50%;
  }

  .core-copy {
    top: 12%;
    width: 82vw;
    transform: translate(-50%, 0);
  }

  .core-copy h1 {
    font-size: clamp(2.25rem, 12vw, 3.5rem);
  }

  .neuron {
    width: 74px;
    height: 74px;
  }

  .neuron span {
    width: 38px;
    height: 38px;
  }

  .neuron span::after {
    display: none;
  }

  .neuron strong {
    display: none;
  }

  .n-creator {
    left: 9%;
    top: 34%;
  }

  .n-automation {
    right: 9%;
    top: 33%;
  }

  .n-presence {
    left: 8%;
    bottom: 24%;
  }

  .n-finance {
    right: 8%;
    bottom: 24%;
  }

  .n-contact {
    bottom: 6%;
  }

  .neural-window,
  [data-window="contato"] {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 14%;
    width: min(338px, calc(100vw - 28px));
    min-height: 0;
    max-height: 42svh;
    overflow: auto;
    transform: translateX(-50%) scale(0.92) translateY(10px);
  }

  .neural-window.is-open,
  [data-window="contato"].is-open {
    transform: translateX(-50%) scale(1) translateY(0);
  }

  .hint-panel {
    display: none;
  }
}

@media (max-width: 430px) {
  .brand small {
    display: none;
  }

  .brand strong {
    max-width: 150px;
    font-size: 0.72rem;
  }

  .soundless-status {
    font-size: 0;
  }

  .soundless-status::after {
    content: "Contato";
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .neural-window,
  .neuron span,
  .neural-path {
    transition: none;
  }
}
