/* miris.xyz - Vaporwave Fever Dream */

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1a1033;
    color: #e8dff5;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* === Scan Lines === */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 200;
    background: repeating-linear-gradient(
        transparent, transparent 2px,
        rgba(0, 0, 0, 0.08) 2px, rgba(0, 0, 0, 0.08) 4px
    );
}

/* === Return to Top === */
.return-top {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 100;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    color: #ffb3d1;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.return-top:hover {
    opacity: 1;
}

/* === Gradient Meshes === */
.gradient-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.mesh-hero {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(255, 107, 157, 0.4), transparent 50%),
        radial-gradient(ellipse at 80% 60%, rgba(0, 212, 170, 0.3), transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(180, 105, 255, 0.35), transparent 50%);
    animation: meshMorph 20s ease-in-out infinite;
}

.mesh-collision {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(180, 105, 255, 0.3), transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(255, 107, 157, 0.25), transparent 50%);
    animation: meshMorph 25s ease-in-out infinite reverse;
}

.mesh-shatter {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(0, 212, 170, 0.2), transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(180, 105, 255, 0.2), transparent 50%);
    animation: meshMorph 30s ease-in-out infinite;
}

@keyframes meshMorph {
    0%, 100% { background-position: 0% 0%, 100% 100%, 50% 50%; }
    33% { background-position: 30% 20%, 70% 80%, 20% 60%; }
    66% { background-position: 60% 40%, 30% 30%, 80% 20%; }
}

/* === The Splash === */
.splash {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.splash-content {
    position: relative;
    z-index: 1;
    padding: 0 40px;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(4rem, 20vw, 15rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transform: rotate(-3deg);
    background: linear-gradient(135deg, #c0c0c0 0%, #ffffff 30%, #c0c0c0 50%, #888888 70%, #c0c0c0 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(255, 107, 157, 0.3));
    animation: chromeShift 5s ease-in-out infinite;
}

@keyframes chromeShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* === Floating Decor === */
.floating-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.wireframe-cube {
    position: absolute;
    top: 15%;
    right: 15%;
    width: 60px;
    height: 60px;
    transform-style: preserve-3d;
    animation: cubeRotate 8s linear infinite;
}

.cube-face {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.cube-face.front { transform: translateZ(30px); }
.cube-face.back { transform: translateZ(-30px); }
.cube-face.left { transform: rotateY(-90deg) translateZ(30px); }
.cube-face.right { transform: rotateY(90deg) translateZ(30px); }
.cube-face.top { transform: rotateX(90deg) translateZ(30px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(30px); }

@keyframes cubeRotate {
    from { transform: rotateX(0deg) rotateY(0deg); }
    to { transform: rotateX(360deg) rotateY(360deg); }
}

.katakana {
    position: absolute;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    opacity: 0.35;
}

.k1 { top: 25%; right: 8%; color: #ff6b9d; }
.k2 { bottom: 30%; right: 20%; color: #b469ff; }
.k3 { top: 60%; left: 70%; color: #00d4aa; font-size: 0.75rem; }

.gradient-orb {
    position: absolute;
    bottom: 20%;
    left: 60%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, #ff6b9d, #b469ff);
    opacity: 0.4;
    animation: orbFloat 6s ease-in-out infinite;
}

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

/* === Grid Collision === */
.grid-collision {
    position: relative;
    min-height: 200vh;
    padding: 80px 24px;
}

.collision-block {
    position: relative;
    z-index: 1;
    padding: 32px;
    border-radius: 4px;
    max-width: 400px;
    opacity: 0;
    transform: scale(0.3);
    transition: opacity 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.collision-block.revealed {
    opacity: 1;
    transform: scale(1);
}

.block-1 {
    background: rgba(255, 107, 157, 0.85);
    color: #1a1033;
    box-shadow: 12px 12px 0 rgba(255, 107, 157, 0.3);
    margin-left: 5%;
    margin-bottom: -30px;
}

.block-2 {
    background: rgba(0, 212, 170, 0.85);
    color: #1a1033;
    box-shadow: -12px 12px 0 rgba(0, 212, 170, 0.3);
    margin-left: 35%;
    margin-bottom: -20px;
}

.block-3 {
    background: rgba(180, 105, 255, 0.85);
    color: #1a1033;
    box-shadow: 12px -8px 0 rgba(180, 105, 255, 0.3);
    margin-left: 10%;
    margin-bottom: -25px;
}

.block-4 {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.6), rgba(180, 105, 255, 0.6));
    color: #e8dff5;
    box-shadow: -8px 12px 0 rgba(255, 179, 209, 0.2);
    margin-left: 40%;
    margin-bottom: -15px;
}

.block-5 {
    background: rgba(255, 230, 109, 0.85);
    color: #1a1033;
    box-shadow: 12px 8px 0 rgba(255, 230, 109, 0.3);
    margin-left: 15%;
}

.block-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.block-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === Scroll Strip === */
.scroll-strip-section {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
}

.color-field {
    width: 80%;
    height: 120px;
    margin: 0 auto;
    border-radius: 4px;
}

.field-top {
    background: linear-gradient(135deg, #ff6b9d, #b469ff);
    transform: rotate(2deg);
    margin-bottom: 24px;
    opacity: 0.6;
}

.field-bottom {
    background: linear-gradient(135deg, #00d4aa, #b469ff);
    transform: rotate(-1.5deg);
    margin-top: 24px;
    opacity: 0.6;
}

.marquee-track {
    overflow: hidden;
    white-space: nowrap;
    background: linear-gradient(90deg, #ff6b9d, #b469ff, #00d4aa, #ff6b9d);
    padding: 12px 0;
}

.marquee-content {
    display: inline-block;
    animation: marqueeScroll 20s linear infinite;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: #1a1033;
    letter-spacing: 0.1em;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* === The Shatter === */
.shatter {
    position: relative;
    min-height: 100vh;
    padding: 80px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.shard {
    background: rgba(26, 16, 51, 0.8);
    border: 1px solid rgba(180, 105, 255, 0.2);
    padding: 24px 32px;
    max-width: 500px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.shard p {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 1.05rem;
    color: #ffb3d1;
    line-height: 1.7;
}

.shard-1 { transform: rotate(-3deg) translateX(-40px); }
.shard-2 { transform: rotate(2deg) translateX(30px); }
.shard-3 { transform: rotate(-1deg) translateX(-20px); }
.shard-4 { transform: rotate(4deg) translateX(50px); }
.shard-5 { transform: rotate(-2deg) translateX(-30px); }

.shard.revealed {
    opacity: 1;
}

.shard-1.revealed { transform: rotate(-3deg) translateX(0); }
.shard-2.revealed { transform: rotate(2deg) translateX(0); }
.shard-3.revealed { transform: rotate(-1deg) translateX(0); }
.shard-4.revealed { transform: rotate(4deg) translateX(0); }
.shard-5.revealed { transform: rotate(-2deg) translateX(0); }

/* === The Fade === */
.the-fade {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #1a1033 0%, #e8dff5 100%);
    padding: 80px 24px;
}

.fade-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: rgba(255, 107, 157, 0.6);
    margin-bottom: 8px;
}

.fade-sub {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #c0c0c0 0%, #ffffff 30%, #c0c0c0 50%, #888888 70%, #c0c0c0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* === Responsive === */
@media (max-width: 700px) {
    .hero-title {
        font-size: clamp(3rem, 15vw, 8rem);
        transform: rotate(-2deg);
    }

    .collision-block {
        margin-left: 0 !important;
        max-width: 100%;
    }

    .wireframe-cube {
        display: none;
    }

    .shard {
        max-width: 100%;
    }

    .shard-1, .shard-2, .shard-3, .shard-4, .shard-5 {
        transform: rotate(0deg) translateX(0);
    }

    .shard.revealed {
        transform: rotate(0deg) translateX(0);
    }
}

/* === Design Palette References (for compliance) === */
.ffe66d-ref { color: #ffe66d; }
