:root {
  /* Default: Dark Theme */
  --primary-blue: #2636BD;
  --vibrant-blue: #344FEB;
  --dark-bg: #000020;
  --navy-grad: #16278D;
  --text-light: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --glass-bg: rgba(38, 54, 189, 0.08);
  --glass-border: rgba(52, 79, 235, 0.2);
  --glow-shadow: 0 0 40px rgba(52, 79, 235, 0.3);
  --font-main: 'General Sans', sans-serif;
  --font-logo: 'Poppins', sans-serif;
  --nav-bg: rgba(0, 0, 32, 0.8);
  --nav-bg-solid: rgba(0, 0, 32, 0.98);
  --mesh-opacity: 0.2;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --table-header: rgba(0, 0, 0, 0.2);
  --timeline-line: var(--glass-border);
  --svg-stroke: var(--vibrant-blue);
  --footer-border: var(--glass-border);
  --input-bg: rgba(255, 255, 255, 0.05);
  --input-bg-focus: rgba(255, 255, 255, 0.08);
  --number-bg: var(--dark-bg);
  /* 8-pt Grid Spacing System */
  --space-sm: 24px;
  --space-md: 32px;
  --space-lg: 48px;
  --space-xl: 64px;
  --section-pad-y-mob: 64px;
  --section-pad-y-tab: 96px;
  --section-pad-y-desk: 120px;
}

[data-theme="light"] {
  --primary-blue: #16278D;
  --vibrant-blue: #2636BD;
  --dark-bg: #E8EDF2;
  --navy-grad: #CBD5E1;
  --text-light: #0B1120;
  --text-muted: rgba(11, 17, 32, 0.7);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(38, 54, 189, 0.15);
  --glow-shadow: 0 0 30px rgba(38, 54, 189, 0.15);
  --nav-bg: rgba(232, 237, 242, 0.85);
  --nav-bg-solid: rgba(232, 237, 242, 0.98);
  --mesh-opacity: 0.05;
  --card-shadow: 0 10px 30px rgba(38, 54, 189, 0.08);
  --table-header: rgba(38, 54, 189, 0.05);
  --timeline-line: rgba(38, 54, 189, 0.2);
  --svg-stroke: var(--vibrant-blue);
  --footer-border: rgba(38, 54, 189, 0.15);
  --input-bg: rgba(255, 255, 255, 0.9);
  --input-bg-focus: #ffffff;
  --number-bg: #ffffff;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--dark-bg);
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
}

html {
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-light) 0%, var(--vibrant-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: background 0.4s ease, border 0.4s ease;
}

.bg-mesh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, var(--navy-grad) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(38, 54, 189, var(--mesh-opacity)) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
  transition: 0.4s ease;
}

.grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(52, 79, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 79, 235, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -2;
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-main);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--vibrant-blue));
  color: #fff;
}

.btn-primary:hover {
  box-shadow: var(--glow-shadow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--vibrant-blue);
  color: var(--vibrant-blue);
}

.btn-secondary:hover {
  background: rgba(52, 79, 235, 0.1);
}

/* Typography elements */
.headline-display {
  font-size: clamp(32px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 5;
  overflow: visible; /* Ensure chars are not clipped during transform */
}



.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 24px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 600px;
  margin-bottom: var(--space-xl);
}

.reveal {
  opacity: 0.01;
  filter: blur(10px);
  transform: translateY(20px);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, filter, transform;
}

.reveal.active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Old Slider CSS Removed - Consolidated at the end of the file */

/* Base Sections Spacing (Mobile First) */
section {
  padding: var(--section-pad-y-mob) 0;
  position: relative;
}

@media (min-width: 768px) {
  section {
    padding: var(--section-pad-y-tab) 0;
  }
}

@media (min-width: 1024px) {
  section {
    padding: var(--section-pad-y-desk) 0;
  }
}

#top-bar {
  width: 100%;
  max-width: 1200px;
  margin: 10px auto 0;
  background: rgba(10, 10, 40, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-bottom: none;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  color: var(--text-light);
  padding: 8px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 101;
  transition: all 0.4s ease;
}

@media (min-width: 1024px) {
  #top-bar {
    width: 85%;
  }
}

[data-theme="light"] #top-bar {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(38, 54, 189, 0.1);
}

.top-bar-dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

.top-bar-dot span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--vibrant-blue);
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.top-bar-dot i {
  position: relative;
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vibrant-blue);
  box-shadow: 0 0 8px var(--vibrant-blue);
}

@keyframes ping {

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.top-bar-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.top-bar-text strong {
  color: var(--text-light);
}

.top-bar-cta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--vibrant-blue);
  background: rgba(52, 79, 235, 0.1);
  border: 1px solid var(--vibrant-blue);
  padding: 4px 12px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.top-bar-cta:hover {
  background: var(--vibrant-blue);
  color: #fff;
}

/* Navbar */
.navbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 10px;
  height: 72px;
  background: rgba(10, 10, 40, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1024px) {
  .navbar {
    width: 85%;
  }
}

[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(38, 54, 189, 0.1);
}

.navbar.scrolled {
  margin-top: 10px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

@media (min-width: 768px) {
  .nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  text-decoration: none;
  font-family: var(--font-logo);
  font-weight: 200;
  font-size: 24px;
  color: var(--text-light);
  letter-spacing: 1px;
}

.logo img {
  height: 32px;
  width: auto;
}

.logo .logo-light {
  display: none;
}

.logo .logo-dark {
  display: block;
}

[data-theme="light"] .logo .logo-dark {
  display: none;
}

[data-theme="light"] .logo .logo-light {
  display: block;
}

/* Mobile Hidden Elements */
.nav-links,
.nav-cta {
  display: none;
}

@media (max-width: 767px) {
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 71px; /* Navbar height - 1px border */
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 32px;
    gap: 24px;
    border-bottom: 1px solid var(--glass-border);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    animation: slideDown 0.3s ease-out forwards;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 99;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-links.active a {
    font-size: 18px;
    font-weight: 600;
  }
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

/* Desktop Nav */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 32px;
  }

  .nav-cta {
    display: inline-flex;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
  }
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--vibrant-blue);
}

.theme-toggle {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  color: var(--vibrant-blue);
  background: var(--glass-border);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.mobile-menu-btn {
  display: block;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  color: var(--text-light);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn:hover {
  background: var(--glass-border);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* 2. Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding-top: var(--section-pad-y-desk);
  padding-bottom: var(--section-pad-y-mob);
  position: relative;
  overflow: hidden;
}

/* Meteor Shower Animation */
.meteor-shower {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  transform: rotate(-45deg);
  /* Diagonal angle */
}

.meteor {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
  border-radius: 50%;
  animation: meteor 4s linear infinite;
  opacity: 0;
}

.meteor::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 2px var(--vibrant-blue);
}

/* Randomize meteor timings and positions */
.meteor:nth-child(1) {
  top: 10%;
  left: 80%;
  animation-delay: 0s;
  animation-duration: 3s;
}

.meteor:nth-child(2) {
  top: 30%;
  left: 20%;
  animation-delay: 1.2s;
  animation-duration: 4.5s;
}

.meteor:nth-child(3) {
  top: 60%;
  left: 90%;
  animation-delay: 2.5s;
  animation-duration: 3.5s;
}

.meteor:nth-child(4) {
  top: 80%;
  left: 40%;
  animation-delay: 0.8s;
  animation-duration: 5s;
}

.meteor:nth-child(5) {
  top: 15%;
  left: 10%;
  animation-delay: 3s;
  animation-duration: 4s;
}

.meteor:nth-child(6) {
  top: 50%;
  left: 70%;
  animation-delay: 1.8s;
  animation-duration: 3.8s;
}

@keyframes meteor {
  0% {
    transform: translateX(0);
    opacity: 1;
  }

  70% {
    opacity: 1;
  }

  100% {
    transform: translateX(-1500px);
    opacity: 0;
  }
}

[data-theme="light"] .meteor {
  background: linear-gradient(90deg, var(--vibrant-blue), transparent);
  opacity: 0.5;
}

[data-theme="light"] .meteor::before {
  background: var(--primary-blue);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero-typing-wrapper {
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #FFFFFF;
  font-family: var(--font-main);
  min-height: 24px;
}

[data-theme="light"] .hero-typing-wrapper {
  color: var(--vibrant-blue);
}

.cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  from,
  to {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  margin: var(--space-sm) 0 40px;
  max-width: 600px;
}

@media (min-width: 768px) {
  .hero p {
    font-size: 20px;
  }
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .hero-ctas {
    flex-direction: row;
    width: auto;
  }
}

.social-proof {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 48px;
  border-top: 1px solid var(--glass-border);
  width: 100%;
}

@media (min-width: 768px) {
  .social-proof {
    flex-direction: row;
    justify-content: center;
    gap: 64px;
  }
}

.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.proof-item:hover {
  transform: translateY(-5px);
}

.proof-item span {
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-light) 0%, var(--vibrant-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -2px;
  filter: drop-shadow(0 4px 6px rgba(38, 54, 189, 0.15));
}

.proof-item small {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* 2.5 Infinite Brand Slider - Refined with Hover Effect */
.brand-slider {
  --slide-w: 240px;
  --logo-h: 120px;
  padding: 50px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(10, 10, 40, 0.3);
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  /* Masking: "Emerging from darkness" effect */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

@media (max-width: 768px) {
  .brand-slider {
    --slide-w: 33.33vw;
    /* Display 3 logos exactly on mobile */
    --logo-h: 60px;
    /* Scale down logos for visibility */
    padding: 30px 0;
  }
}

[data-theme="light"] .brand-slider {
  background: rgba(255, 255, 255, 0.1);
}

.logo-track {
  display: flex;
  width: max-content;
  animation: logo-scroll-refined 30s linear infinite;
  gap: 0;
}

.slide {
  width: var(--slide-w);
  /* Responsive width */
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

.light-theme-logo {
  display: none;
}

.dark-theme-logo {
  display: block;
}

[data-theme="light"] .light-theme-logo {
  display: block;
}

[data-theme="light"] .dark-theme-logo {
  display: none;
}

.logo-client {
  height: var(--logo-h) !important;
  /* Responsive height */
  width: auto;
  max-width: calc(var(--slide-w) - 10px);
  object-fit: contain !important;
  opacity: 0.5;
  /* Dimmed by default */
  filter: grayscale(100%);
  /* Black and white by default */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-client:hover {
  opacity: 1;
  filter: grayscale(0%);
  /* Original color (or black/white asset) on hover */
  transform: scale(1.1);
}

@keyframes logo-scroll-refined {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* 3. Pain Section */
.pain-section {
  text-align: center;
}

.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  text-align: left;
}

@media (min-width: 768px) {
  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .pain-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

.pain-card {
  padding: 32px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pain-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow);
}

.pain-icon {
  width: 48px;
  height: 48px;
  background: rgba(52, 79, 235, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--vibrant-blue);
}

.pain-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.pain-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.pain-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* 4. Visão Geral */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 1024px) {
  .overview-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.overview-content h2 {
  margin-bottom: var(--space-sm);
}

.overview-content p {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.pillars {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--vibrant-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(52, 79, 235, 0.4);
}

.pillar-icon svg {
  stroke: #fff;
}

/* Keep icon white regardless of theme */
.overview-visual {
  position: relative;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(38, 54, 189, 0.1) 0%, rgba(22, 39, 141, 0.2) 100%);
  border: 1px solid var(--glass-border);
}

@media (min-width: 768px) {
  .overview-visual {
    height: 500px;
  }
}

/* 5. A Máquina de Vendas — Bento Grid */
.maquina-section {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-top: 100px;
  padding-bottom: 100px;
}

.maquina-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vw;
  max-width: 600px;
  max-height: 600px;
  background-image: url('/assets/logo-white.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
  filter: grayscale(1) brightness(2);
  /* Extra pop for the logo watermark */
}

[data-theme="light"] .maquina-section::before {
  background-image: url('/assets/logo-blue.png');
  filter: none;
  opacity: 0.1;
  /* Slightly more subtle for light mode */
}

.maquina-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--vibrant-blue);
  margin-bottom: 20px;
}

.maquina-section .section-title {
  font-size: clamp(36px, 5vw, 56px);
}

.maquina-subtitle {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 580px;
  margin: 0 auto var(--space-xl) auto;
  line-height: 1.7;
}

.maquina-subtitle strong {
  color: var(--vibrant-blue);
  font-weight: 600;
}

/* Bento Grid Layout */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  text-align: left;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

/* Bento Card Base */
.bento-card {
  background: rgba(10, 10, 40, 0.6);
  border: 1px solid rgba(52, 79, 235, 0.15);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52, 79, 235, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.bento-card:hover {
  border-color: rgba(52, 79, 235, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(52, 79, 235, 0.1);
}

.bento-card:hover::before {
  opacity: 1;
}

/* Light theme adjustments */
[data-theme="light"] .bento-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(38, 54, 189, 0.12);
}

[data-theme="light"] .bento-card:hover {
  border-color: rgba(38, 54, 189, 0.3);
  box-shadow: 0 8px 30px rgba(38, 54, 189, 0.08);
}

/* Card Icon */
.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 20px;
}

.bento-icon.icon-design {
  background: rgba(52, 79, 235, 0.12);
  border: 1px solid rgba(52, 79, 235, 0.2);
  color: var(--vibrant-blue);
}

.bento-icon.icon-speed {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  color: #4ade80;
}

.bento-icon.icon-data {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: #a855f7;
}

.bento-icon.icon-security {
  background: rgba(52, 79, 235, 0.12);
  border: 1px solid rgba(52, 79, 235, 0.2);
  color: var(--vibrant-blue);
}

.bento-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 12px;
}

.bento-card>p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.bento-card>p strong {
  color: var(--vibrant-blue);
  font-weight: 600;
}

/* Bento checklist mini */
.bento-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.bento-check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  opacity: 0.9;
}

.bento-check-list svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #4ade80;
}

/* PageSpeed Score Big Number */
.bento-score {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 24px;
}

.bento-score-number {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: #4ade80;
  font-family: var(--font-main);
}

.bento-score-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Full-width bottom card */
.bento-card--full {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px 28px;
}

@media (min-width: 768px) {
  .bento-card--full {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 36px 40px;
  }
}

.bento-full-left {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
}

.bento-full-left .bento-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.bento-full-text h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
}

.bento-full-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 520px;
}

.bento-full-text p strong {
  color: var(--text-light);
  font-weight: 600;
}

.bento-full-stats {
  display: flex;
  gap: 40px;
  flex-shrink: 0;
}

.bento-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bento-stat-number {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--vibrant-blue);
}

.bento-stat-number.stat-green {
  color: #4ade80;
}

.bento-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Nossas Soluções — Serviços */
.solutions-section {
  text-align: center;
}

.solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  text-align: left;
  margin-top: var(--space-xl);
}

@media (min-width: 768px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .solutions-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.solution-card {
  background: rgba(10, 10, 40, 0.5);
  border: 1px solid rgba(52, 79, 235, 0.12);
  border-radius: 16px;
  padding: 32px 24px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.solution-card:hover {
  border-color: rgba(52, 79, 235, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(52, 79, 235, 0.1);
}

[data-theme="light"] .solution-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(38, 54, 189, 0.1);
}

[data-theme="light"] .solution-card:hover {
  border-color: rgba(38, 54, 189, 0.3);
  box-shadow: 0 12px 30px rgba(38, 54, 189, 0.08);
}

.solution-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(52, 79, 235, 0.1);
  border: 1px solid rgba(52, 79, 235, 0.15);
  color: var(--vibrant-blue);
}

.solution-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 16px;
}

.solution-info {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.solution-info:last-child {
  margin-bottom: 0;
}

.solution-info strong {
  color: var(--vibrant-blue);
  font-weight: 600;
}

/* 6. Comparativo - Custo da Inércia */
.diff-section {
  text-align: center;
}

.comparison-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: var(--space-lg) auto 0;
  text-align: left;
}

@media (min-width: 768px) {
  .comparison-container {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
    margin: var(--space-xl) auto 0;
  }
}

.comp-card {
  padding: 32px 24px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media (min-width: 768px) {
  .comp-card {
    padding: 48px;
  }
}

.comp-card h3 {
  font-size: 24px;
  margin-bottom: 32px;
}

/* Base list */
.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
  flex-grow: 1;
}

.comp-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 400;
}

.comp-list svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.comp-status {
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  margin-top: auto;
}

/* Bad Card (Convencionais) */
.comp-bad {
  background: rgba(5, 5, 20, 0.7);
  border: 1px solid rgba(255, 77, 77, 0.1);
  /* Subtle red tint */
}

@media (min-width: 768px) {
  .comp-bad {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding-right: 64px;
    /* Room for overlap */
  }
}

.comp-bad h3 {
  color: var(--text-muted);
}

.comp-bad .comp-list li {
  color: var(--text-muted);
}

.comp-bad .comp-status {
  background: rgba(255, 77, 77, 0.1);
  color: var(--error-red, #ff4d4d);
}

/* Good Card (Padrão Mytrus) */
.comp-good {
  background: var(--primary-blue);
  box-shadow: 0 20px 60px rgba(38, 54, 189, 0.4);
  z-index: 2;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .comp-good {
    margin-left: -32px;
    /* The overlap! */
    transform: scale(1.05);
    /* Make it pop out */
  }
}

.comp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.comp-good .comp-header h3 {
  margin-bottom: 0;
  color: #fff;
  text-shadow: var(--glow-shadow);
}

.comp-good .comp-list li {
  color: #fff;
  font-weight: 500;
}

.badge-elite {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.comp-good .comp-status {
  background: var(--vibrant-blue);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Light theme overrides for comparison section */
[data-theme="light"] .comp-bad {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .comp-bad h3 {
  color: #1a1a2e;
}

[data-theme="light"] .comp-bad .comp-list li {
  color: #333344;
}

[data-theme="light"] .comp-bad .comp-list svg {
  stroke: #e53e3e;
}

[data-theme="light"] .comp-bad .comp-status {
  background: rgba(229, 62, 62, 0.08);
  color: #e53e3e;
}

[data-theme="light"] .comp-good {
  box-shadow: 0 20px 60px rgba(38, 54, 189, 0.25);
}

/* 7. Números */
.metrics-section {
  background: radial-gradient(circle at center, rgba(38, 54, 189, 0.1), transparent 70%);
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  text-align: center;
}

@media (min-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
  }
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-number {
  font-size: 64px;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1;
  text-shadow: var(--glow-shadow);
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .metric-number {
    font-size: 80px;
  }
}

.metric-label {
  color: var(--vibrant-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* 8. Como Funciona */
#como-funciona {
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 100px;
}

#como-funciona::before {
  content: 'MYTRUS';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-logo);
  font-weight: 200;
  font-size: 16vw;
  letter-spacing: 0.2em;
  color: rgba(52, 79, 235, 0.05);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

[data-theme="light"] #como-funciona::before {
  color: rgba(38, 54, 189, 0.03);
}

.how-it-works {
  text-align: center;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  position: relative;
  text-align: left;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 32px;
  width: 2px;
  height: 100%;
  background: var(--timeline-line);
  z-index: 0;
}

@media (min-width: 1024px) {
  .timeline {
    flex-direction: row;
    justify-content: space-between;
    gap: var(--space-md);
    margin-top: 100px;
  }

  .timeline::before {
    left: 0;
    top: 32px;
    width: 100%;
    height: 2px;
  }
}

.timeline-item {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-left: 80px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .timeline-item {
    width: 22%;
    padding-left: 0;
  }
}

.timeline-number {
  width: 64px;
  height: 64px;
  background: var(--number-bg);
  border: 2px solid var(--vibrant-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--vibrant-blue);
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(52, 79, 235, 0.2);
  position: absolute;
  left: 0;
  top: -16px;
  /* Align over line */
}

@media (min-width: 1024px) {
  .timeline-number {
    position: relative;
    left: auto;
    top: auto;
  }
}

.timeline-item h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.timeline-item p {
  color: var(--text-muted);
  font-size: 16px;
}

/* 9. Depoimentos */
.testimonials {
  text-align: center;
  overflow: hidden;
}

.testimonials-slider {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

@media (min-width: 768px) {
  .testimonials-slider {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-slider {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
}

.testimonial-card {
  width: 100%;
  text-align: left;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .testimonial-card {
    padding: 40px;
  }
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy-grad);
}

.quote {
  font-size: 16px;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.result {
  color: var(--vibrant-blue);
  font-weight: 600;
  font-size: 18px;
}

/* 10. Performance Stack */
.innovation {
  background: linear-gradient(180deg, transparent, rgba(38, 54, 189, 0.05) 50%, transparent);
}

.perf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .perf-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

/* Left Column */
.perf-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--vibrant-blue);
  margin-bottom: 24px;
}

.perf-headline {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-light);
  margin-bottom: 24px;
}

.perf-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.perf-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.perf-checklist li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-light);
}

.perf-checklist svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Right Column: Metric Rows */
.perf-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.perf-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-family: 'Courier New', monospace;
}

.perf-metric-label {
  font-size: 15px;
  color: var(--text-muted);
}

.perf-metric-value {
  font-weight: 700;
  font-size: 16px;
}

.perf-metric-value.good {
  color: #4ade80;
}

/* Green */
.perf-metric-value.eliminated {
  color: var(--error-red, #ff4d4d);
}

.perf-metric-value.highlight-val {
  color: #fff;
  font-size: 20px;
}

/* Highlighted bottom metric row */
.perf-metric--highlight {
  background: var(--primary-blue);
  border-color: var(--vibrant-blue);
  padding: 24px;
}

.perf-metric--highlight .perf-metric-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-family: var(--font-main);
}

/* 11. FAQ */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
}

.faq-container {
  margin-top: var(--space-lg);
}

@media (min-width: 768px) {
  .faq-container {
    margin-top: 80px;
  }
}

.faq-item {
  border-bottom: 1px solid var(--glass-border);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 24px 0;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-main);
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--vibrant-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: var(--text-muted);
}

.faq-answer p {
  padding-bottom: 24px;
  font-size: 16px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* increased max height for safety */
.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--vibrant-blue);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 0.3s;
}

.faq-icon::before {
  width: 16px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 16px;
}

.faq-item.active .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

/* 12. Urgency CTA & 13. Final CTA merged */
.cta-section {
  text-align: center;
  margin-top: calc(var(--space-xl) * -1);
  /* Pull CTA visually up */
}

.cta-box {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px;
  background: radial-gradient(circle at center, rgba(38, 54, 189, 0.1), transparent);
  border: 1px solid var(--vibrant-blue);
  box-shadow: 0 0 60px rgba(38, 54, 189, 0.1);
  border-radius: 24px;
}

@media (min-width: 768px) {
  .cta-box {
    padding: 80px 48px;
    box-shadow: 0 0 100px rgba(38, 54, 189, 0.15);
  }
}

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  margin: 40px auto;
  max-width: max-content;
}

@media (min-width: 768px) {
  .checklist {
    flex-direction: row;
    gap: 32px;
    align-items: center;
    margin: 48px auto;
  }
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

/* Contact Form */
.contact-form {
  display: grid;
  gap: 20px;
  max-width: 500px;
  margin: 48px auto 0;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  background: var(--input-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-light);
  font-family: var(--font-main);
  outline: none;
  transition: 0.3s;
  font-size: 16px;
}

/* Fix select dropdown appearance on Windows/various browsers */
.contact-form select {
  color-scheme: dark;
  /* Tells the browser to use dark-themed system UI for the dropdown */
}

[data-theme="light"] .contact-form select {
  color-scheme: light;
}

.contact-form select option {
  background-color: var(--dark-bg);
  color: var(--text-light);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--vibrant-blue);
  background: var(--input-bg-focus);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

/* 14. Footer */
footer {
  border-top: 1px solid var(--footer-border);
  padding: 120px 0 40px;
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
  }
}

.footer-col h4 {
  margin-bottom: 24px;
  color: var(--text-light);
  font-size: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  transition: 0.3s;
}

.footer-col a:hover {
  color: var(--vibrant-blue);
}

.footer-bottom {
  border-top: 1px solid var(--footer-border);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  gap: 24px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
    gap: 0;
  }
}

.social-icons {
  display: flex;
  gap: 24px;
}

.social-icons a {
  color: var(--text-muted);
  transition: color 0.3s;
}

.social-icons a:hover {
  color: var(--vibrant-blue);
}

/* 15. Legal Pages (Privacy/Terms) */
.page-header {
  padding: 180px 0 80px;
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px;
  font-size: 16px;
  color: var(--text-muted);
}

.page-content h2 {
  color: var(--text-light);
  margin: 40px 0 16px;
  font-size: 24px;
}

.page-content p {
  margin-bottom: 24px;
}