/* ============ DataTry Tecnologia e Negócios ============ */
:root {
  --purple: #8B2BD1;
  --indigo: #4F46E5;
  --blue: #2B7DE9;
  --grad: linear-gradient(120deg, #8B2BD1 0%, #4F46E5 55%, #2B7DE9 100%);
  --bg: #0B0E1A;
  --bg-alt: #10142A;
  --surface: #171C36;
  --border: rgba(255, 255, 255, 0.08);
  --text: #EDEFF7;
  --text-muted: #9AA1BC;
  --radius: 16px;
  --container: 1160px;
  --nav-h: 72px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

/* garante que [hidden] vença qualquer display definido em classes */
[hidden] { display: none !important; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ Botões ============ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover { border-color: var(--indigo); color: #fff; }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }

/* ============ Navbar ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 14, 26, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 38px; width: auto; }
.brand-name { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.5px; }
.brand-name strong { font-weight: 800; }

.nav-links { display: flex; align-items: center; gap: 24px; }

.nav-links a:not(.btn) {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color 0.25s;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transition: right 0.3s ease;
}

.nav-links a:not(.btn):hover { color: #fff; }

/* link da seção ativa: mais claro que os demais */
.nav-links a.active {
  color: #fff;
  font-weight: 600;
}
.nav-links a.active::after { right: 0; }

.btn-nav { padding: 10px 24px; font-size: 0.85rem; }

/* seletor de idioma (bandeiras) */
.lang-switch { display: flex; align-items: center; gap: 6px; }

.lang-btn {
  width: 30px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
  display: flex;
}
.lang-btn svg { width: 100%; height: 100%; display: block; }
.lang-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.lang-btn.active { opacity: 1; border-color: var(--indigo); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ============ Painéis (seções de tela cheia) ============ */
.panel {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 24px) 0 40px;
}

.panel-inner { width: 100%; }

.panel:nth-child(even) { background: var(--bg-alt); }

/* ============ Hero ============ */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
}
.hero-glow-1 { width: 480px; height: 480px; background: var(--purple); top: -160px; left: -120px; }
.hero-glow-2 { width: 420px; height: 420px; background: var(--blue); bottom: -180px; right: -80px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(79, 70, 229, 0.12);
  color: #B9BEF7;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.hero-content > p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual { display: flex; justify-content: center; }

.hero-card {
  background: linear-gradient(160deg, rgba(139, 43, 209, 0.14), rgba(43, 125, 233, 0.14));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.hero-logo { width: 230px; animation: heroFloat 5s ease-in-out infinite; }

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.scroll-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--text-muted);
  border-radius: 999px;
  opacity: 0.6;
}
.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--text);
  animation: scrollHint 1.8s infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============ Métricas (dentro do hero) ============ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  position: relative;
}

.metric-num, .metric-plus {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric p { color: var(--text-muted); font-size: 0.88rem; margin-top: 2px; }

/* ============ Cabeçalho de seção ============ */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.section-head h2, .about-content h2, .contact-info h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-head p { color: var(--text-muted); }

/* ============ Cards de serviços ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 70, 229, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.card-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(79, 70, 229, 0.15);
  margin-bottom: 16px;
}

.card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.9rem; }

/* ============ Softwares ============ */
/* grade adaptável: acompanha a quantidade de softwares cadastrados */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.product {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.25s, border-color 0.25s;
}

.product:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 43, 209, 0.5);
}

.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.product h3 {
  font-size: 1rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.product p { color: var(--text-muted); font-size: 0.86rem; }

.badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* disponível: ícone ✓ circular (cabe em qualquer largura de card) */
.badge-live {
  width: 24px;
  height: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
  letter-spacing: 0;
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.45);
  color: #4ADE80;
}

/* ============ Sobre (com diferenciais) ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-content p { color: var(--text-muted); margin-bottom: 14px; }
.about-content strong { color: var(--text); }

.check-list { list-style: none; margin: 20px 0 28px; }
.check-list li {
  padding-left: 32px;
  position: relative;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 500;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-diffs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.diff-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: transform 0.25s, border-color 0.25s;
}

.diff-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 70, 229, 0.5);
}

.diff-num {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 8px;
}

.diff-card h3 { font-size: 0.98rem; font-weight: 700; margin-bottom: 6px; }
.diff-card p { color: var(--text-muted); font-size: 0.86rem; }

/* ============ Contato (conteúdo centralizado, rodapé integrado) ============ */
.panel-contact { justify-content: center; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.contact-info p { color: var(--text-muted); margin-bottom: 24px; }

.contact-list { list-style: none; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text);
}
.contact-list a:hover { color: #B9BEF7; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field { margin-bottom: 14px; display: flex; flex-direction: column; }
.form-field label { font-size: 0.82rem; font-weight: 600; margin-bottom: 5px; }

.form-field input,
.form-field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.92rem;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--indigo);
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
}
.form-note a { color: #B9BEF7; }

/* ============ Footer (compacto, integrado à seção de contato) ============ */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 56px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 20px;
}

.footer-copy { color: var(--text-muted); font-size: 0.8rem; }

.footer .brand-logo { height: 30px; }
.footer .brand-name { font-size: 1.05rem; }

.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-nav a:hover { color: #fff; }

.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}
.social-row a:hover { border-color: var(--indigo); color: #fff; }


/* ============ Modal de login / área do cliente ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 7, 15, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.35s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  transition: color 0.2s, border-color 0.2s;
}
.modal-close:hover { color: #fff; border-color: var(--indigo); }

.modal-head { text-align: center; margin-bottom: 24px; }
.modal-logo { height: 48px; margin: 0 auto 14px; }
.modal-head h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 6px; }
.modal-head p { color: var(--text-muted); font-size: 0.9rem; }

.client-apps { list-style: none; margin-bottom: 20px; }
.client-apps li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  background: var(--bg);
}
.client-apps li.locked { opacity: 0.55; }
.client-apps .app-name {
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.client-apps .app-empty { color: var(--text-muted); font-size: 0.88rem; }

.form-error {
  color: #F87171;
  font-size: 0.84rem;
  text-align: center;
  margin: -4px 0 12px;
}

/* ============ Painel do administrador ============ */
.modal.modal-wide { max-width: 760px; }

.admin-tabs { display: flex; gap: 8px; margin-bottom: 18px; }

.tab-btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.tab-btn.active {
  background: rgba(79, 70, 229, 0.15);
  color: #fff;
  border-color: var(--indigo);
}

.admin-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }

.admin-empty { color: var(--text-muted); font-size: 0.88rem; text-align: center; padding: 16px 0; }

.admin-row {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-row-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
}

.admin-row-main.admin-row-user { grid-template-columns: 1fr 1.4fr 1fr; }

.admin-row input[type="text"],
.admin-row input[type="email"] {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 0.85rem;
  font-family: var(--font);
  width: 100%;
}

.admin-row input:focus { outline: none; border-color: var(--indigo); }

.admin-row-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.admin-row-controls label {
  display: flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
}

.admin-row-controls input[type="checkbox"] { accent-color: #4F46E5; }

.row-del {
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  color: #F87171;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.row-del:hover { border-color: #F87171; }

.assign { font-size: 0.82rem; color: var(--text-muted); }
.assign summary { cursor: pointer; user-select: none; }

.assign-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.assign-list label { display: flex; gap: 6px; align-items: center; cursor: pointer; }

.modal-actions { display: flex; flex-direction: column; gap: 10px; }

/* página do painel (admin.html) */
.admin-page { min-height: 100vh; }

.admin-nav-right { display: flex; align-items: center; gap: 12px; }
.admin-user { color: var(--text-muted); font-size: 0.85rem; }

.admin-main {
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 64px;
  max-width: 920px;
}

.admin-main h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px; }
.admin-sub { color: var(--text-muted); font-size: 0.92rem; margin: 6px 0 28px; }

/* ============ WhatsApp FAB + popup ============ */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform 0.2s;
}
.whatsapp-fab:hover { transform: scale(1.08); }

.fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #EF4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  animation: badgePulse 1.6s infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

.wa-popup {
  position: fixed;
  bottom: 94px;
  right: 24px;
  width: 320px;
  max-width: calc(100vw - 48px);
  z-index: 95;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.35s ease;
}

.wa-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #128C7E;
}

.wa-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  padding: 5px;
}

.wa-id { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.wa-id strong { color: #fff; font-size: 0.95rem; }
.wa-id span { color: rgba(255, 255, 255, 0.75); font-size: 0.75rem; }

.wa-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
}
.wa-close:hover { color: #fff; }

.wa-body { padding: 18px 16px; background: var(--bg-alt); }

.wa-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px 14px 14px 14px;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: var(--text);
}

.wa-cta {
  display: block;
  text-align: center;
  padding: 14px;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.2s;
}
.wa-cta:hover { background: #1FBF5B; }

/* ============ Animações de entrada (suaves, ~1s) ============ */
.reveal {
  opacity: 0;
  transform: translateY(56px) scale(0.98);
  transition: opacity 1.3s cubic-bezier(0.22, 1, 0.36, 1), transform 1.3s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.25s;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* cascata nos grids */
.cards-grid .reveal:nth-child(2), .products-grid .reveal:nth-child(2),
.about-diffs .reveal:nth-child(2), .metrics-grid .reveal:nth-child(2) { transition-delay: 0.35s; }
.cards-grid .reveal:nth-child(3), .products-grid .reveal:nth-child(3),
.about-diffs .reveal:nth-child(3), .metrics-grid .reveal:nth-child(3) { transition-delay: 0.5s; }
.cards-grid .reveal:nth-child(4), .products-grid .reveal:nth-child(4),
.about-diffs .reveal:nth-child(4), .metrics-grid .reveal:nth-child(4) { transition-delay: 0.65s; }
.cards-grid .reveal:nth-child(5), .products-grid .reveal:nth-child(5) { transition-delay: 0.8s; }
.cards-grid .reveal:nth-child(6), .products-grid .reveal:nth-child(6) { transition-delay: 0.95s; }
.products-grid .reveal:nth-child(7) { transition-delay: 1.1s; }
.products-grid .reveal:nth-child(8) { transition-delay: 1.25s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint span { animation: none; }
  .fab-badge { animation: none; }
  .hero-logo { animation: none; }
}

/* telas baixas (notebooks): compacta para caber em uma dobra */
@media (max-height: 820px) and (min-width: 961px) {
  .panel { padding: calc(var(--nav-h) + 12px) 0 28px; }
  .section-head { margin-bottom: 28px; }
  .cards-grid { gap: 14px; }
  .card { padding: 20px 18px; }
  .card-icon { width: 42px; height: 42px; font-size: 1.3rem; margin-bottom: 12px; }
  .card p, .product p { font-size: 0.85rem; }
  .metrics-grid { margin-top: 36px; padding-top: 24px; }
  .hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
  .contact-form { padding: 22px; }
  .footer { margin-top: 20px; }
  .footer-inner { padding-top: 16px; padding-bottom: 12px; }
}

/* ============ Responsivo ============ */
@media (max-width: 1060px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn) { font-size: 0.84rem; }
}

@media (max-width: 960px) {
  /* em telas menores a rolagem volta ao natural */
  .panel { min-height: auto; padding: calc(var(--nav-h) + 40px) 0 64px; }
  .scroll-hint { display: none; }

  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content > p { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-visual { display: none; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 14px;
  }
  .nav-links.open { display: flex; }
  .nav-links .btn-nav { text-align: center; }
  .nav-links a:not(.btn)::after { display: none; }
}

@media (max-width: 640px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid, .products-grid, .about-diffs { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
