/* prototype.quest */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, #0c1445 0%, #1e1b4b 100%);
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* START SECTION */
.start {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

.stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #e2e8f0;
}

.compass {
    width: 50px;
    height: 50px;
    margin: 0 auto 2rem;
    position: relative;
    animation: spin-slow 20s linear infinite;
}

.compass-diamond {
    width: 24px;
    height: 24px;
    border: 2px solid #f59e0b;
    transform: rotate(45deg);
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -12px;
    margin-left: -12px;
}

.compass-diamond::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #f59e0b;
}

.brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    position: relative;
    z-index: 10;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 1rem;
    animation: glow-in 1.5s ease-out;
}

.subtitle {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    opacity: 0.7;
    position: relative;
    z-index: 10;
    animation: fade-up 1s ease-out 0.3s both;
}

/* ITERATE SECTION */
.iterate {
    max-width: 560px;
    margin: 0 auto;
    padding: 6rem 2rem;
    position: relative;
    min-height: 300vh;
}

.quest-path {
    position: fixed;
    left: 50%;
    top: 0;
    height: 300vh;
    width: 2px;
    background: linear-gradient(180deg,
        rgba(245, 158, 11, 0.1) 0%,
        rgba(245, 158, 11, 0.3) 20%,
        rgba(245, 158, 11, 0.3) 80%,
        rgba(245, 158, 11, 0.1) 100%);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
}

.chapter {
    text-align: center;
    margin-bottom: 6rem;
    position: relative;
    z-index: 5;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.quest-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #f59e0b;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e1b4b;
    position: relative;
    z-index: 10;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
    transition: all 0.3s ease;
}

.chapter.visible .quest-marker {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.4);
    transform: scale(1.1);
}

.marker-text {
    font-family: 'Fira Code', monospace;
    font-size: 0.65rem;
    color: #f59e0b;
    font-weight: 700;
}

.iteration-label {
    font-size: 0.75rem;
    color: #f59e0b;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.chapter-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 4vw, 2rem);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.chapter-body {
    font-size: clamp(0.85rem, 2vw, 1rem);
    opacity: 0.8;
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.8;
}

/* SHIP SECTION */
.ship {
    text-align: center;
    padding: 8rem 2rem 6rem;
    position: relative;
    z-index: 5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.achievement {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #22c55e;
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.4);
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse-glow 2s ease-in-out infinite;
}

.checkmark {
    font-size: 2.8rem;
    color: #22c55e;
    font-weight: 700;
    animation: scale-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ship-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #22c55e;
    letter-spacing: 0.02em;
}

/* CONTINUE SECTION */
.continue {
    text-align: center;
    padding: 4rem 2rem 6rem;
    position: relative;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stars-thin {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.star-thin {
    position: absolute;
    width: 1.5px;
    height: 1.5px;
    border-radius: 50%;
    background: #e2e8f0;
}

.continue-text {
    font-size: 1.1rem;
    opacity: 0.5;
    position: relative;
    z-index: 5;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.continue-subtext {
    font-size: 0.85rem;
    opacity: 0.4;
    position: relative;
    z-index: 5;
}

/* ANIMATIONS */
@keyframes glow-in {
    from {
        opacity: 0;
        text-shadow: none;
    }
    to {
        opacity: 1;
        text-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 40px rgba(34, 197, 94, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 60px rgba(34, 197, 94, 0.6);
        transform: scale(1.05);
    }
}

@keyframes scale-pop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .start {
        padding: 2rem 1rem;
    }

    .brand {
        margin-bottom: 0.5rem;
    }

    .iterate {
        padding: 4rem 1.5rem;
    }

    .chapter {
        margin-bottom: 4rem;
    }

    .ship {
        padding: 4rem 1rem;
    }

    .continue {
        padding: 3rem 1rem 4rem;
    }
}
