* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --site-width: 1080px;
    --site-gutter: 40px;
    --reading-width: 760px;
    --download-width: 330px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 10%, rgba(24, 104, 170, 0.24), transparent 30%),
        radial-gradient(circle at 15% 65%, rgba(0, 170, 255, 0.06), transparent 28%),
        linear-gradient(180deg, #07111d 0%, #050b13 58%, #03070c 100%);
    color: #f4f8ff;
    font-family: "Segoe UI", Arial, sans-serif;
}

.page-shell {
    width: min(var(--site-width), calc(100% - var(--site-gutter)));
    margin: 0 auto;
}

.demo-hero {
    width: 100%;
    margin: 0 auto;
    padding: 64px 0 72px;
    text-align: center;
}

.language-switcher {
    position: fixed;
    top: 24px;
    right: 28px;
    z-index: 100;
    display: flex;
    gap: 10px;
}

.language-button {
    width: 44px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(104, 189, 235, 0.16);
    border-radius: 10px;
    background: rgba(10, 28, 44, 0.44);
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.66;
    backdrop-filter: blur(10px);
    transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.language-button:hover {
    opacity: 1;
    transform: translateY(-1px);
    border-color: rgba(102, 218, 255, 0.46);
}

.language-button.active {
    opacity: 1;
    border-color: rgba(83, 205, 255, 0.62);
    background: rgba(25, 92, 133, 0.52);
    box-shadow: 0 0 18px rgba(0, 157, 255, 0.08);
}

.language-flag {
    width: 28px;
    height: 14px;
    display: block;
    border-radius: 2px;
    overflow: hidden;
}

.brand-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.dittrail-symbol {
    width: min(210px, 54vw);
    height: auto;
    display: block;
    margin-bottom: 10px;
    filter:
        drop-shadow(0 0 10px rgba(0, 183, 255, 0.18))
        drop-shadow(0 0 22px rgba(0, 119, 255, 0.10));
}

.brand {
    font-size: clamp(54px, 8vw, 86px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -4px;
}

.brand-dit {
    color: #ffffff;
}

.brand-trail {
    background: linear-gradient(90deg, #70d8ff 0%, #18bfff 45%, #0d7eff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    margin: 34px 0 0;
    color: #74cfff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
}

h1 {
    margin: 12px 0 0;
    font-size: clamp(36px, 6vw, 58px);
    line-height: 1.05;
}

.lead {
    max-width: var(--reading-width);
    margin: 24px auto 0;
    color: #9cb0c2;
    font-size: 17px;
    line-height: 1.75;
}

.download-button {
    display: inline-block;
    width: min(var(--download-width), 100%);
    margin-top: 36px;
    padding: 15px 28px;
    text-align: center;
    border: 1px solid rgba(83, 205, 255, 0.52);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(27, 172, 232, 0.18), rgba(13, 126, 255, 0.16));
    color: #bfeaff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 0 30px rgba(0, 157, 255, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.download-button:hover {
    transform: translateY(-2px);
    border-color: rgba(102, 218, 255, 0.8);
    background: linear-gradient(90deg, rgba(27, 172, 232, 0.28), rgba(13, 126, 255, 0.24));
}

.download-options {
    margin: 36px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.download-option {
    min-width: 0;
    padding: 14px 12px 12px;
    border: 1px solid rgba(104, 189, 235, 0.14);
    border-radius: 18px;
    background: rgba(12, 34, 52, 0.36);
}

.download-option .download-button {
    width: 100%;
    min-height: 50px;
    margin-top: 0;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    letter-spacing: 1.1px;
}

.download-option .file-name {
    margin: 12px 0 0;
    font-size: 11px;
    letter-spacing: 0.15px;
    overflow-wrap: anywhere;
}

.security-note {
    padding-top: 12px;
    border-top: 1px solid rgba(104, 189, 235, 0.12);
}

.checksum-link {
    margin: 15px 0 0;
    font-size: 12px;
    letter-spacing: 0.4px;
}

.checksum-link a {
    color: #7ebedb;
    text-decoration: underline;
    text-decoration-color: rgba(126, 190, 219, 0.4);
    text-underline-offset: 3px;
}

.checksum-link a:hover {
    color: #c9efff;
}

.download-details {
    width: 100%;
    max-width: 560px;
    margin: 16px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.version-badge,
.download-count-badge {
    flex: 0 0 auto;
    max-width: 100%;
    min-height: 34px;
    justify-content: center;
    white-space: nowrap;
    padding: 7px 11px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(83, 205, 255, 0.30);
    border-radius: 999px;
    background: rgba(12, 45, 69, 0.46);
    color: #7da3bb;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.version-badge strong,
.download-count-badge strong {
    color: #c9efff;
    font-size: 12px;
    letter-spacing: 1px;
}

.download-count-badge {
    border-color: rgba(83, 205, 255, 0.22);
    background: linear-gradient(180deg, rgba(14, 57, 86, 0.42), rgba(8, 29, 46, 0.38));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.download-count-badge[hidden] {
    display: none;
}

.download-count-icon {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #63ccff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.9;
}

.file-name {
    margin: 10px 0 0;
    color: #526c82;
    font-size: 12px;
    letter-spacing: 1px;
}

.info-grid {
    padding: 62px 0 82px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    border-top: 1px solid rgba(129, 200, 238, 0.12);
}

.info-card {
    position: relative;
    padding: 32px;
    overflow: hidden;
    border: 1px solid rgba(104, 189, 235, 0.11);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(17, 42, 65, 0.42), rgba(7, 17, 28, 0.20));
}

.card-number {
    display: block;
    margin-bottom: 18px;
    color: #4fc5ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.info-card h2 {
    margin: 0;
    color: #f5fbff;
    font-size: 24px;
}

.info-card p {
    color: #91a7ba;
    font-size: 15px;
    line-height: 1.75;
}

.info-card p {
    margin: 14px 0 0;
}

.info-card strong {
    color: #dcecf8;
}

footer {
    padding: 26px 0 34px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(129, 200, 238, 0.08);
    color: #4f667a;
    font-size: 12px;
    letter-spacing: 1px;
}

footer a {
    color: #7797ae;
    text-decoration: none;
}

footer a:hover {
    color: #a9dfff;
}

@media (max-width: 760px) {
    :root {
        --site-gutter: 28px;
    }

    .page-shell {
        width: min(var(--site-width), calc(100% - var(--site-gutter)));
    }

    .demo-hero {
        padding-top: 72px;
    }

    .language-switcher {
        top: 16px;
        right: 16px;
        gap: 6px;
    }

    .language-button {
        width: 36px;
        height: 30px;
    }

    .language-flag {
        width: 24px;
        height: 12px;
    }

    .brand {
        letter-spacing: -3px;
    }

    .download-options {
        max-width: 420px;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .download-details {
        gap: 8px;
    }

    .version-badge,
    .download-count-badge {
        font-size: 10px;
        letter-spacing: 1px;
    }

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

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