/* Landing Page Styles - Light Modern Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4f46e5;
    /* Indigo 600 */
    --secondary: #9333ea;
    /* Purple 600 */
    --accent: #10b981;
    /* Emerald 500 */
    --bg-color: #f8fafc;
    /* Slate 50 */
    --text-main: #0f172a;
    /* Slate 900 (Darker) */
    --text-muted: #334155;
    /* Slate 700 (Darker) */
    --white: #ffffff;
    --brand-accent: #4f46e5;
    --glass-border: rgba(0, 0, 0, 0.05);
}

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

/* Background Animation (Subtle on Light) */
.bg-animate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 15% 15%, rgba(79, 70, 229, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(147, 51, 234, 0.08) 0%, transparent 40%);
    animation: flowBg 15s infinite alternate;
}

@keyframes flowBg {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

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

.btn-login {
    padding: 0.6rem 1.5rem;
    background: var(--primary);
    color: white !important;
    border-radius: 50px;
    margin-left: 2rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: all 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    padding-top: 100px;
}

.hero-content {
    flex: 1;
    padding-right: 4rem;
}

.measure-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    letter-spacing: -1px;
}

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

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

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

.btn-primary {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.35);
}

.btn-outline {
    padding: 1rem 2rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.hero-visual {
    flex: 1;
    position: relative;
    perspective: 1200px;
}

.dashboard-mockup {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 2rem;
    transform: rotateY(-8deg) rotateX(4deg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s;
}

.dashboard-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.2);
}

/* Features */
.features {
    padding: 6rem 5%;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--bg-color);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 1.8rem;
    color: var(--primary);
}

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

/* Benefits Section */
.benefits-section {
    padding: 6rem 5%;
    background: #f8fafc;
}

.benefit-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.benefit-container.reverse {
    flex-direction: row-reverse;
}

.benefit-content {
    flex: 1;
}

.benefit-image {
    flex: 1;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.benefit-image:hover {
    transform: scale(1.02);
}

.check-list {
    list-style: none;
    margin-top: 1.5rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

.check-icon {
    color: var(--accent);
    background: rgba(16, 185, 129, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

@media (max-width: 992px) {

    .benefit-container,
    .benefit-container.reverse {
        flex-direction: column;
        text-align: center;
    }

    .check-list li {
        justify-content: center;
    }
}

/* Developer Section */
.developer-section {
    padding: 6rem 5%;
    text-align: center;
    background: linear-gradient(to bottom, #f8fafc, #fff);
}

.logo-container {
    margin-bottom: 1.5rem;
}

.company-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

.dev-highlight {
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

/* CTA */
.cta-section {
    padding: 6rem 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 0 5% 5rem;
    border-radius: 30px;
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.3);
}

.cta-section h2,
.cta-section p {
    color: white;
}

.btn-white {
    background: white;
    color: var(--primary);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
    border: none;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    padding: 4rem 5% 2rem;
    background: white;
    border-top: 1px solid #f1f5f9;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-weight: 700;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.2s;
}

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

/* Utils for Dark Theme Sections (Module Pages & Highlights) */
.text-on-dark {
    color: #f8fafc !important;
}

.text-muted-on-dark {
    color: #94a3b8 !important;
}

.bg-dark-section {
    background-color: #0f172a;
    color: #f8fafc;
}

.bg-dark-section h1,
.bg-dark-section h2,
.bg-dark-section h3,
.bg-dark-section h4 {
    color: #f8fafc;
}

.bg-dark-section p {
    color: #cbd5e1;
}

/* Ensure module cards have correct text color */
.module-card-dark h3 {
    color: #fff !important;
}

.module-card-dark p {
    color: #cbd5e1 !important;
}

/* Mobile Interactivity Styles */
.mobile-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 2000;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.close-menu {
    font-size: 2rem;
    color: var(--text-main);
    cursor: pointer;
}

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

.mobile-nav-links a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}

.mobile-nav-links .btn-login {
    margin-left: 0;
    text-align: center;
    font-size: 1.2rem;
    padding: 1rem;
}

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

    .navbar {
        padding: 1rem 5%;
    }

    .nav-links {
        display: none;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 4rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .cta-section {
        margin: 0 1rem 3rem;
        padding: 4rem 1.5rem;
    }
}