/* ═══════════════════════════════════════════════════════════
   MPX Software — Design System
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg:           #0e0e14;
  --bg-2:         #13131c;
  --bg-card:      #18181f;
  --bg-card-2:    #1c1c28;
  --border:       #22223a;
  --border-2:     #2e2e48;
  --accent:       #6979f8;
  --accent-2:     #8b9bff;
  --accent-glow:  rgba(105, 121, 248, 0.18);
  --accent-glow2: rgba(105, 121, 248, 0.08);
  --text:         #dde1f0;
  --text-muted:   #7a7d96;
  --text-dim:     #484b6a;
  --white:        #ffffff;
  --silver:       #b0b3c8;
  --radius:       14px;
  --radius-sm:    8px;
  --radius-lg:    22px;
  --shadow:       0 4px 24px rgba(0,0,0,.4);
  --shadow-lg:    0 8px 48px rgba(0,0,0,.5);
  --transition:   .25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }

/* ── Containers ─────────────────────────────────────────────── */
.container  { max-width: 1200px; margin: 0 auto; padding: 0 6%; }
.grid-2     { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.section    { padding: 110px 6%; }
.section--dark { background: var(--bg-2); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .section-desc { margin: 0 auto; }

/* ── Typography ─────────────────────────────────────────────── */
.section-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; display: block;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800;
  color: var(--white); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 1.2rem;
}
.section-desc {
  color: var(--text-muted); font-size: 1rem; max-width: 600px; line-height: 1.85;
}
.section-desc.center { text-align: center; }
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, #b8c5ff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.8rem; border-radius: var(--radius); font-size: .9rem;
  font-weight: 600; letter-spacing: .02em; cursor: pointer;
  border: none; transition: all var(--transition); font-family: inherit;
}
.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: var(--accent); color: var(--white);
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 0 32px rgba(105,121,248,.35); }

.btn-ghost {
  background: transparent; color: var(--silver);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--white); }

.btn-nav {
  padding: .6rem 1.4rem; font-size: .85rem;
  background: var(--accent); color: var(--white);
}
.btn-nav:hover { background: var(--accent-2); }

.tag {
  display: inline-block; font-size: .72rem; font-weight: 600;
  letter-spacing: .05em; padding: .28rem .7rem; border-radius: 6px;
  background: var(--bg-card-2); color: var(--silver); border: 1px solid var(--border-2);
}

/* ── Card link ───────────────────────────────────────────────── */
.card-link {
  font-size: .85rem; color: var(--accent); font-weight: 600;
  display: inline-flex; align-items: center; gap: .3rem; transition: color var(--transition);
}
.card-link:hover { color: var(--white); }

/* ── Reveal animation ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════════════════════════
   NAV
════════════════════════════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(14,14,20,.8); backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
#navbar.scrolled { background: rgba(14,14,20,.95); border-bottom-color: var(--border-2); }

.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 6%;
  height: 70px; display: flex; align-items: center; gap: 2rem;
}
.nav-logo img { height: 36px; }
.nav-links { list-style: none; display: flex; gap: 2rem; flex: 1; justify-content: center; }
.nav-links a { font-size: .88rem; font-weight: 500; color: var(--text-muted); transition: color var(--transition); }
.nav-links a:hover { color: var(--white); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--silver); border-radius: 2px; transition: all var(--transition); }

/* ════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh; position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; overflow: hidden;
  padding: 100px 6% 80px; text-align: center;
  background: radial-gradient(ellipse 100% 80% at 50% -10%, #1a1a3a 0%, var(--bg) 65%);
}

/* Grid background */
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
  opacity: .4;
}

/* Blobs */
.hero-blobs { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .25;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-1 { width: 500px; height: 500px; background: #4a3fff; top: -100px; left: -150px; animation-delay: 0s; }
.blob-2 { width: 400px; height: 400px; background: #3b82f6; bottom: -80px; right: -100px; animation-delay: 3s; }
.blob-3 { width: 300px; height: 300px; background: #7c3aed; top: 40%; left: 60%; animation-delay: 6s; }

@keyframes blobFloat {
  0%,100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(25px, -35px) scale(1.05); }
  66%      { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-inner { position: relative; z-index: 1; max-width: 800px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem 1rem; border-radius: 100px;
  background: rgba(105,121,248,.12); border: 1px solid rgba(105,121,248,.25);
  font-size: .8rem; font-weight: 600; color: var(--accent-2);
  margin-bottom: 2rem;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.4} }

.hero-title {
  font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 900; line-height: 1.08;
  letter-spacing: -.04em; color: var(--white); margin-bottom: 1.4rem;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-muted);
  max-width: 580px; margin: 0 auto 2.5rem; line-height: 1.9;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-logo-wrap { margin-top: 4rem; opacity: .12; }
.hero-logo-img  { width: 180px; margin: 0 auto; filter: grayscale(1); }

.scroll-down {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: var(--text-dim); animation: bounceDown 2s infinite; z-index: 1;
  transition: color var(--transition);
}
.scroll-down:hover { color: var(--accent); }
@keyframes bounceDown { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ════════════════════════════════════════════════════════════
   STATS BAR
════════════════════════════════════════════════════════════ */
.stats-bar {
  background: var(--bg-card); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 28px 6%;
}
.stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-around; gap: 2rem; flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num  { display: block; font-size: 1.5rem; font-weight: 800; color: var(--white); letter-spacing: -.02em; }
.stat-label{ display: block; font-size: .78rem; color: var(--text-muted); margin-top: .2rem; letter-spacing: .04em; }
.stat-sep  { width: 1px; height: 36px; background: var(--border-2); }

/* ════════════════════════════════════════════════════════════
   HISTÓRIA / TIMELINE
════════════════════════════════════════════════════════════ */
#sobre { background: var(--bg); }
#sobre .grid-2 { align-items: center; }

.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 10px; bottom: 10px;
  width: 2px; background: linear-gradient(to bottom, var(--accent), transparent);
}
.tl-item { position: relative; padding-bottom: 2.5rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -2.4rem; top: .3rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--border-2); border: 2px solid var(--accent); flex-shrink: 0;
}
.tl-dot--active { background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }

.tl-year {
  font-size: .75rem; font-weight: 700; color: var(--accent);
  letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: .4rem;
}
.tl-content h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: .4rem; }
.tl-content p  { font-size: .88rem; color: var(--text-muted); line-height: 1.75; }

/* ════════════════════════════════════════════════════════════
   SERVIÇOS
════════════════════════════════════════════════════════════ */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem;
}
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  border-color: rgba(105,121,248,.5); transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(0,0,0,.3), 0 0 0 1px rgba(105,121,248,.15), 0 0 40px var(--accent-glow2);
}
.service-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--accent-glow2); border: 1px solid rgba(105,121,248,.2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem;
}
.service-icon svg { width: 24px; height: 24px; color: var(--accent); }
.service-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: .6rem; }
.service-card p  { font-size: .88rem; color: var(--text-muted); line-height: 1.75; }

/* ════════════════════════════════════════════════════════════
   PORTFÓLIO
════════════════════════════════════════════════════════════ */
.portfolio-featured {
  position: relative; background: var(--bg-card);
  border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.portfolio-featured::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), #b8c5ff);
}
.pf-badge {
  display: inline-block; margin-bottom: 1.4rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .8rem; border-radius: 100px;
  background: rgba(74,222,128,.12); color: #4ade80; border: 1px solid rgba(74,222,128,.25);
}
.pf-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.pf-info { padding: 3rem; }
.pf-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.pf-info h3 { font-size: 1.8rem; font-weight: 800; color: var(--white); letter-spacing: -.02em; margin-bottom: .5rem; }
.pf-tagline { font-size: 1rem; color: var(--accent-2); font-weight: 500; margin-bottom: 1rem; }
.pf-desc { font-size: .9rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 1.5rem; }

.pf-features { list-style: none; display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.5rem; }
.pf-features li { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--text); }
.pf-features svg { width: 16px; height: 16px; color: #4ade80; flex-shrink: 0; }

.pf-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.pf-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Dashboard mock */
.pf-visual {
  background: var(--bg-2); display: flex; align-items: center; justify-content: center;
  padding: 2.5rem; border-left: 1px solid var(--border);
}
.pf-screen {
  width: 100%; max-width: 380px; background: var(--bg-card);
  border-radius: 12px; border: 1px solid var(--border-2); overflow: hidden;
  box-shadow: var(--shadow-lg); min-width: 0;
}
.pf-screen-bar {
  height: 36px; background: var(--bg-2); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px; padding: 0 14px;
}
.pf-screen-bar span { width: 10px; height: 10px; border-radius: 50%; }
.pf-screen-bar span:nth-child(1) { background: #ff5f57; }
.pf-screen-bar span:nth-child(2) { background: #febc2e; }
.pf-screen-bar span:nth-child(3) { background: #28c840; }
.pf-screen-body { padding: 16px; }

.pf-mock-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pf-mock-logo { font-size: .85rem; font-weight: 700; color: var(--white); }
.pf-mock-nav { display: flex; gap: 12px; flex-shrink: 0; }
.pf-mock-nav span { font-size: .7rem; color: var(--text-muted); white-space: nowrap; }

.pf-mock-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 14px; }
.pf-mock-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 8px;
}
.mc-label { font-size: .65rem; color: var(--text-dim); margin-bottom: 4px; }
.mc-value { font-size: .9rem; font-weight: 700; color: var(--white); }

.pf-mock-chart {
  height: 80px; display: flex; align-items: flex-end; gap: 6px;
  background: var(--bg-2); border-radius: 8px; padding: 12px;
}
.mc-bar {
  flex: 1; background: linear-gradient(to top, var(--accent), var(--accent-2));
  border-radius: 4px 4px 0 0; min-height: 10px; opacity: .7;
}

/* Secondary portfolio cards */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem;
}
.port-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; opacity: .65;
  transition: border-color var(--transition), opacity var(--transition), transform var(--transition);
}
.port-card:hover { border-color: var(--border-2); opacity: 1; transform: translateY(-4px); }
.port-card-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.port-card h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.port-card p  { font-size: .88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }

/* ════════════════════════════════════════════════════════════
   DIFERENCIAIS
════════════════════════════════════════════════════════════ */
.diff-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem;
}
.diff-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem;
  transition: border-color var(--transition), transform var(--transition);
}
.diff-card:hover { border-color: rgba(105,121,248,.4); transform: translateY(-4px); box-shadow: 0 6px 24px rgba(0,0,0,.25), 0 0 0 1px rgba(105,121,248,.1); }
.diff-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.diff-card h4 { font-size: .95rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.diff-card p  { font-size: .85rem; color: var(--text-muted); line-height: 1.75; }

/* ════════════════════════════════════════════════════════════
   PROCESSO
════════════════════════════════════════════════════════════ */
.process-steps {
  display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap;
}
.process-step {
  flex: 1; min-width: 0; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.process-step:hover { border-color: rgba(105,121,248,.4); box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.step-num {
  font-size: 2.5rem; font-weight: 900; color: var(--accent);
  opacity: .4; letter-spacing: -.05em; margin-bottom: 1rem; line-height: 1;
}
.process-step h4 { font-size: .95rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.process-step p  { font-size: .85rem; color: var(--text-muted); line-height: 1.75; }
.process-arrow { font-size: 1.5rem; color: var(--text-dim); margin-top: 2.5rem; flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════
   DEPOIMENTOS
════════════════════════════════════════════════════════════ */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem;
}
.testimonial {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; gap: 1.2rem;
  transition: border-color var(--transition);
}
.testimonial:hover { border-color: var(--border-2); }
.testimonial-stars { color: #f59e0b; font-size: 1rem; letter-spacing: .1em; }
.testimonial blockquote {
  font-size: .9rem; color: var(--text-muted); line-height: 1.8; font-style: italic; flex: 1;
  position: relative; padding-top: 1.5rem;
}
.testimonial blockquote::before {
  content: '\201C'; position: absolute; top: -.6rem; left: -.3rem;
  font-size: 5rem; line-height: 1; color: var(--accent); opacity: .18;
  font-family: Georgia, serif; font-style: normal;
}
.testimonial-author { display: flex; align-items: center; gap: .9rem; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--white); font-size: .9rem; flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: .9rem; color: var(--white); }
.testimonial-author span  { font-size: .78rem; color: var(--text-muted); }

/* ════════════════════════════════════════════════════════════
   CONTATO
════════════════════════════════════════════════════════════ */
.contact-grid { align-items: start; }
.contact-list { margin-top: 2rem; display: flex; flex-direction: column; gap: .9rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.4rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}
.contact-item:hover { border-color: var(--accent); transform: translateX(4px); }
.ci-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--accent-glow2); border: 1px solid rgba(105,121,248,.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ci-icon svg { width: 20px; height: 20px; color: var(--accent); }
.ci-text { display: flex; flex-direction: column; gap: .15rem; }
.ci-label { font-size: .68rem; font-weight: 700; letter-spacing: .12em; color: var(--text-dim); }
.ci-text span { font-size: .9rem; color: var(--text); }

/* Form */
.contact-form-wrap {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem;
}
form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .45rem; }
label { font-size: .82rem; font-weight: 600; color: var(--silver); }
input, textarea {
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: var(--radius-sm); padding: .85rem 1rem;
  color: var(--text); font-family: inherit; font-size: .9rem;
  outline: none; transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
input:focus, textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow2);
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
textarea { resize: vertical; min-height: 140px; }

.form-feedback {
  padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-size: .88rem;
}
.form-feedback.success { background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.25); color: #4ade80; }
.form-feedback.error   { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.25); color: #f87171; }

.btn-submit { width: 100%; justify-content: center; padding: 1rem; font-size: .95rem; }
.spinner { width: 18px; height: 18px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
footer {
  background: var(--bg-2); border-top: 1px solid var(--border); padding: 5rem 6% 2.5rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto 3rem;
  display: flex; gap: 4rem; flex-wrap: wrap;
}
.footer-brand { flex: 1; min-width: 200px; }
.footer-brand img { height: 36px; margin-bottom: 1rem; }
.footer-brand p { font-size: .88rem; color: var(--text-muted); line-height: 1.7; }
.footer-links { display: flex; gap: 4rem; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: .7rem; }
.footer-col strong { font-size: .8rem; font-weight: 700; color: var(--silver); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .4rem; }
.footer-col a { font-size: .88rem; color: var(--text-muted); transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid var(--border); padding-top: 2rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  font-size: .8rem; color: var(--text-dim);
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */

/* ── Portfolio card: colapsa antes dos outros elementos ───── */
@media (max-width: 1024px) {
  .pf-body   { grid-template-columns: 1fr; }
  .pf-visual { border-left: none; border-top: 1px solid var(--border); padding: 2rem; }
}

/* ── Tablet / landscape mobile ────────────────────────────── */
@media (max-width: 900px) {
  .grid-2        { grid-template-columns: 1fr; gap: 3rem; }
  .nav-links     { display: none; }
  .nav-toggle    { display: flex; }
  .btn-nav       { display: none; }
  .process-steps { flex-direction: column; }
  .process-arrow { display: none; }
  .stat-sep      { display: none; }
  .pf-info       { padding: 2rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid     { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile portrait ──────────────────────────────────────── */
@media (max-width: 640px) {
  .section         { padding: 72px 5%; }
  .section-header  { margin-bottom: 2.5rem; }
  .stats-bar       { padding: 20px 5%; }
  /* Stats em grade 2×2 */
  .stats-inner     { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.5rem; text-align: left; }
  .stat-item       { padding: .8rem; background: var(--bg-card-2); border-radius: var(--radius-sm); border: 1px solid var(--border); }
  .stat-num        { font-size: 1.3rem; }
  /* Hero */
  #hero            { padding: 88px 5% 64px; }
  .hero-logo-wrap  { display: none; }
  .hero-actions    { flex-direction: column; gap: .75rem; width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  /* Portfolio */
  .pf-info         { padding: 1.5rem; }
  .pf-actions      { flex-direction: column; }
  .pf-actions .btn { width: 100%; justify-content: center; }
  /* Grids → 1 coluna */
  .services-grid     { grid-template-columns: 1fr; }
  .diff-grid         { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .portfolio-grid    { grid-template-columns: 1fr; }
  /* Contato */
  .contact-form-wrap { padding: 1.5rem; }
  .form-row          { grid-template-columns: 1fr; }
  /* Footer */
  .footer-inner    { gap: 2rem; }
  .footer-links    { flex-direction: column; gap: 1.5rem; }
  .footer-bottom   { flex-direction: column; gap: .3rem; }
  /* Dashboard mock — esconde nav interna, ajusta padding */
  .pf-visual      { padding: 1.25rem; }
  .pf-mock-nav    { display: none; }
  .pf-mock-cards  { grid-template-columns: 1fr 1fr; }
  .pf-mock-card:last-child { display: none; }

  /* Blobs — reduz para não vazar lateralmente */
  .blob-1 { width: 260px; height: 260px; left: -80px; }
  .blob-2 { width: 200px; height: 200px; right: -60px; }
  .blob-3 { display: none; }
}

/* ── Telas muito pequenas (< 400px) ──────────────────────── */
@media (max-width: 400px) {
  .section         { padding: 60px 4%; }
  .nav-inner       { padding: 0 4%; }
  .section-title   { font-size: 1.65rem; }
  .pf-info         { padding: 1.2rem; }
  .contact-form-wrap { padding: 1.2rem; }
  .stats-inner     { grid-template-columns: 1fr; gap: 1rem; }
  .stat-sep        { display: none; }
}

/* ── Mobile menu aberto ──────────────────────────────────── */
.nav-open .nav-links {
  display: flex; flex-direction: column;
  position: fixed; top: 70px; left: 0; right: 0; z-index: 999;
  background: rgba(10,10,16,.98); backdrop-filter: blur(24px) saturate(180%);
  padding: 1.5rem 6% 2rem; border-bottom: 1px solid var(--border-2);
  gap: 1.2rem; box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.nav-open .nav-links a { font-size: 1rem; color: var(--text); }

/* Hambúrguer → X */
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
