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

body {
    font-family: Inter, system-ui, sans-serif;
    background: #0e0e0e;
    color: #eaeaea;
    overflow: hidden;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

.background {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(120deg,
            rgba(122, 255, 156, 0.03),
            rgba(0, 0, 0, 0),
            rgba(122, 255, 156, 0.03));
    animation: drift 18s linear infinite;
    pointer-events: none;
}

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

    100% {
        background-position: 200% 50%;
    }
}

.rail,
.scroll {
    position: relative;
    z-index: 1;
}

.scroll {
    overflow-y: hidden;
}

/* NAV RAIL */
.rail {
    position: fixed;
    left: 0;
    top: 0;
    width: 90px;
    height: 100vh;
    background: #111;
    border-right: 1px solid #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 24px;
    z-index: 10;
}

.rail h1 {
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 40px;
    color: #7aff9c;
}

.rail ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.rail li {
    font-size: 11px;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0.5;
}

.rail li:hover {
    opacity: 1;
}

/* SCROLL CONTAINER */
.scroll {
    margin-left: 90px;
    height: 100vh;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

/* CUSTOM SCROLLBAR */
.scroll::-webkit-scrollbar {
    height: 8px;
}

.scroll::-webkit-scrollbar-track {
    background: #111;
}

.scroll::-webkit-scrollbar-thumb {
    background: #7aff9c;
    border-radius: 6px;
}

.scroll::-webkit-scrollbar-thumb:hover {
    background: #9bffb5;
}

/* PANELS */
.panel {
    min-width: calc(100vw - 90px);
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
}

.panel-inner {
    padding: 80px;
    max-width: 900px;
}

/* TYPOGRAPHY */
h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.lead {
    font-size: 18px;
    line-height: 1.6;
    max-width: 600px;
}

.muted {
    margin-top: 24px;
    opacity: 0.6;
}

/* CONTENT GRID */
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.content-grid h4 {
    color: #7aff9c;
    margin-bottom: 8px;
}

/* PHASES */
.phases {
    display: flex;
    gap: 32px;
    margin-top: 48px;
}

.phase {
    border: 1px solid #222;
    padding: 28px;
    width: 260px;
}

.phase h3 {
    color: #7aff9c;
    margin-bottom: 16px;
}

.phase ul {
    list-style: none;
    font-size: 14px;
    line-height: 1.6;
}

.phase-note {
    display: block;
    margin-top: 16px;
    font-size: 12px;
    opacity: 0.6;
}

/* STATS */
.stats {
    display: flex;
    gap: 60px;
    margin-top: 48px;
}

.stats span {
    font-size: 48px;
    color: #7aff9c;
}

/* FORM */
.start-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 320px;
    margin-top: 32px;
}

.start-form input {
    background: none;
    border: 1px solid #333;
    padding: 12px;
    color: #fff;
}

.start-form button {
    background: #7aff9c;
    border: none;
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 768px) {

    body {
        overflow-y: auto;
    }

    /* NAV RAIL → TOP BAR */
    .rail {
        width: 100%;
        height: 64px;
        flex-direction: row;
        justify-content: space-between;
        padding: 0 16px;
        border-right: none;
        border-bottom: 1px solid #222;
    }

    .rail h1 {
        margin: 0;
    }

    .rail ul {
        flex-direction: row;
        gap: 16px;
    }

    /* SCROLL → VERTICAL */
    .scroll {
        margin-left: 0;
        margin-top: 64px;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        scroll-snap-type: y mandatory;
    }

    .panel {
        min-width: 100%;
        height: auto;
        scroll-snap-align: start;
    }

    .panel-inner {
        padding: 48px 24px;
    }

    .phases,
    .stats,
    .content-grid {
        flex-direction: column;
        display: flex;
        gap: 24px;
    }

    .phase {
        width: 100%;
    }
}

.phase {
    border: 1px solid #222;
    padding: 28px;
    width: 260px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.phase:hover,
.phase.active {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(122, 255, 156, 0.2);
}

.stat-number {
    font-size: 48px;
    color: #7aff9c;
    display: inline-block;
}

.background {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: repeating-linear-gradient(45deg,
            rgba(122, 255, 156, 0.03) 0px,
            rgba(122, 255, 156, 0.03) 1px,
            transparent 1px,
            transparent 20px);
    animation: drift 20s linear infinite;
    pointer-events: none;
}

@keyframes drift {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 1000px 1000px;
    }
}

.rail li.active {
    opacity: 1;
    color: #7aff9c;
    font-weight: 600;
}