/* ==========================================================================
   W3 SOLUÇÕES - 40 FLOATING BACKGROUND ICONS & DEDICATED CONSTRUCTION PAGES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Sora:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Strictly White, Light Grey & Silvery Theme */
  --silver-bg-primary: #f8fafc;
  --silver-bg-secondary: #f1f5f9;
  --silver-bg-card: #ffffff;
  --silver-card-border: #e2e8f0;
  --silver-card-hover-border: #cbd5e1;
  --silver-text-main: #0f172a;
  --silver-text-muted: #64748b;
  --silver-text-light: #94a3b8;
  --silver-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --silver-shadow-hover: 0 20px 40px rgba(15, 23, 42, 0.12);

  /* Accents */
  --accent-blue: #2563eb;
  --accent-purple: #7c3aed;
  --accent-teal: #0891b2;
  --accent-green: #059669;
  --accent-amber: #d97706;
  --accent-pix: #00b370;

  /* Fonts — opção C: Product SaaS */
  --font-sans: 'DM Sans', sans-serif;
  --font-heading: 'Sora', 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  font-family: var(--font-sans);
}

body {
  overflow-x: hidden;
  line-height: 1.5;
  background-color: var(--silver-bg-primary);
  color: var(--silver-text-main);
  min-height: 100vh;
  position: relative;
}

/* Selection */
::selection {
  background: #cbd5e1;
  color: #0f172a;
}

/* ==========================================================================
   SUBTLE ANIMATED MESH GRADIENT BACKGROUND (MOVING SOFTLY ACROSS 4 CORNERS)
   ========================================================================== */
.animated-mesh-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 5% 5%, rgba(224, 242, 254, 0.75) 0%, transparent 45%),
              radial-gradient(circle at 95% 5%, rgba(209, 250, 229, 0.7) 0%, transparent 45%),
              radial-gradient(circle at 95% 95%, rgba(243, 232, 255, 0.75) 0%, transparent 45%),
              radial-gradient(circle at 5% 95%, rgba(254, 243, 199, 0.6) 0%, transparent 45%);
  background-size: 160% 160%;
  animation: meshCornerGradient 24s ease-in-out infinite alternate;
}

@keyframes meshCornerGradient {
  0% {
    background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%;
    filter: hue-rotate(0deg);
  }
  25% {
    background-position: 30% 15%, 85% 35%, 70% 85%, 15% 70%;
  }
  50% {
    background-position: 60% 40%, 40% 15%, 15% 85%, 85% 40%;
    filter: hue-rotate(12deg);
  }
  75% {
    background-position: 15% 35%, 85% 85%, 35% 85%, 85% 15%;
  }
  100% {
    background-position: 100% 100%, 0% 100%, 0% 0%, 100% 0%;
    filter: hue-rotate(0deg);
  }
}

/* ==========================================================================
   FULL-CANVAS DENSE FLOATING BACKGROUND ICONS (40 ICONS, RANDOM DIRECTIONS, 50% OPACITY)
   ========================================================================== */
.floating-bg-container {
  position: absolute;
  top: -40px;
  left: -40px;
  right: -40px;
  bottom: -40px;
  height: calc(100% + 80px);
  width: calc(100% + 80px);
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  will-change: transform;
}

.float-icon {
  position: absolute;
  opacity: 0.5; /* Strict 50% opacity requirement */
  color: #94a3b8;
  filter: drop-shadow(0 6px 16px rgba(148, 163, 184, 0.35));
}

/* 40 Floating Icons spread evenly across the canvas with random positions */
.icon-1  { top: 2%;  left: 3%;  font-size: 3.8rem; animation: floatRandom1 14s infinite alternate; }
.icon-2  { top: 4%;  left: 28%; font-size: 3.2rem; animation: floatRandom2 17s infinite alternate -3s; }
.icon-3  { top: 6%;  left: 55%; font-size: 4.2rem; animation: floatRandom3 15s infinite alternate -1s; }
.icon-4  { top: 8%;  right: 5%; font-size: 3.5rem; animation: floatRandom4 18s infinite alternate -5s; }
.icon-5  { top: 14%; left: 14%; font-size: 3.6rem; animation: floatRandom5 12s infinite alternate -2s; }
.icon-6  { top: 16%; left: 40%; font-size: 2.8rem; animation: floatRandom6 16s infinite alternate -4s; }
.icon-7  { top: 18%; right: 22%;font-size: 4.0rem; animation: floatRandom7 20s infinite alternate -6s; }
.icon-8  { top: 22%; left: 4%;  font-size: 3.7rem; animation: floatRandom8 13s infinite alternate -8s; }

.icon-9  { top: 26%; left: 32%; font-size: 3.4rem; animation: floatRandom1 19s infinite alternate -3s; }
.icon-10 { top: 28%; right: 12%;font-size: 4.4rem; animation: floatRandom2 15s infinite alternate -7s; }
.icon-11 { top: 32%; left: 20%; font-size: 3.8rem; animation: floatRandom3 14s infinite alternate -2s; }
.icon-12 { top: 35%; left: 48%; font-size: 3.0rem; animation: floatRandom4 16s infinite alternate -5s; }
.icon-13 { top: 38%; right: 4%; font-size: 4.1rem; animation: floatRandom5 18s infinite alternate -1s; }

.icon-14 { top: 42%; left: 8%;  font-size: 3.5rem; animation: floatRandom6 13s infinite alternate -9s; }
.icon-15 { top: 44%; left: 36%; font-size: 4.2rem; animation: floatRandom7 17s infinite alternate -4s; }
.icon-16 { top: 48%; right: 25%;font-size: 3.6rem; animation: floatRandom8 21s infinite alternate -6s; }
.icon-17 { top: 51%; right: 6%; font-size: 4.5rem; animation: floatRandom1 15s infinite alternate -2s; }
.icon-18 { top: 54%; left: 16%; font-size: 3.3rem; animation: floatRandom2 12s infinite alternate -8s; }

.icon-19 { top: 58%; left: 44%; font-size: 4.0rem; animation: floatRandom3 18s infinite alternate -3s; }
.icon-20 { top: 62%; right: 16%;font-size: 3.7rem; animation: floatRandom4 14s infinite alternate -5s; }
.icon-21 { top: 65%; left: 4%;  font-size: 4.3rem; animation: floatRandom5 16s infinite alternate -1s; }
.icon-22 { top: 68%; left: 28%; font-size: 3.1rem; animation: floatRandom6 19s infinite alternate -7s; }
.icon-23 { top: 71%; right: 35%;font-size: 3.9rem; animation: floatRandom7 13s infinite alternate -4s; }

.icon-24 { top: 74%; right: 5%; font-size: 4.2rem; animation: floatRandom8 17s infinite alternate -6s; }
.icon-25 { top: 78%; left: 12%; font-size: 3.4rem; animation: floatRandom1 15s infinite alternate -2s; }
.icon-26 { top: 80%; left: 52%; font-size: 3.8rem; animation: floatRandom2 20s infinite alternate -8s; }
.icon-27 { top: 83%; right: 20%;font-size: 4.0rem; animation: floatRandom3 14s infinite alternate -3s; }

.icon-28 { top: 86%; left: 3%;  font-size: 4.4rem; animation: floatRandom4 16s infinite alternate -5s; }
.icon-29 { top: 89%; left: 34%; font-size: 3.5rem; animation: floatRandom5 18s infinite alternate -1s; }
.icon-30 { top: 92%; right: 38%;font-size: 3.2rem; animation: floatRandom6 13s infinite alternate -9s; }

.icon-31 { top: 94%; right: 8%; font-size: 4.1rem; animation: floatRandom7 17s infinite alternate -4s; }
.icon-32 { top: 97%; left: 22%; font-size: 3.9rem; animation: floatRandom8 15s infinite alternate -6s; }
.icon-33 { top: 11%; left: 75%; font-size: 3.6rem; animation: floatRandom1 16s infinite alternate -2s; }
.icon-34 { top: 24%; left: 62%; font-size: 4.0rem; animation: floatRandom3 19s infinite alternate -7s; }

.icon-35 { top: 46%; left: 72%; font-size: 3.7rem; animation: floatRandom5 14s infinite alternate -4s; }
.icon-36 { top: 59%; left: 25%; font-size: 3.3rem; animation: floatRandom2 18s infinite alternate -8s; }
.icon-37 { top: 73%; left: 65%; font-size: 4.2rem; animation: floatRandom6 13s infinite alternate -3s; }
.icon-38 { top: 87%; left: 78%; font-size: 3.8rem; animation: floatRandom4 15s infinite alternate -5s; }
.icon-39 { top: 96%; left: 60%; font-size: 3.4rem; animation: floatRandom7 17s infinite alternate -1s; }
.icon-40 { top: 37%; left: 85%; font-size: 4.3rem; animation: floatRandom8 12s infinite alternate -6s; }

/* RANDOM MULTIDIRECTIONAL ANIMATION KEYFRAMES */
@keyframes floatRandom1 {
  0%   { transform: translate(0px, 0px) rotate(0deg) scale(1); }
  50%  { transform: translate(25px, -35px) rotate(14deg) scale(1.15); }
  100% { transform: translate(-20px, 25px) rotate(-12deg) scale(0.9); }
}

@keyframes floatRandom2 {
  0%   { transform: translate(0px, 0px) rotate(0deg) scale(1); }
  50%  { transform: translate(-30px, -25px) rotate(-18deg) scale(0.88); }
  100% { transform: translate(22px, 30px) rotate(15deg) scale(1.1); }
}

@keyframes floatRandom3 {
  0%   { transform: translate(0px, 0px) rotate(0deg) scale(1); }
  50%  { transform: translate(35px, 20px) rotate(22deg) scale(1.08); }
  100% { transform: translate(-25px, -15px) rotate(-8deg) scale(0.95); }
}

@keyframes floatRandom4 {
  0%   { transform: translate(0px, 0px) rotate(0deg); }
  25%  { transform: translate(20px, -20px) rotate(90deg); }
  50%  { transform: translate(0px, -40px) rotate(180deg); }
  75%  { transform: translate(-20px, -20px) rotate(270deg); }
  100% { transform: translate(0px, 0px) rotate(360deg); }
}

@keyframes floatRandom5 {
  0%   { transform: translate(0px, 0px) rotate(0deg) scale(1); }
  50%  { transform: translate(-15px, -45px) rotate(-15deg) scale(1.14); }
  100% { transform: translate(15px, 15px) rotate(10deg) scale(0.92); }
}

@keyframes floatRandom6 {
  0%   { transform: translate(0px, 0px) rotate(0deg); }
  33%  { transform: translate(-30px, 20px) rotate(12deg); }
  66%  { transform: translate(30px, -25px) rotate(-14deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}

@keyframes floatRandom7 {
  0%   { transform: translate(0px, 0px) rotate(0deg) scale(1); }
  50%  { transform: translate(28px, 32px) rotate(-20deg) scale(1.1); }
  100% { transform: translate(-22px, -28px) rotate(16deg) scale(0.89); }
}

@keyframes floatRandom8 {
  0%   { transform: translate(0px, 0px) rotate(0deg) scale(1); }
  50%  { transform: translate(-35px, -30px) rotate(-25deg) scale(1.16); }
  100% { transform: translate(25px, 20px) rotate(18deg) scale(0.94); }
}

/* Background Soft Ambient Orbs */
.bg-ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
.orb-silver-1 { width: 550px; height: 550px; background: rgba(203, 213, 225, 0.7); top: -100px; left: -100px; }
.orb-silver-2 { width: 600px; height: 600px; background: rgba(226, 232, 240, 0.85); bottom: -150px; right: -100px; }

/* ==========================================================================
   W3 SOLUÇÕES PORTAL VIEW
   ========================================================================== */

.w3-portal-body {
  position: relative;
  z-index: 2;
  padding: 2.5rem 1.5rem 4rem 1.5rem;
  max-width: 1240px;
  margin: 0 auto;
}

/* Header & Brand */
.w3-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3.5rem;
}

.w3-header > .w3-brand-group {
  flex-shrink: 0;
  flex-grow: 0;
  max-width: fit-content;
}

.w3-brand-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
}

/* Animated Ring around Logo */
.w3-logo-wrapper {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.w3-logo-ring {
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  background: conic-gradient(from 0deg, #2563eb, #7c3aed, #059669, #2563eb);
  animation: logoRotate 6s linear infinite;
  opacity: 0.85;
}

@keyframes logoRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.w3-logo-box {
  position: relative;
  width: 52px;
  height: 52px;
  background: #ffffff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  z-index: 2;
}

.w3-brand-titles {
  display: flex;
  flex-direction: column;
}

.w3-main-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.8rem;
  line-height: 1;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.w3-subtitle {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--silver-text-muted);
  margin-top: 2px;
}

/* Grid Layout */
.w3-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

/* Left Hero Column */
.w3-hero-pill {
  display: inline-block;
  background: #ffffff;
  border: 1px solid var(--silver-card-border);
  padding: 0.4rem 1.1rem;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--silver-text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 0.85rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.w3-hero-headline {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.18;
  color: #0f172a;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.w3-hero-description {
  font-size: 1.0rem;
  color: var(--silver-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Right Stack of Solution Cards */
.w3-card-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cnae-card {
  background: var(--silver-bg-card);
  border: 1px solid var(--silver-card-border);
  border-radius: 20px;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--silver-shadow);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cnae-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 5px;
  background: #cbd5e1;
  transition: width 0.2s ease, background 0.2s ease;
}

.cnae-card.w3pay-card::before { background: var(--accent-pix); }
.cnae-card.cnae-6201-1::before { background: var(--accent-blue); }
.cnae-card.cnae-6201-2::before { background: var(--accent-teal); }
.cnae-card.cnae-6202::before { background: var(--accent-purple); }
.cnae-card.cnae-6203::before { background: #0284c7; }
.cnae-card.cnae-6204::before { background: var(--accent-amber); }
.cnae-card.cnae-6209::before { background: var(--accent-green); }

.cnae-card:hover {
  transform: translateX(8px);
  border-color: var(--silver-card-hover-border);
  box-shadow: var(--silver-shadow-hover);
}

.cnae-card:hover::before {
  width: 7px;
}

.cnae-card-left {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.cnae-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.bg-w3pay { background: linear-gradient(135deg, #00d285, #00995c); }
.bg-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.bg-teal { background: linear-gradient(135deg, #06b6d4, #0284c7); }
.bg-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.bg-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.bg-green { background: linear-gradient(135deg, #10b981, #047857); }

/* ==========================================================================
   THEME-SPECIFIC CONTINUOUS ANIMATED ICONS FOR EACH WORK AREA (SVG Target & WebKit Fixes)
   ========================================================================== */

.cnae-icon-box svg,
.cnae-icon-box i {
  display: inline-block !important;
  transform-origin: center center !important;
}

/* 1. W3Pay Fintech: Electric Lightning Glow Pulse */
.bg-w3pay svg,
.bg-w3pay i {
  animation: electricPulse 2s infinite ease-in-out !important;
}
@keyframes electricPulse {
  0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 2px rgba(255,255,255,0.7)); }
  50% { transform: scale(1.3) rotate(-12deg); filter: drop-shadow(0 0 14px rgba(255,255,255,1)); }
}

/* 2. Software Custom: Code Brackets Type & Expand */
.cnae-6201-1 .cnae-icon-box svg,
.cnae-6201-1 .cnae-icon-box i {
  animation: codeBracketFloat 2.4s infinite ease-in-out !important;
}
@keyframes codeBracketFloat {
  0%, 100% { transform: scale(1) translateX(0); }
  50% { transform: scale(1.28) translateX(4px); filter: drop-shadow(0 0 10px rgba(255,255,255,0.9)); }
}

/* 3. Web Design UI/UX Figma: Vibrant Pulse & Rotation */
.cnae-6201-2 .cnae-icon-box svg,
.cnae-6201-2 .cnae-icon-box i {
  animation: figmaPulseRotate 2.4s infinite ease-in-out !important;
}
@keyframes figmaPulseRotate {
  0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 3px rgba(255,255,255,0.7)); }
  50% { transform: scale(1.32) rotate(45deg); filter: drop-shadow(0 0 16px rgba(255,255,255,1)); }
}

/* 4. SaaS Platforms: Stacking Layers Float Up & Down */
.cnae-6202 .cnae-icon-box svg,
.cnae-6202 .cnae-icon-box i {
  animation: layerStack 2.2s infinite ease-in-out !important;
}
@keyframes layerStack {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.28); filter: drop-shadow(0 0 12px rgba(255,255,255,1)); }
}

/* 5. Turnkey Apps: Package Box Bounce & Pop */
.cnae-6203 .cnae-icon-box svg,
.cnae-6203 .cnae-icon-box i {
  animation: packageBounce 2.2s infinite ease-in-out !important;
}
@keyframes packageBounce {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.25) rotate(-14deg); }
  75% { transform: scale(1.25) rotate(14deg); filter: drop-shadow(0 0 12px rgba(255,255,255,1)); }
}

/* 6. Consultoria TI: Glowing Lightbulb Energy Beam */
.cnae-6204 .cnae-icon-box svg,
.cnae-6204 .cnae-icon-box i {
  animation: lightbulbGlow 2s infinite ease-in-out !important;
}
@keyframes lightbulbGlow {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(255,255,255,0.5)); }
  50% { transform: scale(1.3) rotate(15deg); filter: drop-shadow(0 0 18px rgba(255,255,255,1)); }
}

/* 7. Suporte 24/7: Shield Radar Ping Pulse */
.cnae-6209 .cnae-icon-box svg,
.cnae-6209 .cnae-icon-box i {
  animation: shieldRadarPing 2.4s infinite ease-in-out !important;
}
@keyframes shieldRadarPing {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 3px rgba(255,255,255,0.5)); }
  50% { transform: scale(1.25); filter: drop-shadow(0 0 16px rgba(255,255,255,1)); }
}

.cnae-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cnae-tag-pills {
  display: flex;
  gap: 0.4rem;
}

.cnae-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 10px;
}

.pill-w3pay { background: rgba(0, 210, 133, 0.15); color: #008f58; border: 1px solid rgba(0,210,133,0.3); }
.pill-blue { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.pill-teal { background: rgba(6, 182, 212, 0.12); color: #0891b2; }
.pill-purple { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }
.pill-amber { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.pill-green { background: rgba(16, 185, 129, 0.12); color: #059669; }

.cnae-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.cnae-action-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.cnae-action-badge i {
  width: 16px;
  height: 16px;
  transition: inherit;
}

/* Default hover fallback */
.cnae-card:hover .cnae-action-badge {
  color: #ffffff;
  transform: translateX(3px);
}

/* Cor do botão = cor do menu de origem */
.cnae-card.w3pay-card:hover .cnae-action-badge {
  background: var(--accent-pix);
  border-color: var(--accent-pix);
  box-shadow: 0 6px 16px rgba(0, 179, 112, 0.28);
}

.cnae-card.cnae-6201-1:hover .cnae-action-badge {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

.cnae-card.cnae-6201-2:hover .cnae-action-badge {
  background: var(--accent-teal);
  border-color: var(--accent-teal);
  box-shadow: 0 6px 16px rgba(8, 145, 178, 0.28);
}

.cnae-card.cnae-6202:hover .cnae-action-badge {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.28);
}

.cnae-card.cnae-6203:hover .cnae-action-badge {
  background: #0284c7;
  border-color: #0284c7;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.28);
}

.cnae-card.cnae-6204:hover .cnae-action-badge {
  background: var(--accent-amber);
  border-color: var(--accent-amber);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.28);
}

.cnae-card.cnae-6209:hover .cnae-action-badge {
  background: var(--accent-green);
  border-color: var(--accent-green);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.28);
}

.cnae-arrow {
  color: #94a3b8;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.cnae-card:hover .cnae-arrow {
  transform: translateX(4px);
  color: #0f172a;
}

/* ==========================================================================
   DEDICATED FULL-PAGE "EM CONSTRUÇÃO" STYLES
   ========================================================================== */
.construction-view {
  display: none;
  position: relative;
  z-index: 2;
  padding: 2.5rem 1.5rem 4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.construction-card {
  background: var(--silver-bg-card);
  border: 1px solid var(--silver-card-border);
  border-radius: 28px;
  padding: 3.5rem 3rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  text-align: center;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.construction-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #d97706;
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}

.construction-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.construction-desc {
  font-size: 1.15rem;
  color: var(--silver-text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.6;
}

.construction-scope-box {
  background: var(--silver-bg-secondary);
  border: 1px solid var(--silver-card-border);
  border-radius: 18px;
  padding: 1.75rem;
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
  text-align: left;
}

.construction-scope-box h4 {
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.construction-scope-box p {
  font-size: 0.9rem;
  color: var(--silver-text-muted);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .w3-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .construction-title {
    font-size: 2.2rem;
  }
}


/* ==========================================================================
   /* ==========================================================================
   /* ==========================================================================
/* ==========================================================================
   W3 SOLUÇÕES — CONTORNO ABERTO: CYAN SÓLIDO NA ESQUERDA, DISSOLVE À DIREITA
   ========================================================================== */

.w3-brand-group {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  position: relative;
  border-radius: 18px;
  padding: 0;
  width: max-content;
  flex-shrink: 0;
  flex-grow: 0;
  border: 4px solid transparent;
  background-clip: padding-box;
  background-color: #0f172a;
  /* Glow suave sempre visível no lado esquerdo */
  box-shadow:
    -6px 0 18px rgba(0, 240, 255, 0.25),
    0 0 12px rgba(0, 240, 255, 0.10),
    0 2px 10px rgba(15, 23, 42, 0.2);
  transition: box-shadow 0.35s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Contorno gradiente: visível no lado esquerdo, dissolve à direita */
.w3-brand-group::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  /* Gradiente do contorno: cyan forte → esmeralda → transparente */
  background: linear-gradient(90deg,
    #00f0ff 0%,
    #00d285 40%,
    rgba(0, 210, 133, 0.15) 75%,
    transparent 100%
  );
  z-index: -1;
  /* Máscara: opaco à esquerda, dissolve progressivamente à direita */
  -webkit-mask: linear-gradient(90deg,
    black 0%,
    black 45%,
    rgba(0,0,0,0.4) 70%,
    transparent 100%
  );
  mask: linear-gradient(90deg,
    black 0%,
    black 45%,
    rgba(0,0,0,0.4) 70%,
    transparent 100%
  );
}

/* Sem hover scale — efeito visual é permanente */
.w3-brand-group:hover {
  box-shadow:
    -6px 0 28px rgba(0, 240, 255, 0.40),
    0 0 20px rgba(0, 240, 255, 0.20),
    0 4px 16px rgba(15, 23, 42, 0.25);
}

.w3-hero-logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: 14px;
  margin: 4px 10px;
  position: relative;
  z-index: 1;
}

/* ===== W3 Logo — Opção C: flutuação + sombra (logo original) ===== */
.w3-brand-group.w3-brand-float {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.w3-brand-group.w3-brand-float::after {
  display: none;
}

.w3-brand-group.w3-brand-float:hover {
  box-shadow: none;
  transform: none;
}

.w3-logo-float {
  width: 72px;
  height: auto;
  display: block;
  animation: w3LogoFloat 3.8s ease-in-out infinite;
  filter: drop-shadow(0 14px 18px rgba(15, 23, 42, 0.22));
}

.w3-brand-wordmark {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #020617 0%, #0b2f8a 38%, #1d6fe8 72%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  user-select: none;
}

@keyframes w3LogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .w3-logo-float {
    animation: none;
    filter: drop-shadow(0 8px 12px rgba(15, 23, 42, 0.16));
  }
}

/* Pulse — glow do lado esquerdo pulsando suavemente */
@keyframes logoPulse {
  0%   { box-shadow: -6px 0 18px rgba(0,240,255,0.25), 0 0 12px rgba(0,240,255,0.10), 0 2px 10px rgba(15,23,42,0.2); }
  50%  { box-shadow: -6px 0 32px rgba(0,240,255,0.50), 0 0 22px rgba(0,240,255,0.22), 0 4px 16px rgba(15,23,42,0.25); }
  100% { box-shadow: -6px 0 18px rgba(0,240,255,0.25), 0 0 12px rgba(0,240,255,0.10), 0 2px 10px rgba(15,23,42,0.2); }
}

.w3-brand-group.pulse {
  animation: logoPulse 2.8s ease-in-out infinite;
}

.w3-hero-logo-img.pulse {
  animation: none;
}

/* ===== SITE FOOTER ===== */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: 3rem;
  border-top: 1px solid var(--silver-card-border);
  background: linear-gradient(180deg, rgba(248,250,252,0.72) 0%, #f1f5f9 100%);
  backdrop-filter: blur(8px);
}

.site-footer.is-hidden {
  display: none;
}

.site-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 3rem 1.5rem 1.5rem;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
  gap: 2.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--silver-card-border);
}

.site-footer-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.site-footer-logo {
  width: 42px;
  height: auto;
  display: block;
}

.site-footer-wordmark {
  font-size: 1.45rem;
}

.site-footer-tagline {
  color: var(--silver-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 280px;
  margin: 0 0 1rem;
}

.site-footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.site-footer-trust span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.18);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
}

.site-footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.9rem;
}

.site-footer-col a {
  display: block;
  color: var(--silver-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.28rem 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer-col a:hover {
  color: #0f172a;
  transform: translateX(2px);
}

.site-footer-muted {
  color: var(--silver-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 0.75rem;
}

.site-footer-mail {
  display: block !important;
  color: #0284c7 !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  margin-bottom: 0.35rem;
}

.site-footer-cta {
  margin-top: 0.9rem;
  width: 100%;
  justify-content: center;
}

.site-footer-hours {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.5;
}

.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.15rem;
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
}

.site-footer-legal {
  display: flex;
  gap: 1rem;
}

.site-footer-legal a {
  color: #64748b;
  text-decoration: none;
  font-weight: 700;
}

.site-footer-legal a:hover {
  color: #0f172a;
}

@media (max-width: 1024px) {
  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .site-footer-inner {
    padding: 1.75rem 1rem 1.15rem;
  }
}

/* ==========================================================================
   DYNAMIC SUBPAGE BACK BUTTON (SILVER DEFAULT ➔ COLORFUL HOVER)
   ========================================================================== */
.w3-back-btn {
  background: #ffffff !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  padding: 0.6rem 1.25rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

.w3-back-btn:hover {
  background: #ffffff !important;
  color: var(--btn-accent-color, #00b370) !important;
  border-color: var(--btn-accent-color, #00b370) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 0 12px var(--btn-accent-glow, rgba(0, 179, 112, 0.15)) !important;
  transform: translateY(-2px) !important;
}

.w3-back-btn i,
.w3-back-btn svg {
  transition: transform 0.25s ease, color 0.25s ease !important;
  color: #64748b !important;
}

.w3-back-btn:hover i,
.w3-back-btn:hover svg {
  transform: translateX(-4px) !important;
  color: var(--btn-accent-color, #00b370) !important;
}

/* ==========================================================================
   MOBILE / RESPONSIVE — detecta largura e adapta (Fases 1–2)
   Breakpoints: 1024 tablet | 768 mobile | 480 estreito | 390 compacto
   ========================================================================== */

@media (max-width: 1024px) {
  .w3-portal-body {
    padding: 1.75rem 1.25rem 3rem;
  }

  .w3-header {
    margin-bottom: 2.25rem;
  }

  .w3-hero-headline {
    font-size: clamp(2rem, 4.5vw, 2.6rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
  }

  .w3-hero-description {
    font-size: 1.05rem;
  }
}

@media (max-width: 768px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
    max-width: 100%;
  }

  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .animated-mesh-bg {
    width: 100%;
    max-width: 100%;
  }

  .floating-bg-container {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    max-width: 100%;
  }

  .bg-ambient-orb {
    max-width: 100%;
  }

  .spatial-canvas {
    max-width: 100% !important;
  }

  .w3-portal-body {
    padding: 1.25rem 1rem 2.5rem;
  }

  .w3-header {
    margin-bottom: 1.5rem;
  }

  .w3-brand-group {
    gap: 0.65rem;
  }

  .w3-logo-float,
  img.w3-logo-float {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px;
  }

  .w3-brand-wordmark {
    font-size: 1.55rem !important;
  }

  .w3-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .w3-hero-pill {
    font-size: 0.68rem;
    padding: 0.35rem 0.85rem;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
  }

  .w3-hero-headline {
    font-size: clamp(1.65rem, 7vw, 2.05rem);
    line-height: 1.18;
    letter-spacing: -0.025em;
    margin-bottom: 0.9rem;
  }

  .w3-hero-description {
    font-size: 0.98rem !important;
    line-height: 1.55 !important;
  }

  .w3-left p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .cnae-card {
    padding: 0.95rem 0.9rem;
    gap: 0.65rem;
  }

  .cnae-card-left {
    gap: 0.75rem;
  }

  .cnae-icon-box {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }

  .cnae-title {
    font-size: 1rem;
    line-height: 1.3;
  }

  .cnae-tag-pills {
    gap: 0.35rem;
    margin-bottom: 0.25rem;
  }

  .cnae-pill {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }

  .cnae-action-badge {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .cnae-action-badge i {
    width: 18px;
    height: 18px;
  }

  .floating-tech-icons i,
  .floating-icons i {
    opacity: 0.35;
  }

  .bg-ambient-orb {
    opacity: 0.55;
  }

  .site-footer {
    margin-top: 2rem;
  }

  .site-footer-inner {
    padding: 1.75rem 1rem 1.25rem;
  }

  .site-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.35rem 1.1rem;
    padding-bottom: 1.35rem;
  }

  .site-footer-brand,
  .site-footer-contact {
    grid-column: 1 / -1;
  }

  .site-footer-brand-row {
    margin-bottom: 0.55rem;
  }

  .site-footer-logo {
    width: 34px;
  }

  .site-footer-wordmark {
    font-size: 1.25rem;
  }

  .site-footer-tagline {
    font-size: 0.88rem;
    line-height: 1.45;
    max-width: none;
    margin-bottom: 0.75rem;
  }

  .site-footer-trust {
    gap: 0.35rem;
  }

  .site-footer-trust span {
    font-size: 0.65rem;
    padding: 0.22rem 0.55rem;
  }

  .site-footer-col h4 {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.45rem;
  }

  .site-footer-col a {
    font-size: 0.88rem;
    padding: 0.45rem 0;
    min-height: 40px;
    display: flex;
    align-items: center;
  }

  .site-footer-muted {
    font-size: 0.88rem;
    margin-bottom: 0.55rem;
  }

  .site-footer-mail {
    font-size: 0.88rem !important;
    word-break: break-word;
    padding: 0.4rem 0 !important;
    min-height: 40px;
    display: flex !important;
    align-items: center;
  }

  .site-footer-cta {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    margin-top: 0.75rem;
  }

  .site-footer-hours {
    margin-top: 0.65rem;
    font-size: 0.75rem;
  }

  .site-footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
    padding-top: 1rem;
  }

  .site-footer-legal {
    gap: 1.15rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .site-footer-legal a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .construction-title {
    font-size: clamp(1.5rem, 6vw, 1.9rem);
  }

  .w3-back-btn {
    min-height: 44px !important;
    padding: 0.65rem 1rem !important;
  }

  #w3pay-platform-view h1,
  #w3pay-platform-view h1[style] {
    font-size: clamp(1.6rem, 7vw, 2.1rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.5px !important;
  }

  #w3pay-platform-view h2[style] {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem) !important;
  }
}

@media (max-width: 480px) {
  .w3-portal-body {
    padding: 1rem 0.85rem 2rem;
  }

  .w3-hero-headline {
    font-size: clamp(1.45rem, 7.5vw, 1.75rem);
    line-height: 1.2;
  }

  .w3-hero-description,
  .w3-hero-description[style] {
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
  }

  .cnae-card {
    padding: 0.85rem 0.75rem;
  }

  .cnae-title {
    font-size: 0.95rem;
  }

  .cnae-icon-box {
    width: 38px;
    height: 38px;
  }

  .cnae-info {
    min-width: 0;
  }

  .cnae-tag-pills {
    flex-wrap: wrap;
  }
}

@media (max-width: 390px) {
  .w3-brand-wordmark {
    font-size: 1.35rem !important;
  }

  .w3-logo-float,
  img.w3-logo-float {
    width: 36px !important;
    height: 36px !important;
  }

  .w3-hero-pill {
    font-size: 0.62rem;
  }

  .cnae-action-badge {
    width: 44px;
    height: 44px;
  }
}


/* ==========================================================================
   W3PAY LANDING + DASHBOARD — mobile (Fase 3–4 leve)
   ========================================================================== */

@media (max-width: 1024px) {
  #w3pay-platform-view .w3-header {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0 !important;
  }

  #w3pay-platform-view .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  #w3pay-platform-view section.container > div[style*="grid-template-columns: 1.1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

@media (max-width: 768px) {
  #w3pay-platform-view .w3-header {
    flex-direction: column;
    align-items: stretch !important;
    padding: 1rem 1rem 0 !important;
  }

  #w3pay-platform-view .w3-header > div[style*="display:flex"] {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem !important;
  }

  #w3pay-platform-view .w3-header .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  #w3pay-platform-view .w3-back-btn {
    font-size: 0.85rem;
    white-space: normal;
    text-align: left;
  }

  #w3pay-platform-view section.container {
    padding-top: 1.75rem !important;
    padding-bottom: 2.5rem !important;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #w3pay-platform-view section.container > div[style*="grid-template-columns: 1.1fr 1fr"] {
    gap: 1.5rem !important;
  }

  #w3pay-platform-view div[style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  #w3pay-platform-view .profile-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  #w3pay-platform-view .feature-benefit-card,
  #w3pay-platform-view .light-card,
  #w3pay-platform-view .step-card {
    padding: 1.25rem 1.1rem;
  }

  #w3pay-platform-view .pos-badge-overlay {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.75rem 0.9rem;
  }

  #w3pay-platform-view .btn-lg,
  #w3pay-platform-view .btn {
    min-height: 48px;
    width: 100%;
    justify-content: center;
  }

  #w3pay-platform-view div[style*="display:flex"][style*="flex-wrap"] {
    flex-direction: column;
    align-items: stretch !important;
  }

  .dashboard-view .dash-main {
    padding: 1rem;
  }

  .dashboard-view .metrics-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem;
  }

  .dashboard-view .dash-header {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  #w3pay-platform-view .w3-brand-wordmark {
    font-size: 1.45rem !important;
  }

  #w3pay-platform-view .pos-badge-overlay {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
