﻿:root {
  --bg: #07090c;
  --text: #eef3f8;
  --muted: #9dacbc;
  --line: rgba(255, 255, 255, 0.14);
  --primary-red: #d7262b;
  --red: #d7262b;
  --cyan: #53d6ff;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  overflow-x: hidden;
}

.video-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(1.06) contrast(1.1);
}

.video-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(215, 38, 43, 0.2), transparent 34%),
    radial-gradient(circle at 80% 35%, rgba(83, 214, 255, 0.13), transparent 33%),
    linear-gradient(160deg, #06070a, #0b1016);
  z-index: -2;
}

.video-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, transparent 30%, rgba(0,0,0,0.32) 100%),
    linear-gradient(180deg, rgba(4,5,7,0.72), rgba(5,7,10,0.45) 22%, rgba(5,7,10,0.65) 100%);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 7, 10, 0.55);
  backdrop-filter: blur(10px);
  transition: background-color 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

.topbar.scrolled {
  background: rgba(6, 7, 10, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.3rem 0.62rem;
  transition: 0.2s ease;
}

.nav a:hover { color: var(--text); }

.nav a.active {
  color: #fff3f3;
  border-color: #ff8a8d;
  background: linear-gradient(120deg, rgba(215,38,43,0.85), rgba(255,84,89,0.82));
}

main {
  padding-top: 70px;
}

.scene {
  min-height: 100vh;
  position: relative;
  display: grid;
  align-items: center;
  padding: clamp(1rem, 2.4vw, 2rem);
}

.scene-content {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0;
  font-size: 0.76rem;
  color: #ffb7ba;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.02em;
}

h1 {
  margin-top: 0.5rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.6rem, 3.3vw, 2.7rem);
  margin-bottom: 0.9rem;
}

.lead {
  margin-top: 0.95rem;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.stack-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stack-row span {
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  font-size: 0.77rem;
  padding: 0.3rem 0.58rem;
  background: rgba(255, 255, 255, 0.05);
}

.hero {
  grid-template-rows: 1fr auto;
}

.product-stage {
  width: min(1120px, 100%);
  margin: 1rem auto 0;
  height: clamp(260px, 42vh, 420px);
  perspective: 1500px;
}

.product-frames {
  width: min(700px, 100%);
  height: 100%;
  margin: 0 auto;
  position: relative;
  transform-style: preserve-3d;
}

.product-frame {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.18);
  background:
    radial-gradient(circle at var(--x) var(--y), rgba(215,38,43,0.35), transparent 50%),
    linear-gradient(140deg, rgba(215,38,43,0.4), rgba(19,25,34,0.88));
  box-shadow: 0 22px 60px rgba(0,0,0,0.48);
  opacity: 0;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(var(--z));
  transition: opacity 0.25s linear;
}

.product-frame::before {
  content: "";
  position: absolute;
  inset: 16% 12%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.22);
  background: linear-gradient(130deg, rgba(255,255,255,0.2), rgba(9,14,20,0.42));
}

.product-frame::after {
  content: "";
  position: absolute;
  inset: 30% 22%;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(83,214,255,0.25), rgba(247,181,0,0.25));
}

.product-frame.active {
  opacity: 1;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 3vh;
  transform: translateX(-50%);
  font-size: 0.79rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: hintPulse 2.2s ease-in-out infinite;
}

.rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.7rem;
}

.rail-item {
  padding: 0.68rem 0.2rem 0.82rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0));
}

.rail-label {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rail-value {
  margin-top: 0.24rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.rail-note {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.flow-list {
  display: grid;
  gap: 0.58rem;
}

.flow-item {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 0.8rem;
  padding: 0.74rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.flow-item strong {
  font-family: "Orbitron", sans-serif;
  font-size: 0.96rem;
}

.flow-item p {
  margin: 0;
  color: var(--muted);
}

.flow-tag {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.72rem;
}

.code-lines {
  display: grid;
  gap: 0.8rem;
}

.code-strip {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 0.6rem;
}

.code-strip h3 {
  font-size: 0.96rem;
  color: #ffc8ca;
}

.code-strip pre {
  margin: 0.45rem 0 0;
  padding: 0.6rem 0.7rem;
  border-left: 2px solid rgba(215, 38, 43, 0.72);
  background: rgba(11, 14, 19, 0.74);
  overflow: auto;
}

.code-strip code {
  color: #ffe6b5;
  font-size: 0.82rem;
  font-family: Consolas, "Courier New", monospace;
}

.roadmap .flow-item {
  grid-template-columns: 1fr 1.2fr 1.8fr;
}

.status-chip {
  justify-self: start;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cdefff;
}

.status-chip.concluido {
  color: #87efb4;
  border-color: rgba(47,182,109,0.54);
  background: rgba(47,182,109,0.15);
}

.status-chip.em_andamento {
  color: #ffb3b7;
  border-color: rgba(215, 38, 43, 0.62);
  background: rgba(215, 38, 43, 0.2);
}

.status-chip.planejado {
  color: #a4e8ff;
  border-color: rgba(83,214,255,0.54);
  background: rgba(83,214,255,0.14);
}

.dot-nav {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
  display: grid;
  gap: 0.45rem;
}

.dot-nav button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.2);
  padding: 0;
  cursor: pointer;
  transition: 0.2s ease;
}

.dot-nav button.active {
  transform: scale(1.2);
  background: var(--primary-red);
  border-color: #ffde98;
}

.cinema-cut {
  position: absolute;
  inset: auto 0 -12px 0;
  height: 24px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
  opacity: 0;
  transition: opacity 0.5s ease;
}

.scene.in-view .cinema-cut {
  opacity: 1;
}

.scene-content,
.flow-item,
.rail-item,
.code-strip {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition:
    opacity 700ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.scene.in-view .scene-content,
.scene.in-view .flow-item,
.scene.in-view .rail-item,
.scene.in-view .code-strip {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes hintPulse {
  0% { opacity: 0.35; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.9; transform: translateX(-50%) translateY(-4px); }
  100% { opacity: 0.35; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 1040px) {
  .flow-item {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .roadmap .flow-item {
    grid-template-columns: 1fr;
  }

  .dot-nav {
    display: none;
  }
}

@media (max-width: 780px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav a {
    font-size: 0.7rem;
  }

  .product-stage {
    height: 260px;
  }
}


