/* =========================================================
   RafaTech - Estilo principal
   ========================================================= */
#rafatech-app {
  --rt-bg: #ffffff;
  --rt-bg-dark: #0a0e1a;
  --rt-bg-dark-2: #10162b;
  --rt-text: #1b2033;
  --rt-text-light: #f4f6ff;
  --rt-muted: #6b7280;
  --rt-muted-light: #a9b1cf;
  --rt-accent: #00d4ff;
  --rt-accent-2: #7b2ff7;
  --rt-gradient: linear-gradient(135deg, var(--rt-accent), var(--rt-accent-2));
  --rt-radius: 18px;
  --rt-shadow: 0 20px 45px -20px rgba(20, 20, 40, 0.25);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--rt-text);
  background: var(--rt-bg);
  overflow-x: hidden;
  line-height: 1.55;
}
#rafatech-app *, #rafatech-app *::before, #rafatech-app *::after { box-sizing: border-box; }
#rafatech-app h1, #rafatech-app h2, #rafatech-app h3, #rafatech-app h4 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: inherit;
}
#rafatech-app p { margin: 0 0 1em; color: var(--rt-muted); }
#rafatech-app a { text-decoration: none; color: inherit; }
#rafatech-app ul { list-style: none; margin: 0; padding: 0; }
#rafatech-app img { max-width: 100%; display: block; }
#rafatech-app svg { display: block; }

.rt-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.rt-gradient-text {
  background: var(--rt-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rt-text-light { color: var(--rt-text-light); }
.rt-muted-note { font-size: .85rem; opacity: .7; }

/* ---------- Botões ---------- */
.rt-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600;
  font-size: .95rem; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap; cursor: pointer; border: none;
}
.rt-btn-primary,
#rafatech-app a.rt-btn-primary,
#rafatech-app a.rt-btn-primary:visited { background: var(--rt-gradient) !important; color: #fff !important; box-shadow: 0 12px 30px -10px rgba(123,47,247,.55); }
.rt-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -12px rgba(123,47,247,.65); }
.rt-btn-ghost,
#rafatech-app a.rt-btn-ghost,
#rafatech-app a.rt-btn-ghost:visited { background: transparent !important; border: 1.5px solid rgba(120,120,150,.35); color: var(--rt-text) !important; }
.rt-btn-ghost:hover { border-color: var(--rt-accent-2); color: var(--rt-accent-2); transform: translateY(-3px); }
.rt-btn-lg { padding: 16px 32px; font-size: 1rem; }
.rt-btn-sm { padding: 9px 18px; font-size: .85rem; }

/* ---------- Header ---------- */
.rt-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.05);
  transition: box-shadow .3s ease, background .3s ease;
}
.rt-header.rt-scrolled { box-shadow: 0 8px 30px -12px rgba(0,0,0,.15); }
.rt-header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.rt-logo { display: flex; align-items: center; }
.rt-logo-img { height: 30px; width: auto; max-width: 150px; object-fit: contain; }
.rt-nav { display: flex; gap: 30px; }
.rt-nav a { font-weight: 500; font-size: .95rem; position: relative; padding: 4px 0; }
.rt-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--rt-gradient); transition: width .25s ease;
}
.rt-nav a:hover::after { width: 100%; }
.rt-header-actions { display: flex; align-items: center; gap: 14px; }
.rt-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.rt-burger span { width: 24px; height: 2px; background: var(--rt-text); border-radius: 2px; transition: all .3s ease; }

/* ---------- Hero ---------- */
.rt-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 20% 20%, #131a30, var(--rt-bg-dark) 60%);
  padding: 90px 0 60px;
  color: var(--rt-text-light);
}
.rt-hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; pointer-events: none; }
.rt-hero-glow-1 { width: 420px; height: 420px; background: var(--rt-accent); top: -140px; left: -120px; }
.rt-hero-glow-2 { width: 380px; height: 380px; background: var(--rt-accent-2); bottom: -160px; right: -100px; }
.rt-grid-overlay {
  position: absolute; inset: 0; pointer-events: none; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}
.rt-hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding-top: 20px; }
.rt-badge {
  display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); margin-bottom: 20px;
}
.rt-hero-text h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; margin-bottom: .5em; }
.rt-hero-sub { color: var(--rt-muted-light); font-size: 1.05rem; max-width: 520px; }
.rt-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 40px; }
.rt-hero .rt-btn-ghost { border-color: rgba(255,255,255,.25); color: var(--rt-text-light); }
.rt-hero .rt-btn-ghost:hover { border-color: var(--rt-accent); color: var(--rt-accent); }

.rt-hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 340px; }
.rt-hero-card { width: 100%; max-width: 420px; }
.rt-mini-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(10px); padding: 12px 16px; border-radius: 14px;
  font-size: .85rem; font-weight: 600; color: var(--rt-text-light);
}
.rt-mini-card svg { color: var(--rt-accent); }
.rt-mini-card-1 { top: 10%; left: -6%; }
.rt-mini-card-2 { bottom: 6%; right: -4%; }

.rt-scroll-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3; }
.rt-scroll-hint span {
  display: block; width: 24px; height: 40px; border: 2px solid rgba(255,255,255,.35); border-radius: 20px; position: relative;
}
.rt-scroll-hint span::before {
  content: ''; position: absolute; top: 6px; left: 50%; width: 4px; height: 8px; background: var(--rt-accent);
  border-radius: 2px; transform: translateX(-50%); animation: rtScrollDot 1.6s infinite;
}
@keyframes rtScrollDot { 0% { opacity: 1; top: 6px; } 100% { opacity: 0; top: 20px; } }

/* ---------- Seções genéricas ---------- */
.rt-section { padding: 100px 0; position: relative; }
.rt-section-tight { padding: 60px 0; }
.rt-section-dark { background: var(--rt-bg-dark-2); color: var(--rt-text-light); overflow: hidden; }
.rt-section-dark .rt-grid-overlay { opacity: .06; }
.rt-section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.rt-eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  font-weight: 700; color: var(--rt-accent-2); margin-bottom: 12px;
}
.rt-eyebrow-light { color: var(--rt-accent); }
.rt-section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ---------- Cards de serviço (com ilustração de fundo atrás do texto) ---------- */
.rt-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.rt-card {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #171d31, #0e1220);
  border: 1px solid rgba(255,255,255,.06); border-radius: var(--rt-radius);
  padding: 32px 26px; box-shadow: var(--rt-shadow); transition: transform .3s ease, box-shadow .3s ease;
}
.rt-card:hover { transform: translateY(-8px); box-shadow: 0 28px 50px -20px rgba(20,20,40,.45); }
.rt-card-bg-icon {
  position: absolute; right: -18px; bottom: -18px; width: 150px; height: 150px;
  color: var(--rt-accent); opacity: .1; transform: rotate(-8deg); pointer-events: none;
}
.rt-card-bg-icon svg { width: 100%; height: 100%; }
.rt-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(0,212,255,.08), rgba(123,47,247,.1));
  pointer-events: none;
}
.rt-card-content { position: relative; z-index: 2; }
.rt-card-icon {
  width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(0,212,255,.18), rgba(123,47,247,.18)); color: var(--rt-accent); margin-bottom: 18px;
}
.rt-card h3 { font-size: 1.1rem; margin-bottom: .4em; color: var(--rt-text-light); }
.rt-card p { font-size: .92rem; margin-bottom: 0; color: var(--rt-muted-light); }

/* ---------- Diferenciais ---------- */
.rt-diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.rt-diff-item { display: flex; gap: 16px; align-items: flex-start; }
.rt-diff-icon {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: rgba(0,212,255,.1); color: var(--rt-accent); border: 1px solid rgba(0,212,255,.25);
}
.rt-diff-item h4 { font-size: 1.02rem; margin-bottom: .3em; color: var(--rt-text-light); }
.rt-diff-item p { font-size: .88rem; color: var(--rt-muted-light); margin-bottom: 0; }

/* ---------- Marcas ---------- */
.rt-brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.rt-brand-chip {
  padding: 10px 20px; border-radius: 999px; background: #f3f4f8; font-weight: 600; font-size: .9rem;
  border: 1px solid rgba(0,0,0,.05); transition: all .25s ease;
}
.rt-brand-chip:hover { background: var(--rt-gradient); color: #fff; transform: translateY(-3px); }

/* ---------- Depoimentos ---------- */
.rt-testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.rt-testimonial {
  background: #f9f9fd; border-radius: var(--rt-radius); padding: 28px; border: 1px solid rgba(0,0,0,.05);
}
.rt-stars { display: flex; gap: 3px; color: #ffb238; margin-bottom: 14px; }
.rt-testimonial p { font-style: italic; color: var(--rt-text); }
.rt-testimonial-name { font-weight: 700; font-size: .88rem; color: var(--rt-accent-2); }
.rt-testimonials-more { text-align: center; margin-top: 36px; }

/* ---------- CTA final ---------- */
.rt-cta-final { background: var(--rt-gradient); padding: 70px 0; text-align: center; color: #fff; }
.rt-cta-final h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.rt-cta-final p { color: rgba(255,255,255,.9); max-width: 460px; margin: 0 auto 26px; }
#rafatech-app .rt-cta-final a.rt-btn-primary,
#rafatech-app .rt-cta-final a.rt-btn-primary:visited { background: #ffffff !important; color: var(--rt-accent-2) !important; box-shadow: 0 15px 30px -12px rgba(0,0,0,.35); }
#rafatech-app .rt-cta-final a.rt-btn-primary:hover { color: var(--rt-accent-2) !important; }
#rafatech-app .rt-cta-final a.rt-btn-primary svg { color: var(--rt-accent-2); fill: currentColor; }

/* ---------- Localização ---------- */
.rt-local-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.rt-local-list { display: flex; flex-direction: column; gap: 16px; margin: 22px 0 28px; }
.rt-local-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.rt-local-list svg { color: var(--rt-accent-2); flex-shrink: 0; }
.rt-map-frame { border-radius: var(--rt-radius); overflow: hidden; box-shadow: var(--rt-shadow); }

/* ---------- Footer ---------- */
.rt-footer { background: var(--rt-bg-dark); color: var(--rt-muted-light); padding: 50px 0 30px; text-align: center; }
.rt-footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rt-footer-logo-badge { background: #fff; padding: 10px 18px; border-radius: 14px; display: inline-flex; }
.rt-footer-logo-badge .rt-logo-img { height: 40px; }
.rt-footer-tagline { max-width: 420px; font-size: .9rem; }
.rt-footer-social { display: flex; gap: 14px; }
.rt-footer-social a {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); transition: all .25s ease;
}
.rt-footer-social a:hover { background: var(--rt-gradient); transform: translateY(-3px); }
.rt-footer-copy { font-size: .8rem; opacity: .6; margin-top: 8px; }

/* ---------- Botão flutuante WhatsApp ---------- */
.rt-whatsapp-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 28px -8px rgba(37,211,102,.6);
  transition: transform .25s ease;
}
.rt-whatsapp-float:hover { transform: scale(1.08); }
.rt-whatsapp-pulse {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: rtPulse 2s infinite;
}
@keyframes rtPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Animações de flutuação ---------- */
.rt-float { animation: rtFloat 5s ease-in-out infinite; }
.rt-float-slow { animation: rtFloat 6s ease-in-out infinite; }
.rt-float-slow-rev { animation: rtFloat 7s ease-in-out infinite reverse; }
@keyframes rtFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Reveal on scroll ---------- */
.rt-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.rt-reveal.rt-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .rt-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .rt-hero-cta, .rt-hero-stats { justify-content: center; }
  .rt-hero-visual { margin-top: 30px; min-height: auto; }
  .rt-mini-card-1, .rt-mini-card-2 { position: static; margin: 10px auto 0; display: inline-flex; }
  .rt-cards-grid, .rt-diff-grid, .rt-testimonials { grid-template-columns: 1fr; }
  .rt-local-grid { grid-template-columns: 1fr; }
  .rt-nav { position: fixed; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column;
    padding: 20px 24px; gap: 18px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.2);
    transform: translateY(-130%); opacity: 0; transition: all .3s ease; }
  .rt-nav.rt-nav-open { transform: translateY(0); opacity: 1; }
  .rt-burger { display: flex; }
  .rt-header-actions .rt-btn-sm span { display: none; }
}
@media (max-width: 480px) {
  .rt-hero { padding: 60px 0 50px; }
  .rt-section { padding: 70px 0; }
  .rt-hero-stats { gap: 22px; }
}
