/* ============================================================
   PB Tecnologia — Landing Page
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #03141E;
  --bg-footer: #020D14;
  --card: #0A2030;
  --card-border: #1C3850;
  --chip-bg: #0D2738;
  --primary: #4460EF;
  --primary-2: #293F99;
  --accent: #6982FF;
  --text: #F7F7F7;
  --muted: #9FB4C6;
  --dim: #6F879B;
  --placeholder: #305672;

  --maxw: 1200px;
  --pad-x: 120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Dynamic diffuse background ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}
.bg-fx::before,
.bg-fx::after {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(38% 38% at 20% 18%, rgba(68, 96, 239, 0.40), transparent 70%),
    radial-gradient(34% 34% at 82% 30%, rgba(41, 63, 153, 0.42), transparent 70%),
    radial-gradient(40% 40% at 65% 78%, rgba(105, 130, 255, 0.28), transparent 70%),
    radial-gradient(30% 30% at 12% 82%, rgba(68, 96, 239, 0.24), transparent 70%);
  filter: blur(110px);
  will-change: transform;
}
.bg-fx::before {
  opacity: 0.6;
  animation: bgFloat1 13s ease-in-out infinite alternate;
}
.bg-fx::after {
  opacity: 0.40;
  background:
    radial-gradient(36% 36% at 78% 14%, rgba(105, 130, 255, 0.36), transparent 70%),
    radial-gradient(42% 42% at 25% 60%, rgba(41, 63, 153, 0.38), transparent 70%),
    radial-gradient(32% 32% at 88% 82%, rgba(68, 96, 239, 0.30), transparent 70%);
  animation: bgFloat2 17s ease-in-out infinite alternate;
}

@keyframes bgFloat1 {
  0%   { transform: translate3d(-12%, -8%, 0) scale(1)    rotate(0deg); }
  50%  { transform: translate3d(14%, 10%, 0)  scale(1.35) rotate(20deg); }
  100% { transform: translate3d(9%, -14%, 0)  scale(1.12) rotate(-16deg); }
}
@keyframes bgFloat2 {
  0%   { transform: translate3d(12%, 9%, 0)    scale(1.25) rotate(0deg); }
  50%  { transform: translate3d(-16%, -11%, 0) scale(1)    rotate(-24deg); }
  100% { transform: translate3d(-7%, 15%, 0)   scale(1.4)  rotate(18deg); }
}

/* Mesmo com "reduzir movimento", mantém o fundo vivo — apenas um pouco mais lento */
@media (prefers-reduced-motion: reduce) {
  .bg-fx::before { animation-duration: 22s; }
  .bg-fx::after  { animation-duration: 28s; }
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font-family: inherit; cursor: pointer; border: none; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--pad-x) * 2);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--primary); color: var(--text); }
.btn--primary:hover { background: #3a55da; }

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.2px solid var(--card-border);
}
.btn--outline:hover { border-color: var(--accent); background: rgba(68,96,239,.08); }

.btn--white { background: var(--text); color: var(--bg); }
.btn--white:hover { opacity: .9; }

.btn--block { width: 100%; }

/* ---------- Eyebrow chip ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--chip-bg);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

/* Section label (small caps) */
.section-label {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 96px;
  display: flex;
  align-items: center;
  z-index: 50;
  background: rgba(4, 22, 35, 0.55);
  backdrop-filter: blur(12.5px);
  -webkit-backdrop-filter: blur(12.5px);
  border-bottom: 1px solid rgba(28, 56, 80, 0.4);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; }
.brand img { height: 22px; width: auto; }

.nav-right { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-toggle { display: none; background: none; color: var(--text); padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Generic section ---------- */
section { position: relative; }
.section-pad { padding: 100px 0; }

/* ---------- Hero ---------- */
.hero {
  padding-top: 196px;
  padding-bottom: 100px;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}
.hero h1 {
  font-size: 58px;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.5px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .sub {
  max-width: 560px;
  font-size: 19px;
  color: var(--muted);
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Hero visual: sistema orbital ---------- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.orbit-system {
  position: relative;
  width: 420px;
  height: 420px;
  animation: orbFloat 9s ease-in-out infinite alternate;
}
.orbit-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(68,96,239,0.45), transparent 65%);
  filter: blur(40px);
  animation: orbGlow 4s ease-in-out infinite;
}

/* anéis */
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(105, 130, 255, 0.18);
  transform: translate(-50%, -50%);
}
.orbit--1 { width: 420px; height: 420px; animation: spin 26s linear infinite; }
.orbit--2 { width: 300px; height: 300px; border-style: dashed; border-color: rgba(105,130,255,0.22); animation: spin 20s linear infinite reverse; }
.orbit--3 { width: 180px; height: 180px; animation: spin 14s linear infinite; }

/* chips orbitando (mesmo estilo dos chips do site) */
.orb-chip {
  position: absolute;
  top: -19px;
  left: calc(50% - 19px);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--accent);
  background: rgba(68, 96, 239, 0.14);
  border: 1px solid rgba(68, 96, 239, 0.4);
  box-shadow: 0 6px 22px rgba(3, 20, 30, 0.5), 0 0 18px rgba(68, 96, 239, 0.35);
  backdrop-filter: blur(2px);
}
.orb-chip svg { width: 20px; height: 20px; }
.orbit--1 .orb-chip { animation: spin-self 26s linear infinite reverse; }
.orbit--2 .orb-chip { animation: spin-self 20s linear infinite; }
.orbit--3 .orb-chip { animation: spin-self 14s linear infinite reverse; }

/* núcleo */
.orb-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  transform: translate(-50%, -50%);
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 0 1px rgba(247,247,247,0.12), 0 18px 50px rgba(68, 96, 239, 0.5);
  animation: corePulse 4s ease-in-out infinite;
}
.orb-core svg { width: 40px; height: 40px; }

@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spin-self { to { transform: rotate(360deg); } }
@keyframes orbFloat {
  from { transform: translateY(-10px); }
  to   { transform: translateY(10px); }
}
@keyframes orbGlow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 0.9;  transform: scale(1.12); }
}
@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(247,247,247,0.12), 0 18px 50px rgba(68, 96, 239, 0.45); }
  50%      { box-shadow: 0 0 0 1px rgba(247,247,247,0.18), 0 18px 70px rgba(68, 96, 239, 0.8); }
}

/* ---------- Partners / Marquee ---------- */
.partners { padding: 74px 0; }
.partners .section-label-strong {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 34px;
}
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 50s linear infinite;
}
.marquee__track img {
  height: 45px;
  width: auto;
  margin-right: 80px;
  opacity: 0.85;
  flex: none;
  filter: grayscale(1);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Quem Somos ---------- */
.about .row {
  display: flex;
  gap: 72px;
  align-items: flex-start;
}
.about__text { flex: 0 0 470px; max-width: 470px; display: flex; flex-direction: column; gap: 22px; }
.about__text h2 {
  font-size: 38px;
  font-weight: 600;
  line-height: 1.16;
}
.about__text p { font-size: 17.5px; color: var(--muted); }

.about__cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-content: start;
}
.highlight {
  padding: 26px 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 160px;
}
.highlight--accent { background: var(--primary); border-color: transparent; }
.highlight img { width: 46px; height: 46px; }
.highlight h3 { font-size: 16.5px; font-weight: 600; line-height: 1.38; }

/* ---------- Section head (centered) ---------- */
.head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.head h2 { font-size: 40px; font-weight: 600; line-height: 1.14; }
.head p { font-size: 18px; color: var(--muted); }

/* ---------- Solutions ---------- */
.solutions { position: relative; z-index: 1; }
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.product {
  padding: 36px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.product img { width: 58px; height: 58px; }
.product h3 { font-size: 24px; font-weight: 600; }
.product p { font-size: 16.5px; color: var(--muted); line-height: 1.65; }
.link-more {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  gap: 6px;
  transition: gap .2s ease;
}
.link-more:hover { gap: 12px; }

/* ---------- Differentials / Pilares ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.pillar {
  padding: 34px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pillar .num {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.pillar h3 { font-size: 22px; font-weight: 600; line-height: 1.2; }
.pillar p { font-size: 16.5px; color: var(--muted); line-height: 1.62; }

/* ---------- CTA Final ---------- */
.cta-final { padding: 100px 0; }
.cta-panel {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 100%);
  border-radius: 28px;
  padding: 72px 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.cta-panel h2 { font-size: 38px; font-weight: 600; line-height: 1.18; max-width: 743px; }
.cta-panel p { font-size: 18px; color: rgba(255,255,255,0.92); max-width: 640px; line-height: 1.6; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-footer);
  padding: 100px 0 60px;
}
.footer .f-top {
  display: flex;
  justify-content: space-between;
  gap: 80px;
  flex-wrap: wrap;
}
.f-brand { max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.f-brand img { height: 18px; width: auto; }
.f-brand p { font-size: 16px; color: var(--muted); line-height: 1.58; }
.f-brand a.email { font-size: 15px; font-weight: 500; color: var(--accent); }

.f-cols { display: flex; gap: 80px; }
.f-col { display: flex; flex-direction: column; gap: 16px; }
.f-col h4 {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}
.f-col a {
  font-size: 15.5px;
  color: var(--muted);
  transition: color .2s ease;
}
.f-col a:hover { color: var(--text); }

.f-bot {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.f-bot span { font-size: 14px; color: var(--dim); }

/* ---------- Contact form (Fale Conosco) ---------- */
.contact { padding-top: 196px; }
.contact .head { margin-bottom: 30px; }
.contact .head h1 { font-size: 62px; font-weight: 600; line-height: 1.04; }
.form-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.field { display: flex; flex-direction: column; gap: 15px; }
.field label { font-size: 24px; font-weight: 600; }
.field input,
.field textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px;
  color: var(--text);
  font-family: inherit;
  font-size: 16.5px;
  line-height: 1.65;
  transition: border-color .2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--placeholder); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--primary); }
.field textarea { min-height: 170px; resize: vertical; }
.form-row { display: flex; gap: 30px; }
.form-row .field { flex: 1; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  :root { --pad-x: 48px; }
  .hero h1 { font-size: 46px; }
  .about .row { flex-direction: column; gap: 40px; }
  .about__text { flex-basis: auto; max-width: 100%; }

  /* Hero empilhado e centralizado */
  .hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 48px;
  }
  .hero-content { align-items: center; }
  .hero .sub { max-width: 640px; }
  .hero-ctas { justify-content: center; }
  .hero-visual { transform: scale(0.85); }
}

@media (max-width: 768px) {
  :root { --pad-x: 24px; }

  .nav-right .nav-links,
  .nav-right .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .navbar.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 96px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--card-border);
    padding: 24px var(--pad-x);
    gap: 22px;
  }
  .navbar.open .nav-right .btn { display: inline-flex; }
  .navbar.open .nav-right {
    position: absolute;
    top: 96px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--card-border);
    padding: 24px var(--pad-x);
    gap: 22px;
  }

  /* Espaçamento entre seções mais compacto no mobile */
  .section-pad { padding: 44px 0; }
  .partners { padding: 40px 0; }
  .cta-final { padding: 44px 0; }
  .footer { padding: 56px 0 40px; }
  .hero { padding-top: 130px; padding-bottom: 44px; }
  .hero h1 { font-size: 36px; }
  .hero .sub { font-size: 17px; }
  .hero-ctas { width: 100%; flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .orbit-system { width: 300px; height: 300px; }
  .orbit--1 { width: 300px; height: 300px; }
  .orbit--2 { width: 214px; height: 214px; }
  .orbit--3 { width: 128px; height: 128px; }
  .orb-core { width: 74px; height: 74px; border-radius: 20px; }
  .orb-core svg { width: 32px; height: 32px; }
  .hero-visual { transform: none; }

  .about__cards { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }

  .head h2 { font-size: 30px; }
  .about__text h2 { font-size: 30px; }
  .contact .head h1 { font-size: 38px; }

  .cta-panel { padding: 48px 28px; }
  .cta-panel h2 { font-size: 28px; }

  .form-row { flex-direction: column; gap: 20px; }
  .form-card { padding: 24px; }

  .f-cols { gap: 48px; flex-wrap: wrap; }
}
