:root {
    --bg: #06111f;
    --panel: #0d1b2c;
    --panel-soft: #12243a;
    --line: rgba(159, 196, 255, 0.14);
    --line-strong: rgba(159, 196, 255, 0.28);
    --text: #edf4ff;
    --muted: #a9bdd8;
    --accent: #5ec0ff;
    --accent-strong: #1b8fff;
    --success: #7dffb3;
    --shadow: 0 24px 60px rgba(1, 10, 21, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(27, 143, 255, 0.16), transparent 30%),
        radial-gradient(circle at top right, rgba(94, 192, 255, 0.12), transparent 28%),
        linear-gradient(180deg, #06111f 0%, #081423 38%, #0b1320 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(6, 17, 31, 0.72);
    border-bottom: 1px solid var(--line);
}

.nav-row,
.footer-row,
.hero-grid,
.cta-panel,
.hero-actions,
.summary-card__grid,
.surface-card__header {
    display: flex;
    gap: 16px;
}

.nav-row,
.footer-row {
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark strong,
.hero-copy h1 span,
.stat-card strong,
.hero-release-card strong,
.summary-card strong,
.surface-card__header strong {
    color: #fff;
}

.brand-mark small,
.lead,
.surface-card p,
.product-card p,
.cta-panel p,
.site-footer p,
.summary-card p,
.table-card td,
.table-card th,
.feature-list,
.hero-release-card span,
.hero-list small {
    color: var(--muted);
}

.brand-mark__dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--success));
    box-shadow: 0 0 0 6px rgba(94, 192, 255, 0.12);
}

.main-nav,
.footer-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.main-nav a,
.footer-links a {
    color: var(--muted);
    transition: color 0.2s ease;
}

.main-nav a:hover,
.footer-links a:hover,
.text-link:hover {
    color: #fff;
}

.hero {
    padding: 72px 0 48px;
}

.hero--compact {
    padding-bottom: 24px;
}

.hero-grid {
    align-items: center;
    justify-content: space-between;
}

.hero-copy,
.hero-panel {
    flex: 1 1 0;
}

.eyebrow,
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(94, 192, 255, 0.08);
    color: #cfe8ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.cta-panel h2 {
    margin: 18px 0 16px;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero-copy h1 {
    max-width: 720px;
    font-size: clamp(2.7rem, 7vw, 4.9rem);
}

.lead,
.cta-panel p {
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 680px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--primary {
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    color: #fff;
}

.button--secondary {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.02);
}

.stats-grid,
.card-grid {
    display: grid;
    gap: 18px;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 28px;
}

.stat-card,
.surface-card,
.product-card,
.table-card,
.summary-card,
.hero-panel__window,
.cta-panel {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(18, 36, 58, 0.92), rgba(10, 22, 37, 0.98));
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.stat-card {
    padding: 22px;
}

.stat-card strong {
    display: block;
    font-size: 1.9rem;
    margin-bottom: 8px;
}

.hero-panel {
    display: flex;
    justify-content: flex-end;
}

.hero-panel__window {
    width: min(100%, 440px);
    overflow: hidden;
}

.hero-panel__topbar {
    display: flex;
    gap: 10px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.hero-panel__topbar span {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.hero-panel__content {
    padding: 24px;
}

.hero-release-card {
    padding: 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(27, 143, 255, 0.16), rgba(125, 255, 179, 0.08));
    border: 1px solid rgba(125, 220, 255, 0.22);
}

.hero-release-card p,
.hero-release-card strong,
.hero-release-card span {
    margin: 0;
}

.hero-release-card strong {
    display: block;
    margin: 10px 0 8px;
    font-size: 1.6rem;
}

.hero-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.hero-list div,
.summary-card__grid div {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
}

.hero-list strong,
.summary-card__grid strong {
    display: block;
    margin-top: 8px;
}

.section {
    padding: 26px 0 48px;
}

.section--muted {
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section--accent {
    padding-bottom: 72px;
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading h2,
.cta-panel h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

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

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

.card-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.surface-card,
.product-card,
.summary-card {
    padding: 24px;
}

.surface-card--compact {
    padding: 20px;
}

.surface-card h3,
.product-card h3 {
    margin: 16px 0 10px;
    font-size: 1.35rem;
}

.product-card .pill,
.summary-card .pill {
    margin-bottom: 10px;
}

.feature-list {
    margin: 18px 0 0;
    padding-left: 18px;
}

.feature-list li {
    margin: 0 0 10px;
}

.text-link {
    display: inline-block;
    margin-top: 10px;
    color: #cae4ff;
    font-weight: 700;
}

.summary-card__grid {
    flex-wrap: wrap;
    margin-top: 18px;
}

.summary-card__grid div {
    flex: 1 1 170px;
}

.table-card {
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

tbody tr:last-child td {
    border-bottom: 0;
}

.cta-panel {
    align-items: center;
    justify-content: space-between;
    padding: 28px;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 18px 0 26px;
}

@media (max-width: 980px) {
    .hero-grid,
    .cta-panel,
    .footer-row,
    .nav-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-grid,
    .card-grid--three,
    .card-grid--four,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        width: 100%;
        justify-content: stretch;
    }

    .hero-panel__window {
        width: 100%;
    }
}

.downloads-shell {
    background:
        radial-gradient(circle at 50% 10%, rgba(49, 113, 255, 0.18), transparent 24%),
        linear-gradient(180deg, #000 0%, #02060a 38%, #050b13 100%);
}

.downloads-breadcrumbs,
.downloads-tabs,
.platform-pills,
.platform-group,
.winbox-panel__tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.downloads-breadcrumbs {
    padding-top: 30px;
    color: rgba(232, 240, 255, 0.72);
    font-size: 0.95rem;
}

.downloads-breadcrumbs strong {
    color: #fff;
}

.downloads-tabs {
    margin-top: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.downloads-tabs a {
    padding: 10px 14px;
    color: rgba(232, 240, 255, 0.7);
    border-radius: 999px;
}

.downloads-tabs a.is-active,
.downloads-tabs a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.winbox-hero {
    padding: 40px 0 56px;
}

.winbox-heading {
    text-align: center;
    max-width: 920px;
    margin: 0 auto 30px;
}

.winbox-heading h1 {
    margin: 16px 0 14px;
    font-size: clamp(2.5rem, 6vw, 4.6rem);
    letter-spacing: -0.04em;
}

.winbox-heading p {
    margin: 0 auto;
    max-width: 780px;
    color: rgba(230, 238, 252, 0.76);
    font-size: 1.08rem;
    line-height: 1.7;
}

.winbox-stage {
    position: relative;
    min-height: 620px;
    margin-top: 26px;
}

.winbox-window,
.winbox-panel,
.winbox-device {
    position: absolute;
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.winbox-window {
    backdrop-filter: blur(14px);
}

.winbox-window--light {
    top: 10px;
    left: 0;
    width: min(100%, 720px);
    background: #ebefef;
    color: #26333f;
}

.winbox-window--dark {
    top: 92px;
    right: 0;
    width: min(100%, 760px);
    background: #152632;
    color: #dce9f8;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.winbox-window__bar {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 16px;
    font-size: 0.88rem;
}

.winbox-window__bar span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 164, 184, 0.45);
}

.winbox-window__bar strong {
    margin-left: 8px;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.winbox-window--light .winbox-window__bar {
    background: #dde4e8;
    color: #26333f;
}

.winbox-window--dark .winbox-window__bar {
    background: rgba(255, 255, 255, 0.04);
}

.winbox-window__table {
    padding: 14px 16px 18px;
}

.winbox-window__menu,
.winbox-window__row {
    display: grid;
    grid-template-columns: 62px 1.8fr 1fr 1fr;
    gap: 12px;
    align-items: center;
}

.winbox-window__menu {
    padding: 0 0 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(38, 51, 63, 0.68);
}

.winbox-window__menu--dark {
    color: rgba(218, 231, 246, 0.72);
}

.winbox-window__rows {
    display: grid;
    gap: 8px;
}

.winbox-window__row {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.82rem;
}

.winbox-window--light .winbox-window__row {
    background: rgba(17, 24, 39, 0.04);
    color: #314252;
}

.winbox-window--dark .winbox-window__row {
    background: rgba(255, 255, 255, 0.04);
}

.winbox-window__row.is-selected {
    background: rgba(8, 145, 178, 0.22);
    border: 1px solid rgba(34, 211, 238, 0.28);
}

.winbox-device {
    left: 170px;
    bottom: 32px;
    width: 170px;
    padding: 14px;
    border-radius: 28px;
    background: linear-gradient(180deg, #0e1620, #141d29);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.winbox-device__screen {
    border-radius: 20px;
    padding: 18px 14px;
    background: linear-gradient(180deg, #f5f7fa, #e8edf3);
    color: #18222d;
    text-align: center;
}

.winbox-device__brand {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.winbox-device__dial {
    width: 68px;
    height: 68px;
    margin: 18px auto;
    border-radius: 999px;
    border: 8px solid rgba(25, 37, 50, 0.12);
    border-top-color: #111827;
    transform: rotate(32deg);
}

.winbox-device__stats {
    display: grid;
    gap: 10px;
}

.winbox-device__stats div {
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(17, 24, 39, 0.06);
}

.winbox-device__stats strong {
    display: block;
    font-size: 1rem;
}

.winbox-device__stats span {
    font-size: 0.72rem;
    color: #526171;
}

.winbox-panel {
    right: 100px;
    bottom: 32px;
    width: 360px;
    background: rgba(23, 40, 53, 0.94);
    border: 1px solid rgba(94, 192, 255, 0.16);
}

.winbox-panel__tabs {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    color: rgba(220, 233, 248, 0.7);
}

.winbox-panel__tabs .is-active {
    color: #fff;
}

.winbox-panel__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 16px;
}

.winbox-panel__metrics div {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.winbox-panel__metrics small {
    display: block;
    color: rgba(220, 233, 248, 0.64);
}

.winbox-panel__metrics strong {
    display: block;
    margin-top: 6px;
}

.winbox-panel__graph {
    display: flex;
    align-items: end;
    gap: 5px;
    height: 130px;
    padding: 0 16px 18px;
}

.winbox-panel__graph span {
    flex: 1 1 0;
    border-radius: 999px 999px 6px 6px;
    background: linear-gradient(180deg, #17b5ff, #0d6fb2);
}

.winbox-panel__graph span:nth-child(1) { height: 34px; }
.winbox-panel__graph span:nth-child(2) { height: 58px; }
.winbox-panel__graph span:nth-child(3) { height: 62px; }
.winbox-panel__graph span:nth-child(4) { height: 48px; }
.winbox-panel__graph span:nth-child(5) { height: 78px; }
.winbox-panel__graph span:nth-child(6) { height: 54px; }
.winbox-panel__graph span:nth-child(7) { height: 96px; }
.winbox-panel__graph span:nth-child(8) { height: 45px; }
.winbox-panel__graph span:nth-child(9) { height: 84px; }
.winbox-panel__graph span:nth-child(10) { height: 57px; }
.winbox-panel__graph span:nth-child(11) { height: 73px; }
.winbox-panel__graph span:nth-child(12) { height: 68px; }
.winbox-panel__graph span:nth-child(13) { height: 92px; }
.winbox-panel__graph span:nth-child(14) { height: 60px; }
.winbox-panel__graph span:nth-child(15) { height: 82px; }
.winbox-panel__graph span:nth-child(16) { height: 50px; }
.winbox-panel__graph span:nth-child(17) { height: 86px; }
.winbox-panel__graph span:nth-child(18) { height: 64px; }
.winbox-panel__graph span:nth-child(19) { height: 98px; }
.winbox-panel__graph span:nth-child(20) { height: 66px; }

.platform-pills {
    justify-content: center;
    row-gap: 18px;
    margin-top: 22px;
}

.platform-group {
    align-items: center;
    justify-content: center;
}

.platform-group__label {
    color: rgba(232, 240, 255, 0.82);
    font-weight: 700;
}

.platform-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(18, 78, 49, 0.92), rgba(7, 46, 29, 0.98));
    border: 1px solid rgba(73, 211, 156, 0.26);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
}

.platform-pill strong {
    font-weight: 700;
}

.winbox-version-card,
.changelog-card,
.download-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(13, 24, 35, 0.9), rgba(5, 11, 19, 0.98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.winbox-version-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 22px;
    padding: 28px;
    border-radius: 28px;
}

.winbox-version-card h2 {
    margin: 16px 0 12px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.winbox-version-card p {
    color: rgba(232, 240, 255, 0.76);
    line-height: 1.75;
}

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

.download-card {
    padding: 20px;
    border-radius: 22px;
}

.download-card h3 {
    margin: 14px 0 8px;
    font-size: 1.35rem;
}

.download-card p {
    margin: 0;
    color: rgba(232, 240, 255, 0.66);
}

.changelog-card {
    padding: 24px 26px;
    border-radius: 24px;
    font-family: "Courier New", Courier, monospace;
}

.changelog-card p {
    margin: 0 0 12px;
    color: #d8e5f5;
    line-height: 1.65;
}

@media (max-width: 1180px) {
    .winbox-stage {
        min-height: auto;
        display: grid;
        gap: 18px;
    }

    .winbox-window,
    .winbox-panel,
    .winbox-device {
        position: relative;
        inset: auto;
        width: 100%;
    }

    .winbox-panel,
    .winbox-device {
        max-width: 100%;
    }

    .winbox-version-card,
    .download-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .winbox-window__menu,
    .winbox-window__row {
        grid-template-columns: 44px 1.5fr 0.9fr 0.9fr;
        font-size: 0.72rem;
    }

    .platform-pills {
        align-items: stretch;
    }

    .platform-group {
        justify-content: flex-start;
    }
}
