/* Base and Reset */
:root {
    --primary: #0052FF;
    --primary-hover: #003ECC;
    --secondary: #0A2540;
    --accent: #00C4B6;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --text-dark: #0F172A;
    --text-body: #475569;
    --text-muted: #94A3B8;
    --danger: #EF4444;
    --danger-light: #FEF2F2;
    --success: #10B981;
    --success-light: #ECFDF5;
    --warning: #F59E0B;
    --border: #E2E8F0;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(0, 82, 255, 0.3);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-body);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.section-padding {
    padding: 100px 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--secondary); }
.text-center { text-align: center; }
.text-primary { color: var(--primary) !important; }
.text-white { color: #FFFFFF !important; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.bg-danger-light { background-color: var(--danger-light); }
.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.gap-lg { gap: 3rem; }
.gap-xl { gap: 4rem; }
.align-center { align-items: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--bg-light);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid var(--primary);
    background-color: rgba(0, 82, 255, 0.05);
}

.badge-primary {
    background-color: var(--primary);
    color: white;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-body);
    max-width: 700px;
    margin: 0 auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
}

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

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
}

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

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #FFFFFF 100%);
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite ease-in-out alternate;
}

.shape-1 {
    width: 400px; height: 400px;
    background: var(--primary);
    top: -100px; right: -100px;
}

.shape-2 {
    width: 300px; height: 300px;
    background: var(--accent);
    bottom: -50px; left: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-body);
}

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

/* Chat Mockup */
.mockup-container {
    perspective: 1000px;
}

.chat-mockup {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg), 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.chat-mockup:hover {
    transform: rotateY(0) rotateX(0) translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 82, 255, 0.15);
}

.chat-header {
    background: var(--secondary);
    color: white;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-header i {
    font-size: 1.5rem;
    background: var(--primary);
    padding: 0.5rem;
    border-radius: 50%;
}

.chat-header span {
    display: block;
    font-weight: 600;
    line-height: 1.2;
}

.chat-header small {
    color: var(--accent);
    font-size: 0.8rem;
}

.chat-body {
    padding: 1.5rem;
    background: #F0F2F5;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 300px;
}

.message {
    max-width: 85%;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(20px);
}

.message.incoming {
    background: white;
    color: var(--text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message.outgoing {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Problem Section */
.cycle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.cycle-step {
    flex: 1;
    min-width: 150px;
    background: white;
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    position: relative;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.cycle-step:hover {
    transform: translateY(-5px);
}

.icon-circle {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto;
    color: var(--text-dark);
    border: 2px solid transparent;
}

.cycle-arrow {
    color: var(--text-muted);
    font-size: 1.5rem;
}

.lost-sale {
    border: 2px solid var(--danger-light);
    background: #FFFAFA;
}

.pain-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: left;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.pain-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.pain-icon {
    font-size: 2rem;
    color: var(--warning);
    margin-bottom: 1rem;
}

/* Solution section */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 82, 255, 0.05);
}

.feature-pulse {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(0, 82, 255, 0.2);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 82, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 82, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 82, 255, 0); }
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-item:hover {
    background: white;
    box-shadow: var(--shadow-md);
    border-color: var(--border);
    transform: translateX(10px);
}

.icon-box {
    width: 50px; height: 50px;
    border-radius: 12px;
    background: var(--bg-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

/* Comparison Section */
.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.compare-table th, .compare-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.compare-table th {
    font-size: 1.125rem;
    background: rgba(248, 250, 252, 0.5);
}

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

.col-orby {
    background: rgba(0, 82, 255, 0.03);
    border-left: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
}

.orby-header {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.compare-table td.negative {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.02);
}

.compare-table td.positive {
    color: var(--success);
    background: rgba(16, 185, 129, 0.02);
    font-weight: 600;
    border-left: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
}

/* Escalamiento */
.scaling {
    background: linear-gradient(135deg, var(--secondary), var(--primary-hover));
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.scaling-container {
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
}

.scaling::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0.5;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

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

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

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

.timeline-marker {
    position: absolute;
    left: 0; top: 0;
    width: 50px; height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 0 0 8px var(--bg-white);
    z-index: 1;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    transform: translateX(5px);
}

/* Footer */
.footer {
    padding: 80px 0 40px;
}

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

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Messaging Sequence Animations */
.chat-body .message.visible {
    animation: messageIn 0.5s forwards ease-out;
}
.msg-1 { animation-delay: 0.5s; }
.msg-2 { animation-delay: 1.5s; }
.msg-3 { animation-delay: 3s; }
.msg-4 { animation-delay: 4.5s; }

@keyframes messageIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content, .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 120px 0 60px;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .cycle-container {
        flex-direction: column;
    }
    
    .cycle-arrow {
        transform: rotate(90deg);
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile menu handling */
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .compare-table th, .compare-table td {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Nav Actions & Theme Toggle */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.theme-toggle:hover {
    color: var(--primary);
    background-color: var(--bg-light);
}

/* Dark Mode Theme Variables & Utilities */
body.dark-mode {
    --bg-light: #0B1120;
    --bg-white: #0F172A;
    --text-dark: #F8FAFC;
    --text-body: #94A3B8;
    --border: #1E293B;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

body.dark-mode .navbar {
    background-color: rgba(15, 23, 42, 0.9);
}

body.dark-mode .hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

body.dark-mode .chat-mockup,
body.dark-mode .message.incoming,
body.dark-mode .cycle-step,
body.dark-mode .pain-card,
body.dark-mode .compare-table,
body.dark-mode .timeline-content {
    background: var(--bg-white);
    color: var(--text-body);
}

body.dark-mode .message.incoming {
    color: var(--text-dark);
}

body.dark-mode .glass-card {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .compare-table th {
    background: rgba(15, 23, 42, 0.8);
}

body.dark-mode .cycle-step.lost-sale {
    background: rgba(239, 68, 68, 0.1);
}

body.dark-mode .feature-item:hover {
    background: var(--bg-light);
}
