:root {
    --bg-color: #0b0f19;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Brand Colors */
    --primary-color: #3b82f6; /* Blue */
    --primary-hover: #2563eb;
    --secondary-color: #06b6d4; /* Cyan */
    --accent-color: #8b5cf6; /* Violet accent */
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-backdrop: blur(12px);
    
    /* Layout */
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-color: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    
    /* Brand Colors - Slightly darker for contrast */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #0891b2;
    --accent-color: #6d28d9;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    
    /* Background shapes adjust */
    --shape-opacity: 0.15;
}

[data-theme="light"] .glass-input {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-main);
}

[data-theme="light"] .glass-input option {
    background: #ffffff;
    color: var(--text-main);
}

[data-theme="light"] .dots span {
    background: rgba(0,0,0,0.2);
}

[data-theme="light"] .mockup-lines .line {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .product-icon {
    background: rgba(0,0,0,0.05);
}

[data-theme="light"] .feature-card:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .bg-shape {
    opacity: 0.15;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background Animated Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: float 10s infinite ease-in-out alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    top: 40%;
    right: -5%;
    animation-delay: -5s;
}

.shape-3 {
    width: 500px;
    height: 500px;
    background: var(--accent-color);
    bottom: -10%;
    left: 20%;
    opacity: 0.3;
    animation-delay: -2s;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

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

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

.btn-block {
    width: 100%;
}

.btn-icon {
    padding: 0.5rem;
    font-size: 1.25rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: var(--text-main);
    background: var(--glass-bg);
}

.btn-icon:hover {
    background: rgba(255,255,255,0.1);
}

[data-theme="light"] .btn-icon:hover {
    background: rgba(0,0,0,0.05);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.section-header span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
}

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

.light-theme-logo {
    display: none;
}

[data-theme="light"] .light-theme-logo {
    display: block;
}

[data-theme="light"] .dark-theme-logo {
    display: none;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Dropdown Menus */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    z-index: 1000;
    border-radius: 12px;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    flex-direction: column;
    animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.dropdown-content.glass {
    background: rgba(15, 23, 42, 0.95); /* More opaque for visibility */
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .dropdown-content.glass {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dropdown.open .dropdown-content {
    display: flex;
}

.dropdown-content a {
    padding: 12px 20px;
    display: block;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 8px;
    margin: 0 8px;
    transition: var(--transition);
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    padding-left: 25px; /* Nice interaction effect */
}

[data-theme="light"] .dropdown-content a:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120gpx;
}

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

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat .number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat .label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.main-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.card-header {
    height: 40px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    margin-right: 6px;
}

.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }

.card-body {
    padding: 2rem;
    height: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-chart {
    height: 40%;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
}

.mockup-lines .line {
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.mockup-lines .short {
    width: 60%;
}

.float-card {
    position: absolute;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 6s infinite ease-in-out alternate;
}

.float-card i {
    font-size: 2rem;
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
}

.float-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.float-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.card-1 {
    top: 10%;
    right: -10%;
    animation-delay: 1s;
}

.card-2 {
    bottom: 10%;
    left: -10%;
    animation-delay: 2s;
}

/* Products Section */
.products {
    padding: 6rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.product-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.05);
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.product-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-size: 0.875rem;
}

.product-features i {
    color: var(--accent-color);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
}

.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 0;
    color: var(--text-muted);
}

.spin {
    display: inline-block;
    animation: spin 1s linear infinite;
    font-size: 2rem;
    margin-bottom: 1rem;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* Features Section */
.features {
    padding: 6rem 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0 auto 1.5rem auto;
}

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

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

/* Contact Section */
.contact {
    padding: 6rem 0;
}

.contact-wrapper {
    border-radius: 24px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

.contact-method:hover {
    transform: translateX(10px);
    border-color: rgba(255,255,255,0.2);
}

.contact-method .icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-method .whatsapp { background: rgba(37, 211, 102, 0.1); color: #25D366; }
.contact-method .email { background: rgba(99, 102, 241, 0.1); color: var(--primary-color); }
.contact-method .instagram { background: rgba(225, 48, 108, 0.1); color: #E1306C; }

.contact-method h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-method p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.glass-input {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.glass-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.glass-input option {
    background: var(--bg-color);
    color: var(--text-main);
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 0 0;
    margin-top: 4rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        margin-top: 2rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple hidden for mobile, need JS to toggle */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        border-bottom: 1px solid var(--glass-border);
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .navbar .btn-primary {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
        margin-left: 1rem;
    }
    
    .nav-actions {
        margin-left: auto;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    /* Fix horizontal scroll on mobile from floating cards */
    .float-card {
        transform: scale(0.8);
    }
    
    .card-1 {
        right: 0;
        top: 0;
    }
    
    .card-2 {
        left: 0;
        bottom: 0;
    }
    
    body {
        overflow-x: hidden;
    }
    
    /* Mobile Dropdown Fixes */
    .dropdown {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0;
    }
    
    .dropbtn {
        justify-content: center;
        width: 100%;
        padding: 10px 0;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        background: transparent !important;
        border: none !important;
        transform: none;
        padding: 0;
        animation: none;
    }
    
    .dropdown-content.glass, [data-theme="light"] .dropdown-content.glass {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none;
    }
    
    .dropdown-content a {
        padding: 10px 0;
        font-size: 0.9rem;
    }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.floating-whatsapp i {
    color: white;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0,0,0,0.4);
    color: white;
}

@media (max-width: 768px) {
    .floating-whatsapp {
        display: flex;
    }
}
