:root {
    --preview-bg: #07080c;
    --preview-panel: #0d1017;
    --preview-panel-soft: #11151e;
    --preview-line: rgba(201, 209, 222, 0.16);
    --preview-line-strong: rgba(201, 209, 222, 0.28);
    --preview-text: #f2f0ea;
    --preview-muted: #a0a8b5;
    --preview-purple: #9a78ff;
    --preview-purple-soft: #c6b6ff;
    --preview-gold: #d5b76d;
    --preview-green: #6ee7a2;
}

html {
    scroll-padding-top: 104px;
}

body {
    background:
        radial-gradient(circle at 72% -10%, rgba(117, 76, 220, 0.22), transparent 34rem),
        radial-gradient(circle at 8% 36%, rgba(213, 183, 109, 0.07), transparent 28rem),
        var(--preview-bg);
    color: var(--preview-text);
    line-height: 1.65;
}

body::before {
    opacity: 0.44;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

body::after {
    content: none;
    display: none;
}

.page {
    width: min(1380px, calc(100% - 48px));
    padding: 20px 0 72px;
}

.site-header {
    top: 14px;
    box-sizing: border-box;
    grid-template-columns: minmax(220px, 0.8fr) auto minmax(360px, 1.2fr);
    justify-content: stretch;
    column-gap: 0;
    row-gap: 8px;
    width: 100%;
    min-height: 66px;
    margin-bottom: 28px;
    padding: 9px 14px 9px 18px;
    border: 1px solid var(--preview-line);
    border-radius: 8px;
    background:
        linear-gradient(105deg, rgba(64, 43, 112, 0.4), transparent 24%),
        rgba(10, 11, 18, 0.96);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.studio-brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    min-height: 46px;
    padding: 0;
    font-size: 0.85rem;
    letter-spacing: 0.16em;
}

.brand-mark {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--preview-purple);
    box-shadow: 0 0 20px rgba(154, 120, 255, 0.9);
    transform: rotate(45deg);
}

.page-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: auto;
    gap: 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.header-actions {
    grid-column: 3;
    grid-row: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
}

.header-actions .language-switcher {
    grid-column: 1;
    justify-self: center;
}

.header-actions .social-navigation {
    grid-column: 2;
    justify-self: end;
}

.navigation-tab {
    position: relative;
    flex: 0 0 auto;
    min-width: 0;
    min-height: 46px;
    padding: 0 6px;
    border: 0;
    border-radius: 0;
    color: #858e9d;
    font-size: 0.78rem;
    font-weight: 760;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-header .page-navigation .navigation-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    text-align: center;
}

.navigation-tab::after {
    content: "";
    position: absolute;
    right: 6px;
    bottom: 6px;
    left: 6px;
    height: 1px;
    background: var(--preview-purple);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.navigation-tab:hover,
.navigation-tab.active {
    border: 0;
    background: transparent;
    color: var(--preview-text);
    box-shadow: none;
    transform: none;
}

.navigation-tab:hover::after,
.navigation-tab.active::after {
    transform: scaleX(1);
}

.site-header .social-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.site-header .social-button {
    position: relative;
    display: block;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid var(--preview-line);
    border-radius: 6px;
    background: rgba(154, 120, 255, 0.055);
    font-size: 0;
    line-height: 0;
}

.site-header .social-button svg,
.site-header .social-button .kofi-icon {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: 0;
    transform: translate(-50%, -50%);
}

.site-header .social-button:hover {
    border-color: var(--preview-line);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: none;
}

.language-switcher {
    width: 92px;
    flex: 0 0 92px;
    justify-self: center;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 3px;
    border-color: var(--preview-line);
    border-radius: 6px;
    background: rgba(154, 120, 255, 0.055);
}

.site-header .language-switcher .language-button {
    min-height: 36px;
    padding: 0;
    border-radius: 4px;
    font-size: 0.72rem;
}

.site-header .language-switcher .language-button.active {
    border-color: rgba(154, 120, 255, 0.45);
    background: rgba(154, 120, 255, 0.16);
    color: var(--preview-text);
}

.language-panel,
.language-divider {
    display: none !important;
}

.language-version {
    counter-reset: preview-section;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
    align-items: stretch;
    gap: clamp(36px, 5vw, 84px);
    min-height: 680px;
    padding: clamp(48px, 6vw, 86px);
    overflow: hidden;
    border: 1px solid var(--preview-line);
    border-radius: 10px;
    background:
        linear-gradient(115deg, rgba(154, 120, 255, 0.11), transparent 44%),
        linear-gradient(180deg, rgba(17, 20, 29, 0.96), rgba(8, 10, 15, 0.98));
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.36);
}

.hero::before {
    content: none;
    display: none;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 63%;
    width: 1px;
    background: linear-gradient(transparent, var(--preview-line-strong), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 760px;
}

.hero-brand {
    margin-bottom: 30px;
    color: var(--preview-gold);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
}

.hero h1 {
    max-width: 760px;
    margin: 0 0 28px;
    font-size: clamp(4.8rem, 9vw, 8.7rem);
    font-weight: 860;
    letter-spacing: -0.075em;
    line-height: 0.8;
}

.hero-title-accent {
    display: block;
    margin-left: 0.08em;
    color: var(--preview-purple-soft);
    -webkit-text-stroke: 0;
    background: none;
}

.hero-description {
    max-width: 680px;
    color: #abb3c1;
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.75;
}

.metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 720px;
    margin-top: 30px;
    border: 0;
}

.badge {
    justify-content: flex-start;
    width: auto;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid var(--preview-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    color: #9099a8;
    font-size: 0.74rem;
    letter-spacing: 0.025em;
}

.badge-dot {
    width: 5px;
    height: 5px;
    background: var(--preview-purple);
    box-shadow: 0 0 12px rgba(154, 120, 255, 0.8);
}

.hero-actions {
    margin-top: 34px;
}

.primary-button {
    min-height: 52px;
    padding: 12px 20px;
    border: 1px solid rgba(213, 183, 109, 0.54);
    border-radius: 5px;
    background: linear-gradient(135deg, #d8bd79, #a98b49);
    color: #11100c;
    box-shadow: 0 16px 42px rgba(174, 139, 67, 0.18);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.primary-button:hover {
    border-color: #ecd494;
    background: linear-gradient(135deg, #ead392, #b89a55);
    color: #090806;
    box-shadow: 0 20px 54px rgba(174, 139, 67, 0.26);
}

.hero-project-preview {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-width: 0;
    padding: 20px;
    border: 1px solid rgba(213, 183, 109, 0.25);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 35%, rgba(213, 183, 109, 0.13), transparent 46%),
        rgba(7, 8, 12, 0.66);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.03);
}

.hero-project-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #77808e;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--preview-green);
}

.project-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 12px rgba(110, 231, 162, 0.7);
}

.hero-project-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 250px;
}

.hero-project-visual::before,
.hero-project-visual::after,
.hero-project-orbit {
    content: "";
    position: absolute;
    border: 1px solid rgba(213, 183, 109, 0.16);
    border-radius: 50%;
}

.hero-project-visual::before {
    width: 220px;
    height: 220px;
}

.hero-project-visual::after {
    width: 168px;
    height: 168px;
    border-style: dashed;
    transform: rotate(18deg);
}

.hero-project-orbit {
    width: 270px;
    height: 100px;
    transform: rotate(-18deg);
}

.hero-project-visual img {
    position: relative;
    z-index: 1;
    width: 138px;
    height: 138px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.6));
}

.hero-project-copy {
    padding: 20px 4px 2px;
    border-top: 1px solid var(--preview-line);
}

.hero-project-index {
    margin: 0 0 3px;
    color: var(--preview-gold);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.hero-project-copy h2 {
    margin: 0 0 8px;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    letter-spacing: -0.055em;
}

.hero-project-copy > p:not(.hero-project-index) {
    margin: 0;
    color: #959eac;
    font-size: 0.88rem;
    line-height: 1.65;
}

.hero-project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 17px 0;
}

.hero-project-meta span {
    padding: 5px 8px;
    border: 1px solid var(--preview-line);
    border-radius: 3px;
    color: #929baa;
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--preview-line);
    color: var(--preview-purple-soft);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-link:hover {
    color: var(--preview-text);
}

.section-divider {
    counter-increment: preview-section;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 100px 0 22px;
    color: #828b9a;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.16em;
}

.section-divider::before {
    content: "0" counter(preview-section);
    width: auto;
    height: auto;
    background: transparent;
    color: var(--preview-gold);
}

.section-divider::after {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--preview-line-strong), transparent);
}

.section-divider span {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.content-section {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.5fr);
    gap: clamp(46px, 7vw, 110px);
    padding: 68px 4px;
    border: 0;
    border-top: 1px solid var(--preview-line);
    border-bottom: 1px solid var(--preview-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.section-heading {
    position: sticky;
    top: 112px;
    align-self: start;
    max-width: 470px;
    margin: 0;
}

.section-kicker {
    color: var(--preview-purple-soft);
    font-size: 0.67rem;
    letter-spacing: 0.16em;
}

.content-section h2,
.cta-section h2 {
    margin-top: 14px;
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    font-weight: 780;
    letter-spacing: -0.06em;
    line-height: 1.02;
}

.section-description {
    color: var(--preview-muted);
    font-size: 0.96rem;
    line-height: 1.8;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.product-card {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(160px, 0.55fr) minmax(0, 1fr);
    align-items: start;
    gap: 22px;
    min-height: 0;
    padding: 30px 14px;
    border: 0;
    border-top: 1px solid var(--preview-line);
    border-radius: 0;
    background: transparent;
    transition: background 180ms ease, transform 180ms ease;
}

.product-card:last-child {
    border-bottom: 1px solid var(--preview-line);
}

.product-card:hover {
    border-color: var(--preview-line-strong);
    background: linear-gradient(90deg, rgba(154, 120, 255, 0.07), transparent);
    transform: translateX(8px);
}

.product-icon {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(154, 120, 255, 0.35);
    border-radius: 4px;
    background: rgba(154, 120, 255, 0.08);
    color: var(--preview-purple-soft);
}

.product-card h3 {
    margin: 8px 0 0;
    font-size: 1rem;
}

.product-card p {
    margin: 4px 0 0;
    color: var(--preview-muted);
    font-size: 0.88rem;
}

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

.release-card {
    min-height: 380px;
    padding: 28px;
    border: 1px solid var(--preview-line);
    border-radius: 6px;
    background:
        linear-gradient(150deg, rgba(154, 120, 255, 0.08), transparent 45%),
        var(--preview-panel);
    transition: border-color 180ms ease, transform 180ms ease;
}

.release-card:hover {
    border-color: rgba(154, 120, 255, 0.42);
    transform: translateY(-5px);
}

.release-number {
    width: auto;
    height: auto;
    margin-bottom: 68px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--preview-gold);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
}

.release-card h3 {
    font-size: 1.35rem;
}

.release-card p {
    color: var(--preview-muted);
    font-size: 0.88rem;
}

.platform-label {
    border-color: var(--preview-line);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.02);
    color: #9099a7;
    font-size: 0.67rem;
}

.cta-section {
    position: relative;
    overflow: hidden;
    padding: clamp(54px, 8vw, 100px);
    border: 1px solid rgba(154, 120, 255, 0.34);
    border-radius: 8px;
    background:
        radial-gradient(circle at 80% 10%, rgba(154, 120, 255, 0.26), transparent 34rem),
        linear-gradient(125deg, #171328, #0d1017 72%);
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.3);
}

.cta-section::after {
    content: none;
    display: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
}

.cta-actions {
    gap: 8px;
    margin-top: 30px;
}

.cta-actions .social-button {
    min-width: 112px;
    min-height: 44px;
    border-color: var(--preview-line);
    border-radius: 5px;
    background: rgba(8, 10, 15, 0.46);
}

/* Builds page */

.builds-page .hero,
.legal-page .hero {
    display: block;
    min-height: 0;
    padding: clamp(64px, 8vw, 112px);
    border-radius: 10px;
}

.builds-page .hero {
    background:
        linear-gradient(110deg, rgba(154, 120, 255, 0.14), transparent 48%),
        linear-gradient(180deg, rgba(17, 20, 29, 0.98), rgba(8, 10, 15, 0.98));
}

.builds-page .hero::before {
    content: none;
    display: none;
}

.builds-page .hero::after,
.legal-page .hero::after {
    display: none;
}

.builds-page .hero-content {
    max-width: 920px;
}

.builds-page .hero h1,
.legal-page .hero h1 {
    margin: 0 0 24px;
    font-size: clamp(4.8rem, 10vw, 9rem);
    letter-spacing: -0.075em;
    line-height: 0.88;
}

.builds-page .hero .metadata {
    display: flex;
    flex-wrap: wrap;
    max-width: 900px;
    border: 0;
    gap: 8px;
}

.builds-page .hero .badge,
.legal-page .hero .badge {
    min-height: 34px;
    padding: 6px 11px;
    border: 1px solid var(--preview-line);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.018);
}

.builds-page .content-section {
    display: block;
}

.builds-page .section-heading {
    position: relative;
    top: auto;
    max-width: 920px;
    margin: 0 0 34px;
}

.build-card {
    border-color: var(--preview-line);
    border-radius: 8px;
    background: var(--preview-panel);
}

.build-banner {
    min-height: 300px;
    padding: clamp(30px, 4vw, 52px);
    gap: clamp(26px, 4vw, 52px);
    border-bottom-color: var(--preview-line);
    background:
        radial-gradient(circle at 15% 50%, rgba(213, 183, 109, 0.13), transparent 23rem),
        linear-gradient(120deg, rgba(154, 120, 255, 0.14), transparent 54%),
        #0b0e14;
}

.build-banner::after {
    content: none;
    display: none;
}

.build-icon-frame {
    width: clamp(110px, 12vw, 146px);
    padding: 14px;
    border-color: rgba(213, 183, 109, 0.32);
    border-radius: 8px;
    background: rgba(7, 8, 12, 0.58);
}

.status-badge {
    border-radius: 3px;
    background: rgba(110, 231, 162, 0.07);
    color: var(--preview-green);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.build-title {
    color: var(--preview-text);
    font-size: clamp(3.2rem, 7vw, 5.8rem);
}

.build-subtitle {
    color: var(--preview-muted);
    line-height: 1.75;
}

.build-content {
    padding: clamp(26px, 4vw, 44px);
}

.build-meta-grid {
    gap: 1px;
    padding: 1px;
    background: var(--preview-line);
}

.build-meta {
    padding: 18px;
    border: 0;
    border-radius: 0;
    background: #0b0e14;
}

.build-meta span {
    color: #737d8c;
    font-size: 0.67rem;
    letter-spacing: 0.11em;
}

.feature-grid {
    gap: 1px;
    padding: 1px;
    background: var(--preview-line);
}

.feature-card {
    padding: 20px;
    border: 0;
    border-radius: 0;
    background: var(--preview-panel-soft);
}

.feature-card h3 {
    font-size: 1rem;
}

.feature-card p {
    color: var(--preview-muted);
    font-size: 0.84rem;
}

.download-grid {
    gap: 8px;
}

.download-card {
    min-height: 300px;
    padding: 24px;
    border-color: var(--preview-line);
    border-radius: 6px;
    background: linear-gradient(155deg, rgba(154, 120, 255, 0.06), transparent 46%), #0d1017;
}

.download-card:hover {
    border-color: rgba(154, 120, 255, 0.42);
    background: linear-gradient(155deg, rgba(154, 120, 255, 0.1), transparent 52%), #0d1017;
    transform: translateY(-4px);
}

.download-platform {
    width: 46px;
    height: 46px;
    border-radius: 4px;
    background: rgba(154, 120, 255, 0.08);
    color: var(--preview-purple-soft);
}

.download-card p {
    color: var(--preview-muted);
    font-size: 0.86rem;
}

.download-status {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.download-button {
    min-height: 46px;
    border-color: rgba(154, 120, 255, 0.38);
    border-radius: 4px;
    background: rgba(154, 120, 255, 0.1);
    color: var(--preview-purple-soft);
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.download-button:hover {
    border-color: rgba(154, 120, 255, 0.68);
    background: rgba(154, 120, 255, 0.17);
}

.other-project-grid {
    gap: 8px;
}

.other-project-card {
    padding: 26px;
    border-color: var(--preview-line);
    border-radius: 6px;
    background: #0d1017;
    transition: border-color 180ms ease, transform 180ms ease;
}

.other-project-card:hover {
    border-color: rgba(154, 120, 255, 0.38);
    transform: translateY(-4px);
}

.other-project-mark {
    border-radius: 4px;
}

.other-project-meta,
.other-project-kind {
    font-size: 0.67rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.builds-page .notice {
    padding: 18px 20px;
    border: 1px solid rgba(213, 183, 109, 0.3);
    border-left: 2px solid var(--preview-gold);
    border-radius: 4px;
    background: rgba(213, 183, 109, 0.05);
}

/* Legal pages */

.legal-page .page {
    width: min(1380px, calc(100% - 48px));
}

.legal-page .hero {
    background:
        linear-gradient(112deg, rgba(154, 120, 255, 0.13), transparent 52%),
        #0d1017;
}

.legal-page .hero::before {
    content: none;
    display: none;
}

.privacy-page .hero::before {
    content: none;
}

.terms-page .hero::before {
    content: none;
}

.legal-page .hero-brand {
    margin-bottom: 30px;
}

.legal-page .hero h1 {
    max-width: 980px;
    font-size: clamp(3.8rem, 8vw, 7.6rem);
}

.legal-page .hero-description {
    max-width: 820px;
}

.legal-page .hero .metadata {
    display: flex;
    flex-wrap: wrap;
    max-width: 820px;
    border: 0;
    gap: 8px;
}

.legal-page > .page > .notice,
.legal-page .page > .notice {
    max-width: 920px;
    margin: 30px auto 0;
    padding: 18px 20px;
    border: 1px solid rgba(213, 183, 109, 0.28);
    border-left: 2px solid var(--preview-gold);
    border-radius: 4px;
    background: rgba(213, 183, 109, 0.05);
    color: #aeb6c3;
}

.legal-page .notice strong {
    color: var(--preview-gold);
}

.legal-page .document {
    max-width: 920px;
    margin: 58px auto 0;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--preview-line-strong);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.legal-page .document-header {
    margin: 0;
    padding: 42px 0 34px;
    border-bottom: 1px solid var(--preview-line);
}

.legal-page .document-header h2 {
    margin-bottom: 18px;
    color: var(--preview-text);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    letter-spacing: -0.045em;
}

.legal-page .document-header p {
    display: inline-flex;
    margin: 4px 16px 4px 0;
    color: #808a99;
    font-size: 0.78rem;
}

.legal-page .policy-section {
    margin: 0;
    padding: 42px 0;
    border-bottom: 1px solid var(--preview-line);
}

.legal-page .policy-section h3 {
    max-width: 760px;
    margin-bottom: 22px;
    color: var(--preview-text);
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    letter-spacing: -0.025em;
}

.legal-page .policy-section p,
.legal-page .policy-section li {
    color: #aab2bf;
    font-size: 0.96rem;
    line-height: 1.85;
}

.legal-page .policy-section strong {
    color: #e4e1d9;
}

.legal-page .platform-grid {
    gap: 1px;
    margin: 26px 0;
    padding: 1px;
    background: var(--preview-line);
}

.legal-page .platform-card {
    min-height: 110px;
    padding: 18px;
    border: 0;
    border-radius: 0;
    background: #0d1017;
}

.legal-page .platform-card span {
    color: #8f98a6;
    font-size: 0.84rem;
}

.legal-page .contact-box,
.minecraft-disclaimer {
    padding: 20px;
    border: 1px solid rgba(154, 120, 255, 0.3);
    border-radius: 4px;
    background: rgba(154, 120, 255, 0.055);
}

.legal-page .policy-section a,
.legal-page .notice a,
.legal-page .contact-box a,
.legal-page .minecraft-disclaimer a {
    color: var(--preview-purple-soft);
}

.legal-page .site-header,
.legal-page .site-header .studio-brand {
    color: var(--preview-text);
}

.legal-page .site-header .navigation-tab {
    color: var(--preview-muted);
}

.legal-page .site-header .navigation-tab:hover,
.legal-page .site-header .navigation-tab.active {
    color: var(--preview-text);
}

.home-page .hero,
.builds-page .hero,
.legal-page .hero {
    border: 1px solid var(--preview-line);
    border-radius: 10px;
    background:
        linear-gradient(112deg, rgba(154, 120, 255, 0.13), transparent 52%),
        linear-gradient(180deg, rgba(17, 20, 29, 0.98), rgba(8, 10, 15, 0.98));
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.36);
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 96px;
    padding: 34px;
    border: 1px solid var(--preview-line);
    border-radius: 8px;
    background:
        linear-gradient(105deg, rgba(64, 43, 112, 0.28), transparent 28%),
        rgba(10, 11, 18, 0.94);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.footer-brand {
    grid-area: brand;
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
}

.footer-navigation {
    grid-area: navigation;
}

.footer-socials {
    grid-area: socials;
}

.footer-navigation,
.footer-socials {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100%, 760px);
    margin: 0;
    gap: 8px;
}

footer p {
    margin: 0;
    color: #737d8c;
    font-size: 0.76rem;
}

footer p:first-of-type {
    grid-area: copyright;
}

footer p:last-of-type {
    grid-area: note;
}

.footer-navigation a,
.footer-socials .social-button {
    height: 42px;
    min-height: 42px;
    border: 1px solid var(--preview-line);
    border-radius: 4px;
    background: rgba(154, 120, 255, 0.045);
    font-size: 0.76rem;
    letter-spacing: 0.03em;
}

.footer-navigation a:hover,
.footer-socials .social-button:hover {
    border-color: var(--preview-line);
    background: rgba(255, 255, 255, 0.025);
}

@media (min-width: 821px) {
    html[data-language="ru"] .site-header .navigation-tab {
        font-size: 0.7rem;
        letter-spacing: 0.015em;
    }
}

/* Shared interactive elements */

.news-toast,
.news-panel {
    border-color: var(--preview-line-strong);
    border-radius: 6px;
    background:
        linear-gradient(145deg, rgba(154, 120, 255, 0.08), transparent 48%),
        rgba(13, 16, 23, 0.97);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

.news-toast:hover,
.news-toast:focus-visible {
    border-color: rgba(154, 120, 255, 0.46);
    background:
        linear-gradient(145deg, rgba(154, 120, 255, 0.13), transparent 52%),
        rgba(13, 16, 23, 0.98);
}

.news-toast-icon,
.news-panel-visual {
    border-radius: 4px;
    background:
        radial-gradient(circle at 50% 45%, rgba(154, 120, 255, 0.23), transparent 64%),
        #0a0c12;
}

.news-panel-label,
.news-toast-copy .news-panel-label {
    color: var(--preview-gold);
    letter-spacing: 0.12em;
}

.news-close,
.release-notice-close,
.mods-dialog-close {
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.025);
}

.news-action,
.release-notice-confirm,
.mods-dialog-confirm {
    min-height: 46px;
    border-color: rgba(154, 120, 255, 0.45);
    border-radius: 4px;
    background: rgba(154, 120, 255, 0.12);
    color: var(--preview-purple-soft);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.news-action:hover,
.release-notice-confirm:hover,
.mods-dialog-confirm:hover {
    border-color: rgba(154, 120, 255, 0.72);
    background: rgba(154, 120, 255, 0.2);
}

.release-notice,
.mods-dialog {
    background: rgba(4, 5, 8, 0.8);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.release-notice-card,
.mods-dialog-card {
    border-color: var(--preview-line-strong);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(154, 120, 255, 0.09), transparent 45%),
        #0d1017;
    box-shadow: 0 35px 110px rgba(0, 0, 0, 0.58);
}

.release-notice-visual {
    border-color: rgba(213, 183, 109, 0.3);
    border-radius: 6px;
    background: rgba(7, 8, 12, 0.62);
}

.release-notice-platform,
.mods-dialog-label {
    color: var(--preview-gold);
    letter-spacing: 0.12em;
}

.release-notice-title,
.mods-dialog-title,
.news-panel-title {
    color: var(--preview-text);
    letter-spacing: -0.035em;
}

.release-notice-description,
.mods-dialog-description,
.news-panel-description {
    color: var(--preview-muted);
}

.mods-dialog-categories {
    gap: 0;
    border-top: 1px solid var(--preview-line);
    border-bottom: 1px solid var(--preview-line);
}

.mods-dialog-category {
    padding: 22px 4px;
    border-bottom: 1px solid var(--preview-line);
}

.mods-dialog-category:last-child {
    border-bottom: 0;
}

.mods-dialog-category h3 {
    color: var(--preview-purple-soft);
}

.mods-dialog-category-text,
.mods-dialog-note {
    color: var(--preview-muted);
}

@media (max-width: 1180px) {
    .page {
        width: min(100% - 28px, 1060px);
    }

    .site-header {
        grid-template-columns: 1fr auto;
    }

    .studio-brand {
        grid-column: 1;
        grid-row: 1;
    }

    .header-actions {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        width: auto;
        justify-self: end;
        gap: 12px;
    }

    .page-navigation {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: stretch;
        justify-content: center;
        width: 100%;
        border-top: 1px solid var(--preview-line);
    }

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

    .hero::after {
        display: none;
    }

    .hero-project-preview {
        grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1fr);
        grid-template-rows: auto 1fr;
    }

    .hero-project-topline {
        grid-column: 1 / -1;
    }

    .hero-project-copy {
        align-self: center;
        border-top: 0;
        border-left: 1px solid var(--preview-line);
        padding: 20px 0 20px 28px;
    }

    footer {
        grid-template-columns: minmax(190px, 0.55fr) minmax(500px, 1.45fr);
        gap: 12px 28px;
    }
}

@media (max-width: 820px) {
    .page {
        width: min(100% - 20px, 720px);
        padding-top: 10px;
    }

    .site-header {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 10px;
        padding: 10px;
    }

    .studio-brand {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .header-actions {
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex;
        width: auto;
        justify-self: center;
        gap: 10px;
    }

    .page-navigation {
        grid-column: 1 / -1;
        grid-row: 3;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 1px;
        padding: 8px 0 0;
        background: var(--preview-line);
    }

    .page-navigation .navigation-tab {
        min-width: 0;
        padding: 10px 6px;
        background: #090b10;
        font-size: 0.66rem;
        white-space: normal;
    }

    .hero {
        min-height: 0;
        padding: 42px 24px 24px;
    }

    .builds-page .hero,
    .legal-page .hero {
        min-height: 0;
    }

    .hero h1 {
        font-size: clamp(4rem, 21vw, 7rem);
    }

    .legal-page .page {
        width: min(100% - 20px, 720px);
    }

    .legal-page .hero h1 {
        font-size: clamp(3.1rem, 13vw, 5.6rem);
    }

    .builds-page .hero h1 {
        font-size: clamp(4.2rem, 20vw, 7rem);
    }

    .hero-title-accent {
        margin-left: 0;
    }

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

    .hero-project-preview {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .hero-project-copy {
        border-top: 1px solid var(--preview-line);
        border-left: 0;
        padding: 20px 4px 2px;
    }

    .content-section {
        grid-template-columns: 1fr;
        gap: 42px;
        padding: 50px 2px;
    }

    .section-heading {
        position: static;
    }

    .product-card {
        grid-template-columns: 54px 1fr;
    }

    .product-card p {
        grid-column: 1 / -1;
    }

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

    .release-card {
        min-height: 0;
    }

    .release-number {
        margin-bottom: 38px;
    }

    .section-divider {
        margin-top: 72px;
    }

    .cta-section {
        padding: 46px 24px;
    }

    .build-banner {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .build-icon-frame {
        width: 112px;
    }

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

    .legal-page .document {
        margin-top: 42px;
    }

    .legal-page .policy-section {
        padding: 34px 0;
    }

    footer {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "navigation"
            "socials"
            "copyright"
            "note";
        gap: 16px;
        padding-top: 34px;
        text-align: center;
    }

    .footer-brand {
        justify-self: center;
    }

    .footer-navigation,
    .footer-socials {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: min(100%, 440px);
        justify-self: center;
    }
}

@media (max-width: 520px) {
    .build-meta-grid,
    .feature-grid,
    .footer-navigation,
    .footer-socials {
        grid-template-columns: 1fr;
    }

    .legal-page .hero,
    .builds-page .hero {
        padding: 42px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-card,
    .release-card,
    .navigation-tab::after {
        transition: none;
    }
}

