/* ==========================================================================
   Luciano Bandeira - Consultoria em TI
   Estrutura visual do site institucional
   ========================================================================== */

/* Variáveis globais */
:root {
  --bg-0: #05070d;
  --bg-1: #0a0f1c;
  --line: rgba(0, 229, 255, .18);
  --text: #e6f1ff;
  --text-dim: #9bb0c9;
  --primary: #00e5ff;
  --grad: linear-gradient(135deg, #00e5ff 0%, #3b82f6 50%, #7c5cff 100%);
  --grad-soft: linear-gradient(135deg, rgba(0, 229, 255, .18), rgba(124, 92, 255, .18));
  --shadow-glow: 0 0 40px rgba(0, 229, 255, .25);
  --focus: #ffe36e;
  --radius: 14px;
}

/* Reset e base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg-0);
  color: var(--text);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}

button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border: 2px solid var(--focus);
  border-radius: 8px;
  background: var(--bg-0);
  color: var(--text);
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

html[data-interaction-protection="active"] body {
  user-select: none;
  -webkit-touch-callout: none;
}

html[data-interaction-protection="active"] :is(
  input,
  textarea,
  select,
  [contenteditable="true"],
  [data-av-allow-copy],
  .av-allow-copy
) {
  user-select: text;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navegação */
.navbar {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  background: rgba(5, 7, 13, .55);
  backdrop-filter: blur(14px);
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
  -webkit-backdrop-filter: blur(14px);
}

.navbar.scrolled {
  border-bottom-color: var(--line);
  background: rgba(5, 7, 13, .85);
  box-shadow: 0 4px 30px rgba(0, 229, 255, .08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  gap: 24px;
}

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

.brand-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, .6));
}

.brand-text {
  color: var(--text);
  font-size: 14px;
  letter-spacing: 2px;
}

.brand-accent {
  margin-left: 4px;
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  position: relative;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 14px;
  transition: all .25s;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 4px;
  left: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--text);
}

.nav-cta {
  padding: 10px 18px;
  background: var(--grad);
  box-shadow: 0 0 24px rgba(0, 229, 255, .4);
  color: #001018;
  font-weight: 600;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  color: #001018;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  padding: 8px;
  gap: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: .3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-infraestrutura-cloud.webp');
  background-position: center;
  background-size: cover;
  filter: brightness(.45) saturate(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(0, 229, 255, .15), transparent 60%),
    linear-gradient(180deg, rgba(5, 7, 13, .4) 0%, rgba(5, 7, 13, .85) 60%, var(--bg-0) 100%);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, .08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  opacity: .25;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 229, 255, .06);
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 2px;
  animation: fadeUp .8s ease both;
  gap: 10px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
  animation: pulse 1.6s infinite;
}

.hero-title {
  margin-bottom: 20px;
  font-size: 4.2rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  animation: fadeUp .9s ease both;
}

.gradient-text {
  background: var(--grad);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
}

.hero-sub {
  max-width: 680px;
  margin-bottom: 32px;
  color: var(--text-dim);
  font-size: 1.1rem;
  animation: fadeUp 1s ease both;
}

.hero-sub strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: fadeUp 1.1s ease both;
}

.hero-actions.centered {
  justify-content: center;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  margin-top: 60px;
  gap: 48px;
  animation: fadeUp 1.2s ease both;
}

.stat strong {
  display: block;
  background: var(--grad);
  font-size: 2rem;
  font-weight: 800;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
}

.stat span {
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  color: var(--primary);
  font-size: 24px;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.reveal-ready {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal-ready.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: all .25s;
  gap: 8px;
}

.btn-primary {
  background: var(--grad);
  box-shadow: 0 0 30px rgba(0, 229, 255, .35);
  color: #001018;
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(0, 229, 255, .6);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #001018;
}

/* Seções */
.section {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
}

.section-compact {
  padding: 90px 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-0), var(--bg-1));
}

.section-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: .25;
  pointer-events: none;
}

.section-bg-pattern {
  background-image: url('../images/padrao-digital-cloud.webp');
}

.section-bg-datacenter {
  background-image: url('../images/data-center-infraestrutura-critica.webp');
}

.section-bg-muted {
  opacity: .18;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
}

.section-head h2 {
  margin-bottom: 14px;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
}

.section-head p {
  color: var(--text-dim);
  font-size: 1.05rem;
}

.package-note {
  margin-top: 12px;
  color: #ffb020;
}

/* Serviços */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
  transition: all .35s;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: .35s;
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-6px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.svc-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 12px;
  background: var(--grad);
  box-shadow: 0 0 24px rgba(0, 229, 255, .35);
  color: #001018;
}

.svc-icon svg {
  width: 30px;
  height: 30px;
}

.service-card h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.2rem;
}

.service-card p {
  color: var(--text-dim);
  font-size: .95rem;
}

/* Selos */
.seal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.seal-card {
  display: grid;
  align-content: start;
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(0, 229, 255, .09), rgba(124, 92, 255, .04)),
    rgba(255, 255, 255, .02);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .22);
  gap: 12px;
}

.seal-mark {
  display: inline-grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(0, 229, 255, .35);
  border-radius: 50%;
  background: rgba(0, 229, 255, .08);
  box-shadow: inset 0 0 20px rgba(0, 229, 255, .12);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
}

.seal-card h3 {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.25;
}

.seal-card span:last-child {
  color: var(--text-dim);
  font-size: .95rem;
}

/* Blocos divididos */
.split {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.split.reverse .split-visual {
  order: -1;
}

.split-text h2 {
  margin-bottom: 18px;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
}

.split-text p {
  margin-bottom: 20px;
  color: var(--text-dim);
}

.check-list {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  list-style: none;
  gap: 10px;
}

.check-list li {
  padding-left: 4px;
  color: var(--text);
}

.visual-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-1);
  box-shadow: var(--shadow-glow);
}

.visual-frame img {
  width: 100%;
  height: auto;
  opacity: .95;
}

.visual-frame-portrait {
  width: min(100%, 600px);
  margin-inline: auto;
}

.visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(5, 7, 13, .6) 100%);
}

/* Pacotes */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.price-card {
  position: relative;
  padding: 36px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
  transition: all .35s;
}

.price-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
}

.price-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(0, 229, 255, .08), rgba(124, 92, 255, .04));
  box-shadow: var(--shadow-glow);
  transform: scale(1.03);
}

.ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--grad);
  color: #001018;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  transform: translateX(-50%);
}

.price-head h3 {
  margin-bottom: 6px;
  font-size: 1.4rem;
}

.price-head p {
  margin-bottom: 24px;
  color: var(--text-dim);
  font-size: .9rem;
}

.price-value {
  margin-bottom: 24px;
  color: var(--text);
  font-size: 2.6rem;
  font-weight: 800;
}

.price-value span {
  margin-right: 4px;
  color: var(--text-dim);
  font-size: 1rem;
}

.price-value del,
.sold-out {
  color: #ff3d71;
}

.sold-out {
  margin: -18px 0 24px;
  font-size: 1.4rem;
  font-weight: 800;
}

.price-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
  list-style: none;
  gap: 10px;
}

.price-list li {
  color: var(--text-dim);
  font-size: .95rem;
}

/* Contato */
.contact-lead {
  max-width: 820px;
  margin: 0 auto 24px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 20px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 229, 255, .06);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: .5px;
}

.contact-email:hover {
  border-color: var(--primary);
}

/* Rodapé */
.footer {
  padding-top: 60px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-1), #03050a);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(420px, 1.2fr);
  padding-bottom: 40px;
  gap: 40px;
}

.validation-seals {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding-top: 22px;
  padding-bottom: 22px;
  border-top: 1px solid var(--line);
  list-style: none;
  gap: 8px;
}

.validation-seals li {
  min-width: 0;
}

.validation-seal {
  display: inline-flex;
  min-height: 34px;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, .018);
  color: var(--text-dim);
  text-align: center;
  text-decoration: none;
  gap: 7px;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.validation-mark {
  color: var(--primary);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .05em;
}

.validation-label {
  color: var(--text);
  font-size: .72rem;
  font-weight: 650;
  line-height: 1;
}

.validation-seal:hover {
  border-color: var(--primary);
  background: rgba(0, 229, 255, .07);
  color: var(--text);
}

.footer-tag {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 14px;
}

.footer-contact {
  display: inline-block;
  margin-top: 12px;
  color: var(--primary);
  font-size: .92rem;
  font-weight: 650;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.footer-cols h3 {
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-cols a {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dim);
  font-size: 14px;
  transition: .2s;
}

.footer-cols a:hover,
.footer-bottom a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 12px;
  gap: 16px;
}

/* Página 404 */
.error-page {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  padding: 40px 20px;
  text-align: center;
}

.error-bg {
  position: absolute;
  inset: 0;
  background: url('../images/pagina-nao-encontrada-cloud.webp') center/cover;
  filter: brightness(.4) saturate(1.1);
}

.error-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent, var(--bg-0) 70%);
}

.error-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.error-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 18px rgba(0, 229, 255, .45));
}

.error-code {
  background: var(--grad);
  font-size: 12rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 0 60px rgba(0, 229, 255, .5);
  animation: glitch 3s infinite;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
}

.error-content h1 {
  margin: 14px 0 10px;
  font-size: 1.6rem;
}

.error-content p {
  margin-bottom: 30px;
  color: var(--text-dim);
}

/* Animações */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .5;
    transform: scale(1.3);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glitch {
  0%,
  90%,
  100% {
    transform: translate(0, 0);
  }

  92% {
    transform: translate(-2px, 1px);
  }

  94% {
    transform: translate(2px, -1px);
  }

  96% {
    transform: translate(-1px, 2px);
  }
}

/* Responsividade */
@media (max-width: 980px) {
  .nav-links {
    gap: 2px;
  }

  .nav-link {
    padding: 8px 10px;
  }

  .hero-title {
    font-size: 3.4rem;
  }

  .section-head h2 {
    font-size: 2.45rem;
  }

  .split-text h2 {
    font-size: 2.3rem;
  }
}

@media (max-width: 880px) {
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split.reverse .split-visual {
    order: 0;
  }

  .footer-inner,
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    right: -100%;
    flex-direction: column;
    align-items: stretch;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    overflow-y: auto;
    padding: 24px;
    border-left: 1px solid var(--line);
    background: rgba(5, 7, 13, .97);
    backdrop-filter: blur(20px);
    gap: 4px;
    transition: right .3s;
  }

  .nav-links.open {
    right: 0;
  }

  body.menu-open {
    overflow: hidden;
  }

  .nav-link {
    padding: 14px 16px;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat strong {
    font-size: 1.5rem;
  }

  .section {
    padding: 80px 0;
  }

  .section-compact {
    padding: 70px 0;
  }
}

@media (max-width: 560px) {
  .brand-text {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .hero {
    padding-top: 100px;
  }

  .hero-title {
    font-size: 2.35rem;
  }

  .section-head h2,
  .split-text h2 {
    font-size: 2rem;
  }

  .hero-actions,
  .hero-stats {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .contact-email {
    width: 100%;
  }

  .validation-seals {
    padding-right: 12px;
    padding-left: 12px;
    gap: 4px;
  }

  .validation-seal {
    min-height: 32px;
    padding: 4px 2px;
  }

  .validation-mark {
    font-size: .57rem;
    letter-spacing: 0;
  }

  .validation-label {
    display: none;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .error-code {
    font-size: 7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
