* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: #140b1f;
    font-family: "Segoe UI", Arial, sans-serif;
}

.intro-cinematic {
    position: fixed;
    inset: 0;
    z-index: 50;
    overflow: hidden;
    background: #160f2d;
    pointer-events: none;
    transition: opacity .9s ease, visibility .9s ease;
}

body.intro-done .intro-cinematic {
    opacity: 0;
    visibility: hidden;
}

.intro-zoom-layer {
    position: absolute;
    inset: 0;
}

.intro-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    opacity: 0;
    animation: videoReveal .65s ease forwards;
}

.intro-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    object-position: center center;
    transform: scale(1.02);
    filter: saturate(1.04) contrast(1.02);
    animation: artReveal 1s ease forwards;
}

.intro-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 73% 54%, transparent 0 30%, rgba(10, 4, 24, .24) 74%),
        linear-gradient(180deg, rgba(13, 7, 32, .02), rgba(13, 7, 32, .36));
}

.nekoryx-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 164, 214, .2), transparent 35%),
        radial-gradient(circle at 80% 20%, rgba(128, 112, 222, .26), transparent 35%),
        radial-gradient(circle at 70% 75%, rgba(255, 217, 139, .12), transparent 28%),
        linear-gradient(135deg, #171031, #312052, #60418f, #9072c2);
}

.stars-layer {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(#fff 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, .6) 1px, transparent 1px);
    background-size: 90px 90px, 140px 140px;
    background-position: 0 0, 40px 60px;
    opacity: .35;
    animation: starsMove 25s linear infinite;
}

.aurora {
    position: absolute;
    width: 60%;
    height: 70%;
    filter: blur(90px);
    opacity: .28;
    border-radius: 50%;
}

.aurora-1 {
    left: -15%;
    top: 5%;
    background: linear-gradient(120deg, #ff9fd6, #8f7bff, transparent);
    animation: floatAurora 12s ease-in-out infinite alternate;
}

.aurora-2 {
    right: -20%;
    bottom: -15%;
    background: linear-gradient(120deg, #ffd98b, #a878d8, transparent);
    animation: floatAurora 15s ease-in-out infinite alternate-reverse;
}

.clouds {
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -20%;
    height: 40%;
    background:
        radial-gradient(circle at 10% 70%, rgba(255, 255, 255, .15), transparent 22%),
        radial-gradient(circle at 30% 60%, rgba(220, 203, 255, .18), transparent 24%),
        radial-gradient(circle at 60% 75%, rgba(255, 255, 255, .12), transparent 22%),
        radial-gradient(circle at 85% 65%, rgba(220, 203, 255, .16), transparent 25%);
    filter: blur(16px);
    opacity: .55;
}

.shooting-star {
    position: absolute;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, white, transparent);
    opacity: 0;
    transform: rotate(-25deg);
    filter: drop-shadow(0 0 8px white);
}

.shooting-star-1 {
    top: 15%;
    left: 70%;
    animation: shooting 7s ease-in-out infinite;
}

.shooting-star-2 {
    top: 65%;
    left: 85%;
    animation: shooting 10s ease-in-out infinite 3s;
}

.constellation {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 40%;
    opacity: .18;
    animation: rotateConstellation 30s linear infinite;
}

.constellation-1 {
    top: 12%;
    right: 14%;
}

.constellation-2 {
    bottom: 10%;
    left: 6%;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(255, 175, 235, .13);
    border-radius: 50%;
    pointer-events: none;
}

.orbit-1 {
    width: 1200px;
    height: 500px;
    bottom: -250px;
    left: -200px;
    animation: orbitMove 40s linear infinite;
}

.orbit-2 {
    width: 900px;
    height: 350px;
    bottom: -180px;
    right: -250px;
    animation: orbitMoveReverse 35s linear infinite;
}

.orbit-3 {
    width: 1500px;
    height: 650px;
    bottom: -400px;
    left: 50%;
    opacity: .08;
    transform: translateX(-50%);
    animation: orbitMove 55s linear infinite;
}

.particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.particles span {
    position: absolute;
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    opacity: .35;
    box-shadow: 0 0 12px #ffafeb;
    animation: particleFloat 8s linear infinite;
}

.particles span:nth-child(1) { left: 8%; top: 80%; animation-delay: 0s; }
.particles span:nth-child(2) { left: 18%; top: 30%; animation-delay: 1s; }
.particles span:nth-child(3) { left: 28%; top: 70%; animation-delay: 2s; }
.particles span:nth-child(4) { left: 38%; top: 20%; animation-delay: 3s; }
.particles span:nth-child(5) { left: 48%; top: 85%; animation-delay: 4s; }
.particles span:nth-child(6) { left: 58%; top: 35%; animation-delay: 5s; }
.particles span:nth-child(7) { left: 68%; top: 75%; animation-delay: 2s; }
.particles span:nth-child(8) { left: 78%; top: 25%; animation-delay: 3s; }
.particles span:nth-child(9) { left: 88%; top: 65%; animation-delay: 4s; }
.particles span:nth-child(10) { left: 95%; top: 40%; animation-delay: 5s; }
.particles span:nth-child(11) { left: 12%; top: 55%; animation-delay: 6s; }
.particles span:nth-child(12) { left: 52%; top: 55%; animation-delay: 7s; }

.nekoryx-cat {
    position: absolute;
    right: 5px;
    bottom: 0;
    z-index: 2;
    width: 420px;
    opacity: .75;
    pointer-events: none;
    display: none;
    animation: catFloat 5s ease-in-out infinite, catGlow 4s ease-in-out infinite;
}

.nekoryx-cat img {
    display: block;
    width: 100%;
    height: auto;
}

.cat-stars {
    display: none;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 280px;
    height: 220px;
    pointer-events: none;
}

.cat-stars span {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 8px white, 0 0 15px #ffafeb;
    animation: twinkle 2s ease-in-out infinite alternate;
}

.cat-stars span:nth-child(1) { right: 210px; bottom: 120px; }
.cat-stars span:nth-child(2) { right: 150px; bottom: 180px; animation-delay: .7s; }
.cat-stars span:nth-child(3) { right: 80px; bottom: 140px; animation-delay: 1.2s; }
.cat-stars span:nth-child(4) { right: 40px; bottom: 90px; animation-delay: 1.8s; }

.container {
    position: relative;
    z-index: 10;
    display: grid;
    width: min(1250px, calc(100vw - 56px));
    min-height: 560px;
    margin: clamp(28px, 7vh, 64px) auto;
    grid-template-columns: minmax(330px, 1fr) minmax(360px, .95fr);
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 30px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 28px 70px rgba(12, 4, 32, .34);
    backdrop-filter: blur(14px);
    opacity: 0;
    transform: translateY(24px) scale(.96);
    animation: none;
}

body.intro-done .container {
    animation: cardEnter .85s cubic-bezier(.2, .9, .2, 1) forwards .25s;
}

.left,
.right {
    min-width: 0;
    padding: clamp(34px, 5vw, 64px);
}

.left {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: center;
}

h2 {
    margin-bottom: 10px;
    color: #4d4658;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 800;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(16px);
    animation: none;
}

body.intro-done h2 {
    animation: fadeUp .7s ease forwards .55s;
}

h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 6.2vw, 82px);
    font-weight: 900;
    letter-spacing: 1px;
    line-height: .9;
    text-transform: uppercase;
    color: transparent;
    background: linear-gradient(270deg, #fff, #ffafeb, #7758a3, #66a5ed, #f6c45c, #db3e8c, #fff);
    background-size: 1400% 1400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 8px 18px rgba(119, 88, 163, .38));
    opacity: 0;
    transform: translateY(20px) scale(.96);
    animation: gradientMove 10s ease infinite;
}

body.intro-done h1 {
    animation: titleEnter .85s cubic-bezier(.17, .95, .25, 1) forwards .72s, gradientMove 10s ease infinite;
}

p {
    max-width: 560px;
    margin: 28px 0 0;
    color: #555;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.75;
    opacity: 0;
    transform: translateY(18px);
    animation: none;
}

body.intro-done p {
    animation: fadeUp .7s ease forwards 1s;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 34px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(24px);
    animation: none;
}

body.intro-done .buttons {
    animation: buttonsEnter .75s ease forwards 1.4s;
}

.btn {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    min-width: 205px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px 28px;
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 999px;
    color: white;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(119, 88, 163, .25);
    transition: transform .25s ease, box-shadow .25s ease;
}

.btn span {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
    transform: translateX(-125%);
    animation: buttonShine 2.8s ease-in-out infinite 3.7s;
}

.btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 18px 38px rgba(119, 88, 163, .32);
}

.btn-piac {
    color: #4a377d;
    background: linear-gradient(135deg, #ffc1dc, #c8b6ff);
}

.btn-avyra {
    background: linear-gradient(135deg, #8d7cff, #f1a1cd);
}

.right {
    display: grid;
    min-height: 100%;
    place-items: center;
}

.pc-wrap {
    position: relative;
    width: min(480px, 100%);
    opacity: 0;
    transform: translateY(28px) rotateX(10deg) scale(.86);
    animation: none;
    perspective: 1000px;
}

body.intro-done .pc-wrap {
    animation: pcIntro 1s cubic-bezier(.19, .94, .24, 1) forwards .48s;
}

.pc-glow {
    position: absolute;
    inset: 15% -8% auto;
    height: 58%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 175, 235, .36), rgba(102, 165, 237, .22), transparent 70%);
    filter: blur(28px);
    animation: pcGlow 3.4s ease-in-out infinite alternate 1.8s;
}

.pc {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #21163b;
    box-shadow: 0 30px 60px rgba(37, 20, 70, .34), inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.pc-bar {
    display: flex;
    gap: 9px;
    height: 38px;
    align-items: center;
    padding: 0 20px;
    background: linear-gradient(90deg, #201435, #4d3279);
}

.pc-bar i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ffafeb;
    box-shadow: 20px 0 0 #b89cff, 40px 0 0 #66a5ed;
}

.pc-screen {
    position: relative;
    display: grid;
    height: 310px;
    place-items: center;
    overflow: hidden;
    margin: 0 16px 16px;
    border-radius: 8px 8px 18px 18px;
    background:
        radial-gradient(circle at 48% 45%, rgba(255, 255, 255, .18), transparent 16%),
        linear-gradient(135deg, #160e2b, #33205f 50%, #7d62bf);
    box-shadow: inset 0 0 42px rgba(102, 165, 237, .23);
}

.screen-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: .65;
    animation: gridFloat 8s linear infinite;
}

.loading-line {
    position: absolute;
    inset: -85% 0 auto;
    height: 60%;
    background: linear-gradient(transparent, rgba(255, 255, 255, .32), transparent);
    transform: rotate(8deg);
    animation: none;
}

body.intro-done .loading-line {
    animation: scanLoad 2.6s ease-in-out forwards .82s;
}

.logo-load {
    position: relative;
    z-index: 2;
    width: min(200px, 48%);
    max-height: 170px;
    object-fit: contain;
    border-radius: 18px;
    filter: drop-shadow(0 16px 24px rgba(255, 175, 235, .25));
    opacity: 0;
    transform: scale(.24) rotate(-18deg);
    animation: none;
}

body.intro-done .logo-load {
    animation: logoLoad 1.18s cubic-bezier(.16, 1, .3, 1) forwards .87s, logoPulse 3.2s ease-in-out infinite 2.2s;
}

.screen-brand {
    position: absolute;
    z-index: 3;
    color: white;
    max-width: 86%;
    font-size: clamp(26px, 3.4vw, 46px);
    font-weight: 900;
    letter-spacing: .5px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 0 20px rgba(255, 175, 235, .72), 0 0 42px rgba(102, 165, 237, .5);
    opacity: 0;
    transform: scale(.36);
    animation: none;
}

body.intro-done .screen-brand {
    animation: brandGrow 1.08s cubic-bezier(.18, .94, .22, 1) forwards 1.82s;
}

.pc-neck {
    width: 86px;
    height: 62px;
    margin: 0 auto;
    background: linear-gradient(180deg, #24183f, #5a4382);
    clip-path: polygon(24% 0, 76% 0, 100% 100%, 0 100%);
}

.pc-base {
    width: 210px;
    height: 24px;
    margin: 0 auto;
    border-radius: 999px;
    background: linear-gradient(90deg, #2c1c48, #8068b2, #30204b);
    box-shadow: 0 18px 35px rgba(42, 26, 78, .25);
}

@keyframes starsMove {
    from { transform: translateY(0); }
    to { transform: translateY(-90px); }
}

@keyframes artReveal {
    to { opacity: 1; transform: scale(1.02); }
}

@keyframes videoReveal {
    to { opacity: 1; }
}

@keyframes artPush {
    to { transform: scale(1.18) translate(-3.2%, -1.6%); }
}

@keyframes sceneZoom {
    to { transform: scale(1.34); }
}

@keyframes introPcIn {
    70% { opacity: 1; transform: translate(-50%, -50%) scale(.66); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(.58); }
}

@keyframes introPcZoom {
    to { opacity: 1; transform: translate(-50%, -50%) scale(1.32); }
}

@keyframes monitorWake {
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes monitorTint {
    to { opacity: .22; }
}

@keyframes typeNekoryx {
    0% {
        opacity: 1;
        clip-path: inset(0 100% 0 0);
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

@keyframes introBrandSettle {
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes zazFlash {
    35% { opacity: 1; transform: scale(.9); }
    100% { opacity: 0; transform: scale(1.9); }
}

@keyframes introBrandPop {
    55% { opacity: 1; transform: scale(1.18) rotate(0); }
    76% { transform: scale(.96) rotate(0); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes introExit {
    to { opacity: 0; visibility: hidden; }
}

@keyframes floatAurora {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(45px, -35px) scale(1.12); }
}

@keyframes shooting {
    0%, 70%, 100% { opacity: 0; transform: translate(0, 0) rotate(-25deg); }
    75% { opacity: .8; }
    90% { opacity: 0; transform: translate(-300px, 160px) rotate(-25deg); }
}

@keyframes rotateConstellation {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbitMove {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbitMoveReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes particleFloat {
    0% { transform: translateY(30px) scale(.8); opacity: 0; }
    30% { opacity: .45; }
    100% { transform: translateY(-80px) scale(1.2); opacity: 0; }
}

@keyframes catFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes catGlow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 175, 235, .4)); }
    50% { filter: drop-shadow(0 0 18px rgba(255, 175, 235, .9)) drop-shadow(0 0 30px rgba(184, 156, 255, .8)); }
}

@keyframes twinkle {
    from { opacity: .3; transform: scale(.8); }
    to { opacity: 1; transform: scale(1.4); }
}

@keyframes cardEnter {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes titleEnter {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
    100% { background-position: 0% 50%; }
}

@keyframes pcIntro {
    70% { opacity: 1; transform: translateY(-10px) rotateX(4deg) scale(1.03); }
    to { opacity: 1; transform: translateY(0) rotateX(0) scale(1); }
}

@keyframes pcGlow {
    to { opacity: .82; transform: scale(1.08); }
}

@keyframes scanLoad {
    to { inset: 135% 0 auto; }
}

@keyframes gridFloat {
    to { background-position: 34px 34px; }
}

@keyframes logoLoad {
    65% { opacity: 1; transform: scale(1.04) rotate(4deg); }
    to { opacity: .24; transform: translateY(-72px) scale(.48) rotate(0); }
}

@keyframes logoPulse {
    50% { transform: translateY(-78px) scale(.52); }
}

@keyframes brandGrow {
    65% { opacity: 1; transform: scale(1.1); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes buttonsEnter {
    to { opacity: 1; pointer-events: auto; transform: translateY(0); }
}

@keyframes buttonShine {
    45%, 100% { transform: translateX(125%); }
}

@media (max-width: 860px) {
    html,
    body {
        overflow-y: auto;
    }

    .intro-art {
        object-position: 58% center;
    }

    .container {
        width: calc(100vw - 32px);
        min-height: auto;
        margin: 22px auto;
        grid-template-columns: 1fr;
    }

    .left,
    .right {
        width: 100%;
        padding: 28px;
        text-align: center;
    }

    .left {
        order: 2;
    }

    .right {
        order: 1;
        padding-bottom: 0;
    }

    p {
        max-width: 100%;
    }

    .buttons {
        justify-content: center;
    }

    .btn {
        min-width: min(260px, 100%);
    }

    .pc-screen {
        height: 235px;
    }

    .nekoryx-cat {
        width: 230px;
        opacity: .42;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
