/* ============================================
   sora.market - Stratospheric Holographic Market
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 300;
    line-height: 1.75;
    color: #C8CCE0;
    background: linear-gradient(180deg, #0A0A1A 0%, #12122E 100%);
    min-height: 100vh;
    overflow-x: hidden;
    perspective: 1200px;
}

/* --- Ice Crystal Particle Field --- */
.particle-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

@keyframes crystalDrift {
    0% { transform: translateY(0) rotate(45deg); opacity: 0.1; }
    50% { opacity: 0.4; }
    100% { transform: translateY(100vh) rotate(45deg); opacity: 0.1; }
}

.crystal {
    position: absolute;
    width: 5px;
    height: 5px;
    background: var(--accent);
    left: var(--cx);
    top: var(--cy);
    transform: rotate(45deg);
    animation: crystalDrift var(--dur) linear var(--delay) infinite;
    opacity: 0.2;
}

/* --- Sticky Navigation --- */
.sticky-nav {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.domain-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.08em;
}

/* --- Prismatic Text --- */
.prismatic-text {
    background: conic-gradient(from 120deg, #7B68EE, #00CED1, #FF69B4, #7B68EE);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: prismaticShift 8s ease infinite;
}

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

/* --- Altitude Indicator --- */
.altitude-indicator {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.alt-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid #8890B5;
    opacity: 0.3;
    transition: opacity 0.4s ease, background 0.4s ease, transform 0.4s ease;
}

.alt-dot.active {
    opacity: 1;
    transform: scale(1.3);
}

.alt-dot-1 { background: #7B68EE; border-color: #7B68EE; }
.alt-dot-2 { background: #00CED1; border-color: #00CED1; }
.alt-dot-3 { background: #FF69B4; border-color: #FF69B4; }

@keyframes dotPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.alt-dot.active {
    animation: dotPulse 2s ease-in-out infinite;
}

/* --- Stratosphere Main --- */
.stratosphere {
    position: relative;
    z-index: 1;
}

/* --- Shelves --- */
.shelf {
    min-height: 100vh;
    padding: 6rem 4rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.shelf-1 { transform: translateZ(0); }
.shelf-2 { transform: translateZ(-80px); }
.shelf-3 { transform: translateZ(-160px); }

/* --- Altitude Lines --- */
.altitude-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
}

@keyframes altLineDrift {
    0% { transform: translateX(0); }
    100% { transform: translateX(-40px); }
}

.alt-line-drift {
    animation: altLineDrift 80s linear infinite;
}

/* --- Shelf Content --- */
.shelf-content {
    margin-bottom: 2rem;
}

.shelf-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #E8EAF6;
    text-transform: uppercase;
}

.shelf-desc {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    color: #8890B5;
    margin-top: 0.5rem;
    font-weight: 300;
}

/* --- Shelf Cards --- */
.shelf-cards {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* --- Holographic Card --- */
.holo-card {
    width: 320px;
    padding: 2rem;
    background: rgba(130, 150, 220, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid transparent;
    border-image: linear-gradient(135deg, #7B68EE, #00CED1, #FF69B4) 1;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.card-tilt-left { transform: rotateY(2deg); }
.card-tilt-right { transform: rotateY(-2deg); }

.holo-card:hover {
    transform: translateY(-8px) rotateY(0deg);
    box-shadow: 0 12px 40px rgba(123, 104, 238, 0.2);
}

/* --- Holographic Shimmer --- */
.holo-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(123, 104, 238, 0.1),
        rgba(0, 206, 209, 0.1),
        rgba(255, 105, 180, 0.1),
        rgba(123, 104, 238, 0.1)
    );
    background-size: 200% 200%;
    animation: holoShimmer 8s ease infinite;
    pointer-events: none;
    will-change: background-position;
}

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

.holo-card:hover .holo-shimmer {
    animation-duration: 4s;
    opacity: 0.25;
}

/* --- Card Typography --- */
.card-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #E8EAF6;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.card-body {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 300;
    line-height: 1.75;
    color: #C8CCE0;
    position: relative;
    z-index: 1;
}

/* --- Shelf Glow --- */
.shelf-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    box-shadow: 0 8px 40px rgba(123, 104, 238, 0.15);
}

.shelf-glow-teal {
    box-shadow: 0 8px 40px rgba(0, 206, 209, 0.15);
}

.shelf-glow-pink {
    box-shadow: 0 8px 40px rgba(255, 105, 180, 0.15);
}

/* --- Kanji Watermark --- */
.kanji-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 60vw;
    font-weight: 400;
    color: #7B68EE;
    opacity: 0.02;
    pointer-events: none;
    line-height: 1;
    z-index: 0;
}

/* --- Reveal Animations --- */
.reveal-shelf {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1), transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-shelf.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-card {
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-shelf.revealed .reveal-card {
    opacity: 1;
}

.reveal-shelf.revealed .reveal-card:nth-child(1) { transition-delay: 0ms; }
.reveal-shelf.revealed .reveal-card:nth-child(2) { transition-delay: 120ms; }
.reveal-shelf.revealed .reveal-card:nth-child(3) { transition-delay: 240ms; }

/* --- Terminal Shelf --- */
.terminal-shelf {
    min-height: 60vh;
    background: #0A0A1A;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
}

.runway-lights {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    perspective: 300px;
}

.runway-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #E8EAF6;
    opacity: 0.4;
}

.runway-dot:nth-child(1) { transform: scale(0.5); opacity: 0.15; }
.runway-dot:nth-child(2) { transform: scale(0.6); opacity: 0.2; }
.runway-dot:nth-child(3) { transform: scale(0.7); opacity: 0.3; }
.runway-dot:nth-child(4) { transform: scale(0.8); opacity: 0.4; }
.runway-dot:nth-child(5) { transform: scale(0.9); opacity: 0.5; }
.runway-dot:nth-child(6) { transform: scale(1.0); opacity: 0.6; }
.runway-dot:nth-child(7) { transform: scale(1.1); opacity: 0.8; }

.terminal-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    color: #8890B5;
    letter-spacing: 0.1em;
    font-weight: 400;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .shelf {
        padding: 4rem 1.5rem;
    }

    .shelf-cards {
        flex-direction: column;
    }

    .holo-card {
        width: 100%;
    }

    .sticky-nav {
        top: 1rem;
        left: 1rem;
    }

    .card-tilt-left,
    .card-tilt-right {
        transform: rotateY(0deg);
    }
}
