
:root {
    --navy: #123b55;
    --navy-dark: #0b293d;
    --blue: #087eae;
    --blue-light: #eaf5f9;
    --red: #d62839;
    --green: #55a448;
    --gold: #d6a33d;
    --purple: #8064bd;
    --text: #244456;
    --muted: #718692;
    --border: #e3ebef;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    color: var(--text);
    background: #f6f9fb;
    line-height: 1.7;
}

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

button,
input {
    font-family: inherit;
}

/* TOP NAVIGATION */

.topbar {
    width: 100%;
    min-height: 82px;
    padding: 14px 7%;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(20,55,75,.04);
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--navy);
    font-size: 23px;
    font-weight: bold;
    white-space: nowrap;
}

.brand-icon {
    width: 43px;
    height: 43px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: white;
    background: var(--red);
    font-size: 24px;
    box-shadow: 0 5px 14px rgba(214,40,57,.2);
}

.red {
    color: var(--red);
}

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

.topbar nav a {
    color: #526d7c;
    font-size: 14px;
    font-weight: bold;
    transition: .2s;
}

.topbar nav a:hover {
    color: var(--red);
}

.topbar nav .nav-login {
    background: var(--red);
    color: white;
    padding: 11px 23px;
    border-radius: 8px;
}

.topbar nav .nav-login:hover {
    background: #b91f30;
    color: white;
}

/* HERO SECTION */

.hero {
    max-width: 1320px;
    min-height: 580px;
    margin: auto;
    padding: 75px 7%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 65px;
}

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

.eyebrow {
    display: inline-block;
    color: var(--blue);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1.5px;
    margin-bottom: 17px;
}

.hero h1 {
    color: var(--navy);
    font-size: clamp(34px, 4vw, 49px);
    line-height: 1.45;
    margin: 0 0 20px;
    font-weight: 800;
}

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

.hero-content > p {
    color: #617985;
    font-size: 16px;
    line-height: 2.1;
    margin: 0 0 27px;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
}

.primary-btn,
.secondary-btn {
    min-height: 49px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 12px 23px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: bold;
    transition: .2s ease;
}

.primary-btn {
    color: white;
    background: var(--red);
    box-shadow: 0 7px 18px rgba(214,40,57,.18);
}

.primary-btn:hover {
    background: #b91f30;
    transform: translateY(-2px);
}

.secondary-btn {
    color: var(--navy);
    border: 1px solid #cbdde5;
    background: white;
}

.secondary-btn:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.trust-line {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #718692;
    font-size: 13px;
    margin-top: 28px;
}

.trust-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px #55a44818;
}

/* DASHBOARD PREVIEW */

.hero-visual {
    position: relative;
    padding: 15px;
}

.dashboard-preview {
    background: white;
    border: 1px solid #e3ebef;
    border-radius: 17px;
    overflow: hidden;
    box-shadow: 0 25px 65px rgba(22,57,77,.13);
    transform: rotate(-1deg);
}

.preview-header {
    min-height: 54px;
    padding: 0 21px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--navy-dark);
    color: white;
    font-size: 11px;
    letter-spacing: 1px;
}

.preview-header > div {
    display: flex;
    gap: 6px;
}

.preview-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dce9ed;
}

.preview-dot:first-child {
    background: #ed6670;
}

.preview-dot:nth-child(2) {
    background: #e9bd61;
}

.preview-dot:nth-child(3) {
    background: #77c58c;
}

.preview-body {
    padding: 25px;
    background: #f8fbfc;
}

.preview-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.preview-welcome small {
    color: #8a9ba4;
    font-size: 10px;
    letter-spacing: 1px;
}

.preview-welcome h3 {
    margin: 5px 0 0;
    color: var(--navy);
    font-size: 19px;
}

.preview-avatar {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: white;
    background: var(--red);
    font-weight: bold;
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
}

.stat-card {
    min-height: 105px;
    padding: 15px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 11px;
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    column-gap: 10px;
}

.stat-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    grid-row: span 2;
    border-radius: 9px;
    font-size: 20px;
}

.blue {
    color: var(--blue);
    background: #e5f3f9;
}

.red-bg {
    color: var(--red);
    background: #fff0f1;
}

.green {
    color: var(--green);
    background: #edf7eb;
}

.gold {
    color: #b88827;
    background: #fff6e3;
}

.stat-card small {
    color: #82939b;
    font-size: 11px;
}

.stat-card strong {
    color: var(--navy);
    font-size: 13px;
}

.preview-chart {
    margin-top: 15px;
    padding: 17px;
    border-radius: 11px;
    background: white;
    border: 1px solid var(--border);
}

.preview-chart > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.preview-chart strong {
    color: var(--navy);
    font-size: 13px;
}

.preview-chart small {
    color: #8a9ba4;
    font-size: 11px;
}

.chart-bars {
    height: 75px;
    margin-top: 13px;
    display: flex;
    align-items: end;
    justify-content: space-around;
    gap: 12px;
    border-bottom: 1px solid #e7edf0;
}

.chart-bars i {
    width: 9%;
    min-height: 18px;
    border-radius: 5px 5px 0 0;
    background: linear-gradient(180deg, #38a4ca, #087eae);
}

.chart-bars i:nth-child(1) { height: 38%; }
.chart-bars i:nth-child(2) { height: 60%; }
.chart-bars i:nth-child(3) { height: 48%; }
.chart-bars i:nth-child(4) { height: 78%; }
.chart-bars i:nth-child(5) { height: 57%; }
.chart-bars i:nth-child(6) { height: 90%; }
.chart-bars i:nth-child(7) { height: 70%; }

.floating-label {
    position: absolute;
    bottom: -8px;
    right: -8px;
    padding: 13px 19px;
    background: white;
    color: var(--navy);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(22,57,77,.12);
    font-size: 12px;
    font-weight: bold;
}

.floating-label span {
    color: var(--green);
    margin-left: 7px;
}

/* FEATURES */

.features-section {
    padding: 85px 7%;
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.section-heading h2 {
    color: var(--navy);
    font-size: 34px;
    margin: 0 0 12px;
}

.section-heading p {
    color: var(--muted);
    font-size: 15px;
    margin: 0;
}

.features-grid {
    max-width: 1180px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    min-height: 205px;
    padding: 25px 22px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: white;
    transition: .25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #b8d8e5;
    box-shadow: 0 13px 30px rgba(22,57,77,.08);
}

.feature-icon {
    width: 47px;
    height: 47px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 23px;
    margin-bottom: 17px;
}

.purple {
    color: var(--purple);
    background: #f1edfa;
}

.feature-card h3 {
    color: var(--navy);
    font-size: 17px;
    margin: 0 0 9px;
}

.feature-card p {
    color: #718692;
    font-size: 13px;
    line-height: 1.9;
    margin: 0;
}

/* LOGIN SECTION */

.login-section {
    max-width: 1200px;
    margin: 75px auto;
    padding: 0 25px;
    display: grid;
    grid-template-columns: 1fr 440px;
    align-items: center;
    gap: 75px;
}

.login-info {
    padding: 25px;
}

.login-info h2 {
    color: var(--navy);
    font-size: 34px;
    line-height: 1.5;
    margin: 0 0 15px;
}

.login-info > p {
    color: var(--muted);
    line-height: 2;
    font-size: 15px;
    max-width: 500px;
    margin-bottom: 28px;
}

.login-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
    color: #526d7c;
    font-size: 14px;
}

.login-benefit span {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--green);
    background: #eaf6e8;
    font-weight: bold;
}

.login-card {
    padding: 38px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 17px;
    box-shadow: 0 20px 55px rgba(22,57,77,.09);
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: var(--navy);
    font-size: 21px;
    margin-bottom: 25px;
}

.login-card h2 {
    text-align: center;
    color: var(--navy);
    font-size: 25px;
    margin: 0 0 7px;
}

.login-sub {
    color: #82939b;
    font-size: 13px;
    text-align: center;
    margin: 0 0 28px;
}

.login-card form label {
    display: block;
    color: #385667;
    font-size: 13px;
    font-weight: bold;
    margin: 17px 0 8px;
}

.input-wrap {
    min-height: 51px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid #d9e4e9;
    border-radius: 9px;
    transition: .2s;
}

.input-wrap:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(8,126,174,.09);
}

.input-wrap > span {
    color: var(--blue);
    font-size: 17px;
}

.input-wrap input {
    min-width: 0;
    flex: 1;
    height: 48px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--navy);
    font-size: 13px;
}

.input-wrap input::placeholder {
    color: #a2afb5;
}

.input-wrap button {
    border: 0;
    background: transparent;
    color: #718692;
    cursor: pointer;
    font-size: 17px;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 19px 0;
    color: #84949b;
    font-size: 11px;
}

.secure-label {
    color: var(--green);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

.login-submit {
    width: 100%;
    min-height: 53px;
    border: 0;
    border-radius: 9px;
    color: white;
    background: linear-gradient(100deg, var(--red), #b91f30);
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(214,40,57,.18);
    transition: .2s;
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(214,40,57,.25);
}

.login-submit span {
    margin-right: 9px;
}

.login-message {
    margin-top: 15px;
    padding: 12px;
    color: #795b1b;
    background: #fff8e7;
    border: 1px solid #f0dfb4;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.8;
}

.login-message[hidden] {
    display: none;
}

.login-footer {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 23px;
    text-align: center;
    color: #87969d;
    font-size: 11px;
}

/* FOOTER */

.footer {
    padding: 35px 20px;
    background: var(--navy-dark);
    color: #c1d2da;
    text-align: center;
}

.footer-brand {
    color: white;
    font-size: 21px;
    font-weight: bold;
}

.footer p {
    margin: 5px 0 12px;
    font-size: 12px;
    color: #a9c0cb;
}

.footer small {
    color: #819ba8;
    font-size: 11px;
}

/* RESPONSIVE */

@media (max-width: 1050px) {
    .hero {
        gap: 35px;
        padding-left: 5%;
        padding-right: 5%;
    }

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

    .login-section {
        gap: 35px;
        grid-template-columns: 1fr 400px;
    }
}

@media (max-width: 760px) {
    .topbar {
        padding: 13px 5%;
        flex-wrap: wrap;
    }

    .topbar nav {
        width: 100%;
        justify-content: center;
        gap: 18px;
        flex-wrap: wrap;
    }

    .topbar nav a {
        font-size: 12px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 55px 6%;
        gap: 35px;
    }

    .hero-content {
        max-width: none;
    }

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

    .hero-visual {
        max-width: 550px;
        width: 100%;
        margin: auto;
    }

    .features-section {
        padding: 60px 6%;
    }

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

    .login-section {
        margin: 50px auto;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .login-info {
        padding: 10px;
    }

    .login-info h2 {
        font-size: 28px;
    }

    .login-card {
        width: 100%;
        max-width: 480px;
        margin: auto;
    }
}

@media (max-width: 480px) {
    .brand {
        font-size: 19px;
    }

    .topbar nav {
        gap: 12px;
    }

    .topbar nav .nav-login {
        padding: 8px 14px;
    }

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

    .hero-content > p {
        font-size: 14px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .preview-body {
        padding: 15px;
    }

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

    .feature-card {
        min-height: auto;
    }

    .login-card {
        padding: 25px 19px;
    }

    .floating-label {
        right: 0;
        bottom: -15px;
        font-size: 10px;
    }
}
