/* 
======================================================
LatamSolutions - Premium CSS
======================================================
*/

:root {
    /* Color Palette - Cyber Dark Theme */
    --bg-color: #0b0c10;
    --surface-color: #1a1c23;
    --border-color: rgba(255, 255, 255, 0.1);
    
    --text-primary: #f8f9fa;
    --text-secondary: #adb5bd;
    
    --accent-primary: #8a2be2; /* Neon Purple */
    --accent-secondary: #00d2ff; /* Neon Blue */
    
    --gradient-primary: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    --gradient-text: linear-gradient(to right, #e0c3fc 0%, #8ec5fc 100%);
    
    /* Utilities */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Glassmorphism */
    --glass-bg: rgba(26, 28, 35, 0.4);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    position: relative;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

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

/* Layout & Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-sm {
    max-width: 900px;
}

section {
    padding: 4rem 0;
    position: relative;
    z-index: 10;
}

.mt-md { margin-top: 2rem; }
.mt-xl { margin-top: 4rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.6);
}

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

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.125rem; }

/* Background Animated Glows */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.bg-glow-1 {
    top: -10%; left: -10%;
    width: 50vw; height: 50vw;
    background: var(--accent-primary);
    opacity: 0.15;
}

.bg-glow-2 {
    top: 40%; right: -20%;
    width: 60vw; height: 60vw;
    background: var(--accent-secondary);
    opacity: 0.1;
}

.bg-glow-3 {
    bottom: -10%; left: 20%;
    width: 40vw; height: 40vw;
    background: var(--accent-primary);
    opacity: 0.1;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(11, 12, 16, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

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

.logo img {
    height: 40px;
    border-radius: 8px;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px; /* Offset for nav */
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    width: 100%;
    border-radius: var(--border-radius-lg);
    z-index: 2;
    position: relative;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.glass-orb {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--gradient-primary);
    filter: blur(40px);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.6;
}

/* Marquee Section */
.marquee-section {
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.marquee-container {
    display: flex;
    white-space: nowrap;
    width: max-content;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.dot {
    color: var(--accent-primary);
}

.marquee-1 {
    animation: scroll-left 40s linear infinite;
}

.marquee-2 {
    animation: scroll-right 35s linear infinite;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Features */
.section-title {
    font-size: 2.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
}

.feature-card h3 {
    font-size: 1.25rem;
}

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

/* Results Section */
.results-intro {
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

/* Bento Box Results */
.metrics-bento-box {
    margin: 0 auto;
    max-width: 900px;
    background: rgba(20, 22, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    overflow: visible;
}

.bento-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-secondary);
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.bento-item {
    padding: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: background 0.3s ease;
}

.bento-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.bento-item:nth-child(even) {
    border-right: none;
}

.highlight-item {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(135deg, rgba(138,43,226,0.05) 0%, transparent 100%);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.bento-role {
    font-weight: 600;
    color: var(--text-secondary);
}

.bento-flag {
    font-family: 'Segoe UI Emoji', sans-serif;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
}

.bento-amount {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.bento-amount .currency {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.bento-chart {
    height: 160px;
    width: 100%;
    margin-top: 0.5rem;
    overflow: visible;
}

.bento-chart svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.results-closing {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Coverage Section */
.coverage-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.coverage-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.coverage-list li {
    padding: 1.5rem;
    border-left: 4px solid var(--accent-primary);
}

.coverage-region {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.coverage-countries {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.coverage-image {
    width: 100%;
    border-radius: var(--border-radius-lg);
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.process-card {
    padding: 2.5rem;
    position: relative;
    text-align: center;
}

.process-step {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

/* Final CTA */
.cta-box {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(26,28,35,0.7) 0%, rgba(138,43,226,0.1) 100%);
    border: 1px solid rgba(138,43,226,0.2);
}

.pulse-anim {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(138,43,226, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(138,43,226, 0); }
    100% { box-shadow: 0 0 0 0 rgba(138,43,226, 0); }
}

/* Floating Social Badges */
.floating-socials {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.social-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 12px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.channel-badge {
    background-color: #2b2d31;
}

.bot-badge {
    background-color: #2ea5e8;
}

.tg-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .coverage-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 2.5rem auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        margin-top: 3rem;
    }
    
    .coverage-image-wrapper {
        order: -1;
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile behavior, just hide nav links and show CTA or keep them if small */
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-item, .bento-item:nth-child(even), .highlight-item {
        border-right: none;
        grid-column: 1 / -1;
    }
    .highlight-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
