/* 
  GrowFaster Premium Dark Mode Styles 
*/

:root {
    /* Colors */
    --bg-dark: #0B0D12;
    --bg-surface: #13161F;
    --bg-surface-elevated: #1D212F;

    /* Text: WCAG AA – contraste ≥4.5:1 no fundo escuro (#0B0D12) */
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-muted: #7C8BA3;

    --accent-teal: #239588;
    --accent-cyan: #2c8fa6;
    --accent-blue: #4682f3;

    --gradient-primary: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-blue) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(35, 149, 136, 0.4) 0%, rgba(70, 130, 243, 0.4) 100%);

    /* Typography */
    --font-heading: 'Lexend', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Borders & Effects */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --border-subtle: 1px solid rgba(255, 255, 255, 0.05);
    --border-glass: 1px solid rgba(255, 255, 255, 0.1);

    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 24px rgba(70, 130, 243, 0.2);

    /* Elements */
    --bg-navbar: rgba(11, 13, 18, 0.8);
    --btn-secondary-bg: rgba(255, 255, 255, 0.05);
    --btn-secondary-hover: rgba(255, 255, 255, 0.1);
    --btn-secondary-text: #FFFFFF;
    --grid-color: rgba(255, 255, 255, 0.03);
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-hover-bg: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(19, 22, 31, 0.6);
    --timeline-marker-bg: var(--bg-surface-elevated);

    /* Form Fields */
    --form-bg: rgba(11, 13, 18, 0.6);
    --form-border: rgba(255, 255, 255, 0.1);
    --form-text: #FFFFFF;
    --form-placeholder: rgba(255, 255, 255, 0.5);

    /* Footer */
    --footer-bg: #050608;
    --footer-bg-image: none;
    --footer-bottom-bg: transparent;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Overrides */
:root[data-theme="light"] {
    /* Colors */
    --bg-dark: #F8FAFC;
    /* Soft almost-white background */
    --bg-surface: #FFFFFF;
    /* Clean white for main sections */
    --bg-surface-elevated: #F1F5F9;
    /* Slight gray for elevated cards */

    /* WCAG AA: contraste suficiente no fundo claro */
    --text-primary: #0F172A;
    --text-secondary: #334155;
    /* Slate 700 – ≥4.5:1 em fundo branco */
    --text-muted: #64748B;
    /* Slate 500 – legível para texto secundário */

    /* Keep accents vibrants */
    --accent-teal: #14B8A6;
    /* Slightly brighter teal for light mode */
    --accent-cyan: #06B6D4;
    --accent-blue: #3B82F6;

    --gradient-glow: linear-gradient(135deg, rgba(20, 184, 166, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);

    /* Borders & Effects */
    --border-subtle: 1px solid rgba(15, 23, 42, 0.05);
    --border-glass: 1px solid rgba(15, 23, 42, 0.1);

    --shadow-glass: 0 8px 32px rgba(15, 23, 42, 0.08);
    /* slightly stronger shadow for light mode cards */
    --shadow-glow: 0 0 24px rgba(59, 130, 246, 0.15);

    /* Elements */
    --bg-navbar: rgba(255, 255, 255, 0.95);
    --btn-secondary-bg: rgba(15, 23, 42, 0.05);
    --btn-secondary-hover: rgba(15, 23, 42, 0.1);
    --btn-secondary-text: var(--text-primary);
    --grid-color: rgba(15, 23, 42, 0.04);
    --card-bg: #FFFFFF;
    --card-hover-bg: #F8FAFC;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --timeline-marker-bg: #FFFFFF;

    /* Form Fields Light Mode */
    --form-bg: rgba(15, 23, 42, 0.05);
    --form-border: rgba(15, 23, 42, 0.1);
    --form-text: var(--text-primary);
    --form-placeholder: rgba(15, 23, 42, 0.5);

    /* Footer Light Mode */
    --footer-bg: transparent;
    --footer-bg-image: linear-gradient(var(--grid-color) 1px, transparent 1px), linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    --footer-bottom-bg: #050608;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Focus visible (WCAG 2.4.7) – indicador de foco para teclado, sem anel em clique rato */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.lang-select:focus-visible,
.control-btn:focus-visible,
.menu-toggle:focus-visible,
.theme-switcher:focus-visible {
    outline: 2px solid var(--accent-teal);
    outline-offset: 3px;
}

/* Inputs e select: foco já tem border-color no .form-group input:focus */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible,
.form-group-textarea:focus-visible {
    outline: 2px solid var(--accent-teal);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
    width: 100%;
    max-width: 100%;
}

/* Typography Base */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-secondary);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Layout Classes */
main {
    overflow-x: hidden;
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

section {
    padding: var(--space-xl) 0;
    position: relative;
}

/* Utilities */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    letter-spacing: 0.02em;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(35, 149, 136, 0.2);
    position: relative;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-teal) 100%);
    z-index: -1;
    opacity: 0;
    transition: var(--transition-smooth);
}

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

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border: var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--btn-secondary-hover);
    transform: translateY(-2px);
    color: var(--text-primary);
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
}

/* Navigation - minimalista, elementos verticalmente centralizados */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 14px 0;
    transition: var(--transition-smooth);
    background: var(--bg-navbar);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.nav-container {
    display: flex;
    align-items: center;
    min-height: 44px;
    width: 100%;
    max-width: 100%;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    box-sizing: border-box;
}

.nav-left,
.nav-center,
.nav-right {
    display: flex;
    align-items: center;
}

.nav-left {
    flex-shrink: 0;
}

.nav-center {
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.nav-right {
    gap: var(--space-sm);
    margin-left: auto;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    line-height: 0;
}

.logo img {
    height: 32px;
    width: auto;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-cyan);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Oculto enquanto a seção Success Cases não estiver ativa; remover .is-hidden no HTML para exibir */
.nav-links a.is-hidden {
    display: none !important;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    min-height: 1.5rem;
}

.lang-switcher-display {
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-select {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.lang-select option {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
}

.lang-switcher:hover .lang-switcher-display,
.lang-select:hover {
    color: var(--text-primary);
}

/* Cinematic Theme Switcher - GrowFaster identity (colado na borda direita) */
.theme-switcher-wrap {
    margin-left: 0.5rem;
    margin-right: 0;
    display: flex;
    align-items: center;
}

.theme-switcher {
    position: relative;
    display: inline-block;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    font-size: 0;
    line-height: 0;
    -webkit-tap-highlight-color: transparent;
}

.theme-switcher__track {
    position: relative;
    display: flex;
    align-items: center;
    height: 34px;
    width: 60px;
    border-radius: 9999px;
    padding: 4px;
    transition: box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    background: rgba(29, 33, 47, 0.9);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

:root[data-theme="light"] .theme-switcher__track {
    background: rgba(241, 245, 249, 0.95);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.theme-switcher__groove {
    position: absolute;
    inset: 2px;
    border-radius: 9999px;
    pointer-events: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

:root[data-theme="light"] .theme-switcher__groove {
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.theme-switcher__icons {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    pointer-events: none;
}

/* Track: mostra só o ícone do estado inativo no lado oposto ao thumb */
.theme-switcher__icons .ph-sun {
    color: rgba(251, 191, 36, 0.9);
    font-size: 12px;
    order: 2; /* no modo escuro fica à direita (lado “light”) */
}

.theme-switcher__icons .ph-moon {
    color: rgba(148, 163, 184, 0.9);
    font-size: 12px;
    order: 1; /* no modo claro fica à esquerda (lado “dark”) */
}

/* Modo escuro: só sol visível no track (lado direito); lua fica só no thumb */
.theme-switcher__icons .ph-moon {
    opacity: 1;
    visibility: visible;
}

:root:not([data-theme="light"]) .theme-switcher__icons .ph-moon {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.theme-switcher__icons .ph-sun {
    opacity: 1;
    visibility: visible;
}

:root[data-theme="light"] .theme-switcher__icons .ph-sun {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

:root[data-theme="light"] .theme-switcher__icons .ph-moon {
    color: var(--text-muted);
}

.theme-switcher__thumb {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateX(0);
    background: linear-gradient(145deg, #475569 0%, #334155 50%, #1e293b 100%);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

:root[data-theme="light"] .theme-switcher__thumb {
    transform: translateX(26px);
    background: linear-gradient(145deg, #ffffff 0%, #fefefe 50%, #f8fafc 100%);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Thumb: só um ícone visível — lua no modo escuro, sol no claro */
.theme-switcher__thumb-icon {
    position: absolute;
    font-size: 13px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.theme-switcher__thumb-icon--dark {
    color: rgba(253, 224, 71, 0.95);
    opacity: 1;
    visibility: visible;
}

.theme-switcher__thumb-icon--light {
    color: var(--accent-teal);
    opacity: 0;
    visibility: hidden;
}

:root[data-theme="light"] .theme-switcher__thumb-icon--dark {
    opacity: 0;
    visibility: hidden;
}

:root[data-theme="light"] .theme-switcher__thumb-icon--light {
    opacity: 1;
    visibility: visible;
}

.theme-switcher:active .theme-switcher__track {
    transform: scale(0.98);
}

.theme-switcher__track {
    transition: transform 0.15s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

/* Particle burst on toggle */
.theme-switcher__particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 9999px;
    overflow: visible;
}

.theme-switcher__particles .particle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    animation: particle-burst 0.6s ease-out forwards;
    pointer-events: none;
}

/* Burst to light: teal (GrowFaster) */
.theme-switcher__particles.burst-to-light .particle {
    background: radial-gradient(circle, rgba(35, 149, 136, 0.6) 0%, rgba(35, 149, 136, 0) 70%);
}

/* Burst to dark: cyan (GrowFaster) */
.theme-switcher__particles.burst-to-dark .particle {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.5) 0%, rgba(6, 182, 212, 0) 70%);
}

@keyframes particle-burst {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    100% {
        transform: scale(6);
        opacity: 0;
    }
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.35rem;
    cursor: pointer;
    padding: 6px;
    line-height: 0;
}

/* Animations Trigger Classes */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    overflow: hidden;
    position: relative;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.glow-1 {
    top: -10%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(70, 130, 243, 0.3) 0%, rgba(11, 13, 18, 0) 70%);
}

.glow-2 {
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(35, 149, 136, 0.2) 0%, rgba(11, 13, 18, 0) 70%);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-grid {
    display: grid;
    /* Coluna do texto mais larga para o título quebrar em 2–3 linhas em vez de muitas */
    grid-template-columns: minmax(0, min(580px, 50vw)) 1fr;
    gap: var(--space-xl);
    align-items: center;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: min(580px, 50vw);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(35, 149, 136, 0.1);
    border: 1px solid rgba(35, 149, 136, 0.3);
    border-radius: 100px;
    margin-bottom: var(--space-sm);
}

.badge-icon {
    color: var(--accent-teal);
    font-size: 1.1rem;
    display: flex;
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent-teal);
}

.hero-title {
    margin-bottom: var(--space-xs);
    max-width: 100%;
    line-height: 1.2;
    font-size: clamp(1.75rem, 3.8vw, 3.25rem);
}

/* Gooey text morphing – mantém fonte e .text-gradient do hero */
.gooey-hero-wrap {
    display: inline-block;
    position: relative;
    min-width: 2ch;
    vertical-align: baseline;
}

.gooey-hero-inner {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    min-height: 1.2em;
}

.gooey-hero-wrap .gooey-text {
    white-space: nowrap;
    user-select: none;
    font: inherit;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: inherit;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Sizer: ocupa espaço para o layout (invisível); textos animados ficam em cima */
.gooey-hero-wrap .gooey-sizer {
    visibility: hidden;
    display: inline-block;
    position: relative;
}

.gooey-hero-wrap .gooey-text:not(.gooey-sizer) {
    position: absolute;
    left: 0;
    top: 0;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0;
}

.hero-visual {
    position: absolute;
    right: 2.5rem;
    top: 52vh;
    transform: translateY(-50%);
    width: min(46.2vw, 616px);
    height: min(46.2vw, 616px);
    min-width: 396px;
    min-height: 396px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    pointer-events: auto;
    cursor: grab;
    opacity: 0.8;
}

.globe-canvas {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1 / 1;
    cursor: grab;
    pointer-events: auto;
}

.hero-visual:active,
.globe-canvas:active {
    cursor: grabbing;
}

.hero-ctas {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

/* Global Section Styles */
.section-header {
    margin-bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.section-subtitle {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-cyan);
}

.section-title {
    margin-bottom: var(--space-xs);
}

.section-description {
    max-width: 700px;
    font-size: 1rem;
}

/* Evita texto saindo da tela em todas as seções (mobile), sem quebrar no meio da palavra */
@media (max-width: 768px) {
    .section-title,
    .section-description {
        overflow-wrap: normal;
        word-break: normal;
        max-width: 100%;
    }
}

/* Vision Section */
.vision {
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-surface));
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: var(--space-md);
}

.vision-card {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(70, 130, 243, 0.3);
}

.vision-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-teal);
    background: rgba(35, 149, 136, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.vision-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.vision-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.vision-card h3,
.vision-card p {
    overflow-wrap: normal;
    word-break: normal;
}

/* Services Section */
.services {
    background-color: var(--bg-surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    max-width: 900px;
    margin: 0 auto;
}

.service-card {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--card-bg);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
    min-width: 0;
}

.service-card:hover {
    background: var(--card-hover-bg);
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.service-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 14px rgba(35, 149, 136, 0.3);
}

.service-content h3 {
    margin-bottom: var(--space-xs);
    font-size: 1.25rem;
}

.service-content p {
    font-size: 0.95rem;
}

.service-content h3,
.service-content p {
    overflow-wrap: normal;
    word-break: normal;
}

/* Playbook Section */
.playbook {
    background: linear-gradient(to top, var(--bg-dark), var(--bg-surface));
}

.timeline {
    position: relative;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: var(--space-md) 0;
}

/* Clearfix for the floated timeline items */
.timeline::after {
    content: "";
    display: table;
    clear: both;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    width: 2px;
    background: rgba(35, 149, 136, 0.2);
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: var(--space-lg);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--timeline-marker-bg);
    border: 2px solid var(--accent-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-teal);
    font-size: 1.5rem;
    box-shadow: 0 0 15px rgba(35, 149, 136, 0.4);
    z-index: 1;
}

.timeline-marker i {
    line-height: 0;
    /* Fixes alignment for Phosphor icons inside flex center */
    margin: 0;
    padding: 0;
}

.timeline-content {
    padding: var(--space-md);
    position: relative;
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-cyan);
}

.timeline-content h3 {
    color: var(--accent-teal);
    margin-bottom: var(--space-xs);
    font-size: 1.25rem;
}

.timeline-content p {
    font-size: 1rem;
    margin: 0;
}

.timeline-content h3,
.timeline-content p {
    overflow-wrap: normal;
    word-break: normal;
}

@media (min-width: 768px) {
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-item {
        padding-left: 0;
        width: 50%;
    }

    .timeline-item:nth-child(odd) {
        float: left;
        padding-right: 40px;
        clear: both;
        text-align: right;
    }

    .timeline-item:nth-child(even) {
        float: right;
        padding-left: 40px;
        clear: both;
    }

    .timeline-item:nth-child(odd) .timeline-marker {
        left: 100%;
        transform: translateX(-50%);
    }

    .timeline-item:nth-child(even) .timeline-marker {
        left: 0;
        transform: translateX(-50%);
    }

    .timeline-item::after {
        content: "";
        display: table;
        clear: both;
    }
}

/* Partnership Section */
.partnership {
    background-color: var(--bg-surface-elevated);
}

.partnership-content {
    max-width: 800px;
    margin: 0 auto;
}

.partnership-content p {
    overflow-wrap: normal;
    word-break: normal;
}

.partnership-card {
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.partnership-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.partnership-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(70, 130, 243, 0.3);
}

.partnership-card:hover::before {
    transform: scaleX(1);
}

.partnership-card h3 {
    margin-bottom: 1.25rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.05rem;
    min-width: 0;
}

.benefit-item span {
    overflow-wrap: normal;
    word-break: normal;
}

.benefit-item i {
    font-size: 1.5rem;
    margin-top: 2px;
}

.commitment-blocks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.commitment-card {
    position: relative;
    padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) + 6px);
    border-radius: var(--radius-md);
    text-align: left;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.commitment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(70, 130, 243, 0.3);
}

.commitment-card__bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 0;
    width: 6px;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    transition: var(--transition-smooth);
}

.commitment-card:hover .commitment-card__bar {
    height: 100%;
}

.commitment-card--our .commitment-card__bar { background: var(--accent-teal); }
.commitment-card--your .commitment-card__bar { background: #4682f3; }

.commitment-card__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.commitment-card--our .commitment-card__icon { color: var(--accent-teal); }
.commitment-card--your .commitment-card__icon { color: #4682f3; }

.commitment-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.commitment-card__list li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

.commitment-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.commitment-card--our .commitment-card__list li::before { background: var(--accent-teal); }
.commitment-card--your .commitment-card__list li::before { background: #4682f3; }

@media (max-width: 768px) {
    .commitment-blocks {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

/* Success Cases Section (Animated) */
.success {
    background-color: var(--bg-surface);
    /* Remove overflow: hidden so the rotated 3D cards aren't clipped */
}

.animated-cases {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    max-width: 1000px;
    /* slightly wider to fit the scattered cards */
    margin: 0 auto;
    padding: var(--space-lg) 0;
    min-width: 0;
}

@media (min-width: 768px) {
    .animated-cases {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

/* Image Stack */
.cases-images-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 400px;
    perspective: 1000px;
    /* Important for 3D rotation */
    padding: 30px;
    /* Extra room so scattered cards are fully visible */
    overflow: visible;
    /* CRITICAL: ensures 3D cards aren't clipped */
}

.cases-images-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.case-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: var(--border-glass);
    box-shadow: var(--shadow-glass);
    transform-origin: center center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease, z-index 0s;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.case-img.active {
    opacity: 1;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.case-img.prev {
    opacity: 0.7;
    z-index: 5;
    /* Transformation is completely handled via JS inline styles relative to rotation */
}

/* Content Area */
.cases-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 300px;
    min-width: 0;
}

.cases-dynamic-content {
    /* For the exit/enter fade animation */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cases-dynamic-content.fading-out {
    opacity: 0;
    transform: translateY(-20px);
}

.cases-dynamic-content.fading-in {
    opacity: 1;
    transform: translateY(0);
}

/* Framer-style testimonial: avatar, name, role, company, quote */
.case-testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.case-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.case-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.case-person-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.case-person-role {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-cyan);
    margin: 0;
}

.case-company {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.case-quote {
    margin: 0 0 var(--space-sm);
    padding-left: 1rem;
    border-left: 4px solid var(--accent-teal);
}

.case-quote .case-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    overflow-wrap: normal;
    word-break: normal;
    line-height: 1.7;
    margin: 0;
}

/* Word Reveal Animation */
.word {
    display: inline-block;
    opacity: 0;
    filter: blur(10px);
    transform: translateY(5px);
    animation: revealWord 0.4s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes revealWord {
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

/* Controls */
.cases-controls {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    position: relative;
    z-index: 20;
}

.control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--btn-secondary-bg);
    border: var(--border-glass);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: var(--btn-secondary-hover);
    color: var(--accent-cyan);
}

#casePrevBtn:hover i {
    transform: rotate(-15deg);
}

#caseNextBtn:hover i {
    transform: rotate(15deg);
}

.control-btn i {
    transition: transform 0.3s ease;
}

/* --------------------------------------------------------------------------
   Testimonials Section
   -------------------------------------------------------------------------- */
.testimonials {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

/* Ocultar seção de depoimentos (código mantido para uso futuro); remover .is-hidden no HTML para exibir */
.testimonials.is-hidden {
    display: none !important;
}

.testimonials-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the card horizontally */
    gap: var(--space-md);
}

.testimonial-card {
    display: grid;
    /* 2/3 text, 1/3 image roughly equates to 2fr 1fr */
    grid-template-columns: 2fr 1fr;
    background: #050505;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 340px; /* Reduced from 400px to match new, smaller aesthetic */
    max-width: 1000px; /* Limit the max width so it doesn't span overly wide */
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-left {
    padding: 2.5rem; /* Reduced padding from var(--space-lg) */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-md); /* Reduced gap to fit nicely in smaller card */
    color: #fff;
    transition: opacity 0.3s ease;
}

.testimonial-logo {
    display: flex;
    align-items: center;
}

.testimonial-quote {
    font-size: clamp(1.1rem, 1.8vw, 1.5rem); /* Further reduced for smaller card */
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.author-meta {
    display: flex;
    flex-direction: column;
}

.author-meta .author-name {
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 2px;
}

.author-meta .author-role {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.testimonial-right {
    position: relative;
    background: #111111;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-right::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(35, 149, 136, 0.15) 0%, transparent 70%);
    z-index: 1;
}

.testi-image-wrapper {
    position: relative;
    width: 100%; /* Make image span full width of the right container */
    height: 100%; /* Make image span full height of the right container */
    border-radius: 0; /* Remove borders since it fills the container directly */
    overflow: hidden;
    border: none;
    z-index: 2;
}

.testi-showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.testi-showcase-img.fading-out {
    opacity: 0;
    transform: scale(0.98);
}

.testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.testi-company-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    background: var(--btn-secondary-bg);
    padding: 0.4rem;
    border-radius: 100px;
    border: var(--border-glass);
    backdrop-filter: blur(10px);
}

.testi-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 8px 20px;
    border-radius: 100px;
}

.testi-tab.active {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(35, 149, 136, 0.2);
}

.testi-tab:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

:root[data-theme="light"] .testi-company-selector {
    background: rgba(15, 23, 42, 0.05);
}
:root[data-theme="light"] .testi-tab {
    color: var(--text-muted);
}
:root[data-theme="light"] .testi-tab:hover:not(.active) {
    color: var(--text-secondary);
    background: rgba(15, 23, 42, 0.08);
}
:root[data-theme="light"] .testi-tab.active {
    color: #ffffff;
}

.testi-controls {
    display: flex;
    gap: 0.5rem;
}

.control-btn-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--btn-secondary-bg);
    border: var(--border-glass);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

:root[data-theme="light"] .control-btn-small {
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.control-btn-small:hover {
    background: var(--btn-secondary-hover);
    color: var(--accent-cyan);
}

/* Footer & Contact Section */
.footer {
    background-color: var(--footer-bg);
    background-image: var(--footer-bg-image);
    background-size: 50px 50px;
    padding-top: var(--space-xl);
}

.footer-bottom-wrapper {
    background-color: var(--footer-bottom-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-info .logo img {
    height: 56px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1.25rem;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

.footer-contact-form {
    padding: var(--space-md);
}

.footer-contact-form h3 {
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-message {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.form-message--success {
    background: rgba(35, 149, 136, 0.15);
    color: var(--accent-teal);
    border: 1px solid rgba(35, 149, 136, 0.3);
}

.form-message--error {
    background: rgba(200, 80, 80, 0.15);
    color: var(--text-primary);
    border: 1px solid rgba(200, 80, 80, 0.3);
}

.form-message--coming-soon {
    background: var(--form-bg);
    color: var(--text-secondary);
    border: 1px solid var(--form-border);
}

.form-group input,
.form-group select,
.form-group textarea,
.form-group-textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--form-bg);
    border: 1px solid var(--form-border);
    border-radius: var(--radius-sm);
    color: var(--form-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
    box-sizing: border-box;
}

.form-group textarea,
.form-group-textarea {
    resize: vertical;
    min-height: 4.5rem;
    line-height: 1.5;
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.form-group-textarea::placeholder {
    color: var(--form-placeholder) !important;
}

/* Placeholder do textarea: mesmo cinza dos inputs (alguns navegadores exigem prefixo e fallback) */
.contact-form .form-group textarea::placeholder,
.contact-form .form-group-textarea::placeholder,
.footer-contact-form textarea::placeholder,
.footer-contact-form .form-group-textarea::placeholder {
    color: var(--form-placeholder, rgba(255, 255, 255, 0.5)) !important;
    opacity: 1 !important;
}
.contact-form .form-group textarea::-webkit-input-placeholder,
.contact-form .form-group-textarea::-webkit-input-placeholder,
.footer-contact-form textarea::-webkit-input-placeholder {
    color: var(--form-placeholder, rgba(255, 255, 255, 0.5)) !important;
    opacity: 1 !important;
}
.contact-form .form-group textarea::-moz-placeholder,
.contact-form .form-group-textarea::-moz-placeholder,
.footer-contact-form textarea::-moz-placeholder {
    color: var(--form-placeholder, rgba(255, 255, 255, 0.5)) !important;
    opacity: 1 !important;
}

/* Select com valor vazio (placeholder) em cinza como os outros */
.form-group select:invalid {
    color: var(--form-placeholder);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-group-textarea:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 2px rgba(35, 149, 136, 0.2);
}

.form-group select option {
    background: var(--bg-surface-elevated);
    color: var(--form-text);
}

.form-group select option[value=""] {
    color: var(--form-placeholder);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-credit {
    font-size: 0.75rem !important;
    opacity: 0.9;
    margin: 0;
    visibility: visible;
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.65) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-credit a:hover {
    color: var(--accent-teal) !important;
}

.footer-legal {
    display: flex;
    gap: var(--space-sm);
}

.footer-legal a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-legal a:hover {
    color: var(--accent-teal) !important;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-container {
        position: relative;
    }

    .nav-links {
        display: none;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-top: 0.5rem;
        padding: var(--space-md);
        gap: var(--space-sm);
        background: var(--bg-navbar);
        border-radius: var(--radius-md);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        z-index: 100;
        border: var(--border-subtle);
    }

    .nav-links.open a {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: var(--text-secondary);
    }

    .nav-links.open a:hover {
        color: var(--text-primary);
    }

    .nav-links.open a:last-of-type {
        border-bottom: none;
    }

    .nav-links.open .lang-switcher {
        padding-top: 0.5rem;
        margin-top: 0.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Modo claro no mobile: menu dropdown bem visível (fundo, borda e sombra fortes) */
    html[data-theme="light"] .nav-links.open {
        background: #FFFFFF !important;
        border: 1px solid rgba(15, 23, 42, 0.15) !important;
        box-shadow: 0 12px 48px rgba(15, 23, 42, 0.18) !important;
    }

    html[data-theme="light"] .nav-links.open a {
        border-bottom-color: rgba(15, 23, 42, 0.1) !important;
        color: #334155 !important;
    }

    html[data-theme="light"] .nav-links.open a:hover {
        color: #0F172A !important;
    }

    html[data-theme="light"] .nav-links.open .lang-switcher {
        border-top-color: rgba(15, 23, 42, 0.1) !important;
    }

    html[data-theme="light"] .nav-links.open .lang-switcher,
    html[data-theme="light"] .nav-links.open .lang-select {
        color: #334155 !important;
    }

    .nav-right .btn-primary {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .testimonial-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .testimonial-left {
        padding: var(--space-md);
    }
    
    .testimonial-quote {
        font-size: 1.5rem;
    }
    
    .testimonial-right {
        padding: var(--space-md);
        min-height: 300px;
    }
    
    .testi-image-wrapper {
        width: 100%;
        height: 100%;
    }
    
    .testimonials-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .testi-company-selector {
        justify-content: center;
        gap: 1rem;
    /* Modo claro: ícone do menu visível no header claro */
    html[data-theme="light"] .menu-toggle {
        color: #0F172A;
    }
}

@media (max-width: 768px) {
    /* Subtítulos das seções um pouco menores no mobile */
    .section-subtitle {
        font-size: 0.75rem;
        letter-spacing: 0.08em;
    }

    /* Texto descritivo das seções (ex.: "Oferecemos um soft landing...") menor no mobile */
    .section-description {
        font-size: 0.875rem;
    }

    /* Mais espaço entre título e descrição da seção */
    .section-header .section-title {
        margin-bottom: 0.5rem;
    }

    /* Partnership: textos "Zero Risco Inicial:", "Metas Compartilhadas:", etc. um pouco menores no mobile */
    .benefit-item {
        font-size: 0.9375rem;
    }
    .benefit-item i {
        font-size: 1.25rem;
    }

    /* Primeira seção: badge "Parceiros de Expansão Global" mais compacto */
    .hero-badge {
        padding: 5px 12px;
        gap: 6px;
        margin-bottom: var(--space-xs);
    }
    .hero-badge .badge-text {
        font-size: 0.75rem;
    }
    .hero-badge .badge-icon {
        font-size: 0.95rem;
    }

    /* Menos espaçamento entre seções no mobile */
    section {
        padding: var(--space-lg) 0;
    }

    /* Evitar quebra de linha em pontuações e em divisões silábicas */
    .hero-subtitle,
    .section-description,
    .testimonial-quote,
    .vision-card p,
    .service-content p,
    .partnership-content p,
    .author-meta .author-role {
        hanging-punctuation: first last;
        hyphens: none;
    }

    .hero {
        padding-top: 120px;
        flex-direction: column;
    }

    /* Evita scroll horizontal: glows menores e contidos */
    .glow-1 {
        width: min(280px, 75vw);
        height: min(280px, 75vw);
        right: 0;
    }

    .glow-2 {
        width: min(320px, 85vw);
        height: min(320px, 85vw);
        left: 0;
    }

    .hero-container {
        order: 1;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
        min-width: 0; /* permite o conteúdo encolher dentro do grid */
    }

    .hero-content {
        align-items: center;
        text-align: center;
        max-width: 100%;
        min-width: 0; /* evita que o texto empurre a largura para fora */
    }

    .hero-title {
        font-size: 1.65rem;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
        max-width: 100%;
    }

    /* Mobile: artigo “A” isolado na primeira linha */
    .hero-title [data-i18n="hero_title_prefix"]::after {
        content: '\A';
        white-space: pre;
    }

    /* Mobile: frase que alterna centralizada e mais próxima da linha abaixo */
    .gooey-hero-inner {
        justify-content: center;
        min-height: 1em;
        line-height: 1;
    }

    .gooey-hero-wrap .gooey-text:not(.gooey-sizer) {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Frase que alterna sempre em uma linha (Aterrissagem Perfeita, Rota Estratégica, etc.) */
    .gooey-hero-wrap .gooey-text {
        white-space: nowrap;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin: 0 auto;
        max-width: 100%;
        overflow-wrap: normal;
        word-break: normal;
    }

    .hero-visual {
        order: 2;
        position: relative;
        transform: none;
        top: auto;
        right: auto;
        width: 100%;
        height: auto;
        min-width: 0;
        min-height: 300px;
        aspect-ratio: 1 / 1;
        opacity: 1;
    }

    .globe-canvas {
        max-width: 400px;
        height: auto;
        cursor: default; /* sem arrastar no mobile */
    }

    .hero-visual {
        cursor: default;
    }

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

    .hero-ctas .btn {
        width: 100%;
    }

    /* Depoimentos no mobile: sem imagem, botões em linha única (carrossel escalável) */
    .testimonial-right,
    .testi-image-wrapper {
        display: none !important;
    }
    .testimonial-card {
        grid-template-columns: 1fr;
    }
    /* Depoimentos: nomes das empresas em cima, setas embaixo (evita escapar da tela) */
    .testimonials-nav {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1rem;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    .testi-company-selector {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0.5rem;
        padding: 0.35rem 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .testi-company-selector::-webkit-scrollbar {
        display: none;
    }
    .testi-tab {
        flex-shrink: 0;
        padding: 6px 16px;
        font-size: 0.875rem;
    }
    .testi-controls {
        flex-shrink: 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    /* Success: evita scroll horizontal pelos cards 3D */
    .cases-images-wrapper {
        overflow: hidden;
        padding: 15px;
    }

    .animated-cases {
        max-width: 100%;
    }

    /* Formulário: primeira linha em coluna no mobile */
    .form-row {
        flex-direction: column;
    }

    .footer-contact-form,
    .footer-info {
        min-width: 0;
    }

    .partnership-content {
        max-width: 100%;
    }

    .services-grid {
        max-width: 100%;
    }

    .timeline {
        max-width: 100%;
    }
}

/* Força placeholder do textarea do formulário no mesmo cinza dos outros campos (tema escuro) */
#contactForm textarea.form-group-textarea::placeholder,
#contactForm textarea.form-group-textarea::-webkit-input-placeholder,
#contactForm textarea.form-group-textarea::-moz-placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
}

/* Tema claro: placeholder cinza escuro */
html[data-theme="light"] #contactForm textarea.form-group-textarea::placeholder,
html[data-theme="light"] #contactForm textarea.form-group-textarea::-webkit-input-placeholder,
html[data-theme="light"] #contactForm textarea.form-group-textarea::-moz-placeholder {
    color: rgba(15, 23, 42, 0.5) !important;
    opacity: 1 !important;
}