:root {
    --bg: #f7f8fb;
    --navy: #1f2d5f;
    --red: #b12825;
    --cream: #f6f1e8;
    --surface: #ffffff;
    --text: #22242a;
    --muted: #626775;
    --border: #d8d3c9;
    --shadow: 0 18px 50px rgba(31, 45, 95, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text);
    background: var(--bg);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.demo-header {
    padding: 24px clamp(20px, 5vw, 72px);
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    display: block;
    width: 150px;
    height: auto;
}

.demo-main {
    flex: 1;
    display: grid;
    place-items: center;
    width: 100%;
    padding: 32px 20px 72px;
}

.demo-card {
    width: min(760px, 100%);
    padding: clamp(32px, 6vw, 64px);
    background: var(--surface);
    border: 1px solid var(--border);
/*    box-shadow: var(--shadow);*/
    box-shadow: 0 12px 30px rgba(31, 45, 95, 0.08);
}

.section-label {
    margin: 0 0 14px;
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 20px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.25rem, 6vw, 4rem);
    line-height: 1.05;
}

h2 {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    line-height: 1.25;
}

.demo-introduction {
    max-width: 640px;
    margin-bottom: 36px;
    color: var(--muted);
    font-size: 1.1rem;
}

.features {
    padding: 30px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 28px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.features li {
    position: relative;
    padding-left: 24px;
}

.features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: 700;
}

.demo-note {
    padding-top: 32px;
}

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

.demo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.button-primary {
    color: var(--surface);
    background: var(--red);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: var(--navy);
}

.button-secondary {
    color: var(--navy);
    border-color: var(--navy);
    background: transparent;
}

.button-secondary:hover,
.button-secondary:focus-visible {
    color: var(--surface);
    background: var(--navy);
}

.demo-footer {
    padding: 24px 20px;
    color: var(--muted);
    text-align: center;
    font-size: 0.9rem;
}

.demo-footer p {
    margin: 0;
}

@media (max-width: 640px) {
    .demo-header {
        padding: 18px 20px;
    }

    .brand img {
        width: 78px;
    }

    .demo-main {
        padding: 18px 14px 48px;
    }

    .demo-card {
        padding: 30px 22px;
    }

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

    .demo-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}
