* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --bg: #000;
    --text: #e9eef7;
    --muted: #8a93a2;
    --blue: #2aa8ff;
    --line: rgba(110, 175, 255, .18);
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: #000;
}

.os-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 5, 10, .94);
    box-shadow: 0 10px 34px rgba(0,0,0,.38);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.os-topbar-inner {
    width: min(1600px, calc(100% - 40px));
    min-height: 60px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.os-brand,
.os-back {
    color: #d9e3f0;
    text-decoration: none;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .18em;
    transition: color .2s ease, text-shadow .2s ease;
}

.os-brand:hover,
.os-brand:focus-visible,
.os-back:hover,
.os-back:focus-visible {
    color: #fff;
    text-shadow: 0 0 14px rgba(42,168,255,.35);
    outline: none;
}

.os-divider {
    width: 1px;
    height: 18px;
    background: var(--line);
}

.os-world-name {
    color: var(--blue);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .22em;
}

.os-topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
}

.os-back {
    color: var(--muted);
    letter-spacing: .08em;
    font-weight: 700;
}

.os-language-switch {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #526070;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.language-button {
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: #687483;
    font: inherit;
    letter-spacing: inherit;
    cursor: pointer;
    transition: color .18s ease, text-shadow .18s ease;
}

.language-button:hover,
.language-button:focus-visible,
.language-button.is-active {
    color: #fff;
    text-shadow: 0 0 12px rgba(42,168,255,.42);
    outline: none;
}

.os-page {
    background: #000;
}

.os-hero {
    min-height: calc(100vh - 61px);
    padding: 4vh 4vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.os-logo {
    display: block;
    width: min(1320px, 92vw);
    max-height: calc(100vh - 120px);
    object-fit: contain;
    object-position: center;
}

.os-screenshot-section,
.os-identity-section {
    width: min(1600px, calc(100% - 64px));
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.os-screenshot-section {
    padding: 88px 0 120px;
}

.os-section-heading {
    margin-bottom: 28px;
}

.os-section-kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--blue);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .24em;
}

.os-section-heading h1,
.os-section-heading h2 {
    margin: 0;
    color: #f4f8ff;
    font-size: clamp(1.65rem, 3.2vw, 3rem);
    font-weight: 700;
    letter-spacing: -.02em;
}

.os-screenshot-frame {
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(110, 175, 255, .24);
    background: rgba(4, 9, 16, .88);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .48), 0 0 44px rgba(42, 168, 255, .05);
}

.os-screenshot {
    display: block;
    width: 100%;
    height: auto;
    background: #05070a;
}

.os-screenshot-frame figcaption {
    padding: 14px 6px 4px;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.6;
}

.os-gallery-link,
.os-feature-link {
    display: inline-flex;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(42,168,255,.58);
    color: #dcecff;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    transition: color .18s ease, border-color .18s ease, text-shadow .18s ease;
}

.os-gallery-link {
    margin-top: 24px;
}

.os-feature-link {
    position: relative;
    z-index: 1;
    margin-top: 24px;
}

.os-gallery-link:hover,
.os-gallery-link:focus-visible,
.os-feature-link:hover,
.os-feature-link:focus-visible {
    color: #fff;
    border-color: var(--blue);
    text-shadow: 0 0 14px rgba(42,168,255,.38);
    outline: none;
}

.os-identity-section {
    padding: 96px 0 140px;
}

.os-identity-heading {
    max-width: 900px;
    margin-bottom: 46px;
}

.os-identity-heading p {
    max-width: 820px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.85;
}

.os-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.os-feature-card {
    position: relative;
    min-height: 320px;
    padding: 34px 34px 38px;
    overflow: hidden;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 100% 0%, rgba(42,168,255,.07), transparent 42%),
        rgba(3, 7, 13, .78);
}

.os-feature-card-wide {
    grid-column: span 2;
}

.os-feature-index {
    position: absolute;
    top: 24px;
    right: 28px;
    color: rgba(42,168,255,.18);
    font-size: clamp(3.6rem, 7vw, 6rem);
    font-weight: 800;
    line-height: .9;
    letter-spacing: -.06em;
    pointer-events: none;
}

.os-feature-tag {
    position: relative;
    z-index: 1;
    display: block;
    color: var(--blue);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .2em;
}

.os-feature-card h3 {
    position: relative;
    z-index: 1;
    margin: 70px 0 18px;
    color: #fff;
    font-size: clamp(1.8rem, 3.4vw, 3.1rem);
    font-weight: 700;
    letter-spacing: -.035em;
}

.os-feature-card p {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: .96rem;
    line-height: 1.8;
}

.os-feature-card-wide p {
    max-width: 980px;
}

@media (max-width: 760px) {
    .os-topbar-inner {
        width: min(100% - 24px, 1600px);
        min-height: 56px;
        gap: 10px;
    }

    .os-divider,
    .os-world-name {
        display: none;
    }

    .os-brand,
    .os-back {
        font-size: .64rem;
    }

    .os-topbar-actions {
        gap: 12px;
    }

    .os-language-switch {
        gap: 5px;
        font-size: .62rem;
    }

    .os-hero {
        min-height: calc(100vh - 57px);
        padding: 24px 14px;
    }

    .os-logo {
        width: 96vw;
        max-height: calc(100vh - 110px);
    }

    .os-screenshot-section,
    .os-identity-section {
        width: min(100% - 28px, 1600px);
    }

    .os-screenshot-section {
        padding: 56px 0 72px;
    }

    .os-identity-section {
        padding: 64px 0 82px;
    }

    .os-section-heading {
        text-align: center;
    }

    .os-gallery-link {
        display: flex;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .os-identity-heading {
        margin-left: auto;
        margin-right: auto;
    }

    .os-identity-heading p {
        margin-left: auto;
        margin-right: auto;
    }

    .os-screenshot-frame {
        padding: 7px;
    }

    .os-feature-grid {
        grid-template-columns: 1fr;
    }

    .os-feature-card,
    .os-feature-card-wide {
        grid-column: auto;
        min-height: 280px;
        padding: 28px 24px 32px;
    }

    .os-feature-card h3 {
        margin-top: 64px;
    }
}

@media (max-width: 480px) {
    .os-back {
        display: none;
    }
}
