@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Atkinson Hyperlegible Mono";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/assets/fonts/atkinson-hyperlegible-mono-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Atkinson Hyperlegible Mono";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/assets/fonts/atkinson-hyperlegible-mono-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --page-bg: #385471;
    --page-bg-deep: #2f4864;
    --page-panel: rgba(69, 96, 126, 0.78);
    --page-panel-strong: rgba(52, 76, 101, 0.92);
    --page-line: rgba(255, 255, 255, 0.14);
    --page-text: #f8fbff;
    --page-text-soft: rgba(248, 251, 255, 0.82);
    --page-text-muted: rgba(248, 251, 255, 0.62);
    --page-accent: #a8c4e8;
    --page-dark: #111111;
    --page-shadow: 0 24px 60px rgba(10, 17, 28, 0.24);
    --page-radius: 24px;
    --page-radius-sm: 16px;
    --page-container: 1160px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--page-text);
    line-height: 1.6;
}

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

img,
svg {
    display: block;
    max-width: 100%;
}

.u-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page {
    background:
        radial-gradient(circle at top left, rgba(168, 196, 232, 0.14), transparent 28%),
        linear-gradient(180deg, #3d5b7a 0%, var(--page-bg) 44%, #314a66 100%);
}

.page__shell {
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
}

.page__shell::before,
.page__shell::after {
    content: "";
    position: fixed;
    inset: auto;
    width: 24rem;
    height: 24rem;
    border: 1px solid rgba(168, 196, 232, 0.08);
    border-radius: 24px;
    transform: rotate(18deg);
    pointer-events: none;
    background: rgba(0, 0, 0, 0.02);
}

.page__shell::before {
    top: 4rem;
    right: -10rem;
}

.page__shell::after {
    bottom: 6rem;
    left: -12rem;
}

.page__container {
    width: min(calc(100% - 40px), var(--page-container));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (max-width: 560px) {
    .page__container {
        width: min(calc(100% - 28px), var(--page-container));
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(14px);
    background: rgba(47, 72, 100, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
}

@media (max-width: 800px) {
    .site-header__inner {
        min-height: 76px;
    }
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: "Atkinson Hyperlegible Mono", "Segoe UI", monospace;
    font-size: 1.15rem;
    font-weight: normal;
    letter-spacing: 0.02em;
}

.brand__mark {
    width: 48px;
    height: 48px;
}

.brand__mark img {
    display: block;
    width: 100%;
    height: 100%;
}

.brand__accent {
    color: var(--page-accent);
}

.brand--footer {
    margin-bottom: 10px;
}

@media (max-width: 560px) {
    .brand {
        gap: 10px;
        font-size: 1rem;
    }

    .brand__mark {
        width: 42px;
        height: 42px;
        padding: 6px;
    }
}

.site-nav {
    display: flex;
    align-items: center;
    position: relative;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--page-text-soft);
    font-size: 0.95rem;
    font-weight: 600;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: var(--page-text);
    transform: translateY(-1px);
}

.site-nav__toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--page-text);
    cursor: pointer;
}

.site-nav__toggle-line {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
}

@media (max-width: 800px) {
    .site-nav__toggle {
        display: inline-block;
    }

    .site-nav__list {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        display: none;
        min-width: 220px;
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
        background: rgba(47, 72, 100, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 20px;
        box-shadow: var(--page-shadow);
    }

    .site-nav__list--open {
        display: flex;
    }

    .site-nav__link {
        min-height: 46px;
        border-radius: 12px;
    }
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.98rem;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

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

.button--primary {
    background: var(--page-accent);
    color: #203247;
    box-shadow: 0 14px 28px rgba(9, 17, 28, 0.2);
}

.button--secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--page-text);
}

.section-block--light .button--secondary,
.card--light .button--secondary {
    background: rgba(56, 84, 113, 0.06);
    border-color: rgba(56, 84, 113, 0.14);
    color: var(--page-dark);
}

@media (max-width: 560px) {
    .button {
        font-size: 0.97rem;
    }
}

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

.hero__content {
    max-width: none;
}

.hero__title {
    margin: 0;
    max-width: none;
    font-size: clamp(2.8rem, 6vw, 5.25rem);
    letter-spacing: -0.03em;
    line-height: 1.06;
    text-wrap: balance;
}

.hero__text {
    color: var(--page-text-soft);
    font-size: 1.02rem;
}

.hero__text {
    max-width: 62ch;
    margin: 22px 0 0;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

@media (max-width: 800px) {
    .hero {
        padding-top: 48px;
    }
}

@media (max-width: 560px) {
    .hero__title {
        max-width: none;
    }

    .hero__text {
        font-size: 0.97rem;
    }
}

.section-block {
    padding: 80px 0;
}

.section-block--alt {
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.08), rgba(17, 17, 17, 0.02));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-block--contrast {
    background:
        radial-gradient(circle at top right, rgba(168, 196, 232, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(18, 29, 41, 0.96), rgba(31, 47, 66, 0.94));
    border-top: 1px solid rgba(168, 196, 232, 0.14);
    border-bottom: 1px solid rgba(168, 196, 232, 0.14);
}

.section-block--light {
    background: linear-gradient(180deg, #f4f7fb 0%, #e8eef5 100%);
    color: var(--page-dark);
    border-top: 1px solid rgba(56, 84, 113, 0.08);
    border-bottom: 1px solid rgba(56, 84, 113, 0.08);
}

.section-block__heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 42px;
}

.section-block__title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em;
    line-height: 1.06;
}

.section-block__heading--compact-center {
    align-items: center;
    text-align: center;
    margin-bottom: 0;
}

.section-block__title--compact {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    letter-spacing: -0.02em;
}

.section-block__title--brand {
    font-family: "Atkinson Hyperlegible Mono", "Segoe UI", monospace;
    font-weight: normal;
}

.section-block__intro {
    max-width: 58ch;
    margin: 0;
    color: var(--page-text-soft);
    font-size: 1.02rem;
    line-height: 1.8;
}

.section-block--light .section-block__title {
    color: var(--page-dark);
}

.section-block--light .section-block__intro {
    color: rgba(17, 17, 17, 0.72);
}

@media (max-width: 560px) {
    .section-block {
        padding: 64px 0;
    }

    .section-block__intro {
        font-size: 0.97rem;
    }
}

.cards-grid {
    display: grid;
    gap: 18px;
}

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

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

.cards-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

@media (max-width: 1080px) {
    .cards-grid--cols-4,
    .cards-grid--cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .cards-grid--cols-4,
    .cards-grid--cols-3 {
        grid-template-columns: 1fr;
    }

    .cards-grid--compact {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    }
}

.cube-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    aspect-ratio: 1 / 1;
    min-height: 100%;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(86, 117, 151, 0.28), rgba(53, 77, 102, 0.28));
    border: 1px solid var(--page-line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cube-card--interactive {
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.cube-card--interactive:hover,
.cube-card--interactive:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(168, 196, 232, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 18px 36px rgba(10, 17, 28, 0.18);
}

.cube-card--muted {
    background:
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.018),
            rgba(255, 255, 255, 0.018) 14px,
            rgba(255, 255, 255, 0.04) 14px,
            rgba(255, 255, 255, 0.04) 28px
        ),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.12);
    opacity: 0.82;
}

.cube-card__title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

@media (max-width: 560px) {
    .cube-card {
        padding: 12px;
        border-radius: 16px;
    }
}

.algorithm-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 34px 28px;
    border-radius: var(--page-radius);
    background:
        linear-gradient(180deg, rgba(28, 42, 58, 0.94), rgba(39, 57, 78, 0.94)),
        rgba(17, 17, 17, 0.2);
    border: 1px solid rgba(168, 196, 232, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 18px 40px rgba(7, 12, 19, 0.22);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.algorithm-card:hover,
.algorithm-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(168, 196, 232, 0.3);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 22px 44px rgba(7, 12, 19, 0.26);
}

.algorithm-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.algorithm-card__title {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.algorithm-card__badges {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}

.algorithm-card__badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--page-accent);
    background: rgba(168, 196, 232, 0.1);
    border: 1px solid rgba(168, 196, 232, 0.24);
}

.algorithm-card__text {
    margin: 18px 0 0;
    color: rgba(248, 251, 255, 0.78);
    font-size: 1.02rem;
    line-height: 1.75;
}

@media (max-width: 560px) {
    .algorithm-card {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .algorithm-card__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .algorithm-card__badges {
        justify-content: flex-start;
    }

    .algorithm-card__text {
        font-size: 0.97rem;
    }
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 28px;
    border-radius: var(--page-radius);
    background: linear-gradient(180deg, rgba(86, 117, 151, 0.28), rgba(53, 77, 102, 0.28));
    border: 1px solid var(--page-line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card--muted {
    background:
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.018),
            rgba(255, 255, 255, 0.018) 14px,
            rgba(255, 255, 255, 0.04) 14px,
            rgba(255, 255, 255, 0.04) 28px
        ),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.12);
    opacity: 0.82;
}

.card--light {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(56, 84, 113, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 14px 28px rgba(56, 84, 113, 0.08);
}

.card--light.card--muted {
    background:
        repeating-linear-gradient(
            135deg,
            rgba(56, 84, 113, 0.03),
            rgba(56, 84, 113, 0.03) 14px,
            rgba(56, 84, 113, 0.055) 14px,
            rgba(56, 84, 113, 0.055) 28px
        ),
        rgba(255, 255, 255, 0.72);
    border-color: rgba(56, 84, 113, 0.14);
    opacity: 1;
}

.card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.card__title {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.card__text {
    margin: 12px 0 0;
    color: var(--page-text-soft);
    font-size: 1.02rem;
    line-height: 1.75;
}

.card__badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(168, 196, 232, 0.14);
    color: var(--page-accent);
    border: 1px solid rgba(168, 196, 232, 0.18);
}

.card__badge--muted {
    background: rgba(255, 255, 255, 0.04);
    color: var(--page-text-muted);
    border-color: rgba(255, 255, 255, 0.08);
}

.card--light .card__title {
    color: var(--page-dark);
}

.card--light .card__text {
    color: rgba(17, 17, 17, 0.72);
}

.card--light .card__badge--muted {
    background: rgba(56, 84, 113, 0.06);
    color: rgba(17, 17, 17, 0.58);
    border-color: rgba(56, 84, 113, 0.12);
}

@media (max-width: 560px) {
    .card {
        padding: 22px;
        border-radius: 20px;
    }

    .card__text {
        font-size: 0.97rem;
    }
}

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

.feature-list__item {
    padding: 6px 0 6px 24px;
    border-left: 1px solid rgba(168, 196, 232, 0.28);
}

.feature-list__title {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.feature-list__text {
    margin: 12px 0 0;
    color: var(--page-text-soft);
    font-size: 1.02rem;
    line-height: 1.85;
}

.feature-list--light .feature-list__item {
    border-left-color: rgba(56, 84, 113, 0.22);
}

.feature-list--light .feature-list__title {
    color: var(--page-dark);
}

.feature-list--light .feature-list__text {
    color: rgba(17, 17, 17, 0.72);
}

@media (max-width: 800px) {
    .feature-list {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 560px) {
    .feature-list__text {
        font-size: 0.97rem;
    }
}

.eyebrow {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    color: var(--page-accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page__main--cube {
    padding-bottom: 80px;
}

.cube-playground-block {
    padding-top: 40px;
    padding-bottom: 28px;
}

.cube-section--playground {
    margin: 0;
}

.playground-shell {
    display: block;
}

.playground-stage-card {
    padding: 0;
    width: min(100%, 82vh, 48rem);
    margin: 0 auto;
}

.playground-stage-shell,
.playground-panel {
    min-height: clamp(30rem, 72vh, 46rem);
}

.playground-stage {
    position: relative;
    min-height: clamp(30rem, 72vh, 46rem);
    border-radius: 0;
    overflow: hidden;
    background: radial-gradient(50% 50%, rgba(255, 255, 255, 0.2), transparent 80%);
    touch-action: none;
}

.playground-stage canvas {
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
    touch-action: none;
}

.playground-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 32px;
    text-align: center;
}

.playground-panel {
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 18px;
    background: rgba(13, 21, 32, 0.08);
}

.playground-panel[hidden] {
    display: none;
}

.playground-panel__inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    min-height: 100%;
    padding: 28px;
    border: 1px solid rgba(56, 84, 113, 0.12);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 20px 44px rgba(20, 33, 48, 0.12);
}

.playground-panel__inner--loading {
    justify-content: center;
}

.playground-panel__heading {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.playground-panel__title {
    margin: 0;
    color: var(--page-dark);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.08;
}

.playground-panel__text {
    margin: 0;
    color: rgba(17, 17, 17, 0.72);
}

.playground-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.playground-intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
}

.playground-intro__title {
    margin: 0;
    color: var(--page-dark);
    font-size: clamp(1.35rem, 2.6vw, 1.8rem);
}

.playground-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.playground-controls__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.playground-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.playground-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.playground-field__label {
    color: var(--page-dark);
    font-weight: 700;
}

.playground-select,
.playground-textarea {
    width: 100%;
    border: 1px solid rgba(56, 84, 113, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--page-dark);
    font: inherit;
}

.playground-select {
    min-height: 54px;
    padding: 0 16px;
}

.playground-textarea {
    min-height: 10rem;
    padding: 16px;
    resize: vertical;
    line-height: 1.5;
}

.playground-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--page-dark);
    font-weight: 400;
}

.playground-checkbox input {
    width: 18px;
    height: 18px;
}

.playground-form-error {
    margin: 0;
    color: #b42318;
    font-weight: 700;
}

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

.playground-help-item {
    padding: 20px;
    border: 1px solid rgba(56, 84, 113, 0.12);
    background: rgba(56, 84, 113, 0.04);
}

.playground-help-item h4,
.playground-help-item p {
    margin: 0;
}

.playground-help-item h4 {
    margin-bottom: 10px;
    color: var(--page-dark);
    font-size: 1rem;
}

.playground-help-item p {
    color: rgba(17, 17, 17, 0.72);
}

.playground-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.playground-stat {
    padding: 18px;
    border: 1px solid rgba(56, 84, 113, 0.12);
    background: rgba(56, 84, 113, 0.04);
}

.playground-stat--wide {
    grid-column: 1 / -1;
}

.playground-stat dt,
.playground-stat dd {
    margin: 0;
}

.playground-stat dt {
    margin-bottom: 8px;
    color: rgba(17, 17, 17, 0.62);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.playground-stat dd {
    color: var(--page-dark);
    font-size: 1.05rem;
    line-height: 1.45;
}

.playground-sequence {
    font-family: "Atkinson Hyperlegible Mono", "Segoe UI", monospace;
    word-break: break-word;
}

.playground-status {
    margin: 0;
    color: rgba(17, 17, 17, 0.72);
    text-align: center;
}

.playground-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 14rem;
    text-align: center;
}

.playground-loading__spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid rgba(56, 84, 113, 0.16);
    border-top-color: var(--page-accent);
    border-radius: 50%;
    animation: playground-spinner 0.8s linear infinite;
}

.playground-loading__text {
    margin: 0;
    color: var(--page-dark);
    font-weight: 700;
}

.playground-stage-shell--celebrate .playground-stage canvas {
    animation: playground-cube-fadeout var(--playground-celebration-fade-duration, 1s) linear var(--playground-celebration-fade-delay, 2s) forwards;
}

@keyframes playground-spinner {
    to {
        transform: rotate(360deg);
    }
}

@keyframes playground-cube-fadeout {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@media (max-width: 960px) {
    .playground-help-list {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .cube-playground-block > .page__container {
        width: min(calc(100% - 12px), var(--page-container));
    }

    .playground-stage-card {
        width: min(calc(100vw - 12px), 34rem);
    }

    .playground-stage-shell,
    .playground-panel {
        min-height: clamp(24rem, 78vw, 31rem);
    }

    .playground-stage {
        min-height: clamp(24rem, 78vw, 31rem);
    }

    .playground-panel {
        padding: 10px;
    }

    .playground-panel__inner {
        padding: 20px;
    }

    .playground-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .playground-panel__actions .button,
    .playground-controls .button {
        width: 100%;
    }
}

.cube-article {
    color: var(--page-dark);
}

.cube-article__heading {
    margin-bottom: 56px;
}

.cube-article__title {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cube-article__method-title {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cube-article__title-main {
    display: block;
}

.cube-article .cube-section {
    margin-top: 0;
    padding-top: 0;
}

.cube-article .cube-section + .cube-section {
    margin-top: 56px;
}

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

.cube-article .section-heading h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    letter-spacing: -0.02em;
    color: var(--page-dark);
}

.cube-article .section-heading p,
.cube-article p,
.cube-article li {
    color: rgba(17, 17, 17, 0.76);
}

.cube-article .eyebrow {
    color: rgba(56, 84, 113, 0.8);
}

.cube-article__title-eyebrow {
    align-self: flex-start;
}

.cube-article .text-link {
    color: #2a537d;
    font-weight: 700;
}

.cube-article .text-link:hover,
.cube-article .text-link:focus-visible {
    color: #173754;
}

.step-grid,
.card-grid {
    display: grid;
    gap: 16px;
}

.before-start {
    display: block;
}

.before-start__list {
    padding-top: 4px;
}

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

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

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

.check-list,
.summary-list {
    display: grid;
    gap: 0.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.check-list li,
.summary-list li {
    position: relative;
    padding-left: 1.5rem;
}

.check-list li::before,
.summary-list li::before {
    content: "";
    position: absolute;
    top: 0.62rem;
    left: 0;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--page-accent);
    box-shadow: 0 0 0 5px rgba(168, 196, 232, 0.12);
}

.check-list--compact {
    margin-top: 1rem;
}

.step-card,
.algorithm-card,
.mistake-card,
.tip-card,
.next-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-card h3,
.algorithm-card h3,
.mistake-card h3,
.tip-card h3,
.next-card h3 {
    margin: 0;
    color: var(--page-dark);
}

.step-card__header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
}

.step-card__header-main {
    min-width: 0;
}

.step-card__number {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 16px;
    background: rgba(168, 196, 232, 0.22);
    color: #294565;
    font-size: 1.2rem;
    font-weight: 700;
}

.step-card__objective {
    margin: 0.25rem 0 0;
    color: #294565;
}

.step-card__train-button {
    align-self: center;
    justify-self: end;
    background: linear-gradient(135deg, #ff8a3d, #ff5a36);
    color: #ffffff;
    border: 1px solid rgba(207, 76, 31, 0.28);
    box-shadow: 0 14px 28px rgba(255, 90, 54, 0.22);
}

.step-card__train-button:hover,
.step-card__train-button:focus-visible {
    background: linear-gradient(135deg, #ff7f2f, #ff4d27);
    box-shadow: 0 18px 32px rgba(255, 90, 54, 0.28);
}

.step-card__details,
.step-card__expected,
.step-card__algorithm {
    padding: 0.95rem 1rem;
    border-radius: var(--page-radius-sm);
    background: rgba(56, 84, 113, 0.06);
}

.step-card__illustrations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.step-card__illustration {
    margin: 0;
}

.step-card__illustration-label {
    display: block;
    margin-bottom: 0.55rem;
    color: rgba(17, 17, 17, 0.62);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.step-card__illustration-cube {
    position: relative;
    min-height: 12rem;
    border-radius: var(--page-radius-sm);
    border: 1px solid rgba(56, 84, 113, 0.12);
    background:
        radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 62%),
        rgba(56, 84, 113, 0.045);
}

.step-card__illustration-cube[data-barbecube-static-status="loading"]::before,
.step-card__illustration-cube[data-barbecube-static-status="error"]::before {
    content: "Cube";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(17, 17, 17, 0.38);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.step-card__illustration-cube canvas {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}

.algorithm-card__top {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.badge-list__item {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(168, 196, 232, 0.18);
    color: #294565;
    border: 1px solid rgba(56, 84, 113, 0.14);
}

.surface-card--note {
    margin-top: 16px;
}

.cube-card-warning {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(232, 238, 245, 0.94)),
        linear-gradient(180deg, rgba(168, 196, 232, 0.18), rgba(56, 84, 113, 0.08));
}

.next-card--disabled .button {
    pointer-events: none;
    opacity: 0.5;
}

@media (max-width: 560px) {
    .cube-article .cube-section + .cube-section {
        margin-top: 44px;
    }

    .step-card__header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .step-card__train-button {
        grid-column: 1 / -1;
        width: 100%;
        justify-self: stretch;
        margin-top: -0.15rem;
    }

    .step-card__illustrations {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 960px) {
    .card-grid,
    .card-grid--two {
        grid-template-columns: 1fr;
    }
}

.site-footer {
    margin-top: 72px;
    padding: 0 0 40px;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
    gap: 32px 48px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__eyebrow,
.site-footer__heading {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--page-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer__brand-group {
    max-width: 34rem;
}

.site-footer__text {
    margin: 0;
    color: var(--page-text-soft);
    font-size: 0.98rem;
    line-height: 1.75;
}

.site-footer__nav {
    justify-self: end;
}

.site-footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 12px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__link {
    color: var(--page-text-soft);
    font-weight: 600;
    font-size: 0.96rem;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
    color: var(--page-text);
}

@media (max-width: 1080px) {
    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .site-footer__nav {
        justify-self: start;
    }
}

@media (max-width: 560px) {
    .site-footer {
        margin-top: 56px;
        padding-bottom: 32px;
    }

    .site-footer__links {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
