/* Base and Variables */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --accent-color: #3b82f6;
    
    /* Light Theme (Default fallback) */
    --bg-color: #f8fafc;
    --bg-alt: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

[data-theme="dark"] {
    --bg-color: #0b1120;
    --bg-alt: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
    --card-bg: rgba(30, 41, 59, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a { text-decoration: none; color: inherit; }
.mt-4 { margin-top: 1rem; }
.text-center { text-align: center; }

/* Typography */
h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); letter-spacing: -0.01em; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.highlight {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
    color: white;
}
.btn-secondary {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}
.btn-secondary:hover {
    background-color: var(--card-bg);
    transform: translateY(-2px);
}
.btn-lg { padding: 0.8rem 2rem; font-size: 1.1rem; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}
.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    height: 72px;
}
.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.5px; display: flex; align-items: center; gap: 10px; }
.logo-img { height: 40px; width: auto; object-fit: contain; border-radius: 4px; background: white; padding: 2px 8px; } 
.logo-text { background: linear-gradient(to right, var(--text-main), var(--text-muted)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text-main); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.theme-btn {
    background: transparent; border: 1px solid var(--border-color); color: var(--text-main);
    width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.2rem;
}
.theme-btn:hover { background: var(--bg-alt); }
.menu-btn { display: none; background: transparent; border: none; color: var(--text-main); font-size: 1.5rem; cursor: pointer; }

/* Sections */
.section { padding: 100px 0; }
.section-header { margin-bottom: 4rem; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }
.bg-alt { background-color: var(--bg-alt); }

/* Grid Layouts */
.grid { display: grid; gap: 2rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2-2 { grid-template-columns: repeat(2, 1fr); gap: 3rem; }

/* Hero Section */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: 72px; }
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 2; }
.hero-content p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; max-width: 90%; }
.hero-buttons { display: flex; gap: 1rem; }
.badge { display: inline-block; padding: 0.3rem 0.8rem; background: rgba(59, 130, 246, 0.1); color: var(--accent-color); border-radius: 100px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem; border: 1px solid rgba(59, 130, 246, 0.2); }

/* Background Shapes */
.hero-bg-shapes { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; overflow: hidden; pointer-events: none; }
.shape { position: absolute; filter: blur(80px); border-radius: 50%; opacity: 0.5; }
.shape-1 { background: #3b82f6; width: 400px; height: 400px; top: -100px; left: -100px; }
.shape-2 { background: #8b5cf6; width: 300px; height: 300px; bottom: 100px; right: -50px; }

/* Mockup Card (Glassmorphism) */
.glass-card { background: var(--card-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); border-radius: 16px; padding: 2rem; }
.mockup-card { padding: 0; overflow: hidden; transform: perspective(1000px) rotateY(-10deg) rotateX(5deg); transition: transform 0.5s ease; border-radius: 12px; border: 1px solid var(--border-color); background: var(--bg-alt); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.mockup-card:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }
.mockup-header { background: var(--border-color); padding: 10px 15px; }
.dots { display: flex; gap: 6px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; }
.dots span:nth-child(2) { background: #eab308; }
.dots span:nth-child(3) { background: #22c55e; }
.mockup-body { display: flex; height: 300px; }
.mockup-sidebar { width: 60px; border-right: 1px solid var(--border-color); background: var(--bg-color); }
.mockup-content { flex: 1; padding: 20px; }
.mockup-line { height: 12px; background: var(--border-color); border-radius: 4px; margin-bottom: 12px; width: 80%; }
.mockup-line.short { width: 40%; margin-bottom: 30px; }
.mockup-chart { height: 100px; background: linear-gradient(180deg, rgba(59,130,246,0.2) 0%, rgba(59,130,246,0) 100%); border-top: 2px solid var(--primary-color); border-radius: 4px 4px 0 0; margin-bottom: 20px; }
.mockup-boxes { display: flex; gap: 15px; }
.box { flex: 1; height: 60px; background: var(--border-color); border-radius: 8px; }

/* Product Cards */
.product-card { background: var(--bg-alt); border: 1px solid var(--border-color); border-radius: 16px; padding: 2rem; position: relative; transition: all 0.3s ease; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--glass-shadow); border-color: var(--primary-color); }
.card-icon { width: 50px; height: 50px; background: rgba(59, 130, 246, 0.1); color: var(--primary-color); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.5rem; }
.logo-icon { width: auto; height: 50px; background: transparent; justify-content: flex-start; }
.logo-icon img { height: 100%; width: auto; object-fit: contain; border-radius: 6px; background: white; padding: 4px 10px; }
.product-card p { color: var(--text-muted); margin-bottom: 1.5rem; flex: 1; }
.card-link { color: var(--primary-color); font-weight: 500; display: inline-flex; align-items: center; gap: 5px; }
.card-link i { transition: transform 0.2s; }
.product-card:hover .card-link i { transform: translateX(5px); }

.status-badge { position: absolute; top: 1.5rem; right: 1.5rem; padding: 0.25rem 0.75rem; border-radius: 100px; font-size: 0.75rem; font-weight: 600; }
.status-badge.launched { background: rgba(34, 197, 94, 0.1); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.2); }
.status-badge.coming-soon { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }

.disabled-product { opacity: 0.8; filter: grayscale(40%); }
.disabled-product:hover { transform: none; border-color: var(--border-color); box-shadow: none; cursor: not-allowed; }
.card-link.disabled { color: var(--text-muted); pointer-events: none; }

/* Features */
.feature-item { display: flex; gap: 1.5rem; }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--bg-color); border: 1px solid var(--border-color); color: var(--primary-color); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.feature-item p { color: var(--text-muted); font-size: 0.95rem; }

/* CTA Section */
.cta-card { padding: 4rem 2rem; max-width: 800px; margin: 0 auto; background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%); border-color: rgba(59, 130, 246, 0.3); }
[data-theme="light"] .cta-card { background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%); }
.cta-card h2 { margin-bottom: 1rem; }
.cta-card p { color: var(--text-muted); margin-bottom: 2rem; }

/* Footer */
.footer { border-top: 1px solid var(--border-color); padding: 4rem 0 2rem; background: var(--bg-alt); }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-info p { color: var(--text-muted); font-size: 0.95rem; max-width: 300px; }
.social-links { display: flex; gap: 1rem; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-color); display: flex; align-items: center; justify-content: center; color: var(--text-main); border: 1px solid var(--border-color); transition: all 0.2s; }
.social-links a:hover { color: var(--primary-color); border-color: var(--primary-color); transform: translateY(-3px); }
.footer-links h4 { margin-bottom: 1.5rem; }
.footer-links a { display: block; color: var(--text-muted); margin-bottom: 0.75rem; font-size: 0.95rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary-color); }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 2rem; color: var(--text-muted); font-size: 0.9rem; }

/* Responsive */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content p { margin: 0 auto 2rem; }
    .hero-buttons { justify-content: center; }
    .mockup-card { max-width: 600px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2-2 { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-info p { margin: 0 auto; }
    .social-links { justify-content: center; }
    
    .nav-links, .nav-actions .btn { display: none; }
    .menu-btn { display: block; }
}
