/* ==========================================================================
   CYBERDEFENDER — Estilos
   Paleta: vermelho + preto · Estética: cyber / teia digital
   ========================================================================== */

:root {
  --bg-0: #0a0a18;
  --bg-1: #14091a;
  --bg-2: #1c0a14;
  --panel: rgba(40, 15, 22, 0.55);
  --panel-line: rgba(255, 60, 80, 0.28);

  --red: #e11d2a;
  --red-dark: #8a0f18;
  --red-bright: #ff3a4a;
  --red-deep: #ff2a3d;
  --pink: #ff6b7a;

  --text: #f2e8ea;
  --muted: #c4aeb2;
  --white: #ffffff;

  --radius: 14px;
  --header-h: 78px;

  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 58, 74, 0.20) 0%, transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(225, 29, 42, 0.15) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, #1a0a12 0%, transparent 70%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1) 40%, var(--bg-2));
  background-attachment: fixed;
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 58, 74, 0.07) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(0deg, rgba(255, 58, 74, 0.07) 1px, transparent 1px) 0 0 / 60px 60px,
    radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.45) 100%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 45%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 45%, transparent 90%);
  opacity: 0.9;
}

body::after {
  content: "";
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;
  height: 70vh;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(255, 58, 74, 0.30) 0%,
    rgba(255, 58, 74, 0.12) 25%,
    transparent 60%
  );
  filter: blur(20px);
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.site-header, main, .site-footer { position: relative; z-index: 2; }

a { color: var(--red-bright); text-decoration: none; }
a:hover { color: var(--white); }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

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

:focus-visible {
  outline: 3px solid var(--red-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* Skip link */
.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); color: var(--white); }

/* Logo */
.logo {
  display: block;
  height: 44px;
  width: auto;
  filter: invert(1) hue-rotate(180deg) brightness(1.1)
          drop-shadow(0 0 14px rgba(255, 58, 74, 0.6));
  transition: transform 0.2s ease;
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(10, 6, 15, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--panel-line);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--white);
  text-decoration: none;
}
.brand:hover .logo { transform: scale(1.03); }

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(225, 29, 42, 0.10);
  border: 1px solid var(--panel-line);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  opacity: 0.5;
  transition: opacity 0.2s ease, background 0.2s ease,
              box-shadow 0.2s ease, transform 0.2s ease;
}
.lang-btn:hover {
  opacity: 1;
  background: rgba(225, 29, 42, 0.18);
  transform: translateY(-1px);
}
.lang-btn.is-active {
  opacity: 1;
  background: rgba(255, 58, 74, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 58, 74, 0.55),
              0 0 14px rgba(255, 58, 74, 0.35);
}
.lang-btn svg {
  display: block;
  width: 24px; height: 17px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a:not(.btn) {
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.92rem;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).is-active {
  background: rgba(225, 29, 42, 0.18);
  color: var(--white);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 0;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--red-bright), var(--red));
  color: var(--white);
  box-shadow: 0 0 22px rgba(255, 58, 74, 0.5);
}
.btn-primary:hover { box-shadow: 0 0 32px rgba(255, 58, 74, 0.85); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--panel-line);
}
.btn-ghost:hover {
  background: rgba(225, 29, 42, 0.15);
  border-color: var(--red-bright);
}

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--panel-line);
  border-radius: 10px;
  background: rgba(225, 29, 42, 0.14);
  color: var(--white);
}
.menu-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin: 4px auto;
  background: currentColor;
}

/* Hero */
.hero {
  padding: calc(var(--header-h) + 80px) 0 100px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 58, 74, 0.12);
  border: 1px solid rgba(255, 58, 74, 0.42);
  color: var(--red-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-logo {
  margin: 0 auto 30px;
  height: clamp(58px, 8.5vw, 88px);
  width: auto;
  filter: invert(1) hue-rotate(180deg) brightness(1.1)
          drop-shadow(0 0 28px rgba(255, 58, 74, 0.7));
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--white);
  text-shadow: 0 0 32px rgba(255, 58, 74, 0.55);
  text-wrap: balance;
}
h1 .accent {
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  max-width: 820px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 1.15rem;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

section { padding: 90px 0; }
.section-tight { padding-top: 20px; }

.section-title {
  margin: 0 0 12px;
  text-align: center;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--white);
  font-weight: 800;
  letter-spacing: -0.5px;
  text-wrap: balance;
}

.section-sub {
  max-width: 760px;
  margin: 0 auto 54px;
  text-align: center;
  color: var(--muted);
  text-wrap: pretty;
}

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(225, 29, 42, 0.12), rgba(255, 58, 74, 0.05));
  border: 1px solid var(--panel-line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 58, 74, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--red-bright);
  box-shadow: 0 18px 50px rgba(255, 58, 74, 0.30);
}
.card:hover::before { opacity: 1; }

.card h3 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 800;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 58, 74, 0.25), rgba(225, 29, 42, 0.35));
  border: 1px solid rgba(255, 58, 74, 0.45);
  color: var(--red-bright);
  font-size: 1.5rem;
  font-weight: 900;
  box-shadow: 0 0 18px rgba(255, 58, 74, 0.32);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
}
.feature-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
  font-size: 0.92rem;
}
.feature-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--red-bright);
  font-weight: 900;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 58, 74, 0.14);
  border: 1px solid rgba(255, 58, 74, 0.48);
  color: var(--red-bright);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Metodologia */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-line);
  text-align: center;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.step .num {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-bright), var(--red));
  color: var(--white);
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 0 22px rgba(255, 58, 74, 0.6);
}
.step h4 {
  margin: 0 0 6px;
  color: var(--white);
  font-size: 1.05rem;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* MVV */
.mvv {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.mvv .card { text-align: center; }
.mvv .icon { margin: 0 auto 18px; }

.values-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.values-tags li {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(225, 29, 42, 0.18);
  border: 1px solid rgba(225, 29, 42, 0.50);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.stat {
  padding: 26px 18px;
  text-align: center;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 58, 74, 0.10), rgba(225, 29, 42, 0.10));
  border: 1px solid var(--panel-line);
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.stat strong {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat span {
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.5px;
}

/* Contato */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.contact-info {
  padding: 34px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.contact-info h3 {
  margin: 0 0 20px;
  color: var(--white);
  font-size: 1.3rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
  font-size: 0.95rem;
}
.contact-list .ci {
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(255, 58, 74, 0.16);
  color: var(--red-bright);
  font-weight: 900;
}

/* Mapa */
.map-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--panel-line);
  min-height: 420px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, rgba(255, 58, 74, 0.10), rgba(225, 29, 42, 0.10));
}
.map-frame .map-header {
  padding: 22px 26px;
  text-align: center;
  border-bottom: 1px solid var(--panel-line);
  background: linear-gradient(180deg, rgba(225, 29, 42, 0.16), rgba(255, 58, 74, 0.04));
}
.map-frame .map-header strong {
  display: block;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 800;
  text-shadow: 0 0 18px rgba(255, 58, 74, 0.4);
}
.map-frame .map-header span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.map-frame iframe {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 320px;
  border: 0;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.7) contrast(0.9);
}

/* Footer */
.site-footer {
  padding: 54px 0 26px;
  margin-top: 60px;
  background: rgba(10, 6, 15, 0.7);
  border-top: 1px solid var(--panel-line);
  color: var(--muted);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 30px;
}
.footer-grid h4 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 0.98rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footer-grid a, .footer-grid li {
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-grid a:hover { color: var(--red-bright); }
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 16px;
}
.footer-brand .logo { height: 38px; }

.footer-tagline {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 340px;
  margin: 0;
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--panel-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsivo */
@media (max-width: 980px) {
  .menu-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    display: grid;
    gap: 4px;
    padding: 16px 20px 22px;
    background: rgba(10, 6, 15, 0.98);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--panel-line);
    transform: translateY(-130%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav-links.is-open {
    transform: translateY(0);
    visibility: visible;
  }
  .nav-links a:not(.btn) { padding: 12px 16px; }
  .nav-links .btn { justify-content: center; margin-top: 8px; }
  .lang-switcher { margin: 10px 0 4px; justify-content: center; }

  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mvv { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --header-h: 68px; }

  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps, .stats { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .map-frame { min-height: 380px; }
  .map-frame iframe { min-height: 260px; }
  .map-frame .map-header { padding: 18px 20px; }
  .logo { height: 38px; }
  .lang-btn { width: 38px; height: 28px; }
  .lang-btn svg { width: 22px; height: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media (prefers-contrast: more) {
  :focus-visible { outline: 4px solid #fff; }
  .nav-links a:not(.btn),
  .footer-grid a {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .card { border-color: var(--red-bright); }
}
