/* ========================================================================
   SCP: REENTER — INDEX ART DIRECTION / V6
   Cinematic, restrained, and built around the game's red/black identity.
   ======================================================================== */

:root {
    --index-bg: #050507;
    --index-surface: #0b0c0f;
    --index-surface-raised: #111217;
    --index-line: rgba(255, 255, 255, 0.09);
    --index-line-strong: rgba(255, 255, 255, 0.16);
    --index-red: #ff303b;
    --index-red-bright: #ff5d65;
    --index-red-soft: rgba(255, 48, 59, 0.12);
    --index-copy: #a6a7ae;
    --index-ink: #f6f6f7;
}

html { background: var(--index-bg); scroll-behavior: smooth; }

body.scp-theme {
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 48, 59, 0.045), transparent 30rem),
        var(--index-bg);
    color: var(--index-ink);
}

body.scp-theme::before {
    content: "";
    position: fixed;
    z-index: 997;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 42%, rgba(0, 0, 0, 0.24) 100%);
}

/* Faster, cleaner entry sequence. */
.loader-wrapper {
    background:
        radial-gradient(circle at center, rgba(255, 48, 59, 0.055), transparent 21rem),
        #030304;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.loader-content { position: relative; }
.loader-content::before,
.loader-content::after { display: none; }
.loader-logo { width: 124px; margin-bottom: 25px; animation: loaderSignal 1.7s ease-in-out infinite; }
.progress-bar { width: 210px; background: #17181d; }
.progress { animation-duration: 0.75s; background: linear-gradient(90deg, #a81720, var(--index-red-bright)); box-shadow: 0 0 12px rgba(255, 48, 59, 0.45); }
.loader-text { color: #a64d52; font-size: 0.67rem; letter-spacing: 0.18em; }

@keyframes loaderSignal {
    0%, 100% { opacity: 0.92; filter: drop-shadow(0 0 0 rgba(255, 48, 59, 0)); }
    48% { opacity: 1; filter: drop-shadow(0 0 15px rgba(255, 48, 59, 0.18)); }
    51% { opacity: 0.55; transform: translateX(-1px); }
    53% { opacity: 1; transform: translateX(0); }
}

.scanlines { opacity: 0.07 !important; background-size: 100% 5px !important; }
.noise { opacity: 0.018 !important; }
.ambient-orb { opacity: 0.028 !important; }
.cursor-glow { opacity: 0.25 !important; }

/* Hero */
.hero {
    min-height: 100svh;
    overflow: hidden;
    isolation: isolate;
    background: #050507;
}

.hero::before {
    z-index: -1 !important;
    opacity: 0.2 !important;
    background:
        linear-gradient(90deg, transparent 0 49.9%, rgba(255, 48, 59, 0.16) 50%, transparent 50.1%),
        linear-gradient(0deg, transparent 0 49.9%, rgba(255, 255, 255, 0.04) 50%, transparent 50.1%) !important;
    background-size: 190px 190px !important;
    mask-image: radial-gradient(ellipse at 50% 46%, black, transparent 72%) !important;
    -webkit-mask-image: radial-gradient(ellipse at 50% 46%, black, transparent 72%) !important;
}

.hero::after {
    background:
        linear-gradient(180deg, rgba(3, 3, 5, 0.42) 0%, rgba(3, 3, 5, 0.25) 36%, rgba(3, 3, 5, 0.68) 72%, #050507 100%),
        radial-gradient(ellipse at 50% 46%, rgba(255, 48, 59, 0.095), transparent 44%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.58), transparent 25%, transparent 75%, rgba(0, 0, 0, 0.58)) !important;
}

.bg-layer { animation: indexBackgroundDrift 26s ease-in-out infinite alternate !important; }
.bg-video {
    opacity: 0 !important;
    filter: saturate(0.72) contrast(1.12) brightness(0.77);
    transition: opacity 1.2s ease !important;
}
.bg-video.loaded { opacity: 0.68 !important; }

@keyframes indexBackgroundDrift {
    from { transform: scale(1.035) translate3d(-0.35%, -0.2%, 0); }
    to { transform: scale(1.075) translate3d(0.35%, 0.3%, 0); }
}

.top-nav {
    z-index: 80 !important;
    min-height: 76px !important;
    padding: 17px clamp(20px, 4vw, 60px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.035);
    background: linear-gradient(180deg, rgba(2, 2, 4, 0.78), rgba(2, 2, 4, 0.05)) !important;
}

.nav-logo {
    width: 104px !important;
    opacity: 0.96;
    filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.5)) !important;
}

.nav-actions { width: auto; gap: 8px; }
.nav-docs-link,
.language-trigger {
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    background: rgba(7, 8, 11, 0.58) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.025) inset !important;
}

.nav-docs-link { padding: 8px 12px !important; color: #c9c9ce !important; }
.nav-docs-link:hover,
.language-trigger:hover,
.language-picker.is-open .language-trigger {
    border-color: rgba(255, 48, 59, 0.32) !important;
    background: rgba(255, 48, 59, 0.06) !important;
}

/* Compact custom language switcher. Browser language is used until the
   visitor explicitly chooses an override. */
.language-picker {
    position: relative;
    z-index: 40;
}

.language-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px 7px 11px;
    color: #d7d7dc;
    font-family: var(--font-body);
    cursor: pointer;
    transition: border-color 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.language-trigger > .fa-globe {
    color: #8a8b92;
    font-size: 0.82rem;
}

.language-current {
    min-width: 54px;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    text-align: left;
}

.language-chevron {
    color: #666872;
    font-size: 0.6rem;
    transition: transform 0.24s ease, color 0.24s ease;
}

.language-picker.is-open .language-chevron {
    color: var(--index-red-bright);
    transform: rotate(180deg);
}

.language-popover {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    width: 296px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    background:
        linear-gradient(145deg, rgba(18, 19, 24, 0.98), rgba(7, 8, 11, 0.985)),
        #090a0d;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62), 0 1px 0 rgba(255, 255, 255, 0.045) inset;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-7px) scale(0.985);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.language-popover::before {
    content: "";
    position: absolute;
    inset: 0 34px auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--index-red), transparent);
    box-shadow: 0 0 11px rgba(255, 48, 59, 0.42);
}

.language-picker.is-open .language-popover {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}

.language-popover-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    padding: 4px 6px 7px 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: #777983;
    font: 600 0.6rem/1 var(--font-mono);
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.language-auto-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 27px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.025);
    color: #92949d;
    font: 700 0.61rem/1 var(--font-body);
    cursor: pointer;
    transition: 0.2s ease;
}

.language-auto-option:hover,
.language-auto-option.is-active {
    border-color: rgba(255, 48, 59, 0.3);
    background: rgba(255, 48, 59, 0.08);
    color: #f4b4b7;
}

.language-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    padding-top: 7px;
}

.language-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    min-height: 39px;
    padding: 0 9px 0 11px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: #b6b7bd;
    font: 600 0.72rem/1 var(--font-body);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.language-option::before {
    content: "";
    position: absolute;
    left: 0;
    width: 2px;
    height: 0;
    background: var(--index-red);
    box-shadow: 0 0 8px rgba(255, 48, 59, 0.5);
    transition: height 0.18s ease;
}

.language-option small {
    color: #5f616a;
    font: 700 0.55rem/1 var(--font-mono);
    letter-spacing: 0.08em;
}

.language-option:hover {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    color: #fff;
}

.language-option.is-active {
    border-color: rgba(255, 48, 59, 0.18);
    background: linear-gradient(90deg, rgba(255, 48, 59, 0.11), rgba(255, 48, 59, 0.025));
    color: #fff;
}

.language-option.is-active::before { height: 17px; }
.language-option.is-active small { color: #e8686f; }

.lang-selector-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.hero-content {
    width: min(100%, 1440px);
    margin: 0 auto;
    padding: 98px 24px 144px !important;
    justify-content: center !important;
    animation: indexHeroEntrance 1.05s 0.1s both cubic-bezier(0.22, 1, 0.36, 1) !important;
}

@keyframes indexHeroEntrance {
    from { opacity: 0; transform: translateY(26px) scale(0.985); filter: blur(7px); }
    to { opacity: 1; transform: none; filter: blur(0); }
}

/* Clean striped wordmark with short signal failures. */
.title-lockup {
    position: relative;
    width: min(100%, 1220px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    padding: 18px 0 24px;
}

.title-lockup::before,
.title-lockup::after { display: none; }

.tagline {
    position: relative !important;
    z-index: 2;
    display: inline-block;
    margin: 0 !important;
    color: #f4f4f5 !important;
    background:
        repeating-linear-gradient(
            180deg,
            #ffffff 0 5px,
            #e8e8ea 5px 8px,
            #bfc0c5 8px 10px,
            #f7f7f8 10px 14px
        ) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    font-family: var(--font-heading) !important;
    font-size: clamp(3.35rem, 9vw, 8.15rem) !important;
    font-weight: 900 !important;
    letter-spacing: clamp(0.025em, 0.48vw, 0.078em) !important;
    line-height: 0.92 !important;
    text-transform: uppercase !important;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.25),
        0 13px 48px rgba(0, 0, 0, 0.76),
        0 0 26px rgba(255, 255, 255, 0.1) !important;
    -webkit-text-fill-color: transparent !important;
    animation: titleCoreSignal 3.6s steps(1, end) infinite !important;
    white-space: nowrap;
}

.glitch::before,
.glitch::after {
    content: attr(data-text) !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    color: #fff;
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    white-space: nowrap;
    mix-blend-mode: screen;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
}

.glitch::before {
    color: var(--index-red-bright) !important;
    text-shadow: -6px 0 #d3000d, 4px 0 rgba(255, 48, 59, 0.65) !important;
    animation: titleGlitchRed 3.6s steps(1, end) infinite !important;
}

.glitch::after {
    color: #c6f7ff !important;
    text-shadow: 5px 0 #57c6d5, -3px 0 rgba(87, 198, 213, 0.48) !important;
    animation: titleGlitchCyan 3.6s 55ms steps(1, end) infinite !important;
}

@keyframes titleCoreSignal {
    0%, 16%, 20%, 47%, 51%, 78%, 85%, 100% { transform:translate(0); filter:brightness(1); }
    17% { transform:translate(-2px, 0) skewX(-.8deg); filter:brightness(1.22); }
    18% { transform:translate(1px, 0); filter:brightness(.82); }
    49% { transform:translate(2px, 0) skewX(.55deg); filter:brightness(1.16); }
    79% { transform:translate(-3px, 0) skewX(-1deg); filter:brightness(1.32); }
    81% { transform:translate(2px, 0); filter:brightness(.76); }
    83% { transform:translate(-1px, 0); filter:brightness(1.12); }
}

@keyframes titleGlitchRed {
    0%, 15%, 21%, 46%, 52%, 77%, 86%, 100% { opacity:0; transform:translate(0); clip-path:inset(50% 0 50% 0); }
    16% { opacity:.62; transform:translate(-6px, 0); clip-path:inset(9% 0 73% 0); }
    18% { opacity:.38; transform:translate(5px, -1px); clip-path:inset(67% 0 13% 0); }
    20% { opacity:.72; transform:translate(-3px, 0); clip-path:inset(39% 0 45% 0); }
    47% { opacity:.48; transform:translate(5px, 0); clip-path:inset(74% 0 9% 0); }
    49% { opacity:.68; transform:translate(-7px, 1px); clip-path:inset(24% 0 58% 0); }
    51% { opacity:.28; transform:translate(3px, 0); clip-path:inset(51% 0 32% 0); }
    78% { opacity:.84; transform:translate(-10px, 1px); clip-path:inset(7% 0 75% 0); }
    80% { opacity:.56; transform:translate(8px, -1px); clip-path:inset(63% 0 14% 0); }
    82% { opacity:.9; transform:translate(-5px, 0) skewX(-2deg); clip-path:inset(31% 0 48% 0); }
    84% { opacity:.52; transform:translate(5px, 0); clip-path:inset(79% 0 7% 0); }
}

@keyframes titleGlitchCyan {
    0%, 16%, 22%, 47%, 53%, 78%, 87%, 100% { opacity:0; transform:translate(0); clip-path:inset(50% 0 50% 0); }
    17% { opacity:.34; transform:translate(6px, 0); clip-path:inset(48% 0 33% 0); }
    19% { opacity:.62; transform:translate(-4px, 1px); clip-path:inset(18% 0 66% 0); }
    48% { opacity:.44; transform:translate(-6px, 0); clip-path:inset(11% 0 72% 0); }
    50% { opacity:.6; transform:translate(5px, 0); clip-path:inset(57% 0 25% 0); }
    79% { opacity:.5; transform:translate(9px, 0); clip-path:inset(46% 0 34% 0); }
    81% { opacity:.76; transform:translate(-6px, 1px); clip-path:inset(17% 0 67% 0); }
    83% { opacity:.42; transform:translate(7px, 0); clip-path:inset(69% 0 13% 0); }
    85% { opacity:.56; transform:translate(-5px, 0); clip-path:inset(38% 0 43% 0); }
}

.subtitle {
    max-width: 760px !important;
    margin: 0 auto 38px !important;
    color: rgba(232, 232, 235, 0.68) !important;
    font-size: clamp(0.98rem, 1.55vw, 1.18rem) !important;
    font-weight: 400 !important;
    letter-spacing: 0.04em !important;
    line-height: 1.65;
    text-shadow: 0 4px 22px rgba(0, 0, 0, 0.9);
}

.actions { gap: 10px !important; }

.btn {
    min-height: 48px;
    min-width: 190px;
    padding: 0 20px !important;
    gap: 10px !important;
    border: 1px solid var(--index-line) !important;
    border-radius: 5px !important;
    background: rgba(7, 8, 11, 0.66) !important;
    color: #d8d9dd !important;
    font-family: var(--font-body) !important;
    font-size: 0.74rem !important;
    font-weight: 750 !important;
    letter-spacing: 0.08em !important;
    box-shadow: 0 10px 38px rgba(0, 0, 0, 0.24), 0 1px 0 rgba(255, 255, 255, 0.025) inset !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}

.btn i { font-size: 1rem !important; }
.btn-bg { display: none !important; }
.btn::after { opacity: 0.45; }

.btn-steam {
    border-color: #d62731 !important;
    background: linear-gradient(135deg, #e12b35, #b81722) !important;
    color: #fff !important;
    box-shadow: 0 14px 42px rgba(214, 39, 49, 0.21), 0 1px 0 rgba(255, 255, 255, 0.16) inset !important;
}

.btn-steam:hover {
    border-color: var(--index-red-bright) !important;
    background: linear-gradient(135deg, #f03640, #c61d28) !important;
    box-shadow: 0 17px 48px rgba(214, 39, 49, 0.3) !important;
}

.btn-primary:hover {
    border-color: rgba(88, 101, 242, 0.52) !important;
    background: rgba(88, 101, 242, 0.13) !important;
    box-shadow: 0 14px 40px rgba(88, 101, 242, 0.13) !important;
}

.btn-support { min-width: 160px; }
.btn-support:hover {
    border-color: rgba(255, 93, 101, 0.36) !important;
    background: rgba(255, 48, 59, 0.075) !important;
    box-shadow: 0 14px 40px rgba(255, 48, 59, 0.1) !important;
}

.scroll-indicator { bottom: 23px !important; gap: 8px !important; opacity: 0.5 !important; }
.mouse { width: 20px !important; height: 31px !important; border-width: 1px !important; border-radius: 10px !important; }
.mouse::before { width: 2px !important; height: 5px !important; top: 5px; }
.scroll-indicator p { font-size: 0.61rem !important; letter-spacing: 0.14em !important; }

/* Audio control */
.music-player {
    --volume-fill: 40%;
    right: 22px !important;
    bottom: 20px !important;
    gap: 12px !important;
    padding: 10px 13px !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 6px !important;
    background: rgba(7, 8, 11, 0.8) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.36) !important;
    overflow: hidden;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease !important;
}
.music-player[data-state="error"] { border-color: rgba(255, 255, 255, 0.08) !important; opacity: 0.72; }
.music-toggle { width: 27px !important; height: 27px !important; border-radius: 4px; font-size: 0.9rem !important; }
.music-toggle:hover { color: #fff !important; }
.music-toggle:focus-visible { outline: 1px solid rgba(255, 255, 255, 0.48); outline-offset: 3px; }
.volume-control { gap: 7px !important; }
#music-volume {
    width: 70px !important;
    background:
        linear-gradient(90deg, rgba(235, 235, 239, 0.86), rgba(154, 156, 165, 0.72)) 0 / var(--volume-fill) 100% no-repeat,
        rgba(255, 255, 255, 0.14) !important;
}
#music-volume::-webkit-slider-thumb { width:10px; height:10px; box-shadow:0 0 0 3px rgba(255,255,255,.035); }
#music-volume::-webkit-slider-thumb:hover { background:#fff !important; }
.volume-control i { width: 13px; text-align: center; }
.track-info { padding-left: 12px !important; }
.track-name { max-width: 170px; overflow: hidden; color: #a7a8ae !important; font-size: 0.62rem !important; white-space: nowrap; text-overflow: ellipsis; }
.audio-visualizer { width: 36px; }

/* Shared section language */
main { position: relative; background: var(--index-bg); }
.container { width: min(100%, 1360px); padding-right: clamp(22px, 4vw, 48px) !important; padding-left: clamp(22px, 4vw, 48px) !important; }

.features-section,
.gallery-section,
.requirements-section {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--index-line) !important;
}

.features-section { padding: 112px 0 124px !important; background: linear-gradient(180deg, #07080a, #050507) !important; }
.gallery-section { padding: 108px 0 124px !important; background: #07080a !important; }
.requirements-section { padding: 108px 0 124px !important; background: #050507 !important; }

.features-section::after,
.gallery-section::after,
.requirements-section::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: -250px;
    left: 50%;
    width: 700px;
    height: 430px;
    pointer-events: none;
    background: radial-gradient(ellipse, rgba(255, 48, 59, 0.045), transparent 68%);
    transform: translateX(-50%);
}

.features-section .container,
.gallery-section .container,
.requirements-section .container { position: relative; z-index: 1; }

.section-header {
    position: relative;
    max-width: 920px;
    margin: 0 0 52px !important;
    padding-left: 24px;
    text-align: left !important;
}

.section-header::before {
    position: absolute;
    top: -24px;
    left: 24px;
    color: #676972;
    font: 700 0.62rem/1 var(--font-mono);
    letter-spacing: 0.15em;
}

.features-section .section-header { padding-left: 0; }
.features-section .section-header::before,
.features-section .section-header::after { display: none; }
.gallery-section .section-header { padding-left: 0; }
.gallery-section .section-header::before,
.gallery-section .section-header::after { display: none; }
.gallery-section .title-line { display: none; }

.section-header::after {
    content: "";
    position: absolute;
    top: 0.12em;
    bottom: 0.12em;
    left: 0;
    width: 2px;
    background: linear-gradient(var(--index-red), rgba(255, 48, 59, 0.12));
    box-shadow: 0 0 12px rgba(255, 48, 59, 0.23);
}

.section-title {
    margin: 0 !important;
    color: var(--index-ink) !important;
    font-family: var(--font-body) !important;
    font-size: clamp(2rem, 4.5vw, 3.75rem) !important;
    font-weight: 780 !important;
    letter-spacing: -0.045em !important;
    line-height: 1.02 !important;
    text-transform: none !important;
    text-shadow: none !important;
}

.title-line {
    width: min(100%, 460px) !important;
    height: 1px !important;
    margin: 24px 0 0 !important;
    background: linear-gradient(90deg, rgba(255, 48, 59, 0.52), transparent) !important;
    box-shadow: none !important;
}

/* Features */
.features-grid {
    counter-reset: feature;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin-top: 0 !important;
}

.feature-card {
    counter-increment: feature;
    min-height: 300px !important;
    padding: 30px 26px 27px !important;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--index-line) !important;
    border-radius: 5px !important;
    background: linear-gradient(145deg, #0e0f13, #090a0d) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.018) inset !important;
}

.feature-card::before {
    content: "0" counter(feature) !important;
    position: absolute !important;
    top: 17px !important;
    right: 18px !important;
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #4f515a;
    background: none !important;
    font: 700 0.63rem/1 var(--font-mono);
    letter-spacing: 0.1em;
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 48, 59, 0.68), transparent);
    transform: scaleX(0);
    transition: transform 0.35s ease;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.18) !important;
    background: linear-gradient(145deg, #121318, #0b0c10) !important;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28) !important;
    transform: translateY(-4px) !important;
}
.feature-card:hover::after { transform: scaleX(1); }

.feature-icon {
    width: 100%;
    height: 58px;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    border: 0;
    background: transparent;
    color: #ff3b45 !important;
    font-size: 2.3rem !important;
    filter: drop-shadow(0 0 12px rgba(255, 48, 59, 0.2)) !important;
    transition: color 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.feature-card:hover .feature-icon { color: #fff !important; background: transparent !important; transform: translateX(4px) !important; }
.feature-card h3 { margin: 32px 0 12px !important; font-family: var(--font-body) !important; font-size: 0.93rem !important; font-weight: 740 !important; letter-spacing: 0.015em !important; line-height: 1.4; text-transform: none !important; }
.feature-card p { margin: 0 !important; color: #858790 !important; font-size: 0.82rem !important; line-height: 1.72 !important; }

/* Editorial archive mosaic */
.gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    grid-auto-rows: 172px;
    gap: 12px !important;
}

.gallery-grid:not(.is-expanded) .gallery-item:nth-child(n+6) { display: none !important; }

.gallery-item {
    aspect-ratio: auto !important;
    border: 1px solid var(--index-line) !important;
    border-radius: 5px !important;
    background: #090a0c !important;
    box-shadow: none !important;
}

.gallery-item:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.gallery-item:nth-child(2),
.gallery-item:nth-child(3) { grid-column: span 5; }
.gallery-item:nth-child(n+4) { grid-column: span 6; }
.gallery-item:nth-child(10) { grid-column: span 12; grid-row: span 2; }

.gallery-item img {
    filter: saturate(0.68) contrast(1.08) brightness(0.82) !important;
    transform: scale(1.01);
}

.gallery-item::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, transparent 48%, rgba(3, 3, 5, 0.82)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 28%);
    opacity: 0.75;
    transition: opacity 0.35s ease;
}

.gallery-item::after { z-index: 4 !important; }
.gallery-item:hover::after { border-color: rgba(255, 48, 59, 0.62) !important; }
.gallery-item:hover { border-color: rgba(255, 48, 59, 0.52) !important; transform: translateY(-3px) !important; box-shadow: 0 20px 58px rgba(0, 0, 0, 0.34), 0 0 22px rgba(255, 48, 59, 0.08) !important; }
.gallery-item:hover img { filter: saturate(0.92) contrast(1.03) brightness(0.94) !important; transform: scale(1.045) !important; }
.gallery-item:hover::before { opacity: 0.42; }

.item-overlay {
    z-index: 3 !important;
    padding: 18px !important;
    opacity: 1 !important;
    background: transparent !important;
}
.item-overlay i { width: 42px; height: 42px; margin: auto !important; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(0,0,0,.42); font-size: .88rem !important; opacity: 0 !important; transform: scale(.8) !important; transition: .3s !important; }
.gallery-item:hover .item-overlay i { opacity: 1 !important; transform: scale(1) !important; }
.item-overlay span { color: #d9d9dd !important; font-size: 0.62rem !important; letter-spacing: 0.14em !important; transform: none !important; }
.item-overlay span::before { content: "●"; margin-right: 8px; color: var(--index-red); font-size: 0.62em; vertical-align: 0.14em; }

.gallery-toggle {
    width: max-content;
    min-width: 190px;
    min-height: 44px;
    margin: 28px auto 0;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.025);
    color: #b9bbc2;
    font: 700 0.66rem/1 var(--font-mono);
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: color .25s ease, border-color .25s ease, background .25s ease, transform .25s ease;
}
.gallery-toggle:hover { color: #fff; border-color: rgba(255, 255, 255, 0.26); background: rgba(255, 255, 255, 0.055); transform: translateY(-2px); }
.gallery-toggle:focus-visible { outline: 1px solid rgba(255, 255, 255, 0.55); outline-offset: 3px; }
.gallery-toggle i { font-size: .72rem; transition: transform .32s ease; }
.gallery-toggle[aria-expanded="true"] i { transform: rotate(180deg); }

/* Requirements */
.requirements-heading {
    position: relative;
    display: block !important;
    max-width: 920px;
    margin: 0 0 52px !important;
    padding-left: 0;
}

.requirements-heading::before,
.requirements-heading::after { display: none; }

.requirements-heading h2 {
    font-family: var(--font-body) !important;
    font-size: clamp(2rem, 4.5vw, 3.75rem) !important;
    font-weight: 780 !important;
    letter-spacing: -0.045em !important;
    line-height: 1.02 !important;
    text-transform: none !important;
    white-space: normal !important;
}

.requirements-rule { display: none !important; }

.requirements-grid.requirements-simple { gap: 14px !important; }
.requirement-card-simple {
    position: relative;
    padding: 26px 28px 20px !important;
    overflow: hidden;
    border: 1px solid rgba(255, 48, 59, 0.32) !important;
    border-radius: 5px !important;
    background: linear-gradient(145deg, #0d0e12, #090a0d) !important;
}

.requirement-card-simple.recommended { border-color: rgba(255, 48, 59, 0.42) !important; }
.requirement-card-simple.recommended::before { display: none; }

.requirement-card-simple h3 { color: #dedee2 !important; font-size: 0.7rem !important; }
.requirement-card-simple h3::after { display: none !important; }
.requirements-list-simple > div { padding: 14px 0 !important; border-bottom-color: rgba(255, 255, 255, 0.065) !important; }
.requirements-list-simple dt { color: #6f717b !important; font-size: 0.76rem !important; }
.requirements-list-simple dd { color: #d8d9de !important; font-size: 0.84rem !important; }

/* Footer */
.site-footer { padding-top: 62px !important; background: #030304 !important; border-top-color: var(--index-line) !important; }
.site-footer-main { grid-template-columns: 140px 1fr auto !important; }
.site-footer-brand img { width: 104px !important; opacity: 0.82 !important; }
.site-footer-nav a { color: #85878f !important; font-size: 0.77rem !important; }
.site-footer-nav a:hover { color: #fff !important; }
.site-footer-socials a { border-color: var(--index-line) !important; background: #090a0d !important; }
.site-footer-socials a:hover { border-color: rgba(255, 48, 59, 0.34) !important; background: var(--index-red-soft) !important; color: #fff !important; }
.site-footer-bottom { border-top-color: rgba(255, 255, 255, 0.06) !important; }

@media (max-width: 1120px) {
    .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .feature-card { min-height: 270px !important; }
}

@media (max-width: 900px) {
    .hero-content { padding-top: 104px !important; }
    .title-lockup { padding-right: 24px; padding-left: 24px; }
    .tagline { font-size: clamp(3.2rem, 11.5vw, 6rem) !important; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-auto-rows: auto; }
    .gallery-item:nth-child(n) { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 9 !important; }
    .gallery-item:first-child { grid-column: span 2; }
}

@media (max-width: 680px) {
    .loader-content::before,
    .loader-content::after { display: none; }
    .top-nav { min-height: 66px !important; padding: 13px 15px !important; flex-direction: row !important; align-items: center !important; justify-content: space-between !important; gap: 12px !important; }
    .nav-logo { width: 68px !important; }
    .nav-actions { width: auto !important; flex-wrap: nowrap !important; justify-content: flex-end !important; }
    .nav-docs-link { min-width: 38px; justify-content: center; }
    .language-trigger { min-width: 43px; padding-right: 8px; padding-left: 9px; }
    .language-current { display: none; }
    .language-popover { width: min(296px, calc(100vw - 30px)); }

    .hero-content { padding: 94px 16px 128px !important; }
    .title-lockup { margin-bottom: 18px; padding: 15px 0 22px; }
    .tagline { font-size: clamp(1.85rem, 10.65vw, 3.2rem) !important; letter-spacing: 0.012em !important; white-space: nowrap; }
    .subtitle { max-width: 440px !important; margin-bottom: 30px !important; font-size: 0.91rem !important; }
    .actions { width: min(100%, 390px); flex-direction: column; }
    .btn { width: 100%; min-width: 0; min-height: 47px; }
    .scroll-indicator { display: none !important; }
    .music-player { right: 13px !important; bottom: 13px !important; left: auto !important; width: 88px !important; height: 44px !important; padding: 8px 9px !important; justify-content: flex-start !important; gap: 8px !important; }
    .music-player .player-controls { gap: 0 !important; }
    .music-player .volume-control { display: none !important; }
    .music-player .track-info { display: flex !important; width: 36px; padding-left: 8px !important; }
    .music-player .track-name { display: none !important; }
    .music-player .audio-visualizer { width: 28px; height: 17px; gap: 2px; }
    .music-player .audio-visualizer span { width: 2px; flex-basis: 2px; }
    .music-player .audio-visualizer span:nth-child(n+8) { display: none; }

    .features-section,
    .gallery-section,
    .requirements-section { padding: 86px 0 94px !important; }
    .section-header,
    .requirements-heading { margin-bottom: 40px !important; }
    .section-title,
    .requirements-heading h2 { font-size: clamp(1.9rem, 10vw, 2.7rem) !important; }
    .features-grid { grid-template-columns: 1fr !important; }
    .feature-card { min-height: 245px !important; }
    .gallery-grid { grid-template-columns: 1fr !important; }
    .gallery-item:first-child { grid-column: auto; }
    .requirements-grid.requirements-simple { grid-template-columns: 1fr !important; }
    .requirement-card-simple { padding: 23px 20px 17px !important; }
    .requirements-list-simple > div { grid-template-columns: 1fr !important; gap: 4px !important; }
    .site-footer { padding-top: 46px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .bg-layer,
    .tagline,
    .glitch::before,
    .glitch::after,
    .title-lockup::after,
    .loader-logo { animation: none !important; }
    .glitch::before,
    .glitch::after { display: none !important; }
}
