/* =========================================================
   ePRMS LANDING PAGE
   Same design tokens as the application (css/screen.css)
   ========================================================= */

:root {
    --eprms-green: #198754;
    --eprms-green-dark: #146c43;
    --eprms-green-deep: #0f5132;
    --eprms-green-light: #e9f7ef;

    --text-dark: #26332d;
    --text: #4f5b55;
    --text-light: #8a9690;

    --border-light: #edf1ee;
    --background: #f4f7f5;
    --white: #ffffff;

    --radius: 8px;
    --radius-large: 12px;

    --shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.11);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);

    background: var(--background);
}

img {
    max-width: 100%;
}

a {
    color: var(--eprms-green);
}

.wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

svg {
    width: 1em;
    height: 1em;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Buttons
--------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 13px 24px;

    border: 1px solid transparent;
    border-radius: var(--radius);

    background: linear-gradient(135deg, var(--eprms-green), var(--eprms-green-dark));
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.22);

    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;

    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
    background: linear-gradient(135deg, var(--eprms-green-dark), var(--eprms-green-deep));
    box-shadow: 0 7px 16px rgba(25, 135, 84, 0.28);
    transform: translateY(-1px);
}

.btn svg {
    font-size: 17px;
}

.btn-small {
    padding: 8px 18px;
    font-size: 14px;
}

.btn-light {
    background: #ffffff;
    color: var(--eprms-green-dark);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.btn-light:hover {
    background: var(--eprms-green-light);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: none;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}


/* Top bar (same as the app header: white, green 3px line)
--------------------------------------------------------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;

    background: #ffffff;
    border-bottom: 3px solid var(--eprms-green);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    min-height: 72px;
}

.topbar-logo img {
    display: block;
    height: 48px;
    width: auto;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.topbar-nav > a:not(.btn) {
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.topbar-nav > a:not(.btn):hover {
    color: var(--eprms-green);
}


/* Hero (same green as the login brand panel)
--------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;

    min-height: calc(100vh - 75px);

    display: flex;
    align-items: center;

    padding: 70px 0;

    color: #ffffff;

    background:
        radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.14), transparent 40%),
        radial-gradient(circle at 90% 95%, rgba(0, 0, 0, 0.18), transparent 45%),
        linear-gradient(150deg, var(--eprms-green) 0%, var(--eprms-green-dark) 55%, var(--eprms-green-deep) 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;

    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.10);

    pointer-events: none;
}

.hero::before {
    width: 620px;
    height: 620px;
    right: -200px;
    top: -220px;
}

.hero::after {
    width: 420px;
    height: 420px;
    left: -160px;
    bottom: -180px;
}

.hero-inner {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
    gap: 60px;
}

.hero-badge {
    display: inline-block;

    margin-bottom: 20px;
    padding: 6px 14px;

    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);

    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.hero h1 {
    margin: 0 0 20px;

    font-size: 46px;
    font-weight: 600;
    line-height: 1.15;
}

.hero p {
    max-width: 540px;
    margin: 0 0 34px;

    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}


/* Counter card
--------------------------------------------------------- */

.counter-card {
    padding: 40px 36px 36px;

    border-radius: var(--radius-large);
    background: #ffffff;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.22);

    text-align: center;
    color: var(--text);
}

.counter-icon {
    width: 64px;
    height: 64px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 16px;
    background: var(--eprms-green-light);

    font-size: 30px;
    color: var(--eprms-green);
}

.counter-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
}

.counter-value {
    margin: 6px 0 8px;

    font-size: 60px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--eprms-green);

    font-variant-numeric: tabular-nums;
}

.counter-note {
    padding-top: 16px;
    border-top: 1px solid var(--border-light);

    font-size: 14px;
    color: var(--text-light);
}


/* Features (cards in the app's .content-box style)
--------------------------------------------------------- */

.features {
    padding: 90px 0;
}

.section-title {
    margin: 0 0 8px;

    font-size: 30px;
    font-weight: 600;
    text-align: center;
    color: var(--text-dark);
}

.section-sub {
    margin: 0 0 50px;

    text-align: center;
    color: var(--text-light);
}

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

.feature {
    padding: 28px 26px;

    border: 1px solid var(--eprms-green);
    border-radius: var(--radius-large);
    background: #ffffff;
    box-shadow: var(--shadow);

    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* 3 columns on a 6-track grid, so a last row of one or two cards sits in the middle */
@media (min-width: 961px) {
    .feature-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .feature {
        grid-column: span 2;
    }

    .feature:last-child:nth-child(3n+1) {
        grid-column: 3 / span 2;
    }

    .feature:nth-last-child(2):nth-child(3n+1) {
        grid-column: 2 / span 2;
    }
}

.feature:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 12px;
    background: var(--eprms-green-light);

    font-size: 22px;
    color: var(--eprms-green);
}

.feature h3 {
    margin: 0 0 8px;

    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
}

.feature p {
    margin: 0;
    font-size: 14px;
}


/* Call to action
--------------------------------------------------------- */

.cta {
    padding: 0 0 90px;
}

.cta-card {
    display: flex;
    align-items: center;
    gap: 26px;

    padding: 32px 36px;

    border: 1px solid var(--border-light);
    border-radius: var(--radius-large);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.cta-mark {
    width: 64px;
    height: 64px;
    flex-shrink: 0;

    border-radius: 16px;
}

.cta-text {
    flex: 1;
}

.cta h2 {
    margin: 0 0 4px;

    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
}

.cta p {
    margin: 0;
    color: var(--text-light);
}


/* Footer (same as the app footer)
--------------------------------------------------------- */

.footer {
    padding: 25px 0;

    border-top: 1px solid var(--eprms-green);
    background: #ffffff;

    font-size: 13px;
    color: #8b9690;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.footer strong {
    color: var(--text);
}

.footer a {
    font-weight: 600;
    text-decoration: none;
}


/* Responsive
--------------------------------------------------------- */

@media (max-width: 960px) {

    .hero {
        min-height: 0;
        padding: 60px 0 70px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 44px;
    }

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

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

/* 2 columns: a single card in the last row sits in the middle */
@media (min-width: 641px) and (max-width: 960px) {
    .feature:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - 12px);
    }
}

@media (max-width: 640px) {

    .wrap {
        padding: 0 18px;
    }

    .topbar-inner {
        min-height: 62px;
    }

    .topbar-logo img {
        height: 38px;
    }

    .topbar-nav > a:not(.btn) {
        display: none;
    }

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

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

    .counter-card {
        padding: 32px 22px 28px;
    }

    .counter-value {
        font-size: 46px;
    }

    .features {
        padding: 60px 0;
    }

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

    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 22px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn,
    .feature {
        transition: none;
    }
}
