/* =========================================================
   IMP — INSTITUTION MANAGEMENT PORTAL
   MAIN WEBSITE STYLESHEET
========================================================= */

/* =========================================================
   ROOT
========================================================= */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;

    --text: #0f172a;
    --text-light: #64748b;

    --white: #ffffff;
    --background: #f8fafc;
    --border: #e2e8f0;

    --success: #16a34a;

    --container: 1180px;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --shadow-sm: 0 4px 15px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 15px 40px rgba(15, 23, 42, 0.10);
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);
}

.header-container {
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    flex-shrink: 0;
}

.brand-logo {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    overflow: hidden;

    background: transparent;
}

.brand-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 10px;
    color: var(--text-light);

    margin-top: 3px;

    white-space: nowrap;
}


/* =========================================================
   NAVIGATION
========================================================= */

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: #475569;

    font-size: 14px;
    font-weight: 600;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.main-nav a:hover {
    color: var(--primary);
}


/* =========================================================
   HEADER ACTIONS
========================================================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 0 20px;

    border-radius: 9px;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);

    border: 1px solid var(--primary);

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.18);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-login {
    background: transparent;
    color: var(--text);

    border: 1px solid transparent;
}

.btn-login:hover {
    color: var(--primary);
}

.btn-outline {
    background: var(--white);
    color: var(--primary);

    border: 1px solid #bfdbfe;
}

.btn-outline:hover {
    background: #eff6ff;
}

.btn-large {
    min-height: 50px;
    padding: 0 26px;

    font-size: 15px;
}

.full-width {
    width: 100%;
}


/* =========================================================
   HERO
========================================================= */

.hero-section {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #f8fbff 0%,
            #ffffff 55%,
            #eff6ff 100%
        );

    padding: 105px 0 100px;
}

.hero-container {
    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(0, 0.95fr);

    align-items: center;

    gap: 70px;
}

.hero-content {
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;

    align-items: center;

    padding: 7px 13px;

    margin-bottom: 22px;

    border-radius: 999px;

    background: #dbeafe;
    color: #1d4ed8;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.3px;
}

.hero-content h1 {
    font-size: clamp(42px, 5vw, 68px);

    line-height: 1.05;

    letter-spacing: -2.5px;

    font-weight: 850;

    color: var(--secondary);
}

.hero-content h1 span {
    display: block;

    color: var(--primary);
}

.hero-description {
    max-width: 600px;

    margin-top: 24px;

    color: var(--text-light);

    font-size: 17px;

    line-height: 1.8;
}

.hero-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 32px;
}


/* =========================================================
   HERO DASHBOARD
========================================================= */

.hero-visual {
    display: flex;
    justify-content: center;
}

.dashboard-card {
    width: 100%;
    max-width: 500px;

    padding: 26px;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    background: rgba(255, 255, 255, 0.92);

    box-shadow: var(--shadow-md);

    transform: rotate(1deg);
}

.dashboard-top {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding-bottom: 22px;

    border-bottom: 1px solid var(--border);
}

.small-label {
    display: block;

    margin-bottom: 5px;

    color: var(--text-light);

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-top h3 {
    font-size: 20px;
}

.dashboard-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: var(--secondary);
    color: var(--white);

    font-size: 13px;
    font-weight: 800;
}

.dashboard-stats {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 14px;

    margin-top: 20px;
}

.stat-card {
    padding: 18px;

    border: 1px solid var(--border);

    border-radius: 13px;

    background: var(--background);
}

.stat-card span {
    display: block;

    color: var(--text-light);

    font-size: 12px;
    font-weight: 600;
}

.stat-card strong {
    display: block;

    margin-top: 5px;

    color: var(--secondary);

    font-size: 23px;
}


/* =========================================================
   GENERAL SECTIONS
========================================================= */

.section {
    padding: 100px 0;
}

.section-heading {
    max-width: 700px;

    margin: 0 auto 55px;

    text-align: center;
}

.section-label {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--primary);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.2px;
}

.section-heading h2 {
    font-size: clamp(30px, 4vw, 44px);

    line-height: 1.15;

    letter-spacing: -1px;

    color: var(--secondary);
}

.section-heading p {
    margin-top: 15px;

    color: var(--text-light);

    font-size: 16px;
}


/* =========================================================
   FEATURES
========================================================= */

.features-section {
    background: var(--white);
}

.features-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;
}

.feature-card {
    padding: 28px 24px;

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    background: var(--white);

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);

    border-color: #bfdbfe;

    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 12px;

    background: #eff6ff;
    color: var(--primary);

    font-size: 12px;
    font-weight: 900;
}

.feature-card h3 {
    font-size: 17px;

    margin-bottom: 9px;
}

.feature-card p {
    color: var(--text-light);

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   ABOUT
========================================================= */

.about-section {
    background: var(--background);
}

.about-container {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(300px, 0.75fr);

    gap: 80px;

    align-items: center;
}

.about-content h2 {
    max-width: 650px;

    font-size: clamp(32px, 4vw, 46px);

    line-height: 1.15;

    letter-spacing: -1.2px;
}

.about-content p {
    max-width: 650px;

    margin-top: 18px;

    color: var(--text-light);

    font-size: 15px;
}

.about-points {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 12px;

    margin-top: 25px;
}

.about-points div {
    color: #334155;

    font-size: 14px;
    font-weight: 650;
}

.about-card {
    min-height: 350px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 40px;

    text-align: center;

    border-radius: var(--radius-lg);

    background: var(--secondary);

    color: var(--white);

    box-shadow: var(--shadow-md);
}

.about-card-logo {
    width: 85px;
    height: 85px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 24px;

    border-radius: 22px;

    background: var(--primary);

    font-size: 25px;
    font-weight: 900;
}

.about-card h3 {
    font-size: 22px;

    line-height: 1.3;
}

.about-card p {
    margin-top: 10px;

    color: #cbd5e1;
}


/* =========================================================
   PRICING
========================================================= */

.pricing-section {
    background: var(--white);
}

.pricing-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;

    align-items: stretch;
}

.pricing-card {
    position: relative;

    padding: 35px 30px;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    background: var(--white);

    box-shadow: var(--shadow-sm);
}

.pricing-card.featured {
    border: 2px solid var(--primary);

    box-shadow:
        0 20px 50px rgba(37, 99, 235, 0.13);
}

.popular-badge {
    position: absolute;

    top: -13px;
    left: 50%;

    transform: translateX(-50%);

    padding: 5px 12px;

    border-radius: 999px;

    background: var(--primary);
    color: var(--white);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.5px;
}

.pricing-card h3 {
    font-size: 22px;
}

.pricing-description {
    min-height: 48px;

    margin-top: 8px;

    color: var(--text-light);

    font-size: 13px;
}

.price {
    margin: 22px 0;

    color: var(--secondary);

    font-size: 42px;

    font-weight: 850;

    letter-spacing: -1.5px;
}

.price span {
    font-size: 20px;
    vertical-align: top;
}

.price small {
    color: var(--text-light);

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 0;
}

.custom-price {
    font-size: 34px;
}

.pricing-card ul {
    list-style: none;

    margin: 0 0 28px;
}

.pricing-card li {
    position: relative;

    padding: 9px 0 9px 23px;

    border-bottom: 1px solid #f1f5f9;

    color: #475569;

    font-size: 13px;
}

.pricing-card li::before {
    content: "✓";

    position: absolute;

    left: 0;

    color: var(--success);

    font-weight: 800;
}


/* =========================================================
   CTA
========================================================= */

.cta-section {
    padding: 80px 0;

    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #f8fafc
        );
}

.cta-container {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 35px;
}

.cta-container h2 {
    font-size: clamp(30px, 4vw, 42px);

    line-height: 1.15;

    letter-spacing: -1px;
}

.cta-container p {
    margin-top: 10px;

    color: var(--text-light);
}


/* =========================================================
   CONTACT
========================================================= */

.contact-section {
    background: var(--white);

    min-height: 280px;
}


/* =========================================================
   FOOTER
========================================================= */

.main-footer {
    padding: 55px 0 25px;

    background: var(--secondary);

    color: var(--white);
}

.footer-container {
    display: flex;

    flex-direction: column;

    gap: 30px;
}

.footer-brand {
    display: flex;

    align-items: center;

    gap: 12px;
}

.footer-brand strong {
    font-size: 18px;
}

.footer-brand p {
    margin-top: 2px;

    color: #94a3b8;

    font-size: 11px;
}

.footer-links {
    display: flex;

    flex-wrap: wrap;

    gap: 20px;
}

.footer-links a {
    color: #cbd5e1;

    font-size: 13px;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding-top: 22px;

    border-top: 1px solid #1e293b;
}

.footer-bottom p {
    color: #64748b;

    font-size: 11px;
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1000px) {

    .main-nav {
        gap: 18px;
    }

    .hero-container {
        grid-template-columns: 1fr;

        gap: 55px;
    }

    .hero-content {
        max-width: 800px;

        text-align: center;

        margin: 0 auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        margin: 0 auto;

        width: 100%;
    }

    .features-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .about-container {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .about-content {
        text-align: center;
    }

    .about-content h2,
    .about-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-grid {
        grid-template-columns: 1fr;

        max-width: 550px;

        margin: 0 auto;
    }

    .cta-container {
        flex-direction: column;

        text-align: center;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 700px) {

    .container {
        width: min(
            calc(100% - 28px),
            var(--container)
        );
    }

    .header-container {
        min-height: 70px;

        gap: 10px;
    }

    .brand-subtitle {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .header-actions {
        margin-left: auto;
    }

    .btn {
        min-height: 40px;

        padding: 0 15px;

        font-size: 13px;
    }

    .hero-section {
        padding: 75px 0 70px;
    }

    .hero-content h1 {
        font-size: 42px;

        letter-spacing: -1.8px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .dashboard-card {
        padding: 20px;

        transform: none;
    }

    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
    }

    .section {
        padding: 75px 0;
    }

    .section-heading {
        margin-bottom: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-points {
        grid-template-columns: 1fr;
    }

    .about-card {
        min-height: 280px;
    }

    .pricing-card {
        padding: 30px 24px;
    }

    .cta-section {
        padding: 65px 0;
    }

    .footer-bottom {
        flex-direction: column;

        gap: 8px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .brand-logo {
        width: 40px;
        height: 40px;

        border-radius: 10px;
    }

    .brand-name {
        font-size: 17px;
    }

    .header-actions .btn-login {
        display: none;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .price {
        font-size: 38px;
    }
}