/* ---------- BASE VARIABLES ---------- */
:root {
    --primary: #4338ca;
    --primary-hover: #3730a3;
    --secondary: #0f172a;
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.text-center { text-align: center; }
.bg-light { background: var(--bg-light); }
.text-white { color: var(--white) !important; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; margin-bottom: 1rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.25rem; }

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

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

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.125rem;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
}

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

.btn-light {
    background: var(--white);
    color: var(--secondary);
}

.btn-light:hover {
    background: var(--bg-light);
}

/* ---------- HEADER ---------- */
.header {
    background: var(--white);
    color: var(--secondary);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

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

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

.logo i {
    font-size: 2rem;
    color: var(--primary);
    background: var(--white);
    padding: 0.5rem;
    border-radius: var(--radius-md);
}

.logo div {
    display: flex;
    flex-direction: column;
}

.logo strong {
    font-size: 1.25rem;
    line-height: 1;
}

.logo span {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 400;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: var(--secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.header-actions {
    display: flex;
    gap: 1rem;
}

.header-actions .btn-outline {
    border-color: rgba(255,255,255,0.2);
    color: var(--white);
}

.header-actions .btn-outline:hover {
    border-color: var(--white);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary);
}

/* ---------- HERO SECTION ---------- */
.hero {
    background: var(--secondary);
    color: var(--white);
    padding-top: 150px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    padding: 0.375rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.badge .dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero h1 .highlight {
    color: #818cf8;
}

.hero p {
    color: #cbd5e1;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

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

.hero-features {
    display: flex;
    gap: 1.5rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.hero-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-image {
    flex: 1;
    position: relative;
}

.dashboard-mockup {
    width: 120%;
    max-width: 900px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

/* ---------- STATS SECTION ---------- */
.stats {
    padding: 3rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.stats-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-text h3 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.stat-text p {
    color: var(--text-muted);
    font-weight: 500;
}

/* ---------- FEATURES SECTION ---------- */
.features {
    padding: 6rem 0;
}

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

.feature-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    transform: translateY(-5px);
}

.f-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.f-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.f-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ---------- MODULES SECTION ---------- */
.modules {
    padding: 4rem 0 6rem;
}

.modules-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.module-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    width: 160px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.2s;
    cursor: pointer;
}

.module-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.module-item i {
    font-size: 2.5rem;
}

.module-item span {
    font-weight: 600;
    color: var(--secondary);
}

/* ---------- PORTFOLIO SECTION ---------- */
.portfolio {
    padding: 6rem 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.portfolio-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: all 0.3s;
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.portfolio-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top;
    border-bottom: 1px solid var(--border);
    transition: transform 0.3s;
}

.portfolio-card:hover img {
    transform: scale(1.03);
}

.portfolio-card h4 {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    text-align: center;
    color: var(--text-main);
}

@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- MOBILE APP SECTION ---------- */
.mobile-app {
    padding: 6rem 0;
    overflow: hidden;
}

.app-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.app-content {
    flex: 1;
}

.app-content h2 {
    margin: 1.5rem 0;
}

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

.store-buttons {
    display: flex;
    gap: 1rem;
}

.store-btn {
    height: 50px;
    cursor: pointer;
    transition: transform 0.2s;
}

.store-btn:hover {
    transform: translateY(-2px);
}

.app-images {
    flex: 1.5;
    display: flex;
    gap: 1.5rem;
}

.app-mockup {
    text-align: center;
}

.app-mockup img {
    height: 400px;
    border-radius: 30px;
    box-shadow: var(--shadow-xl);
    margin-bottom: 1rem;
}

.app-mockup p {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ---------- PRICING SECTION ---------- */
.pricing {
    padding: 6rem 0;
    background: var(--bg-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    box-shadow: var(--shadow-xl);
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.p-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.p-header h4 {
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1rem;
}

.p-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0;
}

.p-header span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.p-features {
    margin-bottom: 2.5rem;
}

.p-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.p-features i {
    color: var(--primary);
}

.p-btn {
    width: 100%;
}

/* ---------- CTA BANNER & FOOTER ---------- */
.cta-banner {
    background: var(--secondary);
    padding: 4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #1e1b4b, #312e81);
    padding: 3rem;
    border-radius: var(--radius-xl);
}

.cta-text {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: var(--white);
}

.cta-text i {
    font-size: 4rem;
    color: #818cf8;
}

.cta-text h2 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.cta-text p {
    color: #cbd5e1;
    font-size: 1.125rem;
}

.footer {
    background: var(--white);
    color: var(--text-color);
    padding: 5rem 0 2rem;
}

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

.footer h4 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.f-col a {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    transition: color 0.2s;
}

.f-col a:hover {
    color: var(--primary);
}

.brand-col p {
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    transition: all 0.2s;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-info i {
    margin-top: 0.25rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero-container, .app-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-features {
        justify-content: center;
    }

    .cta-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .cta-text {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu, .header-actions {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }

    .stats-container {
        justify-content: center;
    }

    .pricing-card.popular {
        transform: none;
    }

    .app-images {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

