/* ─── NAV ───────────────────────────────────────── */
nav#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 6%;
  background: rgba(3,4,10,0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo .logo { width: 36px; height: 36px; }

.nav-logo-text {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--bg);
  background: var(--accent);
  padding: 9px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: all 0.2s;
}
.nav-cta:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(0,212,255,0.3);
}

/* ─── HERO ──────────────────────────────────────── */
#hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 6% 90px;
  overflow: hidden;
}

/* Radial blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.12;
  pointer-events: none;
}
.blob-1 {
  width: 700px; height: 700px;
  background: var(--accent);
  top: -200px; left: -200px;
  animation: blobDrift 10s ease-in-out infinite;
}
.blob-2 {
  width: 500px; height: 500px;
  background: var(--purple);
  bottom: -100px; right: -100px;
  animation: blobDrift 13s ease-in-out infinite reverse;
}
@keyframes blobDrift {
  0%, 100% { transform: translate(0,0); }
  50%       { transform: translate(40px, 30px); }
}

/* Scanlines */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,212,255,0.012) 3px, rgba(0,212,255,0.012) 4px
  );
  pointer-events: none;
  z-index: 0;
}

.hero-badge {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.22);
  padding: 5px 16px;
  border-radius: 100px;
  letter-spacing: 0.2em;
  margin-bottom: 28px;
  display: inline-block;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.7s ease both;
}

.hero-logo {
  width: 130px;
  border-radius: 18px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s ease 0.08s both;
  box-shadow: 0 0 80px rgba(0,212,255,0.18);
}

#hero h1 {
  font-size: clamp(36px, 6vw, 70px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.9s ease 0.16s both;
  max-width: 820px;
}

#hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  display: block;
}

#hero .hero-desc {
  font-size: clamp(14px, 1.8vw, 17px);
  color: var(--muted);
  max-width: 540px;
  line-height: 1.8;
  margin-top: 18px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.9s ease 0.26s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.9s ease 0.36s both;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-btn-primary {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--bg);
  background: var(--accent);
  padding: 14px 30px;
  border-radius: var(--radius);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.hero-btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: translateX(-100%);
  transition: transform 0.45s;
}
.hero-btn-primary:hover::after { transform: translateX(100%); }
.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(0,212,255,0.4);
}

.hero-btn-ghost {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-lit);
  padding: 14px 30px;
  border-radius: var(--radius);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: all 0.2s;
}
.hero-btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* Status ticker */
.hero-ticker {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 56px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.9s ease 0.48s both;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  background: rgba(7,9,15,0.9);
  border: 1px solid var(--border-lit);
  border-radius: var(--radius);
  padding: 12px 24px;
  max-width: 680px;
}

.ticker-item { display: flex; align-items: center; gap: 7px; }

.ticker-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  animation: dotPulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
.dot-green  { background: var(--green);  box-shadow: 0 0 6px var(--green); }
.dot-cyan   { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.dot-amber  { background: var(--amber);  box-shadow: 0 0 6px var(--amber); }

@keyframes dotPulse {
  0%,100% { opacity:1; }
  50%      { opacity:0.3; }
}

@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ─── SECTION BASE ──────────────────────────────── */
section { position: relative; z-index: 1; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 6%;
}

.section-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 15px;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 56px;
}

hr.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ─── SOBRE ─────────────────────────────────────── */
#sobre { background: var(--surface); }

.sobre-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: border-color 0.3s, transform 0.3s;
}
.stat-tile:hover { border-color: rgba(0,212,255,0.3); transform: translateY(-3px); }

.stat-val {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-lbl { font-size: 12px; color: var(--muted); }

/* ─── PIPELINE / FLUXO ──────────────────────────── */
#fluxo { background: var(--bg); }

.pipeline {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  padding-bottom: 4px;
  gap: 0;
}

.pipe-step {
  flex: 1;
  min-width: 165px;
  background: var(--card);
  border: 1px solid var(--border);
  border-right: none;
  padding: 28px 22px;
  position: relative;
  transition: background 0.3s;
}
.pipe-step:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.pipe-step:last-child  { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; border-right: 1px solid var(--border); }
.pipe-step:hover { background: var(--card-hover); }

.pipe-step:not(:last-child)::after {
  content: '›';
  position: absolute;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--accent);
  z-index: 2;
}

.pipe-icon  { font-size: 26px; margin-bottom: 12px; display: block; }
.pipe-num   { font-family: var(--mono); font-size: 9px; color: var(--accent); letter-spacing: 0.15em; margin-bottom: 5px; }
.pipe-title { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.pipe-desc  { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ─── TECNOLOGIAS ───────────────────────────────── */
#tecnologias { background: var(--surface); }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 14px;
}

.tech-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s;
}
.tech-tile:hover {
  border-color: rgba(0,212,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.35);
}

.tech-icon { font-size: 28px; flex-shrink: 0; }
.tech-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.tech-sub  { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.tech-soon {
  display: inline-block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--purple);
  background: rgba(109,40,217,0.12);
  border: 1px solid rgba(109,40,217,0.3);
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.08em;
}

/* ─── FUNCIONALIDADES ───────────────────────────── */
#funcionalidades { background: var(--bg); }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.feat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.feat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  opacity: 0;
  transition: opacity 0.3s;
}
.feat-card:hover { border-color: rgba(0,212,255,0.25); transform: translateY(-4px); }
.feat-card:hover::before { opacity: 1; }

.feat-icon  { font-size: 30px; margin-bottom: 14px; display: block; }
.feat-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feat-desc  { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ─── ALERTAS / CONTEXTOS CRÍTICOS ─────────────── */
#alertas { background: var(--surface); }

.alert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.alert-tile {
  border-radius: var(--radius-lg);
  padding: 26px;
  border: 1px solid;
  transition: transform 0.3s;
}
.alert-tile:hover { transform: translateY(-4px); }
.alert-tile.info  { background:rgba(16,185,129,0.05);  border-color:rgba(16,185,129,0.25); }
.alert-tile.warn  { background:rgba(245,158,11,0.05);  border-color:rgba(245,158,11,0.25); }
.alert-tile.crit  { background:rgba(239,68,68,0.06);   border-color:rgba(239,68,68,0.3); }

.alert-pill {
  font-family: var(--mono);
  font-size: 9px;
  padding: 3px 12px;
  border-radius: 100px;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 14px;
  display: inline-block;
}
.info .alert-pill  { background:rgba(16,185,129,0.14); color:var(--green); }
.warn .alert-pill  { background:rgba(245,158,11,0.14); color:var(--amber); }
.crit .alert-pill  { background:rgba(239,68,68,0.14);  color:var(--red); }

.alert-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.alert-desc  { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ─── CTA ───────────────────────────────────────── */
#cta { background: var(--bg); text-align: center; }

.cta-wrap {
  max-width: 740px;
  margin: 0 auto;
  border: 1px solid var(--border-lit);
  border-radius: 18px;
  padding: 80px 40px;
  background: linear-gradient(135deg,
    rgba(0,212,255,0.03) 0%,
    rgba(109,40,217,0.05) 100%
  );
  position: relative;
  overflow: hidden;
}
.cta-wrap::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: 18px;
  background: linear-gradient(135deg,
    rgba(0,212,255,0.18),
    rgba(109,40,217,0.18)
  );
  z-index: -1;
}

.cta-wrap h2 {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}

.cta-wrap p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.75;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── FOOTER ────────────────────────────────────── */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 6%;
  background: var(--bg);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* ─── SCROLL REVEAL ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .sobre-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }

  .pipeline {
    flex-direction: column;
  }
  .pipe-step {
    border-right: 1px solid var(--border);
    border-bottom: none;
    border-radius: 0;
  }
  .pipe-step:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .pipe-step:last-child  { border-radius: 0 0 var(--radius-lg) var(--radius-lg); border-bottom: 1px solid var(--border); }
  .pipe-step::after { display: none; }

  .cta-wrap { padding: 50px 24px; }
}