@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

* {
    padding: 0;
    margin: 0;
    border: none;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #0b0b0b;
    color: white;
    overflow-x: hidden;
}

/* HOW IT WORKS TITLE */
.how-it-works-title {
    color: transparent;
    -webkit-text-stroke: 2px #00f3ff;
    text-shadow: 0 0 10px #00a2ff, 0 0 20px #00a2ff;
    font-size: clamp(40px, 8vw, 100px);
    line-height: 0.9;
    font-weight: normal;
    letter-spacing: 1px;
    margin: 2rem 0 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
}

.how-it-works-title span {
    display: block;
    line-height: 1;
    font-family: "Anton", sans-serif;
}

.how-it-works-title span:first-child {
    margin-bottom: 10px;
}

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

@keyframes titleGlowBack {
    0%, 100% {
        opacity: 0.5;
        transform: translate(0, 0);
    }
    50% {
        opacity: 0.8;
        transform: translate(5px, 5px);
    }
}

.title-part2 {
    -webkit-text-stroke: 2.5px #f0f;
    filter: drop-shadow(0 0 8px #f0f);
    margin-top: -0.5rem;
    margin-top: -1rem;
    animation: neonPulse2 1.5s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    from {
        text-shadow: 
            0 0 5px #0ff,
            0 0 10px #0ff,
            0 0 20px #0ff,
            0 0 40px #0ff,
            0 0 80px #0ff;
    }
    to {
        text-shadow: 
            0 0 10px #0ff,
            0 0 20px #0ff,
            0 0 30px #0ff,
            0 0 50px #0ff,
            0 0 100px #0ff;
    }
}

@keyframes neonPulse2 {
    from {
        text-shadow: 
            0 0 5px #f0f,
            0 0 10px #f0f,
            0 0 20px #f0f,
            0 0 40px #f0f,
            0 0 80px #f0f;
    }
    to {
        text-shadow: 
            0 0 10px #f0f,
            0 0 20px #f0f,
            0 0 30px #f0f,
            0 0 50px #f0f,
            0 0 100px #f0f;
    }
}

/* ANIMATED BACKGROUND ELEMENTS */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 10px 2px rgba(0, 255, 255, 0.5);
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}

/* UNIFIED HOW IT WORKS SECTION */
.how-it-works-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: 
        linear-gradient(135deg, #0a0a2a 0%, #0f0f2d 50%, #1a1a3a 100%),
        radial-gradient(2px 2px at 20% 30%, rgba(0, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 0, 255, 0.4), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(0, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 0, 255, 0.3), transparent),
        radial-gradient(2px 2px at 90% 80%, rgba(0, 255, 255, 0.3), transparent);
    background-size: 
        100% 100%,
        200% 200%, 
        180% 180%, 
        150% 150%, 
        220% 220%, 
        190% 190%;
    background-position: 
        0% 0%,
        0% 0%, 
        100% 100%, 
        50% 50%, 
        0% 100%, 
        100% 0%;
    padding: 4rem 2rem;
    animation: floatParticles 20s ease-in-out infinite, colorShift 10s ease-in-out infinite alternate;
}

/* ANIMATED BACKGROUND EFFECTS */
.how-it-works-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(241, 0, 247, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 229, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 162, 0, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: pulseGlow 8s ease-in-out infinite, backgroundMove 20s ease-in-out infinite;
}

.how-it-works-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(241, 0, 247, 0.08) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(0, 229, 255, 0.08) 50%, transparent 70%),
        linear-gradient(135deg, transparent 30%, rgba(255, 162, 0, 0.08) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: moveLines 12s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes moveLines {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    25% {
        transform: translateX(20px) translateY(-20px) rotate(2deg);
    }
    50% {
        transform: translateX(-20px) translateY(20px) rotate(-2deg);
    }
    75% {
        transform: translateX(10px) translateY(-10px) rotate(1deg);
    }
}

@keyframes floatParticles {
    0%, 100% {
        background-position: 
            0% 0%,
            0% 0%, 
            100% 100%, 
            50% 50%, 
            0% 100%, 
            100% 0%;
    }
    25% {
        background-position: 
            0% 0%,
            100% 50%, 
            0% 0%, 
            25% 75%, 
            50% 0%, 
            0% 50%;
    }
    50% {
        background-position: 
            0% 0%,
            50% 100%, 
            50% 50%, 
            75% 25%, 
            100% 50%, 
            50% 100%;
    }
    75% {
        background-position: 
            0% 0%,
            0% 50%, 
            100% 0%, 
            50% 50%, 
            25% 100%, 
            75% 0%;
    }
}

@keyframes backgroundMove {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
    }
    33% {
        background-position: 100% 0%, 0% 100%, 0% 100%;
    }
    66% {
        background-position: 0% 100%, 100% 0%, 100% 0%;
    }
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 2rem 0;
    position: relative;
    margin-bottom: 4rem;
}

.hero-content h1 {
    font-family: Impact, 'Arial Black', 'Arial Bold', sans-serif;
    font-size: clamp(48px, 7vw, 150px);
    font-weight: normal;
    letter-spacing: 2px;
    margin: 0;
    line-height: 0.85;
    color: #FF00F6;
    position: relative;
    display: inline-block;
    text-shadow: 
        0 0 5px rgba(255, 0, 246, 0.8),
        0 0 10px rgba(255, 0, 246, 0.6),
        0 0 15px rgba(255, 0, 246, 0.4);
}

.title-part1,
.title-part2 {
    color: #FF00F6;
    position: relative;
    display: inline-block;
    text-shadow: 
        0 0 5px rgba(255, 0, 246, 0.8),
        0 0 10px rgba(255, 0, 246, 0.6),
        0 0 15px rgba(255, 0, 246, 0.4);
}

/* STEPS GRID */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    position: relative;
    z-index: 1;
}

.step-card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #00E5FF;
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: cardFloat 6s ease-in-out infinite;
}

.step-card:nth-child(1) {
    animation-delay: 0s;
}

.step-card:nth-child(2) {
    animation-delay: 1s;
}

.step-card:nth-child(3) {
    animation-delay: 2s;
}

.step-card:nth-child(4) {
    animation-delay: 0.5s;
}

.step-card:nth-child(5) {
    animation-delay: 1.5s;
}

.step-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.1) 0%, transparent 70%);
    animation: rotateGlow 8s linear infinite;
    pointer-events: none;
}

.step-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 229, 255, 0.05) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.step-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 229, 255, 0.5);
    border-color: #00E5FF;
    animation-play-state: paused;
}

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

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0;
        transform: translateX(-100%);
    }
    50% {
        opacity: 1;
        transform: translateX(100%);
    }
}

.step-card.full-width {
    grid-column: 1 / -1;
}

.step-icon {
    font-size: 48px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.8));
    animation: iconBounce 2s ease-in-out infinite;
    display: inline-block;
}

.step-card:nth-child(1) .step-icon {
    animation-delay: 0s;
}

.step-card:nth-child(2) .step-icon {
    animation-delay: 0.3s;
}

.step-card:nth-child(3) .step-icon {
    animation-delay: 0.6s;
}

.step-card:nth-child(4) .step-icon {
    animation-delay: 0.2s;
}

.step-card:nth-child(5) .step-icon {
    animation-delay: 0.4s;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.1);
    }
}

.step-card h2 {
    font-family: 'Protest Strike', sans-serif;
    font-size: clamp(20px, 3vw, 28px);
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.optional {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.step-card ul {
    list-style: none;
    padding: 0;
}

.step-card li {
    color: white;
    font-size: clamp(14px, 1.5vw, 18px);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.step-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #00E5FF;
    font-weight: bold;
    font-size: 1.2em;
}

.step-card ul ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.step-card ul ul li {
    font-size: clamp(12px, 1.3vw, 16px);
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.step-card ul ul li::before {
    content: '○';
    color: #FFA200;
    font-size: 0.8em;
}

.step-card p {
    color: white;
    font-size: clamp(14px, 1.5vw, 18px);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.step-card strong {
    color: #FFA200;
    font-weight: 700;
}

/* TIER TABLE */
.tier-table {
    margin-top: 2rem;
    overflow-x: auto;
}

.tier-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.tier-table thead {
    background: rgba(0, 229, 255, 0.2);
}

.tier-table th,
.tier-table td {
    padding: 1rem;
    text-align: left;
    color: white;
    font-size: clamp(12px, 1.2vw, 16px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.3);
}

.tier-table th {
    font-weight: 700;
    color: #00E5FF;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
}

.tier-table tbody tr:last-child td {
    border-bottom: none;
}

.tier-table tbody tr:hover {
    background: rgba(0, 229, 255, 0.1);
}

/* CTA CONTAINER */
.cta-container {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-button {
    background: linear-gradient(135deg, #FF00F6 0%, #B200B2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 1.5rem 3rem;
    font-family: 'Protest Strike', sans-serif;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 0, 246, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    animation: buttonPulse 2s ease-in-out infinite;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: buttonShine 3s ease-in-out infinite;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 0, 246, 0.9);
    background: linear-gradient(135deg, #B200B2 0%, #FF00F6 100%);
    animation-play-state: paused;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 0, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 0, 246, 0.8), 0 0 50px rgba(255, 0, 246, 0.4);
    }
}

@keyframes buttonShine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.cta-button:active {
    transform: translateY(-1px);
}

/* AGREEMENT LINK CONTAINER */
.agreement-link-container {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 2rem 0;
    margin-top: 2rem;
}

.agreement-link-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(14px, 1.8vw, 18px);
    line-height: 1.6;
}

.agreement-link-inline {
    color: #00E5FF;
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.agreement-link-inline:hover {
    color: #FFA200;
    text-shadow: 0 0 15px rgba(255, 162, 0, 0.8);
    text-decoration: none;
}

.agreement-link-inline:focus {
    outline: 2px solid #00E5FF;
    outline-offset: 2px;
    border-radius: 2px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .how-it-works-section {
        padding: 3rem 1.5rem;
    }

    .steps-grid {
        gap: 1.5rem;
    }

    .step-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .how-it-works-section {
        padding: 3rem 1rem;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .step-card.full-width {
        grid-column: 1;
    }

    .step-icon {
        font-size: 36px;
    }

    .cta-container {
        padding: 1.5rem 0;
    }

    .cta-button {
        padding: 1.2rem 2rem;
        font-size: clamp(18px, 3vw, 24px);
    }
}

@media (max-width: 480px) {
    .how-it-works-section {
        padding: 2rem 1rem;
    }

    .hero-content {
        margin-bottom: 2rem;
    }

    .step-card {
        padding: 1rem;
    }

    .step-icon {
        font-size: 32px;
    }

    .tier-table {
        font-size: 12px;
    }

    .tier-table th,
    .tier-table td {
        padding: 0.5rem;
    }
}
