/* ==========================================================================
   LaterCode Enterprise Landing Page Stylesheet
   Design System: Multinational High-End (Shadcn/UI & Vercel Vibes)
   Dual Theme System: Ultra-Dark Default & Crisp Premium Light Mode
   ========================================================================== */

/* Theme Variables */
:root[data-theme="dark"] {
    --bg-primary: #07070a;
    --bg-secondary: #0e0e16;
    --bg-card: rgba(18, 18, 30, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(139, 92, 246, 0.25);
    
    /* Core Palettes */
    --purple: #8b5cf6;
    --purple-glow: rgba(139, 92, 246, 0.35);
    --blue: #3b82f6;
    --blue-glow: rgba(59, 130, 246, 0.35);
    --green: #10b981;
    --green-glow: rgba(16, 185, 129, 0.35);
    --red: #f43f5e;
    --red-glow: rgba(244, 63, 94, 0.35);
    --gold: #f59e0b;
    --gold-glow: rgba(245, 158, 11, 0.35);
    
    /* Typography & Greys */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-dim: #475569;
    
    /* UI Specifics */
    --tab-list-bg: rgba(255, 255, 255, 0.03);
    --tab-trigger-active: rgba(255, 255, 255, 0.08);
    --table-header-bg: rgba(14, 14, 22, 0.6);
    --score-bg: rgba(255, 255, 255, 0.03);
    --glow-opacity: 0.15;
}

:root[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.85);
    --border-color: rgba(15, 23, 42, 0.08);
    --border-color-hover: rgba(139, 92, 246, 0.35);
    
    /* Core Palettes */
    --purple: #7c3aed;
    --purple-glow: rgba(124, 58, 237, 0.2);
    --blue: #2563eb;
    --blue-glow: rgba(37, 99, 235, 0.2);
    --green: #059669;
    --green-glow: rgba(5, 150, 105, 0.2);
    --red: #e11d48;
    --red-glow: rgba(225, 29, 72, 0.2);
    --gold: #d97706;
    --gold-glow: rgba(217, 119, 6, 0.2);
    
    /* Typography & Greys */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-dim: #94a3b8;
    
    /* UI Specifics */
    --tab-list-bg: rgba(15, 23, 42, 0.03);
    --tab-trigger-active: #ffffff;
    --table-header-bg: rgba(15, 23, 42, 0.04);
    --score-bg: rgba(15, 23, 42, 0.02);
    --glow-opacity: 0.04;
}

/* Base Setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease, color 0.4s ease;
}

body {
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--purple);
}

/* Typography Outfit & Plus Jakarta */
h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

p {
    color: var(--text-secondary);
}

/* Text Gradient Effect */
.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 20%, var(--purple) 60%, var(--blue) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 8rem 0;
    position: relative;
}

.bg-alt {
    background-color: var(--bg-secondary);
    transition: background-color 0.4s ease;
}

.text-center { text-align: center; }
.w-full { width: 100%; }
.mt-6 { margin-top: 2rem; }
.font-bold { font-weight: 700; }
.text-green { color: var(--green); }
.text-white { color: var(--text-primary); }

/* Ambient Glowing Backgrounds */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: var(--glow-opacity);
    z-index: -1;
    pointer-events: none;
    will-change: transform;
    transition: opacity 0.4s ease;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: var(--purple);
    top: -10%;
    right: -10%;
    animation: pulseGlow 12s infinite alternate ease-in-out;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: var(--blue);
    top: 30%;
    left: -10%;
    animation: pulseGlow 15s infinite alternate-reverse ease-in-out;
}

.glow-3 {
    width: 550px;
    height: 550px;
    background: var(--green);
    bottom: 10%;
    right: 15%;
    animation: pulseGlow 18s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -40px) scale(1.1); }
    100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    border-radius: 8px; /* Shadcn Style */
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

.btn-lg {
    padding: 1.1rem 2.2rem;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: var(--bg-secondary);
    border-color: var(--text-dim);
}

/* Main Header Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    padding: 0.9rem 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.45rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.logo-accent {
    color: var(--purple);
    font-weight: 900;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.3rem 0;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

/* Theme Toggle Button Style */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--border-color-hover);
}

/* Mobile Toggle Hamburger */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 4px;
    transition: var(--transition-fast);
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 99;
    padding: 7rem 2.5rem 3rem;
    transition: cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.mobile-drawer.active {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.mobile-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.mobile-link:hover {
    color: var(--text-primary);
    padding-left: 5px;
}

/* Hero Section */
.hero-section {
    padding-top: 11rem;
    padding-bottom: 7rem;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--tab-trigger-active);
    border: 1px solid var(--border-color);
    padding: 0.45rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--purple);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--purple);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.badge-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--purple);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 3.8rem;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

/* Word Rotator Animation */
.word-highlight {
    color: var(--purple);
    display: inline-block;
    position: relative;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

:root[data-theme="light"] .word-highlight {
    color: var(--text-primary);
}

.word-highlight.fade {
    opacity: 0;
    transform: translateY(10px);
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 2.2rem;
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 3.5rem;
}

/* Stats Row */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    max-width: 140px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: var(--border-color);
}

/* Console Graphic Box */
.hero-graphic {
    width: 100%;
}

.console-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Shadcn */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.console-box:hover {
    border-color: var(--border-color-hover);
    box-shadow: 0 25px 60px rgba(139, 92, 246, 0.06);
    transform: translateY(-5px);
}

.console-header {
    background: var(--bg-secondary);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.console-dots {
    display: flex;
    gap: 0.5rem;
}

.console-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.console-dots .red { background-color: var(--red); }
.console-dots .yellow { background-color: var(--gold); }
.console-dots .green { background-color: var(--green); }

.console-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: monospace;
    font-weight: 500;
}

.console-badge {
    font-size: 0.7rem;
    background: var(--tab-trigger-active);
    border: 1px solid var(--border-color);
    color: var(--purple);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-family: monospace;
}

.console-body {
    padding: 1.5rem;
    font-family: monospace;
    font-size: 0.88rem;
    line-height: 1.7;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: left;
}

.console-line {
    opacity: 0;
    transform: translateY(8px);
    animation: consoleReveal 0.4s forwards;
}

.console-line.text-dim { color: var(--text-dim); }
.console-line.text-blue { color: var(--blue); }
.console-line.text-green { color: var(--green); }
.console-line.text-purple { color: var(--purple); }
.console-line.text-gold { color: var(--gold); }

@keyframes consoleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections Global Styling */
.section-header {
    margin-bottom: 5rem;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
}

.section-description {
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Shadcn style */
    padding: 3rem;
    transition: var(--transition-smooth);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color-hover);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.04);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: #ffffff;
}

.feature-icon.bg-blue { background: rgba(59, 130, 246, 0.15); box-shadow: 0 0 15px var(--blue-glow); color: var(--blue); }
.feature-icon.bg-green { background: rgba(16, 185, 129, 0.15); box-shadow: 0 0 15px var(--green-glow); color: var(--green); }
.feature-icon.bg-purple { background: rgba(139, 92, 246, 0.15); box-shadow: 0 0 15px var(--purple-glow); color: var(--purple); }
.feature-icon.bg-red { background: rgba(244, 63, 94, 0.15); box-shadow: 0 0 15px var(--red-glow); color: var(--red); }

.feature-title {
    font-size: 1.45rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Sobre Nosotros (About Us) Section Styles */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Shadcn Style */
    overflow: hidden;
    transition: var(--transition-smooth);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.about-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color-hover);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.05);
}

.about-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    filter: brightness(0.8) contrast(1.05);
}

.about-card:hover .about-img {
    transform: scale(1.05);
    filter: brightness(0.9) contrast(1.05);
}

.about-card-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--purple);
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}

.about-card-badge.text-blue { color: var(--blue); }
.about-card-badge.text-green { color: var(--green); }

.about-card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.about-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
}

.about-card-text {
    font-size: 0.92rem;
    line-height: 1.6;
}

.about-mission {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.about-mission-text {
    font-size: 1.05rem;
    text-align: center;
    color: var(--text-primary);
    max-width: 900px;
    margin: 0 auto;
}

.about-mission-text strong {
    color: var(--purple);
    font-weight: 700;
}

/* Shadcn-Style Tab Layout for Technical Reports */
.tabs-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Shadcn radius */
    padding: 2rem;
    backdrop-filter: blur(12px);
}

.tabs-list {
    display: inline-flex;
    background: var(--tab-list-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 3rem;
}

.tab-trigger {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: inherit;
    transition: var(--transition-fast);
}

.tab-trigger:hover {
    color: var(--text-primary);
}

.tab-trigger.active {
    background: var(--tab-trigger-active);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tab-content {
    display: none;
    animation: tabFadeIn 0.4s ease-out forwards;
}

.tab-content.active {
    display: block;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.reports-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    text-align: left;
}

.reports-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
}

.reports-info p {
    font-size: 1rem;
    line-height: 1.7;
}

.checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.checklist li {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.checklist li::before {
    content: '✓';
    color: var(--green);
    font-weight: bold;
}

/* Tab 1: Lighthouse Circle Progress Visual */
.score-circle-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-items: center;
}

.score-circle-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(var(--green) calc(var(--percent) * 1%), var(--score-bg) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.score-circle::after {
    content: '';
    position: absolute;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--bg-secondary);
}

.score-number {
    position: relative;
    z-index: 2;
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--green);
}

.score-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Tab 2: Latency Table */
.latency-table-wrapper {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.latency-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.latency-table th,
.latency-table td {
    padding: 1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.latency-table th {
    background: var(--table-header-bg);
    color: var(--text-primary);
    font-weight: 700;
}

.latency-table tr:last-child td {
    border-bottom: none;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-indicator.online::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
}

/* Tab 3: Cost Bar Charts */
.cost-chart-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.cost-bar-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.cost-bar-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.cost-bar-container {
    width: 100%;
    height: 32px;
    background: var(--bg-secondary);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.cost-bar {
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 1rem;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.cost-bar.danger {
    background: linear-gradient(90deg, var(--red), #fda4af);
    color: #ffffff;
}

.cost-bar.success {
    background: linear-gradient(90deg, var(--green), #6ee7b7);
    color: #ffffff;
    min-width: 100px;
}

.cost-bar-val {
    font-size: 0.85rem;
    font-weight: 700;
}

.cost-savings-badge {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--green);
    padding: 0.85rem 1.2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
}

/* Timeline Layout */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 45px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--purple), var(--blue), var(--green), var(--red));
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 95px;
    margin-bottom: 4rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: absolute;
    left: 20px;
    top: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-primary);
    box-shadow: 0 0 15px var(--purple-glow);
    z-index: 2;
    transition: background-color 0.4s ease;
}

.timeline-item:nth-child(2) .timeline-badge { border-color: var(--blue); box-shadow: 0 0 15px var(--blue-glow); }
.timeline-item:nth-child(3) .timeline-badge { border-color: var(--green); box-shadow: 0 0 15px var(--green-glow); }
.timeline-item:nth-child(4) .timeline-badge { border-color: var(--red); box-shadow: 0 0 15px var(--red-glow); }

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Shadcn */
    padding: 2.2rem;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(8px);
}

.timeline-title {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
}

.timeline-text {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.timeline-tag {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-tag.text-blue { background: rgba(59, 130, 246, 0.1); color: var(--blue); }
.timeline-tag.text-purple { background: rgba(139, 92, 246, 0.1); color: var(--purple); }
.timeline-tag.text-green { background: rgba(16, 185, 129, 0.1); color: var(--green); }
.timeline-tag.text-red { background: rgba(244, 63, 94, 0.1); color: var(--red); }

/* Comparison Table Styling */
.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: 8px; /* Shadcn */
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(12px);
    background: var(--bg-card);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 800px;
}

.comparison-table th, 
.comparison-table td {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.comparison-table th {
    background: var(--table-header-bg);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.comparison-table td.feature-name {
    font-weight: 600;
    color: var(--text-primary);
    width: 25%;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* Highlight LaterCode column */
.comparison-table .highlight {
    background: rgba(139, 92, 246, 0.03);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    width: 30%;
}

.comparison-table th.highlight {
    background: rgba(139, 92, 246, 0.05);
    color: var(--purple);
    font-weight: 800;
    font-size: 1.15rem;
}

.comparison-table tr:hover td {
    background: var(--bg-secondary);
}

.comparison-table tr:hover td.highlight {
    background: rgba(139, 92, 246, 0.06);
}

/* Pricing Grid & Card */
.pricing-card-container {
    display: flex;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Shadcn */
    padding: 4rem 3.5rem;
    position: relative;
    backdrop-filter: blur(12px);
    width: 100%;
    text-align: left;
}

.pricing-card.featured {
    border-color: var(--purple);
    box-shadow: 0 25px 60px rgba(139, 92, 246, 0.05);
}

.pricing-popular {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: #ffffff;
    padding: 0.35rem 1.2rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 10px var(--purple-glow);
}

.pricing-card-header {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
}

.pricing-plan {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--purple);
    display: block;
    margin-bottom: 1rem;
}

.pricing-price-box {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

.pricing-currency {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.pricing-price {
    font-family: 'Outfit', sans-serif;
    font-size: 4.8rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.pricing-currency-code {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 450px;
    margin: 0 auto;
}

.pricing-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 3.5rem;
}

.pricing-features-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.icon-check {
    width: 20px;
    height: 20px;
    color: var(--green);
    flex-shrink: 0;
}

.pricing-card-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.pricing-guarantee {
    font-size: 0.82rem;
    color: var(--text-dim);
    font-weight: 600;
}

/* FAQ Accordion */
.faq-container {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Shadcn */
    overflow: hidden;
    transition: var(--transition-fast);
    backdrop-filter: blur(12px);
    text-align: left;
}

.faq-item:hover {
    border-color: var(--border-color-hover);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.faq-icon {
    font-size: 1.4rem;
    color: var(--purple);
    font-weight: 300;
    transition: var(--transition-fast);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(14, 14, 22, 0.02);
}

.faq-answer p {
    padding: 0 2rem 1.8rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item.active {
    border-color: var(--border-color-hover);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.03);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--red);
}

/* Final CTA Section */
.final-cta-section {
    padding: 10rem 0;
}

.final-cta-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 6rem 4rem;
    border-radius: 8px; /* Shadcn */
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.cta-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

.cta-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 3.2rem;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.btn-xl {
    padding: 1.2rem 2.8rem;
    font-size: 1.15rem;
}

.cta-note {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 500;
}

/* Footer Styles */
.main-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 3rem;
    transition: background-color 0.4s ease;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    margin-bottom: 4rem;
    text-align: left;
}

.footer-desc {
    margin-top: 1.2rem;
    font-size: 0.95rem;
    max-width: 320px;
}

.link-group h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin-bottom: 1.2rem;
}

.footer-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: center;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Floating WhatsApp Bubble */
.whatsapp-bubble {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 90;
    transition: var(--transition-smooth);
    animation: bounceBubble 2.5s infinite;
}

.whatsapp-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

@keyframes bounceBubble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Intersection Observer Scroll Reveal Animation Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transform: translateY(15px);
}

.fade-in.animated {
    animation: fadeInAnim 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-grid {
        gap: 2.5rem;
    }
    
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 900px) {
    .section {
        padding: 5rem 0;
    }
    
    .hero-section {
        padding-top: 8rem;
        padding-bottom: 4rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }
    
    .badge {
        justify-content: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 25px;
    }
    
    .timeline-item {
        padding-left: 65px;
    }
    
    .timeline-badge {
        left: 0px;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .pricing-card {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Toggle Active State */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.6rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .final-cta-container {
        padding: 4rem 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .whatsapp-bubble {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 56px;
        height: 56px;
    }
}
