:root {
  --navy: #16225c;
  --navy-dark: #0a1030;
  --navy-light: #223080;
  --red: #e2231a;
  --red-dark: #b91c14;
  --red-glow: #ff5b52;
  --bg: #f6f7fb;
  --bg-alt: #eef0f8;
  --white: #ffffff;
  --text: #1c2340;
  --text-muted: #5b6178;
  --border: #e2e5f0;
  --shadow: 0 10px 30px rgba(22, 34, 92, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 16, 48, 0.18);
  --radius: 16px;
  --container: 1180px;
  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-heading); color: var(--navy); margin: 0 0 0.5em; line-height: 1.15; }
p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.025; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow { display: inline-block; font-family: var(--font-heading); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: 0.75em; }
.eyebrow.center { display: block; text-align: center; }
.section-title { font-size: 2.1rem; }
.section-title.center { text-align: center; }
.section-sub.center { text-align: center; max-width: 560px; margin: -0.5em auto 2.5em; }

/* Reveal on scroll (progressive enhancement: hidden only once JS confirms it can reveal them) */
.reveal { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal { opacity: 0; transform: translateY(24px); }
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1.is-visible { transition-delay: 0.08s; }
.reveal.delay-2.is-visible { transition-delay: 0.16s; }
.reveal.delay-3.is-visible { transition-delay: 0.24s; }
.reveal.delay-4.is-visible { transition-delay: 0.32s; }
.reveal.delay-5.is-visible { transition-delay: 0.4s; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.9em 1.8em; border-radius: 999px; font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; border: 2px solid transparent; cursor: pointer;
}
.btn-lg { padding: 1.05em 2.1em; font-size: 1rem; }
.btn-block { display: flex; width: 100%; margin-top: 12px; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(226,35,26,0.32); }
.btn-primary-inverse { background: var(--white); color: var(--navy); }
.btn-primary-inverse:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.18); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost-light { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.35); color: var(--white); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
.btn-whatsapp { background: #25d366; color: var(--white); }
.btn-whatsapp:hover { background: #1ebd5a; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37,211,102,0.35); }

/* Header — always solid so the logo and nav keep contrast over any section, including the dark hero */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,0.97); backdrop-filter: blur(10px); box-shadow: 0 2px 16px rgba(10,16,48,0.06); transition: box-shadow 0.3s ease; }
.site-header.scrolled { box-shadow: 0 4px 24px rgba(10,16,48,0.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { height: 38px; width: auto; }
.brand-word { font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; color: var(--navy); letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { font-weight: 600; color: var(--navy); font-family: var(--font-heading); font-size: 0.93rem; transition: color 0.15s ease; }
.site-nav a:hover { color: var(--red); }
.header-wa { white-space: nowrap; padding: 0.6em 1.3em; font-size: 0.88rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

/* Hero */
.hero {
  position: relative; overflow: hidden; min-height: 92vh; display: flex; align-items: center;
  background: radial-gradient(ellipse at 20% 0%, #1b2a73 0%, var(--navy-dark) 55%), var(--navy-dark);
  padding: 150px 0 90px;
}
.hero-mesh {
  position: absolute; inset: -10%; pointer-events: none;
  background:
    radial-gradient(circle at 85% 15%, rgba(226,35,26,0.38) 0%, transparent 42%),
    radial-gradient(circle at 10% 85%, rgba(34,48,128,0.55) 0%, transparent 45%),
    radial-gradient(circle at 60% 100%, rgba(226,35,26,0.15) 0%, transparent 40%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-2%, 2%) scale(1.05); } }
.hero-grid {
  position: absolute; inset: 0; opacity: 0.12; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.6) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 70%);
}
.hero-inner { position: relative; max-width: 780px; }
.kicker {
  display: inline-block; font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em;
  color: var(--white); background: rgba(226,35,26,0.22); border: 1px solid rgba(226,35,26,0.5);
  padding: 0.5em 1.1em; border-radius: 999px; margin-bottom: 1.4em;
}
.hero h1 { color: var(--white); font-size: 3.1rem; font-weight: 800; letter-spacing: -0.01em; }
.hero h1 .accent { color: var(--red-glow); }
.hero-sub { color: #c7cce3; font-size: 1.18rem; max-width: 600px; }
.hero-cta { display: flex; gap: 16px; margin-top: 1.8em; flex-wrap: wrap; }

.hero-stats { display: flex; align-items: center; gap: 28px; margin-top: 4em; flex-wrap: wrap; }
.hstat { display: flex; flex-direction: column; }
.hstat-number { font-family: var(--font-heading); font-weight: 800; font-size: 2.4rem; color: var(--white); line-height: 1; }
.hstat-label { color: #a9aed0; font-size: 0.85rem; max-width: 160px; margin-top: 6px; }
.hstat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.18); }

/* Diferenciadores */
.diff { padding: 70px 0; background: var(--white); border-bottom: 1px solid var(--border); margin-top: -1px; }
.diff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.diff-card { text-align: left; }
.diff-icon {
  width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eef1fb, #e4e8f8); color: var(--navy); margin-bottom: 1em;
}
.diff-card h3 { font-size: 1.05rem; margin-bottom: 0.3em; }
.diff-card p { font-size: 0.92rem; margin-bottom: 0; }

/* Services */
.services { padding: 100px 0; background: var(--bg-alt); }
.services-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: var(--white); border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--border);
  box-shadow: var(--shadow); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(226,35,26,0.25); }
.service-icon {
  width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: var(--white); margin-bottom: 1.1em;
  box-shadow: 0 10px 20px rgba(22,34,92,0.25);
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.2em; }
.service-tag { color: var(--red); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.8em; }
.service-card p:last-child { margin-bottom: 0; font-size: 0.95rem; }

/* Process */
.process { padding: 100px 0; background: var(--white); }
.process-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.process-step { position: relative; padding-top: 10px; }
.process-num { font-family: var(--font-heading); font-weight: 800; font-size: 2.6rem; color: transparent; -webkit-text-stroke: 1.5px rgba(22,34,92,0.22); display: block; margin-bottom: 0.3em; }
.process-step h3 { font-size: 1.05rem; margin-bottom: 0.3em; }
.process-step p { font-size: 0.92rem; }

/* Clients */
.clients { padding: 80px 0; background: var(--navy); }
.clients .eyebrow { color: var(--red-glow); }
.clients .section-title { color: var(--white); }
.clients-grid { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.client-chip {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: #dfe2f2;
  padding: 0.9em 1.5em; border-radius: 999px; font-family: var(--font-heading); font-weight: 600; font-size: 0.92rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.client-chip:hover { background: rgba(226,35,26,0.18); border-color: rgba(226,35,26,0.4); transform: translateY(-2px); }
.client-chip-more { background: transparent; border-style: dashed; color: #9aa0c4; font-weight: 500; font-style: italic; }
.client-chip-more:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.3); transform: none; }

/* About */
.about { padding: 100px 0; background: var(--bg-alt); }
.about-inner { display: grid; grid-template-columns: 1.3fr 0.8fr; gap: 60px; align-items: center; }
.about-visual { display: flex; justify-content: center; }
.about-badge {
  width: 260px; height: 260px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; border: 1px solid var(--border);
}
.about-logo { width: 80px; margin-bottom: 10px; }
.about-badge-num { font-family: var(--font-heading); font-weight: 800; font-size: 2.6rem; color: var(--red); line-height: 1; }
.about-badge-label { font-weight: 600; color: var(--navy); font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--red), var(--red-dark)); }
.cta-band-inner { padding: 56px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); font-size: 1.7rem; margin-bottom: 0.2em; }
.cta-band p { color: #ffe3e1; margin: 0; }

/* Contact */
.contact { padding: 100px 0; background: var(--white); }
.contact-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: start; }
.contact-list { margin: 1.5em 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy); font-size: 1.05rem; }
.contact-list li a:hover { color: var(--red); }
.contact-icon { display: inline-flex; align-items: center; color: var(--red); }
.contact-card {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 38px 30px; text-align: center;
}
.contact-logo { width: 90px; margin: 0 auto 12px; }
.contact-brand-name { font-family: var(--font-heading); font-weight: 800; font-size: 1.4rem; color: var(--navy); margin-bottom: 0; text-transform: lowercase; }
.contact-brand-sub { color: var(--text-muted); margin-bottom: 1.4em; font-size: 0.9rem; }

/* Footer */
.site-footer { background: var(--navy-dark); padding: 28px 0; }
.footer-inner { display: flex; justify-content: center; }
.footer-inner p { color: #8d92b8; margin: 0; font-size: 0.85rem; text-align: center; }

/* WhatsApp floating button */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: var(--white);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(37,211,102,0.45);
  animation: pulse-wa 2.4s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes pulse-wa { 0%, 100% { box-shadow: 0 10px 28px rgba(37,211,102,0.45); } 50% { box-shadow: 0 10px 28px rgba(37,211,102,0.75), 0 0 0 10px rgba(37,211,102,0.12); } }

/* Responsive */
@media (max-width: 980px) {
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 640px) {
  .site-nav {
    position: fixed; top: 80px; left: 0; right: 0; background: var(--white); flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--border); display: none; padding: 8px 0; box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 16px 24px; border-top: 1px solid var(--border); }
  .header-wa { display: none; }
  .nav-toggle { display: flex; }
  .diff-grid, .services-grid, .process-grid { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 70px; min-height: auto; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 20px; }
  .hstat-label { max-width: 120px; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .wa-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
}
