:root {
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --secondary: #2dd4bf;
    --accent: #8b5cf6;
    --bg-body: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-header: rgba(15, 23, 42, 0.8);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #2dd4bf 100%);
    --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --hover-card: translateY(-10px) scale(1.02);
}

.light-theme {
    --bg-body: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-header: rgba(248, 250, 252, 0.8);
    --text-main: #0f172a;
    --text-muted: #475569;
    --glass-border: rgba(0, 0, 0, 0.08);
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --primary-glow: rgba(99, 102, 241, 0.2);
}

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

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

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

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

/* Glassmorphism Classes */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.glass-header.scrolled {
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

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

/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
}

.nav-logo {
    height: 32px;
    width: auto;
}

.version {
    font-size: 0.7rem;
    background: var(--glass-border);
    padding: 2px 8px;
    border-radius: 12px;
    color: var(--text-muted);
}

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

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

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

.theme-toggle {
    background: var(--glass-border);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.theme-toggle:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--primary-glow);
}

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-only-cta {
    display: none;
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }

.light-theme .theme-toggle .sun-icon { display: block; }
.light-theme .theme-toggle .moon-icon { display: none; }

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
}

.lang-link {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    background: var(--glass-border);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.lang-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* Theme Visibility Utilities */
.light-only { display: none !important; }
.light-theme .light-only { display: block !important; }
.light-theme .dark-only { display: none !important; }

/* Hero Section */
.hero {
    padding: 12rem 0 8rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.1;
    z-index: -1;
}

.light-theme .hero::before {
    opacity: 0.05;
}

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

h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

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

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

.cta-button {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    cursor: pointer;
}

.cta-button.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.cta-button.outline {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.cta-button.outline:hover {
    background: var(--glass-border);
}

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

.mockup-container {
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s;
}

.mockup-container:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-img {
    width: 100%;
    display: block;
}

.floating-badge {
    position: absolute;
    background: var(--bg-body);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-card);
    animation: float 4s ease-in-out infinite;
}

.badge-1 { top: 10%; left: -10%; animation-delay: 0s; }
.badge-2 { bottom: 20%; right: -5%; animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Features */
.features {
    padding: 8rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 6rem;
}

.feature-category {
    margin-bottom: 6rem;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.category-title .dot {
    width: 10px;
    height: 10px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary);
}

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

.feature-card {
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 100%;
}

.glass-icon {
    background: var(--glass-border);
    border-radius: 20px;
    padding: 1.25rem;
    color: var(--secondary);
}

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

/* Solutions */
.solutions {
    padding: 6rem 0;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
}

.solutions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.solution-item {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    background: var(--secondary);
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.solution-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    padding: 2.5rem;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* CTA Final Section */
.cta-final {
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
}

.cta-final::before {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--primary);
    filter: blur(200px);
    opacity: 0.08;
    z-index: -1;
}

.light-theme .cta-final::before {
    opacity: 0.04;
}

.cta-card {
    padding: 6rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid var(--glass-border);
}

.cta-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.cta-content h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 3.5rem;
}

.cta-button.large {
    padding: 1.5rem 4rem;
    font-size: 1.3rem;
    border-radius: 16px;
    background: var(--gradient);
    border: none;
    position: relative;
    z-index: 1;
}

.cta-button.large::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    filter: blur(20px);
    opacity: 0.6;
    z-index: -1;
    border-radius: 16px;
    transition: opacity 0.3s;
}

.cta-button.large:hover::after {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .cta-card { padding: 4rem 2rem; border-radius: 0; }
    .cta-content h2 { font-size: 2.5rem; }
    .cta-button.large { width: 100%; padding: 1.2rem; }
}

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

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    height: 48px;
    width: auto;
    align-self: flex-start;
}

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

.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Responsive */
@media (max-width: 992px) {
    .container { padding: 0 1.5rem; }
    .hero-grid, .features-grid, .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: clamp(2rem, 10vw, 3rem); }
    
    .hero-visual { order: -1; margin-bottom: 3rem; }
}

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

    .desktop-only-cta {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-body);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        z-index: 1000;
        padding: 2rem;
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--glass-border);
        overflow-y: auto;
    }

    [dir="rtl"] .nav-links {
        right: auto;
        left: -100%;
        border-left: none;
        border-right: 1px solid var(--glass-border);
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        right: 0;
    }

    [dir="rtl"] .nav-links.active {
        left: 0;
    }

    .mobile-only-cta {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    .mobile-only-cta .cta-button {
        width: 100%;
    }

    h1 { font-size: 2.2rem; }
    .hero { padding: 8rem 0 4rem; }
    .hero-content p { font-size: 1.1rem; }
    
    .floating-badge { display: none; }
    .mockup-container { transform: none !important; }
    
    .section-title { margin-bottom: 3rem; }
    .cta-card { padding: 3rem 1.5rem; border-radius: 24px; }
    .cta-content h2 { font-size: 2.2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-info { align-items: center; text-align: center; }
    .footer-logo { align-self: center; }
}
