:root {
    --black:   #030305;
    --void:    #07070d;
    --panel:   #0c0c18;
    --border:  #1a1a2e;
    --cyan:    #00f5ff;
    --red:     #ff0044;
    --white:   #eef0f8;
    --muted:   #4a4a6a;
    --dim:     #252540;

    --font-display: 'Space Grotesk', sans-serif;
    --font-mono:    'Space Mono', monospace;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-display);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

#grid-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.scanline {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 3px,
        rgba(0, 0, 0, 0.08) 3px,
        rgba(0, 0, 0, 0.08) 4px
    );
    animation: scanMove 8s linear infinite;
}

@keyframes scanMove {
    0%   { background-position: 0 0; }
    100% { background-position: 0 120px; }
}

.page-wrap {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
}

.site-header {
    margin-bottom: 5rem;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    color: var(--cyan);
    text-transform: uppercase;
    border: 1px solid rgba(0, 245, 255, 0.2);
    padding: 0.35rem 0.8rem;
    border-radius: 2px;
    margin-bottom: 2.2rem;
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeDown 0.6s var(--ease-out-expo) 0.1s forwards;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--cyan); }
    50%       { opacity: 0.5; box-shadow: 0 0 14px var(--cyan); }
}

.title {
    display: flex;
    flex-direction: column;
    line-height: 1;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s var(--ease-out-expo) 0.25s forwards;
}

.title-top {
    font-family: var(--font-mono);
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    letter-spacing: 0.3em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.title-bottom {
    font-size: clamp(3.5rem, 11vw, 6.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--white);
    line-height: 0.9;
}

.title-bottom em {
    font-style: normal;
    color: var(--red);
    text-shadow:
        0 0 30px rgba(255, 0, 68, 0.5),
        0 0 80px rgba(255, 0, 68, 0.2);
}

.subtitle {
    font-size: 1rem;
    color: var(--muted);
    max-width: 480px;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.6s var(--ease-out-expo) 0.45s forwards;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 0 1.5rem;
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.55s var(--ease-out-expo), transform 0.55s var(--ease-out-expo);
}

.step.visible {
    opacity: 1;
    transform: translateX(0);
}

.step-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.25rem;
}

.step-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--muted);
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--panel);
    transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
    position: relative;
}

.step:hover .step-num {
    border-color: rgba(0, 245, 255, 0.4);
    color: var(--cyan);
    box-shadow: 0 0 12px rgba(0, 245, 255, 0.15), inset 0 0 12px rgba(0, 245, 255, 0.05);
}

.step-num.final {
    color: var(--red);
    border-color: rgba(255, 0, 68, 0.3);
    background: rgba(255, 0, 68, 0.05);
    box-shadow: 0 0 18px rgba(255, 0, 68, 0.2);
    font-size: 1rem;
}

.step--final:hover .step-num {
    border-color: var(--red) !important;
    color: var(--red) !important;
    box-shadow: 0 0 24px rgba(255, 0, 68, 0.35), inset 0 0 14px rgba(255, 0, 68, 0.08) !important;
}

.step-line {
    width: 1px;
    flex: 1;
    min-height: 24px;
    background: linear-gradient(to bottom, var(--dim), transparent);
    margin-top: 8px;
}

.step-body {
    padding: 0.15rem 0 2.8rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.step--final .step-body {
    border-bottom: none;
    padding-bottom: 0;
}

.step-body h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.55rem;
    letter-spacing: -0.01em;
}

.step-body p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.7;
}

.step-body p strong {
    color: var(--white);
    font-weight: 600;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.1rem;
    padding: 0.6rem 1.1rem;
    border: 1px solid rgba(0, 245, 255, 0.35);
    border-radius: 3px;
    color: var(--cyan);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(0, 245, 255, 0.04);
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, gap 0.2s;
    position: relative;
    overflow: hidden;
}

.cta-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.08), transparent);
    transform: translateX(-100%);
    transition: transform 0.4s var(--ease-in-out);
}

.cta-link:hover::before {
    transform: translateX(100%);
}

.cta-link:hover {
    border-color: var(--cyan);
    background: rgba(0, 245, 255, 0.09);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.2), 0 0 0 1px rgba(0, 245, 255, 0.1);
    gap: 0.9rem;
}

.cta-arrow {
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.2s;
}

.cta-link:hover .cta-arrow {
    transform: translateX(3px);
}


.site-footer {
    margin-top: 5rem;
    opacity: 0;
    animation: fadeUp 0.6s var(--ease-out-expo) 1.2s forwards;
}

.footer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--dim), transparent);
    margin-bottom: 1.5rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

.footer-sep {
    color: var(--dim);
}

.footer-inner a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-inner a:hover {
    color: var(--cyan);
}


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

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


@media (max-width: 520px) {
    .page-wrap {
        padding: 2.5rem 1.25rem 2rem;
    }

    .title-bottom {
        font-size: clamp(2.8rem, 16vw, 4rem);
    }

    .step {
        grid-template-columns: 56px 1fr;
        gap: 0 1rem;
    }

    .step-num {
        width: 34px;
        height: 34px;
        font-size: 0.6rem;
    }

    .step-body {
        padding-bottom: 2rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .footer-sep {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .step {
        opacity: 1;
        transform: none;
    }
}
