/* Design Tokens & Theme Variables */
:root {
  /* Colors - Premium Contrast Palette */
  --bg-midnight: #0B1121;   /* Very dark, deep blue/black */
  --bg-slate: #162032;      /* Lighter dark blue/gray */
  --bg-cream: #FCFAF8;      /* Warm white */
  --bg-sand: #F3F1EC;       /* Light warm gray/beige */
  --bg-darker: #050811;
  
  --text-light: #F8FAFC;
  --text-muted-light: #94A3B8;
  
  --text-dark: #1A1D20;     /* Almost black for light backgrounds */
  --text-muted-dark: #4A5568;
  
  --accent-primary: #FF5A26; /* Vibrant orange */
  --accent-primary-hover: #E04A1B;
  --accent-purple: #8B5CF6;  
  --accent-blue: #2563EB;
  
  /* Typography */
  --font-family: 'Inter', sans-serif;
  --font-hero: clamp(2.2rem, 8vw, 4rem);
  --font-h2: clamp(1.8rem, 6vw, 3.2rem);
  --font-h3: clamp(1.2rem, 4vw, 1.4rem);
  --font-body-large: clamp(1.05rem, 3vw, 1.15rem);
  --font-body: 1.05rem;
  --font-small: 0.9rem;

  /* Spacing */
  --spacing-section: clamp(3.5rem, 10vw, 7rem);
  --spacing-md: 2rem;
  --spacing-sm: 1rem;
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-cream); /* Default to cream */
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

html {
  overflow-x: hidden;
  width: 100%;
}

section {
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.05); /* Default light border for light sections */
}

section.section-dark {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

section.hero, section.social-proof, section.final-cta {
    border-top: none;
}

/* Typography Base */
h1, h2, h3 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--font-h2);
  margin-bottom: var(--spacing-sm);
}

h3 {
  font-size: var(--font-h3);
  margin-bottom: 0.8rem;
}

p {
  color: var(--text-muted-dark); /* Default to dark text */
}

.large-text {
  font-size: var(--font-body-large);
}

.text-accent { color: var(--accent-primary) !important; }
.text-accent-purple { color: var(--accent-purple) !important; }
.text-blue { color: var(--accent-blue) !important; }
.text-white { color: var(--text-light) !important; }

.text-muted { color: var(--text-muted-dark); }

.text-center {
  text-align: center;
}

.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mt-6 { margin-top: 3rem; }

/* Layout Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem; /* Added internal padding for safety */
}

.section-padding {
  padding: var(--spacing-section) 0;
}

/* --- SECTIONS: LIGHT vs DARK --- */

/* DARK SECTIONS */
.section-dark {
  background-color: var(--bg-midnight);
  color: var(--text-light);
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--text-light); }
.section-dark p { color: var(--text-muted-light); }
.section-dark .text-muted { color: var(--text-muted-light) !important; }
.section-dark .glass-panel, .section-dark .app-card, .section-dark .flow-item { 
    background: rgba(255, 255, 255, 0.02); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
}
.section-dark .glass-circle { background: rgba(255, 255, 255, 0.05); color: var(--text-light); }
.section-dark .icon { color: var(--accent-primary); }

/* LIGHT SECTIONS */
.section-light {
  background-color: var(--bg-cream);
  color: var(--text-dark);
}
.section-light h1, .section-light h2, .section-light h3 { color: var(--text-dark); }
.section-light p { color: var(--text-muted-dark); }
.section-light .text-muted { color: var(--text-muted-dark) !important; }
.section-light .glass-panel, .section-light .app-card, .section-light .flow-item { 
    background: #FFFFFF; 
    border: 1px solid rgba(0, 0, 0, 0.06); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); 
}
.section-light .flow-item::before { background: var(--accent-primary); }
.section-light .glass-circle { background: #FFFFFF; color: var(--text-dark); border-color: var(--accent-primary); }
.section-light .icon { color: var(--accent-primary); }

/* --- BACKGROUND PATTERNS --- */

/* 1. Midnight Base */
.bg-midnight {
  background-color: var(--bg-midnight);
}

/* 2. Darker Base */
.bg-darker {
  background-color: var(--bg-darker);
}

/* 3. Slate Dark */
.bg-slate {
  background-color: var(--bg-slate);
}

/* 3. Cream Light */
.bg-cream {
  background-color: var(--bg-cream);
}

/* 4. Sand Light */
.bg-sand {
  background-color: var(--bg-sand);
}

/* 5. Copper Vibrant Dark */
.bg-copper-gradient {
  background: linear-gradient(135deg, #1f0c07 0%, #150602 100%);
  position: relative;
}
.bg-copper-gradient::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.1;
  pointer-events: none;
}

/* 6. Ghost Grid Dark */
.bg-ghost-grid {
  background-color: var(--bg-midnight);
  background-image: 
    linear-gradient(rgba(255, 90, 38, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 90, 38, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.bg-crosses {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 16v8M16 20h8' stroke='rgba(255,90,38,0.06)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.bg-orange {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #E04A1B 100%);
  color: #fff;
}

.bg-orange {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #E04A1B 100%);
  color: #fff;
}

.bg-orange {
  background-color: var(--accent-primary);
  color: #fff;
}

.bg-orange .text-muted {
  color: rgba(255, 255, 255, 0.9);
}

.bg-orange .btn-primary {
  background-color: #fff;
  color: var(--accent-primary);
}

.bg-orange .btn-primary:hover {
  background-color: #f8fafc;
  box-shadow: 0 10px 20px -10px rgba(0,0,0,0.3);
}

.bg-orange .btn-secondary {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

.bg-orange .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* UI Components */
.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
}

.brand-logo {
  height: clamp(50px, 10vw, 72px);
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.content-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.rounded-image {
  border-radius: var(--radius-lg);
}

.shadow-glow {
  box-shadow: 0 10px 40px rgba(255, 90, 38, 0.15);
  border: 1px solid rgba(255,255,255,0.05);
}

.badge {
  display: inline-block;
  font-size: var(--font-small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(255, 90, 38, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: normal;
  text-align: center;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--accent-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px var(--accent-primary);
}

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

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem;
}

/* Glass Image Containers (Placeholders until user provides image) */
.glass-image-container {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.glass-image-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top left, rgba(255, 90, 38, 0.15), transparent 60%);
}

.glass-image-container > span {
  position: relative;
  z-index: 2;
}

/* Animations */
.hidden-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible-element {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

.delay-3 {
  transition-delay: 0.6s;
}

.delay-4 {
  transition-delay: 0.8s;
}

.delay-5 {
  transition-delay: 1.0s;
}

/* ====== SECTION SPECIFIC STYLES ====== */

/* 1. Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1000px;
  text-align: center;
}

.hero .badge {
  margin-bottom: 20vh;
}

.hero h1 {
  font-size: var(--font-hero);
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #ffffff 10%, #e2e8f0 60%, #b4c0d0 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.8));
  transition: all 0.4s ease;
}

.hero h1:hover {
  background: #ffffff !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: #ffffff !important;
  filter: drop-shadow(0px 0px 0px transparent);
  text-shadow: 
    -1px -1px 0 #b4c0d0, 1px -1px 0 #b4c0d0, -1px 1px 0 #b4c0d0, 1px 1px 0 #b4c0d0,
    0px 0px 15px rgba(255, 255, 255, 0.9), 
    0px 0px 25px rgba(255, 255, 255, 0.5), 
    0px 4px 12px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }
}

.hero .subheadline {
  font-size: var(--font-body-large);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
  text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.9);
}

@media (max-width: 768px) {
  .hero .subheadline {
    text-shadow: 0px 1px 6px rgba(0, 0, 0, 1);
  }
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-buttons.justify-center {
    justify-content: center;
}

.hero-media-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* Fake the image with a bolder gradient for the hero */
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(11, 25, 44, 0.3) 0%, var(--bg-midnight) 100%);
  opacity: 0.8;
}

@media (max-width: 768px) {
  .hero-overlay {
    background: linear-gradient(to bottom, rgba(11, 25, 44, 0.3) 0%, var(--bg-midnight) 80%);
    opacity: 0.9;
  }
}

/* 2. Audiovisual Section */
.audiovisual-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
  position: relative;
  z-index: 20;
}

.audiovisual-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
}

.audiovisual-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.audiovisual-text .badge {
  font-size: 0.75rem;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1rem;
  text-align: center;
  width: fit-content;
}

.audiovisual-text h2 {
    margin-bottom: 0.5rem;
}

.audiovisual-list {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.audiovisual-list li {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
}

.audiovisual-list li .icon-box {
  width: 48px;
  height: 48px;
  background: rgba(255, 90, 38, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 90, 38, 0.2);
}

.audiovisual-list li .icon {
  width: 24px;
  height: 24px;
}

.audiovisual-video {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.video-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  border: 4px solid #fff;
  background: #000;
}

.vertical-video {
  aspect-ratio: 9/16;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
}

/* Facade logic */
.video-facade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
}

.video-facade::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.video-facade:hover::after {
    background: rgba(0, 0, 0, 0.1);
}

.play-button-wrapper {
    position: relative;
    z-index: 10;
    width: 80px;
    height: 80px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 30px rgba(255, 90, 38, 0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-facade:hover .play-button-wrapper {
    transform: scale(1.1);
}

.video-facade .icon {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

@media (max-width: 992px) {
    .audiovisual-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    .audiovisual-text {
        align-items: center;
    }
    .audiovisual-list {
        align-items: center;
        text-align: left;
    }
}

/* 3. Visit Studio */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.check-list {
  list-style: none;
  margin-top: 2rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.icon-small {
  width: 20px;
  height: 20px;
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
}

/* 4. Problem */
#problema {
  background-image: linear-gradient(to right, rgba(11, 17, 33, 0.95) 30%, rgba(11, 17, 33, 0.6) 60%, transparent 100%), url('imagens/est2.jpg');
  background-size: cover;
  background-position: center right;
  text-align: left;
  display: flex;
  align-items: center;
  min-height: 70vh;
}

.problem-content {
  max-width: 700px;
  margin-left: 0 !important;
  margin-right: auto !important;
  padding-left: clamp(1rem, 5vw, 4rem);
}

.problem p {
  margin-bottom: 1.5rem;
}

/* 5. Applications */
.section-header {
  margin-bottom: 4rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.app-card {
  padding: 2rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-start;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border-left: 4px solid transparent !important;
}

.app-card:hover {
  transform: translateX(10px);
  border-left-color: var(--accent-primary) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06) !important;
}

.app-card .icon {
  width: 36px;
  height: 36px;
  transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  z-index: 0;
  transform-origin: center;
}

.app-card:hover .icon {
  transform: scale(8) translate(15px, -5px) rotate(15deg);
  opacity: 0.05; /* light watermark for white cards */
}

.app-card h3,
.app-card p {
  position: relative;
  z-index: 2;
  margin: 0;
}

/* 6. Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.benefit-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefit-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08); /* slightly brighter */
  border-color: rgba(255, 90, 38, 0.6); /* stronger orange border */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 50px rgba(255, 90, 38, 0.35); /* stronger outer glow */
}

.benefit-item:hover::before {
  transform: scaleX(1);
}

.benefit-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 90, 38, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255, 90, 38, 0.2);
}

.benefit-icon-wrapper .icon {
  width: 32px;
  height: 32px;
  color: var(--accent-primary);
}

.benefit-item h3 {
  font-size: 1.4rem;
  margin-bottom: 0;
}

/* 7. How it Works */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 992px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

.step-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-primary);
  opacity: 0.1;
  margin-bottom: -1rem;
  line-height: 1;
}

.section-dark .step-num {
    color: var(--accent-primary);
    opacity: 0.15;
}

.process-card {
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.process-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05) !important;
}

.process-card h3 {
  margin-bottom: 1.2rem;
}

.process-card p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.process-card p:last-child {
    margin-bottom: 0;
}

/* 8. Studio Infra */
/* 8. Studio Infra */
.infra-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* 8. Studio Carousel */
.infra-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5; /* Aspecto vertical conforme solicitado */
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: #000;
}

.carousel-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

.carousel-slide {
    position: relative;
    width: 33.333333%;
    height: 100%;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-nav {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--accent-primary);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--accent-primary);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0; /* Hidden by default, show on hover */
}

.infra-carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

@media (max-width: 768px) {
    .carousel-btn {
        opacity: 0.8;
        width: 40px;
        height: 40px;
    }
}

.infra-list {
  list-style: none;
  margin-top: 2rem;
}

.infra-list li {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.infra-list li div {
  line-height: 1.3;
}

.infra-list strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 0.1rem;
}

/* 10. Content Flow */
.flow-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.flow-start {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.glass-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 0 30px rgba(255, 90, 38, 0.2);
}

.flow-line-vertical {
  width: 2px;
  height: 40px;
  background: var(--accent-primary);
  margin: 0;
}

.flow-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
  position: relative;
}

.flow-results::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 12.5%; /* Center of first col */
  right: 12.5%; /* Center of last col */
  height: 2px;
  background: var(--accent-primary);
}

.flow-item {
  position: relative;
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid var(--border-color);
  margin-top: 20px;
}

.flow-item::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: var(--accent-primary);
}

.flow-item h4 {
  margin-top: 1rem;
  font-weight: 500;
}

/* 10. Flow Animation */
.flow-chart {
  position: relative; /* Ensure relative for overlay positioning */
}

.flow-animation-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}

.flow-particle {
  fill: #FF5A26;
  filter: blur(1px) drop-shadow(0 0 4px #FF5A26) drop-shadow(0 0 10px rgba(255, 90, 38, 0.6));
}

.flow-particle-core {
  fill: #fff;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .flow-animation-overlay {
    display: none;
  }
}

/* 11. Differentials */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.diff-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border-left: 4px solid transparent;
}

.diff-card:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--accent-primary);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.diff-card .icon {
  width: 36px;
  height: 36px;
  margin-bottom: 0.5rem;
  transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  z-index: 0;
  transform-origin: center;
}

.diff-card:hover .icon {
  transform: scale(8) translate(15px, -5px) rotate(15deg);
  opacity: 0.15;
}

.diff-card p {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* 12. Social Proof & Logo Carousel */
.logos-carousel {
  overflow: hidden;
  padding: 1.5rem 0;
  white-space: nowrap;
  position: relative;
  display: flex;
}

/* Gradient shadow fading edges */
.logos-carousel::before,
.logos-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  width: 15vw;
  max-width: 200px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.logos-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-darker) 0%, transparent 100%);
}

.logos-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-darker) 0%, transparent 100%);
}

.logos-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  animation: scrollMarquee 40s linear infinite;
  padding-right: 4rem; /* Matching the gap to keep identical spacing across loop */
}

/* Pause animation on hover for better accessibility and user engagement */
.logos-carousel:hover .logos-track {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.partner-logo {
  max-height: 48px;
  max-width: 200px;
  flex-shrink: 0;
  object-fit: contain;
  
  /* 
   * Unified styling for all image types (PNGs with transparency, JPEGs with white bg, WEBPs).
   * Making them semi-transparent white allows them to blend nicely into the dark theme.
   * `mix-blend-mode: screen` + `invert(1)` handles images with white backgrounds (black becomes transparent).
   */
  filter: grayscale(100%) brightness(0) invert(1) opacity(0.5);
  mix-blend-mode: screen;
  transition: all 0.4s ease;
  cursor: pointer;
}

.partner-logo:hover {
  filter: grayscale(0%) opacity(1) brightness(1);
  mix-blend-mode: normal;
}

/* 12. Social Proof Layout */
.social-proof-composite {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  max-width: 1000px;
  margin: 5rem auto 0;
  padding-bottom: 3rem;
}

.image-main {
  width: 70%;
  z-index: 1;
}

.image-side {
  width: 35%; /* Increased from 28% */
  position: absolute;
  right: 2%; /* Adjusted position */
  bottom: -5%;
  z-index: 5;
  transform: rotate(5deg) translateY(20px);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-proof-image-wrapper {
  position: relative;
  background: linear-gradient(135deg, var(--accent-primary) 0%, #ff8a65 30%, var(--accent-primary) 70%, #ff8a65 100%);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: 0 25px 60px -15px rgba(255, 90, 38, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-side.social-proof-image-wrapper {
    box-shadow: 0 40px 80px -10px rgba(0, 0, 0, 0.7);
    border-radius: 40px;
}

.image-side .social-proof-image {
    border-radius: 36px;
}

.social-proof-image-wrapper:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 35px 80px -15px rgba(255, 90, 38, 0.6);
  z-index: 10;
}

@media (max-width: 768px) {
  .social-proof-image-wrapper:hover {
    transform: translateY(-5px) scale(1.01);
  }
}

.image-side:hover {
  transform: rotate(2deg) translateY(-40px) scale(1.3);
  z-index: 25; /* Bring to front on hover */
}

.social-proof-image-wrapper::after {
  content: '';
  position: absolute;
  top: -2px; 
  left: -2px; 
  right: -2px; 
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent-primary), transparent, var(--accent-primary));
  border-radius: calc(var(--radius-lg) + 2px);
  z-index: -1;
  opacity: 0.5;
  filter: blur(10px);
}

.social-proof-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-lg) - 4px);
  border: 2px solid var(--bg-blue-2);
  object-fit: cover;
}

@media (max-width: 768px) {
  .social-proof-composite {
    flex-direction: column;
    padding-bottom: 0;
    gap: 2.5rem;
  }
  .image-main, .image-side {
    width: 90%;
    position: static;
    transform: none;
    margin: 0 auto;
  }
  .image-side.social-proof-image-wrapper {
    border-radius: var(--radius-lg);
  }
  .image-side .social-proof-image {
    border-radius: calc(var(--radius-lg) - 4px);
  }
}

/* 9. Location */
.map-placeholder {
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer Container */
.site-footer {
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.legal-links a {
  color: inherit;
  text-decoration: none;
}

.legal-links a:hover {
  color: var(--text-main);
}

/* Responsive Design */
@media (max-width: 992px) {
  .app-grid, .benefits-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .header, .hero, .social-proof, .final-cta, .section-padding {
    width: 100%;
    margin: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 1.5rem;
    box-sizing: border-box;
  }

  /* Full-width components that break the container padding */
  .hero-media-wrapper, 
  .logos-carousel, 
  .social-proof-composite,
  .map-container {
    width: calc(100% + 3rem) !important;
    margin-left: -1.5rem !important;
    margin-right: -1.5rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .site-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    background: transparent;
  }

  .site-nav .container {
    display: flex;
    justify-content: flex-start;
  }

  .brand-logo {
    height: 48px;
    width: auto;
  }

  .hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    text-align: right;
    padding: 0;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
  }

  .hero h1 {
    line-height: 1.1;
    margin-bottom: 1rem;
    text-align: right;
  }

  .hero .subheadline {
    margin-bottom: 2rem;
    font-size: 1rem;
    text-align: right;
    max-width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
  }

  .hero .hero-buttons {
    align-items: flex-end;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }

  .visit-grid, .benefits-grid, .process-grid, .infra-grid, .audiovisual-layout, .diff-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .infra-grid .infra-image {
    order: -1;
  }
  
  .flow-results {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .flow-results::before, .flow-item::before {
    display: none;
  }

  .app-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .audiovisual-list li {
    font-size: 1rem;
    gap: 1rem;
  }

  .hero .badge {
    margin-bottom: 1rem;
    font-size: 0.7rem;
    align-self: flex-end;
  }

  /* Logos Carousel Mobile */
  .logos-track {
    gap: 1.5rem;
    padding-right: 1.5rem;
    animation-duration: 15s;
  }
  .partner-logo {
    max-height: 30px;
  }

  .section-padding {
    padding: 3.5rem 0;
  }

  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
  }
  
  .whatsapp-tooltip {
    display: none;
  }
}

/* Final CTA Section Text Colors */
.final-cta h2, 
.final-cta p,
.contact-info,
.contact-info p {
  color: #ffffff !important;
}

.contact-info a {
  color: #000000 !important;
  text-decoration: underline;
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
  width: 35px;
  height: 35px;
  fill: currentColor;
}

.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  top: 50%;
  transform: translateY(-50%) translateX(20px);
  background: white;
  color: #1A1D20;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  width: max-content;
  max-width: 250px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: all 0.3s ease;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent white;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}
