/* ==========================================================================
   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-header--langs {
  margin-bottom: 0.55rem;
}

.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;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  color: #0f172a; /* fallback */
  background-image: 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;
}

.w3-hero-description {
  font-size: 1.0rem;
  color: var(--silver-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Right Stack of Solution Cards */
/* ── Menu cards: compact + unique colors + matte→color on hover ── */
.w3-card-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cnae-card {
  --card-accent: #94a3b8;
  background: var(--silver-bg-card);
  border: 1px solid var(--silver-card-border);
  border-radius: 14px;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--silver-shadow);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cnae-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: #cbd5e1;
  transition: width 0.2s ease, background 0.22s ease;
}

.cnae-card.w3pay-card { --card-accent: #00b370; }
.cnae-card.cnae-6319 { --card-accent: #8b5cf6; }
.cnae-card.cnae-6201-1 { --card-accent: #3b82f6; }
.cnae-card.cnae-6201-2 { --card-accent: #06b6d4; }
.cnae-card.cnae-6202 { --card-accent: #6366f1; }
.cnae-card.cnae-6203 { --card-accent: #0ea5e9; }
.cnae-card.cnae-6204 { --card-accent: #f59e0b; }
.cnae-card.cnae-6209 { --card-accent: #10b981; }
.cnae-card.cnae-7490 { --card-accent: #f43f5e; }

.cnae-card:hover,
.cnae-card:focus-visible {
  transform: translateX(6px);
  border-color: color-mix(in srgb, var(--card-accent) 35%, #e2e8f0);
  box-shadow: var(--silver-shadow-hover);
  outline: none;
}

.cnae-card:hover::before,
.cnae-card:focus-visible::before {
  width: 5px;
  background: var(--card-accent);
}

.cnae-card-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.cnae-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #ffffff;
  box-shadow: none;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #94a3b8, #64748b) !important;
  transition: background 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
  filter: grayscale(0.35) saturate(0.4);
}

.bg-w3pay { --icon-grad: linear-gradient(135deg, #00d285, #00995c); }
.bg-purple { --icon-grad: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.bg-blue { --icon-grad: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.bg-teal { --icon-grad: linear-gradient(135deg, #06b6d4, #0284c7); }
.bg-indigo { --icon-grad: linear-gradient(135deg, #818cf8, #4f46e5); }
.bg-sky { --icon-grad: linear-gradient(135deg, #38bdf8, #0284c7); }
.bg-amber { --icon-grad: linear-gradient(135deg, #f59e0b, #d97706); }
.bg-emerald { --icon-grad: linear-gradient(135deg, #34d399, #059669); }
.bg-rose { --icon-grad: linear-gradient(135deg, #fb7185, #e11d48); }
.bg-green { --icon-grad: linear-gradient(135deg, #10b981, #047857); }

.cnae-card:hover .cnae-icon-box,
.cnae-card:focus-visible .cnae-icon-box,
.cnae-card:active .cnae-icon-box {
  background: var(--icon-grad, linear-gradient(135deg, #94a3b8, #64748b)) !important;
  filter: none;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--card-accent) 28%, transparent);
}

.cnae-icon-box svg,
.cnae-icon-box i {
  display: inline-block !important;
  transform-origin: center center !important;
  width: 1.1rem;
  height: 1.1rem;
}

.cnae-card .cnae-icon-box svg,
.cnae-card .cnae-icon-box i,
.cnae-card .cnae-icon-box .w3pay-pos-icon {
  animation: none !important;
}
.cnae-card:hover .cnae-icon-box svg,
.cnae-card:hover .cnae-icon-box i,
.cnae-card:hover .cnae-icon-box .w3pay-pos-icon,
.cnae-card:focus-visible .cnae-icon-box svg,
.cnae-card:focus-visible .cnae-icon-box i {
  animation: cardIconNudge 1.8s infinite ease-in-out !important;
}
@keyframes cardIconNudge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.cnae-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.cnae-tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.cnae-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 8px;
  background: #f1f5f9 !important;
  color: #64748b !important;
  border: 1px solid #e2e8f0 !important;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.pill-w3pay { --pill-bg: rgba(0, 210, 133, 0.15); --pill-fg: #008f58; --pill-bd: rgba(0,210,133,0.3); }
.pill-purple { --pill-bg: rgba(139, 92, 246, 0.12); --pill-fg: #7c3aed; --pill-bd: rgba(139,92,246,0.28); }
.pill-blue { --pill-bg: rgba(59, 130, 246, 0.12); --pill-fg: #2563eb; --pill-bd: rgba(59,130,246,0.28); }
.pill-teal { --pill-bg: rgba(6, 182, 212, 0.12); --pill-fg: #0891b2; --pill-bd: rgba(6,182,212,0.28); }
.pill-indigo { --pill-bg: rgba(99, 102, 241, 0.12); --pill-fg: #4f46e5; --pill-bd: rgba(99,102,241,0.28); }
.pill-sky { --pill-bg: rgba(14, 165, 233, 0.12); --pill-fg: #0284c7; --pill-bd: rgba(14,165,233,0.28); }
.pill-amber { --pill-bg: rgba(245, 158, 11, 0.12); --pill-fg: #d97706; --pill-bd: rgba(245,158,11,0.28); }
.pill-emerald { --pill-bg: rgba(16, 185, 129, 0.12); --pill-fg: #059669; --pill-bd: rgba(16,185,129,0.28); }
.pill-rose { --pill-bg: rgba(244, 63, 94, 0.12); --pill-fg: #e11d48; --pill-bd: rgba(244,63,94,0.28); }
.pill-green { --pill-bg: rgba(16, 185, 129, 0.12); --pill-fg: #059669; --pill-bd: rgba(16,185,129,0.28); }

.cnae-card:hover .cnae-pill,
.cnae-card:focus-visible .cnae-pill,
.cnae-card:active .cnae-pill {
  background: var(--pill-bg, #f1f5f9) !important;
  color: var(--pill-fg, #64748b) !important;
  border-color: var(--pill-bd, #e2e8f0) !important;
}

.cnae-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.cnae-action-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  flex-shrink: 0;
}

.cnae-action-badge i {
  width: 14px;
  height: 14px;
  transition: inherit;
}

.cnae-card:hover .cnae-action-badge,
.cnae-card:focus-visible .cnae-action-badge,
.cnae-card:active .cnae-action-badge {
  color: #ffffff;
  background: var(--card-accent);
  border-color: var(--card-accent);
  transform: translateX(2px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--card-accent) 30%, transparent);
}

.cnae-arrow {
  color: #94a3b8;
  font-size: 1.1rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.cnae-card:hover .cnae-arrow {
  transform: translateX(3px);
  color: #0f172a;
}

@media (prefers-reduced-motion: reduce) {
  .cnae-card,
  .cnae-icon-box,
  .cnae-pill,
  .cnae-action-badge {
    transition: none !important;
  }
  .cnae-card:hover .cnae-icon-box svg,
  .cnae-card:hover .cnae-icon-box i {
    animation: none !important;
  }
}

/* ==========================================================================
   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: 1.05rem;
}

.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: 108px;
  height: auto;
  display: block;
  animation: w3LogoFloat 3.8s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(0, 240, 255, 0.28)) drop-shadow(0 2px 8px rgba(15, 23, 42, 0.18));
}

.w3-brand-wordmark {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.95rem;
  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 ===== */
.site-footer {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1200;
  width: auto;
  margin-top: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(248,250,252,0.97) 0%, #f1f5f9 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.05);
  color: #0f172a;
  overflow: hidden;
  max-height: none;
  transform: translateY(calc(100% + 28px));
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease, visibility 0.24s;
}

.site-footer.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.site-footer.is-hidden {
  display: block !important;
}

.site-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.7rem 1rem 0.55rem;
}

.site-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.site-footer-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.site-footer-wa-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #15803d !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  text-decoration: none !important;
  margin: 0 !important;
  min-height: 34px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.site-footer-wa-btn:hover {
  background: rgba(37, 211, 102, 0.18);
  border-color: rgba(37, 211, 102, 0.5);
  color: #166534 !important;
  transform: none !important;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 0.75rem 1.75rem;
  align-items: start;
  padding-bottom: 0.55rem;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.site-footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.site-footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.22rem;
}

.site-footer-nav--solutions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.1rem;
  row-gap: 0.22rem;
}

.site-footer-nav--contact {
  gap: 0.28rem;
}

.site-footer-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}

.site-footer-logo {
  width: 24px;
  height: auto;
  display: block;
}

.site-footer-wordmark {
  font-size: 0.95rem;
  color: inherit !important;
}

.site-footer-tagline {
  color: var(--silver-text-muted, #64748b);
  font-size: 0.72rem;
  line-height: 1.3;
  max-width: 280px;
  margin: 0 0 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.site-footer-trust span {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  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.14rem 0.42rem;
}

.site-footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0;
  padding-bottom: 0.15rem;
}

.site-footer-col a,
.site-footer-nav a {
  display: block;
  width: fit-content;
  max-width: 100%;
  color: #475569;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.1rem 0;
  line-height: 1.35;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.site-footer-col a:hover,
.site-footer-nav a:hover {
  color: #0f172a;
  transform: none;
}

.site-footer-muted {
  color: var(--silver-text-muted, #64748b);
  font-size: 0.7rem;
  line-height: 1.4;
  margin: 0;
  max-width: 22ch;
}

.site-footer-mail {
  display: block !important;
  color: #0284c7 !important;
  font-weight: 700 !important;
  font-size: 0.74rem !important;
  margin: 0 !important;
  padding: 0.05rem 0 !important;
  min-height: 0 !important;
  white-space: nowrap;
}

.site-footer-cta {
  margin-top: 0;
  width: auto;
  min-width: 0;
  min-height: 34px !important;
  padding: 0.4rem 0.8rem !important;
  font-size: 0.78rem !important;
  justify-content: center;
}

.site-footer-hours {
  margin: 0;
  font-size: 0.66rem;
  color: #94a3b8;
  line-height: 1.3;
  font-weight: 600;
}

.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.4rem;
  padding-bottom: 0;
  font-size: 0.66rem;
  color: #94a3b8;
  font-weight: 600;
}

.site-footer-bottom-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.65rem;
}

.site-footer-legal {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.site-footer-legal a {
  color: #64748b;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.66rem;
  min-height: 0;
}

.site-footer-legal a:hover {
  color: #0f172a;
}

/* sem reserva permanente: só quando visível */
body {
  padding-bottom: 0 !important;
}
body.footer-dock-open {
  padding-bottom: calc(var(--site-footer-space, 180px) + 20px) !important;
}

@media (max-width: 1024px) {
  .site-footer {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .site-footer-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 0.7rem 1.1rem;
  }

  .site-footer-contact {
    grid-column: 1 / -1;
  }

  .site-footer-nav--solutions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-footer {
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 14px;
  }

  .site-footer-inner {
    padding: 0.6rem 0.75rem 0.5rem;
  }

  .site-footer-top {
    gap: 0.45rem;
  }

  .site-footer-top-actions {
    width: 100%;
  }

  .site-footer-wa-btn,
  .site-footer-cta {
    flex: 1 1 auto;
    justify-content: center;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .site-footer-nav--solutions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer-contact {
    grid-column: auto;
  }

  .site-footer-muted {
    max-width: none;
  }

  .site-footer-bottom {
    gap: 0.35rem;
  }

  .site-footer-bottom-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer {
    transition: none;
  }
}


/* ==========================================================================
   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;
  }



  .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;
  }
}

/* Efeito de Destaque Dinâmico no logotipo W3 do Portal Principal */
.w3-brand-main-effect {
  background-image: linear-gradient(
    120deg, 
    #020617 20%, 
    #0b2f8a 38%, 
    #1d6fe8 45%, 
    #ffffff 50%, 
    #1d6fe8 55%, 
    #38bdf8 62%, 
    #020617 80%
  ) !important;
  background-size: 200% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: w3MetallicShine 6s ease-in-out infinite !important;
  display: inline-block !important;
}

@keyframes w3MetallicShine {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ===== HERO ALIGN: logo na linha do menu ===== */
.w3-header.w3-header--langs {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto 0.55rem;
  padding: 0.35rem 0 0;
}

.w3-grid.w3-grid--hero-align {
  align-items: stretch;
  gap: 3.25rem;
}

.w3-grid.w3-grid--hero-align .w3-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  height: 100%;
}

.w3-brand-group.w3-brand-hero {
  flex-shrink: 0;
  gap: 1.15rem;
  margin: 0;
  /* alinha visualmente com a altura do 1º card */
  min-height: 72px;
}

.w3-brand-group.w3-brand-hero .w3-logo-float {
  width: 168px;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
}

.w3-brand-group.w3-brand-hero .w3-brand-wordmark {
  font-size: 4.05rem;
}

.w3-left-copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  width: 100%;
  margin-top: 1.15rem;
  min-height: 0;
  padding-bottom: 0.15rem;
}

.w3-left-copy .w3-hero-pill {
  margin-bottom: 0;
  align-self: flex-start;
}

.w3-left-copy .w3-hero-headline {
  margin-bottom: 0;
  flex: 0 1 auto;
}

.w3-left-copy .w3-hero-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--silver-text-muted);
  margin-bottom: 0;
}

.w3-left-copy .w3-hero-description--last {
  margin-top: 0;
}

@media (min-width: 1025px) {
  /* Alinha o topo do 1º card (W3Pay) ao topo do wordmark W3
     (logo 164px e texto ~4.05rem, centralizados no brand) */
  .w3-grid.w3-grid--hero-align .w3-card-stack {
    height: 100%;
    padding-top: calc((164px - 4.05rem) / 2);
    box-sizing: border-box;
  }

  .w3-left-copy {
    /* distribui o bloco de texto até a base do stack de cards */
    justify-content: flex-start;
    gap: clamp(0.75rem, 1.6vh, 1.35rem);
  }

  .w3-left-copy .w3-hero-description--last {
    margin-top: auto;
  }
}

@media (max-width: 1024px) {
  .w3-header.w3-header--langs {
    margin-bottom: 0.85rem;
  }

  .w3-brand-group.w3-brand-hero .w3-logo-float {
    width: 120px;
  }

  .w3-brand-group.w3-brand-hero .w3-brand-wordmark {
    font-size: 3.15rem;
  }

  .w3-left-copy {
    justify-content: flex-start;
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  .w3-header.w3-header--langs {
    margin-bottom: 0.75rem;
  }

  .w3-grid.w3-grid--hero-align {
    gap: 1.5rem;
  }

  .w3-brand-group.w3-brand-hero {
    min-height: 0;
    gap: 0.7rem;
  }

  .w3-brand-group.w3-brand-hero .w3-logo-float,
  .w3-brand-group.w3-brand-hero img.w3-logo-float {
    width: 68px !important;
    height: auto !important;
    max-width: 68px;
  }

  .w3-brand-group.w3-brand-hero .w3-brand-wordmark {
    font-size: 2.1rem !important;
  }

  .w3-left-copy {
    margin-top: 0.85rem;
    gap: 0.75rem;
  }

  .w3-left-copy .w3-hero-description--last {
    margin-top: 0;
  }
}
/* ===== /HERO ALIGN ===== */

/* ===== HERO CENTER + COPY TRIM ===== */
.w3-grid.w3-grid--hero-align .w3-left {
  align-items: center;
  text-align: center;
  justify-content: center;
}

.w3-grid.w3-grid--hero-align .w3-brand-hero {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.w3-left-copy {
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.35rem;
}

.w3-left-copy .w3-hero-pill {
  align-self: center;
}

.w3-left-copy .w3-hero-headline {
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
}

.w3-left-copy .w3-hero-description {
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1025px) {
  .w3-grid.w3-grid--hero-align .w3-left {
    justify-content: center;
  }

  .w3-left-copy {
    flex: 0 1 auto;
    margin-top: 1.5rem;
  }

  .w3-left-copy .w3-hero-description--last {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .w3-left-copy .w3-hero-headline,
  .w3-left-copy .w3-hero-description {
    max-width: none;
  }
}

/* Hero headline subtle gradient (portal) */
.w3-left-copy .w3-hero-headline {
  background-image: 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;
}
/* ===== /HERO CENTER + COPY TRIM ===== */

/* ===== FOOTER WA ICON LINK ===== */
.site-footer-nav--contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.site-footer-wa-link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  width: auto;
  height: auto;
  min-height: 0;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: inherit !important;
  text-decoration: none !important;
  margin: 0 !important;
  padding: 0.1rem 0 !important;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-footer-wa-link:hover {
  background: transparent;
  border: none;
  transform: translateY(-1px);
  opacity: 0.92;
}

.site-footer-wa-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #25D366;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
}

.site-footer-wa-icon {
  width: 16px;
  height: 16px;
  display: block;
  color: #ffffff;
}

.site-footer-wa-name {
  font-family: Helvetica, Arial, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  background: linear-gradient(180deg, #25D366 0%, #128C7E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #25D366;
}

.site-footer-wa-link:hover .site-footer-wa-badge {
  background: #128C7E;
}

.site-footer-wa-link:hover .site-footer-wa-name {
  background: linear-gradient(180deg, #20bd5a 0%, #075E54 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
/* ===== /FOOTER WA ICON LINK ===== */

/* ===== FOOTER LINK HOVER COLORS ===== */
.site-footer-brand-home {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.site-footer-brand-home:hover .site-footer-wordmark {
  color: #0f172a !important;
}
.site-footer-nav--solutions a {
  white-space: normal;
}
.site-footer-nav a.footer-link-portals:hover { color: #8b5cf6 !important; }
.site-footer-nav a.footer-link-dev:hover { color: #3b82f6 !important; }
.site-footer-nav a.footer-link-uiux:hover { color: #06b6d4 !important; }
.site-footer-nav a.footer-link-saas:hover { color: #6366f1 !important; }
.site-footer-nav a.footer-link-ready:hover { color: #0ea5e9 !important; }
.site-footer-nav a.footer-link-consult:hover { color: #f59e0b !important; }
.site-footer-nav a.footer-link-support:hover { color: #10b981 !important; }
.site-footer-nav a.footer-link-intermed:hover { color: #f43f5e !important; }
.site-footer-nav a.footer-link-w3pay:hover { color: #00b370 !important; }
/* ===== /FOOTER LINK HOVER COLORS ===== */
