:root {
  color-scheme: light;
  --navy-950: #0E1526;
  --navy-900: #131C30;
  --navy-border: #293552;
  --paper: #F5F7FA;
  --white: #FFFFFF;
  --ink: #141B2C;
  --ink-muted: #5B6472;
  --line: #E4E8F0;
  --on-dark: #E7EAF2;
  --on-dark-muted: #93A0BC;
  --primary: #3B82F6;
  --primary-hover: #2563EB;
  --blue-050: #EAF1FF;
  --amber: #F2A93B;
  --success: #22C55E;
  --danger: #EF4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: "Public Sans", -apple-system, "Segoe UI", sans-serif; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

h1, h2, h3 {
  font-family: "Manrope", -apple-system, "Segoe UI", sans-serif;
  font-weight: 800;
  text-wrap: balance;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section[id] { scroll-margin-top: 5rem; }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
}

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

/* ===== BOTÕES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}
.btn.primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59,130,246,0.35);
}

.btn.ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(231,234,242,.28);
}
.btn.ghost:hover {
  border-color: rgba(231,234,242,.55);
  background: rgba(231,234,242,.06);
}

.btn.whatsapp {
  background: var(--success);
  color: #fff;
}
.btn.whatsapp:hover {
  background: #16A34A;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34,197,94,0.35);
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 21, 38, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s;
}
header.scrolled {
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  border-bottom-color: var(--navy-border);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--on-dark-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--on-dark); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn { padding: 9px 16px; font-size: 13px; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--on-dark);
  font-size: 28px;
  cursor: pointer;
  padding: 4px;
}

/* ===== HERO (escuro) ===== */
.hero {
  background: var(--navy-950);
  color: var(--on-dark);
  padding: 76px 0 0;
}
.hero-inner { max-width: 720px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--navy-border);
  background: var(--navy-900);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 24px;
}
.badge .material-symbols-outlined { font-size: 16px; }

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: #fff;
}
.hero h1 span { color: var(--primary); }

.hero p.lead {
  margin-top: 22px;
  font-size: 18px;
  color: var(--on-dark-muted);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.proof-strip {
  margin-top: 64px;
  border-top: 1px solid var(--navy-border);
  padding: 26px 0 30px;
}
.proof-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 18px;
}
.proof-logos { display: flex; align-items: center; gap: 44px; flex-wrap: wrap; }
.proof-logos a { display: inline-flex; }
.proof-logos img {
  height: 20px;
  width: auto;
  transition: transform .22s ease, filter .22s ease, opacity .22s ease;
}
.proof-logos img:hover {
  transform: translateY(-3px) scale(1.08);
  filter: drop-shadow(0 4px 14px rgba(59,130,246,.55));
}
.proof-logos .soon { opacity: .4; }
.proof-logos .soon:hover { opacity: .8; }

/* ===== SECTION HEADINGS ===== */
.section { padding: 88px 0; background: var(--white); }
.section.alt { background: var(--paper); }

.section-head { max-width: 620px; margin-bottom: 52px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
  display: inline-block;
}
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); color: var(--ink); }
.section-head p { margin-top: 14px; color: var(--ink-muted); font-size: 16px; max-width: 58ch; }

/* ===== SERVIÇOS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 18px;
  transition: transform 0.2s, border-color 0.2s;
}
.section.alt .service-card { background: var(--white); }
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}
.service-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--navy-950);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon .material-symbols-outlined { font-size: 19px; }
.service-card h3 { font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.service-card p { font-size: 13px; color: var(--ink-muted); line-height: 1.5; flex: 1; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-hover);
  margin-top: auto;
  transition: gap 0.2s;
}
.service-link:hover { gap: 8px; }
.service-link .material-symbols-outlined { font-size: 15px; }

/* ===== PORTFÓLIO ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.portfolio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--line);
  border-radius: 14px;
  padding: 20px 18px;
  transition: transform 0.2s, border-color 0.2s;
}
.portfolio-card.live { border-top-color: var(--primary); }
.portfolio-card.soon { border-top-style: dashed; }
.portfolio-card:hover { transform: translateY(-4px); }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-050);
  color: var(--primary-hover);
  flex-shrink: 0;
}
.icon-badge.muted { background: var(--paper); color: var(--ink-muted); }
.icon-badge .material-symbols-outlined { font-size: 20px; }

.status-chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-chip.live { background: var(--blue-050); color: var(--primary-hover); }
.status-chip.soon { background: var(--paper); color: var(--ink-muted); border: 1px solid var(--line); }

.portfolio-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--amber);
}
.portfolio-tag.muted { color: var(--ink-muted); }
.portfolio-card h3 { font-size: 17px; font-weight: 700; color: var(--ink); }
.portfolio-card p { font-size: 13px; color: var(--ink-muted); line-height: 1.5; flex: 1; }

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-hover);
  margin-top: auto;
  transition: gap 0.2s;
}
.portfolio-link:hover { gap: 8px; }
.portfolio-link.muted { color: var(--ink-muted); }
button.portfolio-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

/* ===== SOBRE ===== */
.sobre-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.sobre-text p { color: var(--ink-muted); font-size: 16px; max-width: 56ch; margin: 0 0 14px; }
.sobre-text p:last-child { margin-bottom: 0; }
.sobre-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-left: 2px solid var(--line);
  padding-left: 26px;
}
.sobre-point { display: flex; gap: 14px; align-items: flex-start; }
.sobre-point .material-symbols-outlined { font-size: 20px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.sobre-point p { margin: 0; font-size: 14.5px; color: var(--ink-muted); }
.sobre-point strong { color: var(--ink); font-weight: 700; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 22px;
}
.section.alt .faq-item { background: var(--white); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .material-symbols-outlined {
  color: var(--primary);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.faq-item[open] summary .material-symbols-outlined { transform: rotate(45deg); }
.faq-item p { margin: 0 0 20px; color: var(--ink-muted); font-size: 14.5px; max-width: 62ch; }

/* ===== DIFERENCIAIS ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.benefit-card { padding: 4px; }
.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--primary);
  color: var(--primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
}
.benefit-card h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.benefit-card p { font-size: 14.5px; color: var(--ink-muted); max-width: 42ch; }

/* ===== CTA FINAL (escuro) ===== */
.section.cta-final { background: var(--navy-950); color: var(--on-dark); text-align: center; }
.cta-final .eyebrow { justify-content: center; color: var(--amber); }
.cta-final .eyebrow::before { display: none; }
.cta-final h2 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.3rem); max-width: 640px; margin: 0 auto; }
.cta-final p { color: var(--on-dark-muted); margin: 16px auto 0; max-width: 52ch; }
.cta-final .hero-actions { justify-content: center; margin-top: 30px; }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--navy-border);
  padding: 40px 0;
  background: var(--navy-900);
  color: var(--on-dark-muted);
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
footer .foot-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
footer .foot-links { display: flex; gap: 26px; font-size: 14px; }
footer .foot-links a { color: var(--on-dark-muted); font-weight: 600; }
footer .foot-links a:hover { color: var(--on-dark); }
footer .foot-contact { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 13px; }
footer .foot-contact a { display: inline-flex; align-items: center; gap: 6px; color: var(--on-dark-muted); font-weight: 600; transition: color 0.2s; }
footer .foot-contact a:hover { color: var(--on-dark); }
footer .foot-muted { font-size: 12.5px; color: #5C688A; }

/* ===== BOTÃO FLUTUANTE WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  width: 56px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { height: 28px; width: 28px; }

/* ===== MODAL / FORMULÁRIO DE CONTATO ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14,21,38,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
  overflow-y: auto;
}
.modal-overlay.active { display: flex; }

.modal-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 26px 28px;
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 70px rgba(14,21,38,0.35);
}

.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-header h3 { font-size: 19px; font-weight: 700; color: var(--ink); }
.modal-close {
  background: none;
  border: none;
  color: var(--ink-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.modal-close:hover { color: var(--ink); }

.modal-card-center { position: relative; max-width: 400px; text-align: center; padding-top: 40px; }
.modal-close-float { position: absolute; top: 14px; right: 14px; }
.modal-center-icon {
  font-size: 46px;
  color: var(--primary-hover);
  background: var(--blue-050);
  border-radius: 50%;
  padding: 14px;
  margin-bottom: 16px;
  display: inline-flex;
}
.modal-card-center h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.modal-card-center p { color: var(--ink-muted); font-size: 14.5px; }

.modal-error {
  display: none;
  background: #FDECEC;
  border: 1px solid var(--danger);
  color: #B91C1C;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.modal-error.show { display: block; }

.form-group { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 700; color: var(--ink); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 14.5px;
  font-family: "Public Sans", sans-serif;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: opacity 0.3s;
  opacity: 0;
  pointer-events: none;
  max-width: 320px;
}
.toast.show { opacity: 1; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ===== RESPONSIVO ===== */
@media (max-width: 980px) {
  .services-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .sobre-grid { grid-template-columns: 1fr; gap: 32px; }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--navy-900);
    border-bottom: 1px solid var(--navy-border);
    padding: 8px 24px 16px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--navy-border); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-actions .btn span.btn-label-full { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .brand-logo { height: 28px; }
  .hero { padding: 56px 0 0; }
  .hero h1 { font-size: 34px; }
  .hero p.lead { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-actions .btn { justify-content: center; }
  .section { padding: 64px 0; }
  .section-head h2 { font-size: 24px; }
  .services-grid, .portfolio-grid { gap: 10px; }
  .service-card, .portfolio-card { padding: 16px 14px; }
  footer .container { flex-direction: column; align-items: flex-start; }
  footer .foot-right { align-items: flex-start; }
  .whatsapp-float { bottom: 16px; right: 16px; height: 52px; width: 52px; }
}
