* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.home-body {
    margin: 0;
    background: #eef3f8;
    color: #111827;
    font-family: Arial, Helvetica, sans-serif;
}

.home-container {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.home-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1.5px solid #aebdd0;
    backdrop-filter: blur(14px);
}

.home-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #111827;
    text-decoration: none;
}

.home-brand-logo {
    flex: 0 0 auto;
    min-width: 220px;
}

.home-brand-logo img {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
}

.home-brand-mark {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #0f4f96;
    color: #ffffff;
    font-weight: 900;
    font-size: 22px;
}

.home-brand strong {
    display: block;
    font-size: 18px;
}

.home-brand small {
    display: block;
    color: #64748b;
    font-weight: 800;
}

.home-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.home-nav a {
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.home-nav-button {
    padding: 11px 16px;
    border-radius: 14px;
    background: #1e73e8;
    color: #ffffff !important;
}

.home-hero {
    padding: 70px 0 56px;
    background:
        radial-gradient(circle at 20% 20%, rgba(30, 115, 232, 0.18), transparent 30%),
        linear-gradient(135deg, #f8fbff 0%, #e8f1fb 100%);
    border-bottom: 1.5px solid #aebdd0;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
    gap: 28px;
    align-items: stretch;
}

.home-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #1e73e8;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-hero h1 {
    margin: 0;
    max-width: 840px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.home-hero p {
    max-width: 760px;
    margin: 22px 0 0;
    color: #334155;
    font-size: 18px;
    line-height: 1.7;
    font-weight: 700;
}

.home-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 16px;
    border: 1.5px solid #1e73e8;
    text-decoration: none;
    font-size: 15px;
    font-weight: 900;
}

.home-btn-primary {
    background: #1e73e8;
    color: #ffffff;
}

.home-btn-secondary {
    background: #ffffff;
    color: #111827;
}

.home-btn-full {
    width: 100%;
}

.home-note {
    display: inline-flex;
    margin-top: 18px;
    padding: 10px 14px;
    border: 1.5px solid #b7c5d7;
    border-radius: 16px;
    background: #ffffff;
    color: #475569;
    font-weight: 800;
}

.home-login-card {
    align-self: stretch;
    padding: 28px;
    border: 1.5px solid #aebdd0;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.1);
}

.home-login-card span {
    display: block;
    color: #1e73e8;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.home-login-card h2 {
    margin: 14px 0 0;
    font-size: 28px;
    line-height: 1.15;
}

.home-login-card p {
    margin: 16px 0 24px;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 700;
}

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

.home-section-alt {
    background: #f8fbff;
    border-top: 1.5px solid #d5deea;
    border-bottom: 1.5px solid #d5deea;
}

.home-section-head {
    max-width: 820px;
    margin-bottom: 28px;
}

.home-section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.home-section-head p {
    color: #475569;
    font-size: 17px;
    line-height: 1.7;
    font-weight: 700;
}

.home-card-grid,
.home-link-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.home-card,
.home-link-card,
.home-partner-placeholder {
    min-height: 170px;
    padding: 22px;
    border: 1.5px solid #aebdd0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}

.home-card h3 {
    margin: 0;
    font-size: 20px;
}

.home-card p {
    margin: 12px 0 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 700;
}

.home-dvali-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 30px;
    border: 1.5px solid #aebdd0;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.home-dvali-box h2 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.home-dvali-box p {
    max-width: 820px;
    color: #475569;
    font-size: 17px;
    line-height: 1.7;
    font-weight: 700;
}

.home-link-card {
    color: #111827;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.home-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.12);
}

.home-link-card strong {
    display: block;
    font-size: 18px;
}

.home-link-card span {
    display: block;
    margin-top: 10px;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 700;
}

.home-partner-placeholder {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 120px;
    justify-content: center;
    color: #475569;
}

.home-partner-placeholder strong {
    color: #111827;
    font-size: 20px;
}

.home-footer {
    padding: 24px 0;
    background: #101827;
    color: #ffffff;
}

.home-footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.home-footer strong,
.home-footer span {
    display: block;
}

.home-footer span {
    color: #cbd5e1;
    margin-top: 4px;
}

.home-footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.home-footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
}

@media (max-width: 1000px) {
    .home-header {
        gap: 16px;
        padding: 14px 20px;
    }

    .home-brand-logo {
        min-width: 200px;
    }

    .home-brand-logo img {
        width: 200px;
    }

    .home-nav {
        gap: 10px;
    }

    .home-nav a {
        font-size: 13px;
    }

    .home-hero-grid,
    .home-dvali-box {
        grid-template-columns: 1fr;
        display: grid;
    }

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

@media (max-width: 680px) {
    .home-container {
        width: min(100% - 28px, 1180px);
    }

    .home-header {
        position: static;
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 12px;
        padding: 12px 14px;
    }

    .home-brand-logo {
        width: 100%;
        min-width: 0;
        display: flex;
        justify-content: center;
    }

    .home-brand-logo img {
        width: min(230px, 86vw);
        max-width: 230px;
        height: auto;
        display: block;
    }

    .home-nav {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    .home-nav a {
        font-size: 12px;
        line-height: 1.2;
    }

    .home-nav-button {
        padding: 10px 13px;
        border-radius: 13px;
    }

    .home-hero {
        padding: 40px 0 42px;
    }

    .home-hero h1 {
        font-size: clamp(31px, 10.5vw, 42px);
        line-height: 1.08;
        letter-spacing: -0.035em;
    }

    .home-hero p {
        font-size: 15px;
        line-height: 1.65;
    }

    .home-eyebrow {
        font-size: 12px;
        line-height: 1.45;
    }

    .home-actions {
        gap: 10px;
    }

    .home-btn {
        min-height: 44px;
        padding: 11px 16px;
        font-size: 14px;
        border-radius: 14px;
    }

    .home-note {
        font-size: 13px;
        line-height: 1.5;
    }

    .home-card-grid,
    .home-link-grid {
        grid-template-columns: 1fr;
    }

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

    .home-section-head h2,
    .home-dvali-box h2 {
        font-size: clamp(26px, 8vw, 34px);
    }

    .home-section-head p,
    .home-dvali-box p {
        font-size: 15px;
        line-height: 1.65;
    }

    .home-login-card,
    .home-dvali-box {
        padding: 22px;
    }

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

@media (max-width: 420px) {
    .home-header {
        padding: 10px 12px;
    }

    .home-brand-logo img {
        width: min(210px, 84vw);
        max-width: 210px;
    }

    .home-nav {
        gap: 7px;
    }

    .home-nav a {
        font-size: 11.5px;
    }

    .home-nav-button {
        padding: 9px 12px;
    }

    .home-hero h1 {
        font-size: clamp(29px, 10vw, 38px);
    }
}