:root {
    --red: #c1121f;
    --red-deep: #8f0d18;
    --ink: #202124;
    --muted: #5d636b;
    --line: #d9dee5;
    --paper: #ffffff;
    --soft: #f5f7f9;
    --amber: #f6bd60;
    --teal: #0e7c7b;
    --shadow: 0 18px 45px rgba(20, 24, 31, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.training-ribbon {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 18px;
    color: #fff;
    background: #15171a;
    text-align: center;
    font-size: 14px;
}

.training-ribbon strong {
    color: var(--amber);
}

.page-watermark {
    position: fixed;
    z-index: 25;
    inset: auto -80px 12vh auto;
    transform: rotate(-18deg);
    pointer-events: none;
    color: rgba(193, 18, 31, 0.11);
    font-size: clamp(96px, 16vw, 220px);
    font-weight: 900;
    line-height: 1;
}

.site-header {
    position: relative;
    z-index: 35;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 14px clamp(18px, 5vw, 72px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(217, 222, 229, 0.82);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #fff;
    background: var(--red);
    border: 3px solid var(--ink);
    font-weight: 900;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 15px;
    line-height: 1.2;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
}

.top-nav {
    display: flex;
    gap: 18px;
    justify-content: center;
    min-width: 0;
}

.top-nav a {
    color: #353a41;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

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

.ghost-button,
.primary-action,
.secondary-action,
.login-demo button {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
}

.ghost-button {
    padding: 10px 14px;
    color: var(--red-deep);
    background: #fff4f4;
    border: 1px solid #f0b6bc;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
    gap: clamp(24px, 4vw, 54px);
    align-items: center;
    min-height: calc(78vh - 42px);
    padding: clamp(46px, 8vw, 96px) clamp(18px, 5vw, 72px);
    overflow: hidden;
}

.hero-background,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-background {
    background: url("../img/fake-bank-hero.png") center / cover no-repeat;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 38%, rgba(255, 255, 255, 0.44) 68%, rgba(255, 255, 255, 0.2) 100%),
        linear-gradient(0deg, rgba(20, 24, 31, 0.16), rgba(20, 24, 31, 0.02));
}

.hero-content,
.login-demo {
    position: relative;
    z-index: 2;
}

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

.eyebrow,
.panel-kicker {
    margin: 0 0 10px;
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    max-width: 740px;
    margin: 0;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 0.98;
}

h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
}

h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.hero-copy {
    max-width: 690px;
    margin: 22px 0 0;
    color: #343941;
    font-size: clamp(17px, 2vw, 21px);
}

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

.primary-action,
.secondary-action {
    padding: 13px 18px;
}

.primary-action {
    color: #fff;
    background: var(--red);
    box-shadow: 0 12px 24px rgba(143, 13, 24, 0.26);
}

.secondary-action {
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
}

.login-demo {
    padding: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(217, 222, 229, 0.95);
    border-top: 7px solid var(--red);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.panel-stamp {
    position: absolute;
    top: 18px;
    right: -34px;
    width: 140px;
    transform: rotate(34deg);
    color: #fff;
    background: var(--red);
    text-align: center;
    font-weight: 900;
}

.login-demo h2 {
    padding-right: 68px;
    font-size: 28px;
}

.login-demo p {
    color: var(--muted);
}

.login-demo form {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.login-demo label {
    color: #363b42;
    font-size: 13px;
    font-weight: 800;
}

.login-demo input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: #747b84;
    background: #eef1f4;
    border: 1px dashed #a8b0ba;
    border-radius: 6px;
}

.login-demo button {
    margin-top: 6px;
    padding: 12px 14px;
    color: #fff;
    background: var(--ink);
}

.status-line {
    min-height: 42px;
    margin: 14px 0 0;
    padding: 10px 12px;
    color: #173b3a;
    background: #e9f7f6;
    border: 1px solid #a9d7d5;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.warning-band {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 18px clamp(18px, 5vw, 72px);
    color: #2f250b;
    background: #fff1cf;
    border-block: 1px solid #f5d58e;
}

.content-section,
.lesson-section {
    padding: clamp(48px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.split {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}

.content-section > div > p:not(.eyebrow) {
    max-width: 620px;
    color: var(--muted);
    font-size: 17px;
}

.flag-grid,
.service-grid {
    display: grid;
    gap: 16px;
}

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

.flag-card,
.service-card {
    min-width: 0;
    padding: 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.flag-card {
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.flag-card.is-highlighted {
    border-color: var(--red);
    box-shadow: 0 12px 28px rgba(193, 18, 31, 0.14);
    transform: translateY(-2px);
}

.flag-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 30px;
    margin-bottom: 18px;
    color: #fff;
    background: var(--teal);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.flag-card p,
.service-card p {
    margin: 0;
    color: var(--muted);
}

.section-heading {
    display: flex;
    gap: 24px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 22px;
}

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

.service-icon {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    place-items: center;
    color: var(--red);
    background: #fff4f4;
    border: 1px solid #f0b6bc;
    border-radius: 8px;
}

.service-card a {
    display: inline-flex;
    margin-top: 16px;
    color: var(--red-deep);
    font-weight: 900;
    text-decoration: none;
}

.lesson-section {
    display: grid;
    grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 72px);
    background: var(--soft);
}

.lesson-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: lesson;
}

.lesson-list li {
    position: relative;
    min-height: 58px;
    padding: 16px 18px 16px 60px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    counter-increment: lesson;
}

.lesson-list li::before {
    position: absolute;
    top: 16px;
    left: 16px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #fff;
    background: var(--red);
    border-radius: 50%;
    content: counter(lesson);
    font-size: 13px;
    font-weight: 900;
}

.site-footer {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 24px clamp(18px, 5vw, 72px);
    color: #fff;
    background: #15171a;
    font-size: 13px;
}

@media (max-width: 980px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    .top-nav {
        display: none;
    }

    .hero,
    .split,
    .lesson-section {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 48px;
    }

    .login-demo {
        max-width: 520px;
    }

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

@media (max-width: 640px) {
    .training-ribbon,
    .warning-band,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-header {
        gap: 12px;
        padding-block: 12px;
    }

    .brand-mark {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .brand strong {
        font-size: 13px;
    }

    .ghost-button {
        width: 44px;
        min-width: 44px;
        padding-inline: 0;
        overflow: hidden;
        color: #fff;
        background: var(--red);
    }

    .ghost-button svg {
        flex: 0 0 auto;
    }

    .hero {
        padding-top: 34px;
    }

    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 58%, rgba(255, 255, 255, 0.78) 100%),
            linear-gradient(0deg, rgba(20, 24, 31, 0.1), rgba(20, 24, 31, 0));
    }

    h1 {
        font-size: 38px;
    }

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

    .primary-action,
    .secondary-action {
        width: 100%;
    }

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

    .page-watermark {
        right: -44px;
        bottom: 5vh;
        font-size: 100px;
    }
}
