/* ============================================================
   Beekeeper Security — layout inspirado na Apple
   Paleta extraída da marca: azul-marinho, dourado e ciano.
============================================================ */

:root {
  --navy: #0a1826;         /* fundo escuro principal */
  --navy-2: #0d1f33;       /* variação de fundo escuro */
  --gold: #e8b04a;
  --gold-hi: #f3c766;
  --cyan: #55d6e6;
  --link: #46b7e6;         /* link azul sobre fundo claro */
  --link-hi: #2f9fd6;
  --link-dark: #6fdcea;    /* link sobre fundo escuro */
  --paper: #f4f5f7;        /* fundo claro */
  --paper-2: #fbfbfd;
  --text-dark: #12212f;
  --text-muted: #5c6b7a;
  --text-light: #eef4fb;
  --text-light-mut: #93a7bd;
  --nav-h: 52px;
  --maxw: 1000px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--paper-2);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

/* ===================== Navegação ===================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(8, 18, 30, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(85, 214, 230, 0.12);
}
.nav-inner {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  width: 30px; height: 30px;
  border-radius: 8px;
  object-fit: cover;
}
.nav-logo span {
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}
.nav-logo b { color: var(--gold); font-weight: 700; }
.nav-menu { flex: 1; display: flex; justify-content: center; gap: 28px; }
.nav-menu a {
  color: var(--text-light-mut);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}
.nav-menu a:hover { color: #fff; }
.nav-icon { color: var(--text-light-mut); display: flex; transition: color 0.2s; }
.nav-icon:hover { color: var(--cyan); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 22px; height: 1.5px; background: var(--text-light-mut); transition: 0.3s; }

/* ===================== Tiles ===================== */
.tile {
  min-height: 620px;
  display: flex;
  justify-content: center;
  padding: 72px 22px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tile-dark { background: var(--navy); color: var(--text-light); }
.tile-light { background: var(--paper); color: var(--text-dark); }
.tile-dark + .tile-dark { background: var(--navy-2); }

.tile-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.tile h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.tile h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
.sub {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 400;
  margin-top: 12px;
  max-width: 580px;
}
.tile-light .sub { color: var(--text-muted); }
.tile-dark .sub { color: var(--text-light-mut); }

/* Links de ação */
.links { display: flex; gap: 26px; margin-top: 24px; flex-wrap: wrap; justify-content: center; }
.link {
  color: var(--link);
  text-decoration: none;
  font-size: 1.08rem;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color 0.2s;
}
.tile-dark .link { color: var(--link-dark); }
.link i { font-style: normal; transition: transform 0.2s; }
.link:hover { text-decoration: underline; }
.link:hover i { transform: translateX(3px); }

/* Hero */
.tile-hero { align-items: center; min-height: calc(100vh - var(--nav-h)); }
.hero-logo {
  width: 118px; height: 118px;
  border-radius: 26px;
  margin-bottom: 26px;
  box-shadow: 0 0 60px rgba(85, 214, 230, 0.25), 0 20px 50px rgba(0,0,0,0.5);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }
.hex-hero {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(560px 380px at 50% 34%, rgba(85, 214, 230, 0.14), transparent 60%),
    radial-gradient(460px 340px at 72% 70%, rgba(232, 176, 74, 0.12), transparent 60%);
}
.hex-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(60deg, rgba(85,214,230,0.05) 1px, transparent 1px),
    linear-gradient(-60deg, rgba(85,214,230,0.05) 1px, transparent 1px);
  background-size: 46px 80px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 75%);
}

/* Tile com imagem de marca ao fundo */
.tile-image { background: var(--navy); }
.tile-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("hero-shield.jpeg");
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  mask-image: radial-gradient(ellipse at 50% 60%, #000 30%, transparent 78%);
}

/* ===================== Mapa de ameaças ===================== */
.threat {
  background: linear-gradient(180deg, #071320, var(--navy) 40%);
  padding: 90px 22px 100px;
  color: var(--text-light);
  border-top: 1px solid rgba(85,214,230,0.1);
  border-bottom: 1px solid rgba(85,214,230,0.1);
}
.threat-head { max-width: var(--maxw); margin: 0 auto 34px; text-align: center; }
.threat-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; letter-spacing: -0.03em; }
.threat-head .sub { color: var(--text-light-mut); margin-left: auto; margin-right: auto; }
.threat-map {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #0b2136, #07131f);
  border: 1px solid rgba(85,214,230,0.18);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), inset 0 0 60px rgba(85,214,230,0.05);
}
#attackMap { display: block; width: 100%; height: auto; }
.threat-legend {
  position: absolute;
  left: 16px; bottom: 14px;
  display: flex;
  gap: 18px;
  font-size: 0.74rem;
  color: var(--text-light-mut);
  flex-wrap: wrap;
  align-items: center;
}
.threat-legend .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.dot-src { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.dot-tgt { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.threat-legend .illus { color: var(--text-light-mut); font-style: italic; }
.threat-stats {
  max-width: var(--maxw);
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
}
.threat-stats div {
  background: rgba(85,214,230,0.05);
  border: 1px solid rgba(85,214,230,0.14);
  border-radius: 16px;
  padding: 22px 16px;
}
.threat-stats strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.threat-stats span { font-size: 0.82rem; color: var(--text-light-mut); }

/* ===================== Par de tiles ===================== */
.tile-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: var(--paper-2); }
.tile-half { min-height: 520px; }

/* ===================== Cabeçalho de seção ===================== */
.section-head { max-width: var(--maxw); margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow { display: block; }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 700; letter-spacing: -0.03em; }
.section-head .sub { margin: 12px auto 0; }

/* ===================== Grades ===================== */
.grid-section { background: var(--paper-2); padding: 90px 22px; }
.grid-section-dark { background: var(--navy); color: var(--text-light); }
.grid-section-dark .section-head .sub { color: var(--text-light-mut); }
.grid-2 { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mini-ico {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  border-radius: 14px;
  background: rgba(85,214,230,0.1);
  border: 1px solid rgba(85,214,230,0.2);
  margin-bottom: 16px;
}

/* ===================== Serviços ===================== */
.services { background: var(--paper); padding: 90px 22px; }
.service {
  max-width: var(--maxw);
  margin: 0 auto 22px;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-left: 4px solid var(--cyan);
  border-radius: 22px;
  padding: 36px 38px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: 0 26px 55px rgba(10,24,38,0.12); }
.service[data-accent="cyan"] { border-left-color: #00b4d8; }
.service[data-accent="gold"] { border-left-color: var(--gold); }
.service[data-accent="violet"] { border-left-color: #7b57c8; }
.service-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.service-ico {
  font-size: 1.7rem;
  width: 60px; height: 60px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 16px;
  background: #f4f6f9;
  border: 1px solid #e6e8ec;
}
.service-head h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.service-tag { color: var(--text-muted); font-size: 0.95rem; margin-top: 2px; }
.service-desc { color: var(--text-muted); font-size: 1rem; line-height: 1.6; margin-bottom: 22px; }
.service-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
.service-list li {
  position: relative;
  padding-left: 26px;
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.45;
}
.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: #00b4d8;
  font-weight: 700;
}
.service[data-accent="gold"] .service-list li::before { color: var(--gold); }
.service[data-accent="violet"] .service-list li::before { color: #7b57c8; }
.mini {
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 22px;
  padding: 34px 32px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s;
}
.mini:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(10,24,38,0.12); border-color: var(--cyan); }
.mini-tag { font-size: 0.78rem; font-weight: 600; color: var(--link-hi); }
.mini h3 { font-size: 1.5rem; font-weight: 700; margin: 10px 0 8px; letter-spacing: -0.02em; }
.mini p { color: var(--text-muted); font-size: 1rem; line-height: 1.55; }

.steps { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 22px;
  padding: 30px 28px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s;
}
.step:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(10,24,38,0.12); border-color: var(--gold); }
.step span { font-size: 1.3rem; font-weight: 800; color: var(--gold); display: block; margin-bottom: 10px; }
.step h3 { font-size: 1.22rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.02em; }
.step p { color: var(--text-muted); font-size: 0.96rem; line-height: 1.55; }
/* passos sobre fundo escuro */
.steps-dark .step {
  background: rgba(85,214,230,0.04);
  border-color: rgba(85,214,230,0.14);
}
.steps-dark .step:hover { border-color: var(--gold); box-shadow: 0 24px 50px rgba(0,0,0,0.4); }
.steps-dark .step h3 { color: var(--text-light); }
.steps-dark .step p { color: var(--text-light-mut); }

/* ===================== Contato ===================== */
.tile-contato { min-height: 640px; align-items: center; }
.form { width: 100%; max-width: 480px; margin-top: 30px; display: grid; gap: 12px; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form input, .form textarea {
  width: 100%;
  background: rgba(85,214,230,0.06);
  border: 1px solid rgba(85,214,230,0.18);
  border-radius: 14px;
  padding: 15px 18px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.25s, background 0.25s;
  resize: vertical;
}
.form input::placeholder, .form textarea::placeholder { color: var(--text-light-mut); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--cyan); background: rgba(85,214,230,0.1); }
.btn {
  background: linear-gradient(120deg, var(--gold), var(--gold-hi));
  color: #1a1205;
  border: 0;
  border-radius: 999px;
  padding: 15px 24px;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(232,176,74,0.35); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
.form-msg { text-align: center; font-size: 0.92rem; min-height: 1.2em; margin-top: 4px; }
.form-msg.ok { color: var(--cyan); }
.form-msg.err { color: #ff9a9a; }
.form-msg a { color: var(--gold); text-decoration: underline; }
.char-count {
  text-align: right;
  font-size: 0.78rem;
  color: var(--text-light-mut);
  margin-top: -4px;
}
.form-consent {
  font-size: 0.8rem;
  color: var(--text-light-mut);
  text-align: center;
  margin-top: -2px;
}
.form-consent a { color: var(--gold); text-decoration: underline; }

/* ===================== Página legal ===================== */
.legal-nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 5vw, 40px);
  background: var(--navy);
  border-bottom: 1px solid rgba(85, 214, 230, 0.12);
}
.legal-nav a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.legal-nav img { width: 28px; height: 28px; border-radius: 7px; }
.legal-nav span { color: var(--text-light); font-weight: 700; font-size: 0.9rem; }
.legal-nav b { color: var(--gold); }
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px clamp(20px, 5vw, 40px) 90px;
  color: var(--text-dark);
}
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; }
.legal .updated { color: var(--text-muted); font-size: 0.9rem; margin: 8px 0 34px; }
.legal h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 34px 0 10px;
  letter-spacing: -0.01em;
}
.legal p, .legal li { color: #34424f; font-size: 1rem; line-height: 1.7; }
.legal ul { margin: 8px 0 8px 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--link-hi); }
.legal .back { display: inline-block; margin-top: 40px; color: var(--link-hi); text-decoration: none; font-weight: 600; }
.contato-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 30px;
  color: var(--text-light-mut);
  font-size: 0.9rem;
}

/* ===================== Rodapé ===================== */
.footer { background: var(--paper); color: var(--text-muted); padding: 42px 22px; font-size: 0.8rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-note { padding-bottom: 20px; border-bottom: 1px solid #d3d7dd; line-height: 1.5; max-width: 760px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid #d3d7dd; }
.footer-cols h4 { font-size: 0.8rem; color: var(--text-dark); margin-bottom: 10px; font-weight: 600; }
.footer-cols a { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 7px; transition: color 0.2s; }
.footer-cols a:hover { color: var(--link-hi); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 20px; }

/* ===================== Reveal ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===================== Responsivo ===================== */
@media (max-width: 820px) {
  .nav-menu {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 26px;
    background: rgba(8,18,30,0.97);
    backdrop-filter: blur(20px);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: 0.28s;
  }
  .nav-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu a { font-size: 1rem; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-icon { display: none; }
  .nav-logo span { display: none; }
  .tile-pair { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .threat-stats { grid-template-columns: 1fr; }
  .service { padding: 28px 24px; }
  .service-list { grid-template-columns: 1fr; }
  .tile, .tile-half { min-height: 500px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
