:root {
    --bg-color: #f4f6f9;
    --text-color: #2b3445;
    --text-muted: #6c757d;
    --primary: #4e73df;
    --primary-hover: #375bca;
    --secondary: #ffffff;
    --secondary-hover: #f1f3f5;
    --glass-bg: rgba(232, 236, 241, 0.9);
    --glass-border: rgba(200, 210, 220, 0.5);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    --green: #1cc88a;
    --red: #e74a3b;
}

body.dark-mode {
    --bg-color: #0d1117;
    --text-color: #f0f6fc;
    --text-muted: #8b949e;
    --primary: #58a6ff;
    --primary-hover: #3182ce;
    --secondary: #161b22;
    --secondary-hover: #21262d;
    --glass-bg: rgba(22, 27, 34, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    --green: #3fb950;
    --red: #f85149;
}

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

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

/* Navbar */
.landing-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 8%;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.theme-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-btn:hover {
    color: var(--primary);
}

.landing-btn {
    padding: 0.6rem 1.6rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.landing-btn-primary {
    background-color: var(--primary);
    color: white !important;
}

.landing-btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(78, 115, 223, 0.4);
}
body.dark-mode .landing-btn-primary {
    color: #000 !important;
}
body.dark-mode .landing-btn-primary:hover {
    box-shadow: 0 4px 15px rgba(88, 166, 255, 0.3);
}

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

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

.landing-btn-secondary {
    background-color: var(--secondary);
    color: var(--text-color);
    border: 2px solid var(--glass-border);
}

.landing-btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
}

.landing-btn-large {
    padding: 1rem 2.2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    padding-top: 6rem;
    background: radial-gradient(ellipse at top left, rgba(78, 115, 223, 0.15), transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(28, 200, 138, 0.1), transparent 50%);
}
body.dark-mode .hero {
    background: radial-gradient(ellipse at top left, rgba(88, 166, 255, 0.1), transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(63, 185, 80, 0.05), transparent 50%);
}

.hero-content {
    max-width: 50%;
}

.hero h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 1.8rem;
    font-weight: 800;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: var(--primary);
    opacity: 0.15;
    border-radius: 4px;
    z-index: -1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 90%;
}

.cta-group {
    display: flex;
    gap: 1.2rem;
}

/* Glassmorphism Cards */
.hero-image {
    position: relative;
    width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.8rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--card-shadow);
    position: relative;
    z-index: 2;
}

.floating {
    position: absolute;
    bottom: -40px;
    right: -30px;
    max-width: 260px;
    animation: float 6s ease-in-out infinite;
    z-index: 3;
}

.glass-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

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

.stat-value {
    font-size: 1.4rem;
    font-weight: 800;
}

.text-blue { color: var(--primary); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: var(--glass-border);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--red);
    border-radius: 5px;
    transition: width 1s ease-out;
}

/* Features */
.features {
    padding: 6rem 8%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    background-color: var(--secondary);
}

.feature-card {
    background: var(--bg-color);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--glass-border);
    transition: transform 0.4s, box-shadow 0.4s;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}
body.dark-mode .feature-card:hover {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
}

.feature-icon {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 1.8rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(78, 115, 223, 0.1);
    border-radius: 16px;
}
body.dark-mode .feature-icon {
    background: rgba(88, 166, 255, 0.1);
}

.feature-card h3 {
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    background-color: var(--secondary);
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    font-weight: 300;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 10rem;
        padding-bottom: 5rem;
    }
    .hero-content {
        max-width: 100%;
        margin-bottom: 4rem;
    }
    .hero p {
        margin: 0 auto 2.5rem auto;
    }
    .cta-group {
        justify-content: center;
    }
    .hero-image {
        width: 100%;
        margin-bottom: 2rem;
    }
    .floating {
        right: 10%;
        bottom: -30px;
    }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2.8rem; }
    .cta-group { flex-direction: column; }
    .nav-links { gap: 0.8rem; }
    .landing-btn { padding: 0.5rem 1rem; }
    .floating { display: none; }
}
