
:root {
    --home-primary: #3157d5;
    --home-primary-dark: #2444b5;
    --home-text: #172033;
    --home-muted: #687386;
    --home-bg: #ffffff;
    --home-soft: #f5f7ff;
    --home-border: #e7eaf2;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, "Noto Sans Malayalam", sans-serif;
    color: var(--home-text);
    background: var(--home-bg);
    line-height: 1.6;
}

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

.home-container {
    width: min(1160px, calc(100% - 40px));
    margin: auto;
}

.home-header {
    background: #ffffff;
    border-bottom: 1px solid var(--home-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.home-nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.home-logo {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.home-logo span {
    color: var(--home-primary);
}

.home-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 600;
}

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

.home-login {
    background: var(--home-primary);
    color: white !important;
    padding: 11px 22px;
    border-radius: 9px;
}

.hero {
    background: linear-gradient(135deg, #f5f7ff, #edf2ff);
    padding: 95px 0;
}

.hero-content {
    max-width: 760px;
}

.hero-tag {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 30px;
    background: #e2eaff;
    color: var(--home-primary);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.25;
    letter-spacing: -1.5px;
    margin: 0 0 20px;
}

.hero h1 span {
    color: var(--home-primary);
}

.hero p {
    max-width: 620px;
    color: var(--home-muted);
    font-size: 17px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.btn {
    display: inline-block;
    padding: 13px 23px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 14px;
}

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

.btn-primary:hover {
    background: var(--home-primary-dark);
}

.btn-outline {
    border: 1px solid #cbd3e4;
    background: white;
}

.home-section {
    padding: 75px 0;
}

.section-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 38px;
}

.section-heading h2 {
    font-size: 30px;
    margin: 0 0 10px;
}

.section-heading p {
    color: var(--home-muted);
    margin: 0;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.module-card {
    padding: 27px;
    border: 1px solid var(--home-border);
    border-radius: 15px;
    background: white;
    transition: transform .2s, box-shadow .2s;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(30, 50, 100, .08);
}

.module-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    background: var(--home-soft);
    border-radius: 13px;
    font-size: 25px;
    margin-bottom: 17px;
}

.module-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.module-card p {
    margin: 0;
    color: var(--home-muted);
    font-size: 14px;
}

.about-section {
    background: var(--home-soft);
}

.about-content {
    max-width: 750px;
    margin: auto;
    text-align: center;
}

.about-content h2 {
    font-size: 29px;
    margin-top: 0;
}

.about-content p {
    color: var(--home-muted);
}

.home-footer {
    padding: 35px 0;
    background: #172033;
    color: #ffffff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: #c5ccda;
}

@media (max-width: 850px) {
    .home-menu {
        gap: 14px;
    }

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

@media (max-width: 600px) {
    .home-container {
        width: min(100% - 30px, 1160px);
    }

    .home-nav {
        min-height: 65px;
    }

    .home-logo {
        font-size: 19px;
    }

    .home-menu {
        gap: 10px;
    }

    .home-menu a:not(.home-login) {
        display: none;
    }

    .home-login {
        padding: 9px 15px;
    }

    .hero {
        padding: 65px 0;
    }

    .hero h1 {
        font-size: 35px;
    }

    .hero p {
        font-size: 15px;
    }

    .home-section {
        padding: 55px 0;
    }

    .section-heading h2 {
        font-size: 25px;
    }

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

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}
