/* 
   ===============================================
   WHATSFLEX - NEO BRUTALISM/TECH CSS ARCHITECTURE
   ===============================================
   - Zero "Safe Layouts"
   - No Purple/Violet
   - Sharp Edges (0-2px)
   - High Contrast (Pitch Black vs Signal Orange/Acid Green)
*/

:root {
  /* Color System */
  --cf-bg: #050505; /* Charcoal Black / Pitch Base */
  --cf-surface: #121212; /* Surface Dark */
  --cf-surface-light: #1a1a1a;

  --cf-text-main: #ffffff;
  --cf-text-muted: #888888;

  /* The Disruptive Palette: Modern Luxury Gold */
  --cf-accent: #8c743e; /* Optimized Gold for Contrast */
  --cf-accent-hover: #a68b4d; /* Use original as hover */
  --cf-tech: #00ff66; /* Acid Green - Tech/System OK */
  --cf-border: #333333; /* Raw dark border */

  /* Animação de Revelação */
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out);
    will-change: transform, opacity;
  }
  .reveal.active {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Safe fallback for no-js or slow js */
  .no-js .reveal {
    opacity: 1;
    transform: none;
  }

  /* Luxury Gold Glow Effect */
  .gold-glow-hover {
    position: relative;
    overflow: hidden;
  }
  .gold-glow-hover::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
      circle,
      rgba(166, 139, 77, 0.15) 0%,
      transparent 70%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
  }
  .gold-glow-hover:hover::after {
    opacity: 1;
  }

  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Layout Constants */
  --radius-sharp: 0px; /* Brutalist strict */
  --radius-slight: 2px; /* Micro-rounding for inputs only */
  --container-max: 1280px;
  --container-pad: 2rem;

  /* Transitions */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Icon Draw Animation - Mathematical Perfect Trace Loop (Global Scope) */
.r-card .r-icon svg *,
.card-brutal .card-icon svg * {
  /* Exactly 150px safely covers any complex paths on 24x24 viewboxes */
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  transition: color 0.4s var(--ease-out);
  fill: none !important;
  stroke: currentColor;
  /* Ping-pong breathing trace */
  animation: drawIconTrace 4s ease-in-out infinite;
}

@keyframes drawIconTrace {
  0% {
    stroke-dashoffset: 150;
  }
  50% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 150;
  }
}

/* On hover, they turn gold. The loop keeps running naturally underneath. */
.r-card:hover .r-icon svg *,
.card-brutal:hover .card-icon svg * {
  color: var(--cf-accent);
}

/* ================== RESET & BASE ================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--cf-bg);
  overflow-x: hidden;
}

body.theme-dark {
  font-family: var(--font-body);
  color: var(--cf-text-main);
  background-color: var(--cf-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Grain Depth Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%; /* was 100vw – caused horizontal overflow when scrollbar present */
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.relative-z {
  position: relative;
  z-index: 10;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ================== TYPOGRAPHY ================== */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.mass-title {
  font-size: clamp(2.5rem, 8vw, 6.5rem);
  margin-bottom: 2rem;
  line-height: 0.9;
}

.text-hollow {
  color: transparent;
  -webkit-text-stroke: 1px var(--cf-text-main);
}

.massive-sub {
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--cf-text-main);
  margin-bottom: 1.5rem;
  line-height: 1.1; /* Added to lead titles without overlap */
}

.text-accent {
  color: var(--cf-accent);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--cf-text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
  font-weight: 400;
}

/* ================== BUTTONS & CTAS ================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s var(--ease-out);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-sharp {
  border-radius: var(--radius-sharp);
}

.btn-primary {
  background-color: var(--cf-accent);
  color: #000;
  font-weight: 700;
  border: 1px solid var(--cf-accent);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--cf-accent);
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0 var(--cf-accent);
}

.btn-ghost {
  background: transparent;
  color: var(--cf-text-main);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  border-color: var(--cf-border);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-massive {
  padding: 1.5rem 4rem;
  font-size: 1.5rem;
  width: 100%;
}

/* ================== NAVIGATION ================== */
.navbar {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--cf-border);
  background-color: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand .logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cf-text-main);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(1);
  transition: filter 0.3s var(--ease-out);
}

.logo-img:hover {
  filter: brightness(1.2);
}

/* Trust Bar below Hero CTA */
.trust-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--cf-text-muted);
}

.trust-item strong {
  color: var(--cf-accent);
}

.trust-item .dot {
  width: 4px;
  height: 4px;
  background: var(--cf-accent);
  border-radius: 50%;
}

.footer-logo {
  height: 60px;
  margin-bottom: 0; /* Reset for side-by-side layout */
}

/* WhatsApp Official Trust Badge */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 255, 102, 0.03);
  border: 1px solid var(--cf-tech);
  padding: 8px 16px;
  margin-top: 1rem;
  border-radius: var(--radius-sharp);
  transition: all 0.3s var(--ease-out);
}

.trust-badge:hover {
  background: rgba(0, 255, 102, 0.08);
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.2);
  transform: translateY(-2px);
}

.trust-badge img {
  height: 28px; /* Slightly smaller for Meta logo proportions */
  width: auto;
  object-fit: contain;
  filter: none; /* Remove Green glow for Meta logo */
}

.footer-trust-logo {
  max-width: 100px;
  height: auto !important;
}

.trust-badge span {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cf-tech);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer .trust-badge {
  margin-top: 2rem;
  background: transparent;
  border-color: var(--cf-border);
  opacity: 0.7;
}

.footer .trust-badge:hover {
  opacity: 1;
  border-color: var(--cf-tech);
}

.footer .trust-badge span {
  color: var(--cf-text-muted);
}

.footer .trust-badge:hover span {
  color: var(--cf-tech);
}

.neon-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--cf-tech);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cf-tech);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--cf-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--cf-text-main);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* ================== HERO (ASYMMETRIC) ================== */
.hero-section {
  padding: 12rem 0 6rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Geometric background interference */
.hero-bg-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 40vw;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--cf-surface));
  border-left: 1px dashed var(--cf-border);
  z-index: 1;
}

.content-block-90-10 {
  position: relative;
  z-index: 10;
  max-width: 900px;
}

.badge-brutal {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--cf-tech);
  color: var(--cf-tech);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--cf-text-muted);
}

.avatars {
  display: flex;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--cf-surface-light);
  border: 1px solid var(--cf-bg);
  margin-left: -10px;
}
.avatar:first-child {
  margin-left: 0;
  background-color: #333;
}
.avatar:nth-child(2) {
  background-color: #444;
}
.avatar:nth-child(3) {
  background-color: #555;
}

/* Parallax UI elements (breaking the grid) */
.parallax-ui {
  position: absolute;
  left: 100%;
  right: auto;
  bottom: 12%;
  width: min(250px, 22vw);
  z-index: 5;
  background: var(--cf-surface);
  border: 1px solid var(--cf-border);
  padding: 1.25rem;
  box-shadow: -6px 8px 0 rgba(0, 0, 0, 0.5);
  animation: floatCard 6s ease-in-out infinite alternate;
}

/* Mobile App Screenshot - Desktop Only */
.hero-mobile-preview {
  position: absolute;
  right: -12%;
  bottom: 45%;
  width: min(220px, 20vw);
  z-index: 4;
  animation: floatCard 7s ease-in-out 1s infinite alternate;
  filter: drop-shadow(-8px 16px 24px rgba(0, 0, 0, 0.7));
}

.hero-mobile-img {
  width: 100%;
  height: auto;
  display: block;
}

.desktop-only {
  display: block;
}

@media (max-width: 1200px) {
  .parallax-ui {
    left: 55%;
    width: 280px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 10rem;
    min-height: auto;
  }

  .parallax-ui {
    position: relative;
    left: 0 !important;
    top: 0;
    margin: 2rem 0;
    width: 100%;
    max-width: 320px;
    animation: floatCardMobile 6s ease-in-out infinite alternate;
  }

  .desktop-only {
    display: none;
  }

  @keyframes floatCardMobile {
    0% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(-10px);
    }
  }
}

@keyframes floatCard {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-20px);
  }
}

.chat-mockup {
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  position: relative;
}

.chat-mockup.user {
  background: var(--cf-surface-light);
  border-left: 2px solid var(--cf-border);
}

.chat-mockup.ai {
  background: rgba(0, 255, 102, 0.05); /* Tech green tint */
  border-left: 2px solid var(--cf-tech);
  border-bottom: 1px solid var(--cf-tech);
  border-right: 1px solid var(--cf-tech);
}

.dynamic-city {
  transition: opacity 0.6s ease-in-out;
  display: inline-block;
}

.dynamic-city.city-fade {
  opacity: 0;
}

.ai-badge {
  position: absolute;
  top: -10px;
  left: -1px;
  background: var(--cf-tech);
  color: var(--cf-bg);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  text-transform: uppercase;
}

@media (max-width: 992px) {
  .hero-bg-accent {
    display: none;
  }
}

/* ================== FEATURES / FRAGMENT GRID ================== */
.tech-specs-section {
  padding: 8rem 0;
  border-top: 1px solid var(--cf-border);
  border-bottom: 1px solid var(--cf-border); /* Visible section divider */
  background-color: #050505;
  background-image:
    linear-gradient(var(--cf-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--cf-border) 1px, transparent 1px);
  background-size: 100px 100px; 
  background-position: center center;
}

.section-header {
  margin-bottom: 4rem;
}

.section-header.asymmetric-right {
  text-align: right;
  margin-bottom: 6rem;
}

.section-header.text-center {
  margin-bottom: 6rem;
}

.fragment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.card-brutal {
  background: var(--cf-bg);
  border: 1px solid var(--cf-border);
  padding: 3rem 2rem;
  transition: all 0.3s var(--ease-out);
  position: relative;
}

.card-brutal.span-2 {
  grid-column: span 2;
}

.bg-darker {
  background-color: #050505;
}

.border-accent {
  border-top: 4px solid var(--cf-accent);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--cf-text-muted);
  transition: color 0.4s var(--ease-out);
}

.card-icon svg {
  width: 48px;
  height: 48px;
}

.card-brutal:hover .card-icon {
  color: var(--cf-accent);
}

.card-brutal h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-brutal p {
  color: var(--cf-text-muted);
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 10px 10px 0 var(--cf-border);
}

.visual-mockup {
  margin-top: 2rem;
  border-top: 1px dashed var(--cf-border);
  padding-top: 2rem;
  display: flex;
  gap: 1rem;
}

.k-column {
  flex: 1;
  padding: 1rem;
  font-size: 0.8rem;
  text-align: center;
  text-transform: uppercase;
  font-weight: 600;
}

.k-column.outline-only {
  border: 1px solid var(--cf-border);
  color: var(--cf-border);
}
.k-column.solid-accent {
  background: var(--cf-surface-light);
  border: 1px solid var(--cf-accent);
  color: var(--cf-accent);
}

.card-brutal.span-3 {
  grid-column: span 3;
}

/* Filas Mockup */
.queues-mock {
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0 0 0;
  border-top: none;
}
.q-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  background: var(--cf-bg);
  border: 1px solid var(--cf-border);
  border-radius: var(--radius-slight);
}
.q-color {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

/* Dashboard Mockup */
/* Premium Highlight for WhatsFlex AI Card */
.premium-highlight {
  border: 1px solid var(--cf-accent) !important;
  background: linear-gradient(135deg, #0a0a0a 0%, #151515 100%) !important;
  box-shadow: 0 20px 40px rgba(166, 139, 77, 0.08);
}

.badge-exclusive {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--cf-accent);
  border: 1px solid var(--cf-accent);
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Kanban Mock New */
.kanban-mock-new {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  border-top: 1px dashed var(--cf-border);
  padding-top: 1.5rem;
}
.k-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.k-title {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--cf-text-muted);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.k-item-ghost {
  height: 30px;
  background: var(--cf-surface-light);
  border: 1px solid var(--cf-border);
  position: relative;
}
.active-drag {
  border-color: var(--cf-accent);
  transform: rotate(2deg) translateY(-2px);
  box-shadow: 4px 4px 0 rgba(166, 139, 77, 0.2);
}
.active-drag::after {
  content: "👆";
  position: absolute;
  bottom: -15px;
  right: -10px;
  font-size: 1rem;
}

/* Omni Mini Mock */
.omni-mini-mock {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  border-top: 1px dashed var(--cf-border);
  padding-top: 1.5rem;
}
.o-badge {
  padding: 6px 12px;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 4px;
}
.o-badge.wp {
  background: #25d366;
  color: #fff;
}
.o-badge.ig {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  color: #fff;
}
.o-badge.fb {
  background: #1877f2;
  color: #fff;
}
.o-badge.ml {
  background: #FFE600;
  color: #2D3277;
}
.o-badge.sh {
  background: #EE4D2D;
  color: #fff;
}
.o-badge.tg {
  background: #0088cc;
  color: #fff;
}

/* ================== PRICING SECTION ================== */
.pricing-section {
  padding: 10rem 0;
  background: #000; /* Contrast with testimonials */
  border-bottom: 1px solid var(--cf-border);
  position: relative;
}

.pricing-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* Toggle Switch */
.pricing-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.toggle-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cf-text-muted);
  transition: color 0.3s ease;
}

.toggle-label.active {
  color: var(--cf-accent);
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--cf-surface);
  border: 2px solid var(--cf-border);
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: var(--cf-accent);
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--cf-surface-light);
  border-color: var(--cf-accent);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.price-card {
  background: var(--cf-surface);
  border: 1px solid var(--cf-border);
  padding: 3rem 2rem;
  position: relative;
  transition: all 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
}

.price-card:hover {
  transform: translateY(-10px);
  border-color: var(--cf-accent);
  box-shadow: 10px 10px 0 rgba(166, 139, 77, 0.2);
}

.price-card.featured {
  border: 2px solid var(--cf-accent);
  box-shadow: 10px 10px 0 var(--cf-accent);
}

.plan-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.plan-price {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 2rem;
  font-family: var(--font-heading);
}

.plan-price span {
  font-size: 1rem;
  color: var(--cf-text-muted);
  font-weight: 400;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem 0;
  flex: 1;
}

.plan-features li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--cf-text-muted);
}

.plan-features li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--cf-accent);
}

.plan-features b {
  color: var(--cf-text-main);
}

.price-card .btn {
  width: 100%;
}

.plan-tokens {
  display: none;
  font-weight: 800;
  color: var(--cf-accent);
  margin-top: 0.5rem;
}

.pricing-section.ai-view .plan-tokens {
  display: block;
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-mock {
  background: var(--cf-surface);
  border: 1px solid var(--cf-border);
  padding: 2rem;
  border-radius: 8px; /* Slightly softer for dashboard */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
  border-top: none;
}
.d-metric {
  display: flex;
  flex-direction: column;
}
.d-val {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}
.d-label {
  font-size: 0.85rem;
  color: var(--cf-text-muted);
  text-transform: uppercase;
  margin-top: 0.5rem;
}
.d-pie-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}
.d-chart.donut {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: conic-gradient(
    var(--cf-tech) 0% 22%,
    #333 22% 23%,
    var(--cf-accent) 23% 100%
  );
  position: relative;
}
.d-chart.donut::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: var(--cf-surface);
  border-radius: 50%;
}
.d-legend {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--cf-text-muted);
}
.d-legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
}
.dot.gpt {
  background: var(--cf-accent);
}
.dot.gemini {
  background: var(--cf-tech);
}

@media (max-width: 768px) {
  .dashboard-mock {
    gap: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .d-pie-container {
    margin-left: 0;
  }
}

/* Campaign Mockup */
.campaign-mock {
  flex-direction: column;
  background: var(--cf-bg);
  border: 1px solid var(--cf-border);
  padding: 0;
  border-top: none;
  margin-top: 1.5rem;
}
.c-header {
  padding: 0.75rem 1rem;
  background: var(--cf-surface-light);
  border-bottom: 1px solid var(--cf-border);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cf-text-main);
}
.c-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.c-field {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  border-bottom: 1px dashed var(--cf-border);
  padding-bottom: 0.25rem;
}
.c-label {
  color: var(--cf-text-muted);
}
.c-value {
  color: var(--cf-text-main);
  font-weight: 500;
}
.c-tabs {
  display: flex;
  gap: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cf-text-muted);
  border-bottom: 1px solid var(--cf-border);
  padding-bottom: 0.5rem;
}
.c-tabs .active {
  color: var(--cf-accent);
  border-bottom: 2px solid var(--cf-accent);
  padding-bottom: 0.5rem;
  margin-bottom: -0.6rem;
}
.c-input {
  background: var(--cf-surface);
  border: 1px solid var(--cf-border);
  padding: 0.75rem;
  font-size: 0.75rem;
  color: #aaa;
  min-height: 60px;
}
.c-btn {
  background: var(--cf-accent);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.8rem;
  cursor: pointer;
}

/* FlowBuilder Mockup */
.flow-mock {
  position: relative;
  height: 120px;
  background: var(--cf-bg);
  border-top: 1px dashed var(--cf-border);
  margin-top: 1.5rem;
  overflow: hidden;
  /* subtle grid pattern for canvas */
  background-image: radial-gradient(var(--cf-border) 1px, transparent 1px);
  background-size: 15px 15px;
}
.f-path {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.f-node {
  position: absolute;
  background: #ffffff;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  font-family: var(--font-body);
  z-index: 2;
  transition: transform 0.3s var(--ease-out);
}
.card-brutal:hover .visual-mockup.flow-mock .f-node {
  transform: translateY(-2px);
}
.f-node.f-active {
  border: 2px solid #0055ff;
}
.f-node .f-icon {
  font-size: 1rem;
}
.f-node .f-text {
  font-size: 0.7rem;
  color: #111;
  line-height: 1.2;
  font-weight: 600;
}
.f-port {
  width: 12px;
  height: 12px;
  background: #0055ff;
  border: 2px solid #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.f-port.right {
  right: -6px;
}
.f-port.left {
  left: -6px;
}

@media (max-width: 900px) {
  .fragment-grid {
    grid-template-columns: 1fr;
  }
  .card-brutal.span-2,
  .card-brutal.span-3 {
    grid-column: span 1;
  }
}

/* ================== RECURSOS GRID (Adaptação Brutalista) ================== */
.recursos-section {
  padding: 10rem 0;
  background: #050505; /* Very dark grey */
  border-bottom: 1px solid var(--cf-border);
  position: relative;
}

.recursos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 4rem;
  border: 1px solid var(--cf-border); /* Outer border */
}

.r-card {
  background: transparent;
  border: 1px solid var(--cf-border); /* Inner borders */
  margin: -1px; /* Shared borders effect */
  padding: 3rem 1.5rem;
  text-align: center;
  transition: all 0.4s var(--ease-out);
  cursor: default;
  position: relative;
  z-index: 1;
}

.r-card:hover {
  background: rgba(166, 139, 77, 0.05);
  border-color: var(--cf-accent);
  z-index: 2;
  box-shadow: inset 0 0 30px rgba(166, 139, 77, 0.05);
}

.r-icon {
  margin-bottom: 1.5rem;
  color: var(--cf-text-muted);
  transition: color 0.3s ease;
  display: flex;
  justify-content: center;
}

.r-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
}

.r-card:hover .r-icon {
  color: var(--cf-accent);
}

.r-card:hover {
  border-color: var(--cf-accent);
  background: var(--cf-surface-light);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(166, 139, 77, 0.1);
}

.r-card.focus-card {
  border-color: var(--cf-accent);
  background: var(--cf-surface-light);
}

.r-card.hover-lift-subtle:hover {
  transform: translateY(-8px);
  border-color: var(--cf-accent);
  box-shadow: 6px 6px 0 var(--cf-accent);
}

.r-card .r-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.5rem auto;
  color: var(--cf-text-muted);
  transition: color 0.4s var(--ease-out);
}

.r-card:hover .r-icon {
  color: var(--cf-accent);
}

.r-card .r-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 2.5;
  display: block; /* Ensure SVG is visible */
}

.r-card p {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cf-text-main);
  line-height: 1.3;
}

/* ================== APP CARDS (Gestão) ================== */
.mobile-section {
  padding: 8rem 0;
  border-top: 1px solid var(--cf-border);
  background-color: var(--cf-surface);
}

.app-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.app-card {
  background: var(--cf-bg);
  border: 1px solid var(--cf-border);
  display: flex;
  flex-direction: column;
}

.ac-header {
  padding: 2rem 1.5rem 0 1.5rem;
}

.ac-header h4 {
  font-size: 1.2rem;
  color: var(--cf-accent);
  margin-bottom: 0.5rem;
}

.ac-header p {
  font-size: 0.9rem;
  color: var(--cf-text-muted);
  line-height: 1.4;
}

.ac-body {
  padding: 2rem 1.5rem;
  flex-grow: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.wire-phone {
  width: 100%;
  max-width: 200px;
  height: 280px;
  border: 2px solid var(--cf-border);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  padding: 1rem;
  position: relative;
  background: var(--cf-surface-light);
  overflow: hidden;
}

.wire-phone::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: var(--cf-border);
  border-radius: 4px;
}

.wire-item {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
  opacity: 0.5;
}
.wire-item.active {
  opacity: 1;
}
.w-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cf-border);
}
.wire-item.active .w-avatar {
  background: var(--cf-accent);
}
.w-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}
.w-l {
  height: 4px;
  background: var(--cf-border);
  border-radius: 2px;
  width: 100%;
}
.w-l.short {
  width: 60%;
}

.wire-phone.forms .w-input {
  height: 24px;
  border: 1px solid var(--cf-border);
  margin-top: 1.5rem;
}
.wire-phone.forms .w-btn {
  height: 32px;
  background: var(--cf-accent);
  margin-top: auto;
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  text-align: center;
  color: #000;
  font-size: 0.6rem;
  line-height: 32px;
  font-family: var(--font-heading);
  font-weight: 700;
}

.wire-phone.chat .msg {
  width: 80%;
  height: 24px;
  border-radius: 4px;
  margin-top: 1rem;
}
.wire-phone.chat .msg.ai {
  background: var(--cf-border);
}
.wire-phone.chat .msg.user {
  background: var(--cf-accent);
  margin-left: auto;
}
.wire-phone.chat .msg.note {
  background: #333;
  width: 100%;
  height: 40px;
}
.w-keyboard {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  border-top: 1px solid var(--cf-border);
  background: var(--cf-bg);
}

/* ================== HOW IT WORKS (Grade Style) ================== */
.how-it-works-section {
  padding: 8rem 0;
  background: #000; /* Darker alternate background */
  position: relative;
  border-bottom: 1px solid var(--cf-border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 5rem;
  border: 1px solid var(--cf-border); /* Outer border */
}

.step-card {
  padding: 4rem 2.5rem;
  background: transparent;
  border: 1px solid var(--cf-border); /* Inner borders */
  margin: -1px; /* Shared borders effect */
  position: relative;
  transition: all 0.4s var(--ease-out);
  z-index: 1;
}

.step-card:hover {
  background: rgba(166, 139, 77, 0.05);
  border-color: var(--cf-accent);
  z-index: 2;
  box-shadow: inset 0 0 30px rgba(166, 139, 77, 0.05);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: var(--cf-accent);
  line-height: 1;
  margin-bottom: 2rem;
  display: block;
}

.step-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.05em;
}

.step-card p {
  color: var(--cf-text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .step-card {
    border-bottom: 1px solid var(--cf-border);
  }
}

/* ================== TESTIMONIALS ================== */
.testimonials-section {
  padding: 10rem 0;
  background: #050505; /* Alternate color */
  border-bottom: 1px solid var(--cf-border);
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 5rem;
}

.testimonial-card {
  padding: 3rem;
  background: var(--cf-bg);
  border: 1px solid var(--cf-border);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimonial-quote {
  font-size: 1.1rem;
  line-height: 1.6;
  font-style: italic;
  color: #eee;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: var(--cf-accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-heading);
}

.author-info h4 {
  font-size: 1rem;
  color: #fff;
}

.author-info span {
  font-size: 0.8rem;
  color: var(--cf-text-muted);
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .app-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .app-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ================== MOBILE OPTIMIZATION & PREMIUM UX ================== */

/* Scroll Progress Bar */
#scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(0,0,0,0.2);
  z-index: 10002; /* Higher than navbar */
}

#scroll-progress-bar {
  height: 100%;
  background: var(--cf-tech); /* High contrast green */
  width: 0%;
  box-shadow: 0 0 15px var(--cf-tech);
  transition: width 0.1s ease-out;
}

/* Staggered Reveal Utility */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease-out);
}

.stagger-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Snap Scroll Grid Adjustment */
@media (max-width: 768px) {
  .recursos-grid, 
  .pricing-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 2rem 5%;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    margin: 0 -5%;
  }

  .recursos-grid::-webkit-scrollbar, 
  .pricing-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
  }

  .r-card, 
  .price-card {
    flex: 0 0 80%;
    scroll-snap-align: center;
  }

  .nav-blur {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(10, 10, 10, 0.85);
    border-bottom: 2px solid var(--cf-border);
  }

  .nav-actions .btn-primary {
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .menu-toggle {
    display: flex !important;
    width: 44px;
    height: 44px;
    margin-left: 1rem;
  }

  .massive-sub {
    font-size: 2.2rem;
  }

  .noise-overlay {
    display: none !important;
  }
}

/* ================== MOBILE MENU OVERLAY ================== */
.menu-toggle {
  display: none; /* Hidden on desktop */
  background: transparent;
  border: none;
  color: var(--cf-text-main);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  z-index: 10001; /* Above navbar and other overlays */
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.is-active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-content {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.is-active .mobile-menu-content {
  transform: translateY(0);
}

.menu-close {
  position: absolute;
  top: -4rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--cf-text-muted);
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

.menu-close:hover {
  color: var(--cf-text-main);
  transform: rotate(90deg);
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
  margin-bottom: 4rem;
  width: 100%;
}

.mobile-links a {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cf-text-muted);
  transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-links a:hover,
.mobile-links a:active {
  color: var(--cf-accent);
  transform: translateX(10px);
}

.mobile-menu-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ================== OMNICHANNEL REVAMP ================== */
.omnichannel-section {
  padding: 10rem 0;
  position: relative;
  background-color: #0c0c0c; /* Lighter grey for contrast */
  border-bottom: 1px solid var(--cf-border);
}

.scrolling-text-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
  border-bottom: 2px solid var(--cf-border);
  background: var(--cf-surface-light);
}

.scroll-track {
  display: flex;
  white-space: nowrap;
  animation: scrollBanner 20s linear infinite;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cf-accent);
}

.scroll-track span {
  padding: 0 2rem;
}

@keyframes scrollBanner {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.omni-visual-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  margin-top: 6rem;
  margin-bottom: 8rem; /* Added margin to prevent collision with next section */
}

.omni-nodes {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.o-node {
  width: 80px;
  height: 80px;
  background: var(--cf-surface);
  border: 1px solid var(--cf-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cf-text-main);
  position: relative;
  transition: all 0.3s var(--ease-out);
}
.o-node:hover {
  border-color: var(--cf-accent);
  color: var(--cf-accent);
  transform: scale(1.1);
}
.o-node svg {
  width: 32px;
  height: 32px;
}

.connector-lines {
  flex-grow: 1;
  height: 600px;
  position: relative;
  max-width: 250px;
}
.connector-lines path {
  stroke: var(--cf-border);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 6;
  animation: dash 20s linear infinite;
}
@keyframes dash {
  to {
    stroke-dashoffset: -1000;
  }
}

.omni-central-phone {
  width: 260px;
  height: 500px;
  border: 2px solid var(--cf-accent);
  background: var(--cf-bg);
  border-radius: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  box-shadow: 0 0 40px rgba(166, 139, 77, 0.1);
}
.omni-central-phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  border-radius: 3px;
  background: var(--cf-text-muted);
}

.omni-interface {
  margin-top: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.o-msg {
  background: var(--cf-surface-light);
  padding: 1rem;
  border: 1px solid var(--cf-border);
  font-size: 0.8rem;
}
.o-msg.highlight {
  border-color: var(--cf-accent);
  border-left: 4px solid var(--cf-accent);
}
.o-msg .tag {
  display: inline-block;
  padding: 2px 6px;
  background: var(--cf-accent);
  color: #000;
  font-size: 0.6rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.omni-text-content {
  max-width: 400px;
}
.omni-text-content h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.omni-text-content p {
  font-size: 1.1rem;
  color: var(--cf-text-muted);
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .omni-visual-block {
    flex-direction: column;
  }
  .connector-lines {
    display: none;
  }
  .omni-nodes {
    flex-direction: row;
  }
}

/* ================== FREE TRIAL CTA BIG ================== */
.trial-cta-section {
  padding: 6rem 0;
  background: var(--cf-accent);
  color: #050505; /* Charcoal */
}
.trial-cta-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}
.trial-text {
  max-width: 600px;
}
.trial-text h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 2rem;
  color: #000;
}
.btn-black {
  background: #000;
  color: var(--cf-accent);
  border: 2px solid #000;
}
.btn-black:hover {
  background: #ffffff;
  color: #000;
  border: 2px solid #000;
  transform: translate(-3px, -3px);
  box-shadow: 3px 3px 0 #000;
}
.trial-devices {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.tela-whatsflex-img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(166, 139, 77, 0.25));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.td-laptop {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 400px;
  height: 260px;
  background: var(--cf-surface-light);
  border: 4px solid #000;
  border-radius: 10px 10px 0 0;
}
.td-phone {
  position: absolute;
  left: 0;
  bottom: -20px;
  width: 120px;
  height: 240px;
  background: var(--cf-bg);
  border: 4px solid #000;
  border-radius: 16px;
  z-index: 2;
  overflow: hidden;
}

/* ───── App UI Desktop ───── */
.app-ui-desktop {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #0d0d0d;
  font-family: var(--font-body);
  overflow: hidden;
}
.aui-topbar {
  background: #111;
  border-bottom: 1px solid #333;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.55rem;
  color: #aaa;
}
.aui-brand {
  font-weight: 800;
  color: var(--cf-accent);
  font-size: 0.65rem;
  font-family: var(--font-heading);
}
.aui-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}
.aui-icons {
  width: 30px;
  background: #080808;
  border-right: 1px solid #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: 8px;
}
.aui-icon {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #333;
}
.aui-icon.active {
  background: var(--cf-accent);
}

.aui-menu {
  width: 80px;
  background: #0f0f0f;
  border-right: 1px solid #222;
  padding: 8px 0;
  overflow: hidden;
}
.aui-menu-item {
  padding: 4px 8px;
  font-size: 0.45rem;
  color: #888;
  cursor: default;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aui-menu-item.active {
  color: #fff;
  background: #1a1a1a;
}
.aui-menu-item.accent {
  color: var(--cf-accent);
}
.aui-version {
  margin-top: 8px;
  padding: 4px 8px;
  font-size: 0.4rem;
  color: var(--cf-accent);
  border: 1px solid var(--cf-accent);
  margin-left: 8px;
  display: inline-block;
}
.aui-tickets {
  width: 100px;
  border-right: 1px solid #222;
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
  overflow: hidden;
}
.aui-search {
  height: 18px;
  background: #1a1a1a;
  border-bottom: 1px solid #222;
  border-radius: 2px;
  margin: 6px;
}
.aui-tabs {
  display: flex;
  gap: 4px;
  padding: 4px 6px;
  font-size: 0.38rem;
  color: #555;
  border-bottom: 1px solid #222;
}
.t-active {
  color: var(--cf-accent);
  border-bottom: 1px solid var(--cf-accent);
  padding-bottom: 2px;
}
.aui-ticket-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px;
  background: #111;
  border-bottom: 1px solid #222;
}
.aui-t-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #333;
  flex-shrink: 0;
}
.aui-t-name {
  font-size: 0.45rem;
  color: #ddd;
  font-weight: 600;
}
.aui-t-preview {
  width: 50px;
  height: 4px;
  background: #333;
  margin-top: 3px;
  border-radius: 2px;
}
.aui-t-badge {
  background: var(--cf-accent);
  color: #000;
  font-size: 0.4rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.aui-chat {
  flex: 1;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aui-chat-empty {
  text-align: center;
  color: #444;
}
.aui-eagle {
  font-size: 2rem;
  margin-bottom: 8px;
}
.aui-empty-text {
  font-size: 0.45rem;
  color: #555;
  max-width: 80px;
}

/* ───── App UI Phone ───── */
.app-ui-phone {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0d0d0d;
  font-family: var(--font-body);
  font-size: 0.5rem;
  overflow: hidden;
}
.ph-top {
  background: #111;
  border-bottom: 1px solid #222;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ph-logo {
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--cf-accent);
  font-family: var(--font-heading);
}
.ph-greeting {
  padding: 5px 8px;
  color: #aaa;
  font-size: 0.45rem;
}
.ph-tabs {
  display: flex;
  gap: 6px;
  padding: 4px 8px;
  border-bottom: 1px solid #222;
}
.ph-t-active {
  color: var(--cf-accent);
  border-bottom: 1px solid var(--cf-accent);
  padding-bottom: 2px;
}
.ph-t-waiting {
  color: #555;
}
.ph-chat-list {
  padding: 5px;
}
.ph-item {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #111;
  padding: 5px;
  border-radius: 3px;
}
.ph-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #333;
  flex-shrink: 0;
}
.ph-name {
  font-weight: 700;
  color: #ddd;
}
.ph-msg {
  width: 30px;
  height: 3px;
  background: #333;
  margin-top: 3px;
  border-radius: 2px;
}
.ph-badge {
  background: var(--cf-accent);
  color: #000;
  font-size: 0.4rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 8px;
  margin-left: auto;
}
.ph-eagle-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #333;
  text-align: center;
  padding: 0 8px;
}
.ph-eagle {
  font-size: 1.8rem;
}
.ph-label {
  font-size: 0.4rem;
  color: #444;
  margin-top: 6px;
}
.ph-nav {
  display: flex;
  justify-content: space-around;
  padding: 5px 0;
  border-top: 1px solid #222;
  color: #555;
  font-size: 0.42rem;
}

@media (max-width: 900px) {
  .trial-cta-container {
    flex-direction: column;
    text-align: center;
  }
  .trial-devices {
    display: none;
  }
}

/* ================== TERMINAL CTA ================== */
.cta-terminal {
  padding: 8rem 0;
  background-color: #000;
}

.terminal-box {
  background: var(--cf-surface);
  border: 1px solid var(--cf-border);
  max-width: 700px;
  margin: 0 auto 6rem auto;
  font-family: monospace;
}

.t-header {
  border-bottom: 1px solid var(--cf-border);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.d-red {
  background: #555555;
}
.d-yellow {
  background: #888888;
}
.d-green {
  background: var(--cf-accent);
}
.t-title {
  margin-left: auto;
  color: var(--cf-text-muted);
  font-size: 0.8rem;
}

.t-body {
  padding: 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
  min-height: 260px;
  overflow: hidden;
}

.prompt {
  color: var(--cf-text-muted);
  margin-right: 0.5rem;
}
.response.success {
  color: var(--cf-tech);
}
.response.warning {
  color: #d4bc82; /* Lighter gold for terminal contrast */
}
.blink {
  animation: blinker 1s linear infinite;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

.final-cta {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.final-cta h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 2rem;
}

.micro-text {
  margin-top: 1.5rem;
  color: var(--cf-text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ================== FOOTER ================== */
.footer {
  border-top: 1px solid var(--cf-border);
  padding: 4rem 0 2rem 0;
  background: var(--cf-surface-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.f-brand p {
  margin-top: 1rem;
  color: var(--cf-text-muted);
  max-width: 300px;
}

.f-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.f-links h4 {
  font-size: 0.9rem;
  color: var(--cf-text-muted);
  margin-bottom: 1rem;
}

.f-links a {
  color: var(--cf-text-main);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.f-links a:hover {
  color: var(--cf-accent);
}

.f-links a, .contact-link {
  color: var(--cf-text-muted);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.f-links a:hover, .contact-link:hover {
  color: var(--cf-accent);
}

.contact-info {
  color: var(--cf-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.contact-link {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icons a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cf-border);
  color: var(--cf-text-muted);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  border-color: var(--cf-accent);
  color: var(--cf-accent);
  background: rgba(201, 168, 76, 0.05);
}

.social-icons svg {
  width: 18px;
  height: 18px;
}

/* SUBFOOTER */
.subfooter {
  padding-top: 3rem;
  border-top: 1px solid var(--cf-border);
  text-align: center;
}

.subfooter p {
  color: var(--cf-text-muted);
  font-size: 0.85rem;
  opacity: 0.8;
}

/* RESPONSIVE FOOTER */
@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .footer-cta {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 580px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .copyright {
    margin-bottom: 2rem;
  }
}

/* ================== GLOBAL MOBILE FIXES ================== */
@media (max-width: 600px) {
  .nav-actions .btn-ghost {
    display: none; /* Hide 'Painel' button to save space on very small screens */
  }
  .nav-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  .brand .logo-text {
    font-size: 1.2rem;
  }
  .mass-title {
    font-size: clamp(3rem, 15vw, 3.2rem);
  }
  .massive-sub {
    font-size: clamp(2.6rem, 13vw, 3.4rem); /* Slightly larger for impact */
    line-height: 1.05;
    letter-spacing: -0.03em; /* Tighter for premium feel */
    width: 100%;
  }
  .trial-text h2 {
    font-size: clamp(2rem, 10vw, 2.5rem);
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: flex-start;
  }
  .omni-visual-block {
    margin-top: 3rem;
  }
  .omni-central-phone {
    width: 100%;
    max-width: 320px;
  }
}

/* ===================================================================
   WHATSFLEX — ULTRA-MODERN ANIMATION LAYER v3
   Class-based: no inline opacity:0 blowups. GPU-accelerated.
   =================================================================== */

/* ── NAVBAR SCROLL STATE ──────────────────────────────────────────── */
.navbar--scrolled {
  background-color: rgba(5, 5, 5, 0.98) !important;
  box-shadow: 0 1px 0 var(--cf-border);
}

/* ── HERO WORD SPLIT (.hw) ────────────────────────────────────────── */
/* Default state: words are visible. JS adds hw--play to trigger animation */
.hw {
  display: inline-block;
}

/* Before play: words are invisible off-screen via the animation fill */
.hw--play {
  animation: hwIn 1.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  /* --wi set inline: delay = index * 0.18s (Slower, cinematic) */
  animation-delay: calc(var(--wi, 0) * 0.18s);
  will-change: transform, opacity;
}

@keyframes hwIn {
  from {
    opacity: 0;
    transform: translateY(44px) skewY(5deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) skewY(0deg);
  }
}

/* ── HERO SEQUENCE ITEMS (.hs-up / .hs-right) ─────────────────────── */
/* Default state: VISIBLE. Adding class hides them, hs--play shows them. */

.hs-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.hs-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.hs-up.hs--play,
.hs-right.hs--play {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── HERO TYPEWRITER LINE ─────────────────────────────────────────── */
.hero-dynamic-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  margin-top: -0.25rem;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cf-text-muted);
  /* Prevent layout jump when text is deleted */
  min-height: 2.2em;
  line-height: 2.2em;
}

/* ── HERO INFO MARQUEE (Marquee Style) ────────────────────────── */
.hero-info-marquee {
  overflow: hidden;
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid var(--cf-tech);
  padding: 0.5rem 0;
  margin-bottom: 2rem;
  max-width: 600px;
  position: relative;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  gap: 2rem;
  animation: miniScroll 15s linear infinite;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--cf-tech);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  align-items: center;
}

.dot-sep {
  width: 4px;
  height: 4px;
  background: var(--cf-tech);
  border-radius: 50%;
  display: inline-block;
}

@keyframes miniScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .hero-info-marquee {
    max-width: 100%;
    margin-bottom: 1.5rem;
  }
}

.hero-dynamic-tw {
  color: var(--cf-accent);
  min-width: 2ch;
}

/* ── TYPEWRITER CURSOR ────────────────────────────────────────────── */
.tw-cursor {
  display: inline-block;
  color: var(--cf-accent);
  font-size: 0.85em;
  line-height: 1;
  animation: twBlink 0.75s step-end infinite;
  margin-left: 2px;
  vertical-align: middle;
}

@keyframes twBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* ── SCROLL-REVEAL: CARD FROM SIDES (.rc) ────────────────────────── */
.rc {
  opacity: 0;
  transform: translateX(var(--rc-tx, -70px));
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--rc-td, 0s),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--rc-td, 0s);
  will-change: transform, opacity;
}

.rc.rc--visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── SCROLL-REVEAL: CARD FROM BOTTOM (.rc-up) ────────────────────── */
.rc-up {
  opacity: 0;
  transform: translateY(52px);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1) var(--rc-td, 0s),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) var(--rc-td, 0s);
  will-change: transform, opacity;
}

.rc-up.rc--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SCROLL-REVEAL: HEADLINE (.rc-headline) ──────────────────────── */
.rc-headline {
  opacity: 0;
  transform: translateY(32px) skewX(-2deg);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.rc-headline.rc--visible {
  opacity: 1;
  transform: translateY(0) skewX(0deg);
}

/* ── TERMINAL TYPEWRITER ─────────────────────────────────────────── */
.t-line {
  animation: tLineIn 0.25s ease-out both;
  font-size: 0.9rem;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-all;
}

@keyframes tLineIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.t-line--cmd {
  color: #e0e0e0;
}

.t-line--cmd::before {
  content: "$ ";
  color: var(--cf-tech);
  font-weight: 700;
}

.t-line--success {
  color: var(--cf-tech);
}

.t-line--warning {
  color: var(--cf-accent);
}

.t-line--power {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-shadow: 0 0 14px var(--cf-accent);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(166, 139, 77, 0.08),
    transparent
  );
  padding: 0.25rem 0;
  margin-top: 0.25rem;
}

.t-line--power::before {
  content: "⚡ ";
  color: var(--cf-accent);
}

/* ── REDUCED MOTION FALLBACK ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hw--play,
  .hs-up,
  .hs-right,
  .rc,
  .rc-up,
  .rc-headline {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .tw-cursor {
    animation: none;
    opacity: 1;
  }
}

/* ================== AESTHETIC ENHANCEMENTS (SaaS Premium) ================== */

/* Resources Card Glassmorphism */
.r-card {
  background: rgba(43, 43, 43, 0.4) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}
.r-card:hover {
  background: rgba(53, 53, 53, 0.6) !important;
  border-color: var(--cf-accent) !important;
}

/* Omnichannel Connector Animation */
.connector-lines path {
  stroke: var(--cf-text-muted);
  stroke-width: 1.5;
  stroke-dasharray: 5, 5;
  animation: lineFlow 4s linear infinite;
  opacity: 0.3;
}
@keyframes lineFlow {
  from {
    stroke-dashoffset: 20;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.omni-nodes .o-node {
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}
.omni-nodes .o-node:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--cf-accent);
}

.final-cta h2 {
  font-size: clamp(2.2rem, 10vw, 4rem); /* Improved mobile sizing */
  line-height: 1;
  margin-bottom: 2rem;
  letter-spacing: -0.04em;
}

/* ================== BRANDING (Logo + Name) ================== */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: #fff;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.f-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.f-brand .brand-name {
  font-size: 1.6rem;
}

/* n8n Node Styling (Outline version) */
.o-node.n8n {
  background: var(--cf-surface); /* Same as Instagram/WhatsApp */
  border-color: var(--cf-border);
}
.o-node.n8n svg {
  color: var(--cf-text-main); /* White like the others */
  filter: none;
}
/* n8n Hover: Follows global gold accent to match others */
.o-node.n8n:hover {
  background: var(--cf-surface-light);
  border-color: var(--cf-accent);
  box-shadow: 0 0 25px rgba(166, 139, 77, 0.2);
}
.o-node.n8n:hover svg {
  color: var(--cf-accent);
  filter: drop-shadow(0 0 8px rgba(166, 139, 77, 0.4));
}

/* ================== FAQ SECTION (GEO) ================== */
.faq-section {
  padding: 8rem 0;
  border-top: 1px solid var(--cf-border);
  background-color: var(--cf-surface);
}

.faq-list {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border: 1px solid var(--cf-border);
  border-bottom: none;
  padding: 2rem 2.5rem;
  transition: background 0.3s var(--ease-out);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--cf-border);
}

.faq-item:hover {
  background: var(--cf-surface-light);
  border-color: var(--cf-accent);
}

.faq-item:hover + .faq-item {
  border-top-color: var(--cf-accent);
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--cf-text-main);
  cursor: default;
  display: block;
  margin-bottom: 1rem;
}

.faq-answer {
  font-size: 1rem;
  color: var(--cf-text-muted);
  line-height: 1.7;
  max-width: 800px;
  margin: 0;
}

.faq-answer strong {
  color: var(--cf-accent);
  font-weight: 600;
}

@media (max-width: 768px) {
  .faq-item {
    padding: 1.5rem;
  }
  .faq-question {
    font-size: 0.95rem;
  }
}

/* Footer freshness timestamp (GEO signal) */
.footer-updated {
  display: block;
  font-size: 0.75rem;
  color: #aaaaaa; /* Increased brightness for AA contrast */
  margin-top: 0.5rem;
  opacity: 1;
}

/* ── FLOATING WHATSAPP BUTTON ── */
.floating-wpp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #121212; /* Dark Premium Surface */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 10001;
  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  overflow: hidden;
  border: 1px solid var(--cf-accent); /* Gold Border */
}

.floating-wpp:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0 20px var(--cf-accent);
  border-color: #fff;
}

.wpp-icon {
  width: 32px;
  height: 32px;
  fill: var(--cf-accent); /* Gold Icon */
  transition: fill 0.3s ease;
}

.floating-wpp:hover .wpp-icon {
  fill: #ffffff;
}

.wpp-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.2));
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .floating-wpp {
    bottom: 3rem; /* Elevado para evitar sobreposição por barras de navegação de sistemas móveis (Safe Area) */
    right: 1.5rem;
    width: 50px;
    height: 50px;
  }
  .wpp-icon {
    width: 28px;
    height: 28px;
  }
}

/* ── EXTRA CONNECTION NOTE ── */
.extra-info-container {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  text-align: center;
}

.extra-connection-note {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--cf-text-muted);
  background: rgba(140, 116, 62, 0.05);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  display: inline-block;
  border: 1px solid rgba(140, 116, 62, 0.2);
}

.extra-connection-note strong {
  color: var(--cf-accent);
}

/* ── COMPETITIVE DIFFERENTIATORS ── */
.diff-section {
  padding: 8rem 0;
  background: var(--cf-bg);
}

.diff-header {
  text-align: center;
  margin-bottom: 5rem;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.diff-card {
  background: var(--cf-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.diff-card:hover {
  border-color: var(--cf-accent);
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.02);
}

.diff-card.highlight {
  border: 2px solid var(--cf-accent);
  background: rgba(140, 116, 62, 0.03);
}

.diff-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.diff-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--cf-text);
  letter-spacing: -0.02em;
}

.diff-card p {
  color: var(--cf-text-muted);
  line-height: 1.6;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .diff-header .massive-sub {
    font-size: 2.5rem;
  }
}
/* ================== FINAL MOBILE OVERRIDES (SAFE-PASS) ================== */
@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }

  .nav-actions .btn-ghost {
    display: none !important;
  }

  /* Force visibility and absolute position to bypass container overflow issues */
  .menu-toggle.mobile-only {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    right: 1.5rem !important;
    top: 1.25rem !important;
    width: 48px !important;
    height: 48px !important;
    background: var(--cf-surface) !important;
    border: 1px solid var(--cf-accent) !important;
    border-radius: 4px !important;
    z-index: 10001 !important; /* Extremely high to stay above everything */
  }

  .nav-actions {
    display: none !important;
  }

  #app-wrapper, body, html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    position: relative !important;
  }
}

/* Fix enormous SVG icons on mobile */
.card-icon svg,
.o-node svg,
.r-card svg,
.diff-icon svg {
  width: 50px !important;
  height: 50px !important;
  display: block;
}

@media (max-width: 768px) {
  .card-icon svg,
  .o-node svg,
  .r-card svg,
  .diff-icon svg {
    width: 42px !important;
    height: 42px !important;
  }
  
  /* Mobile-Specific Video Overrides */
  .video-section {
    padding: 4rem 0 !important;
  }
  
  .massive-sub {
    font-size: 2.5rem !important;
  }
  
  .video-player-wrapper {
    margin-top: 2rem !important;
    box-shadow: 10px 10px 0 rgba(140, 116, 62, 0.08) !important;
  }
  
  .video-play-btn {
    width: 64px !important;
    height: 64px !important;
  }
  
  .video-play-btn svg {
    width: 24px !important;
    height: 24px !important;
  }

  /* Support for older Safaris with aspect-ratio issues */
  @supports not (aspect-ratio: 16/9) {
    .video-player-wrapper {
      height: 0;
      padding-top: 56.25%; /* 16:9 ratio fallback */
      position: relative;
    }
  }
}

#omnichannel {
  scroll-margin-top: 100px;
  position: relative;
  display: block;
}

/* ============================================================
   VIDEO PLAYER — Institutional Video Section
   ============================================================ */
.video-section {
  padding: 8rem 0;
  background: #000;
  border-top: 1px solid var(--cf-border);
  border-bottom: 1px solid var(--cf-border);
  position: relative;
  overflow: hidden;
}

.video-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--cf-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--cf-border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.3;
  z-index: 0;
}

.video-section .container {
  position: relative;
  z-index: 1;
}

.video-section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.video-section-header .massive-sub {
  margin-bottom: 1rem;
}

.video-section-header p {
  color: var(--cf-text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Player Container */
.video-player-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: #000;
  border: 1px solid var(--cf-border);
  box-shadow:
    0 0 0 1px rgba(140, 116, 62, 0.15),
    20px 20px 0 rgba(140, 116, 62, 0.08),
    0 40px 80px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  cursor: pointer;
}

.video-player-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Overlay (shown when paused/stopped) */
.video-overlay {
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0; /* Fallback for inset: 0 */
  background: linear-gradient(
    160deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  display: flex !important; /* Ensure it is not hidden by other resets */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.4s var(--ease-out);
  z-index: 5;
}

.video-overlay.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  display: none !important; /* Force hide to ensure interaction with player */
}

/* Play Button */
.video-play-btn {
  width: 96px;
  height: 96px;
  border: 2px solid var(--cf-accent);
  background: rgba(140, 116, 62, 0.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  position: relative;
}

.video-play-btn::before {
  /* Animated border pulse */
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(140, 116, 62, 0.4);
  animation: playPulse 2s ease-in-out infinite;
}

.video-play-btn::after {
  content: '';
  position: absolute;
  inset: -16px;
  border: 1px solid rgba(140, 116, 62, 0.15);
  animation: playPulse 2s ease-in-out 0.4s infinite;
}

.video-play-btn:hover {
  background: rgba(140, 116, 62, 0.35);
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(140, 116, 62, 0.4);
}

.video-play-btn svg {
  width: 36px;
  height: 36px;
  fill: var(--cf-accent);
  margin-left: 4px; /* Visual center for play icon */
}

@keyframes playPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0; transform: scale(1.3); }
}

/* Overlay Label */
.video-overlay-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cf-text-muted);
}

/* Duration Badge */
.video-duration-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--cf-border);
  padding: 4px 12px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cf-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  backdrop-filter: blur(6px);
  z-index: 6;
}

/* Custom Controls Bar */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.video-player-wrapper:hover .video-controls,
.video-player-wrapper.playing .video-controls {
  opacity: 1;
}

/* Progress Track */
.video-progress-track {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  position: relative;
}

.video-progress-fill {
  height: 100%;
  background: var(--cf-accent);
  width: 0%;
  transition: width 0.1s linear;
  position: relative;
}

.video-progress-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--cf-accent);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s;
}

.video-progress-track:hover .video-progress-fill::after {
  opacity: 1;
}

/* Control Buttons */
.video-ctrl-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.video-ctrl-btn:hover {
  color: #fff;
}

.video-ctrl-btn svg {
  width: 20px;
  height: 20px;
}

.video-time {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  min-width: 80px;
}

/* Corner accent lines — decorative */
.video-player-wrapper::before,
.video-player-wrapper::after {
  content: '';
  position: absolute;
  border-color: var(--cf-accent);
  border-style: solid;
  z-index: 20;
  pointer-events: none;
}
.video-player-wrapper::before {
  top: 0; left: 0;
  width: 40px; height: 40px;
  border-width: 2px 0 0 2px;
}
.video-player-wrapper::after {
  bottom: 0; right: 0;
  width: 40px; height: 40px;
  border-width: 0 2px 2px 0;
}

/* Stats bar below video */
.video-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cf-border);
}

.video-stat {
  text-align: center;
}

.video-stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--cf-accent);
  line-height: 1;
}

.video-stat-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cf-text-muted);
  margin-top: 0.4rem;
}

/* Responsive */
@media (max-width: 768px) {
  .video-section {
    padding: 5rem 0;
  }

  .video-play-btn {
    width: 72px;
    height: 72px;
  }

  .video-play-btn svg {
    width: 28px;
    height: 28px;
  }

  .video-stats {
    gap: 1.5rem;
  }

  .video-stat-value {
    font-size: 1.5rem;
  }
}

/* ============================================================
   MOBILE CAROUSEL — Testimonials & Recursos
   Desktop: grid normal. Mobile (≤768px): swipeable carousel
   ============================================================ */
.carousel-wrapper {
  position: relative;
  width: 100%;
}

/* Dots — hidden on desktop */
.carousel-dots {
  display: none;
}

@media (max-width: 768px) {
  /* --- Testimonials carousel --- */
  .carousel-wrapper .testimonials-grid.carousel-track {
    display: flex;
    flex-direction: row;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 0.5rem;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .carousel-wrapper .testimonials-grid.carousel-track::-webkit-scrollbar {
    display: none;
  }
  .carousel-wrapper .testimonials-grid.carousel-track .testimonial-card {
    flex: 0 0 88%;
    scroll-snap-align: start;
    min-width: 0;
  }

  /* --- Recursos carousel --- */
  .carousel-wrapper .recursos-grid.carousel-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .carousel-wrapper .recursos-grid.carousel-track::-webkit-scrollbar {
    display: none;
  }
  /* Grupos de 2: cada "slide" mostra 2 cards por tela em layout 2-col */
  .carousel-wrapper .recursos-grid.carousel-track .r-card {
    flex: 0 0 50%;
    scroll-snap-align: start;
    min-width: 0;
    border: 1px solid var(--cf-border);
  }

  /* --- Dots --- */
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
  }
  .carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cf-border);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
  }
  .carousel-dots .dot.active {
    background: var(--cf-accent);
    transform: scale(1.3);
  }

  /* mobile-only visible */
  .mobile-only {
    display: flex;
  }
}

/* ================== ACADEMY SECTION & VIDEO GRID ================== */
.academy-section {
  padding: 8rem 0;
  background-color: var(--cf-bg);
  border-top: 1px solid var(--cf-border);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .academy-section .carousel-wrapper {
    margin: 0 calc(var(--container-pad) * -1);
    padding: 0 var(--container-pad);
  }
  
  .video-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 2rem;
    scrollbar-width: none; /* Hide scrollbar */
  }
  
  .video-grid::-webkit-scrollbar {
    display: none;
  }
  
  .video-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
}

.video-card {
  background: var(--cf-surface);
  border: 1px solid var(--cf-border);
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.video-card:hover {
  transform: translateY(-8px);
  border-color: var(--cf-accent);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.v-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}

.v-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
  opacity: 0.8;
}

.video-card:hover .v-thumb img {
  transform: scale(1.05);
  opacity: 1;
}

.v-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card:hover .v-play-overlay {
  opacity: 1;
}

.v-play-overlay svg {
  width: 50px;
  height: 50px;
  fill: var(--cf-accent);
  filter: drop-shadow(0 0 10px rgba(166, 139, 77, 0.5));
}

.v-info {
  padding: 1.5rem;
}

.v-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--cf-accent);
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

.v-info h3 {
  font-size: 1rem;
  line-height: 1.4;
  margin: 0;
  color: var(--cf-text-main);
  text-transform: none;
  font-family: var(--font-body);
}

.btn-yt-premium {
  padding: 1rem 2rem;
  background: rgba(255, 0, 0, 0.05);
  border-color: #ff0000;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.4s var(--ease-out);
}

.btn-yt-premium svg {
  color: #ff0000;
  transition: transform 0.3s var(--ease-out);
}

.btn-yt-premium:hover {
  background: #ff0000;
  color: #000;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
  transform: translateY(-4px);
}

.btn-yt-premium:hover svg {
  color: #000;
  transform: scale(1.1);
}

/* ================== VIDEO MODAL ================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 90%;
  max-width: 1000px;
  position: relative;
  background: var(--cf-bg);
  border: 1px solid var(--cf-accent);
  padding: 5px;
  box-shadow: 0 0 50px rgba(166, 139, 77, 0.2);
}

.modal-close {
  position: absolute;
  top: -40px;
  right: -10px;
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
}

.iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


