﻿:root {
  --bg: #06080b;
  --bg-soft: #0f141b;
  --text: #edf2f7;
  --muted: #9eacbb;
  --line: rgba(255, 255, 255, 0.16);
  --accent: #d7262b;
  --accent-soft: #ff5459;
  --cyan: #52d8ff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(215, 38, 43, 0.15), transparent 35%),
    radial-gradient(circle at 80% 35%, rgba(82, 216, 255, 0.1), transparent 30%),
    linear-gradient(160deg, #050609, #0d1219);
  font-family: "Archivo", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 8, 11, 0.82);
  backdrop-filter: blur(10px);
  transition: background-color 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}

.topbar.scrolled {
  background: rgba(6, 8, 11, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.brand {
  text-decoration: none;
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
  font-weight: 700;
}

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

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

.nav a:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.3);
}

.nav a.active {
  color: #fff2f2;
  border-color: rgba(255,120,120,0.8);
  background: linear-gradient(120deg, rgba(215, 38, 43, 0.75), rgba(255,84,89,0.74));
}

.container {
  width: min(1180px, calc(100vw - 2rem));
  margin: 0 auto;
}

main.container {
  padding: 1rem 0 2rem;
  display: grid;
  gap: 1.6rem;
}

.section {
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: 1rem;
  transition: transform 400ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

.hero-title,
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
}

h3 {
  font-size: 1.07rem;
}

.lead {
  margin-top: 0.7rem;
  max-width: 70ch;
  line-height: 1.6;
  color: var(--muted);
  font-size: 1.03rem;
}

.chip {
  display: inline-block;
  border: 1px solid rgba(255, 84, 89, 0.6);
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #ffb7ba;
  background: rgba(215, 38, 43, 0.15);
}

.inline-stack {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.inline-stack span {
  font-size: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.54rem;
  color: #d8e2eb;
}

.flow {
  display: grid;
  gap: 0.6rem;
}

.flow-row {
  display: grid;
  grid-template-columns: 1.2fr 2.4fr;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: transform 300ms ease, border-color 300ms ease;
}

.flow-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

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

.rail-item {
  padding: 0.68rem 0;
  border-top: 1px solid rgba(255,255,255,0.16);
  transition: transform 320ms ease, border-color 320ms ease;
}

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

.rail-value {
  margin-top: 0.2rem;
  font-size: 1.42rem;
  font-weight: 800;
}

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

.media-hero {
  margin-top: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-soft);
  transition: transform 380ms cubic-bezier(0.22, 0.61, 0.36, 1), border-color 380ms ease;
}

.media-hero video,
.media-hero img {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.media-caption {
  padding: 0.65rem 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.83rem;
}

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

.gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #0d1219;
  transition: transform 320ms ease, border-color 320ms ease;
}

.gallery img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.gallery figcaption {
  padding: 0.45rem 0.55rem;
  color: var(--muted);
  font-size: 0.79rem;
}

.code-stream {
  display: grid;
  gap: 0.65rem;
}

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

.code-strip h3 { color: #ffc9cb; }

pre {
  margin: 0.45rem 0 0;
  padding: 0.65rem 0.75rem;
  border-left: 2px solid rgba(215, 38, 43, 0.8);
  background: rgba(10, 12, 16, 0.8);
  overflow: auto;
  transition: border-color 260ms ease, background-color 260ms ease;
}

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

.doc-view {
  margin-top: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #0d1219;
}

.doc-view iframe {
  width: 100%;
  height: 560px;
  border: 0;
}

.status-chip {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-chip.concluido { color: #8ff0ba; border-color: rgba(47,182,109,0.5); background: rgba(47,182,109,0.12); }
.status-chip.em_andamento { color: #ff9ea2; border-color: rgba(215,38,43,0.52); background: rgba(215,38,43,0.15); }
.status-chip.planejado { color: #a4e8ff; border-color: rgba(82,216,255,0.45); background: rgba(82,216,255,0.1); }

.footer {
  border-top: 1px solid var(--line);
  margin-top: 0.8rem;
  padding: 0.9rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px) scale(0.985);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 620ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.motion-item {
  opacity: 0;
  transform: translateY(12px) scale(0.992);
}

.is-visible .motion-item {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 560ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 560ms cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: calc(var(--stagger, 0) * 80ms);
}

.delay-1 { animation-delay: 0.06s; }
.delay-2 { animation-delay: 0.12s; }
.delay-3 { animation-delay: 0.18s; }

.flow-row:hover,
.rail-item:hover,
.gallery figure:hover,
.media-hero:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 120, 120, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .motion-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .topbar,
  .flow-row,
  .rail-item,
  .gallery figure,
  .media-hero {
    transition: none;
  }
}

@media (max-width: 920px) {
  .flow-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

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

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

  .doc-view iframe {
    height: 420px;
  }
}
