/* ===== BUTTONS ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    border: none;
    font-family: var(--font-sans);
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background-color: var(--accent-purple);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-purple-hover);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-secondary {
    background-color: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(39, 39, 42, 0.8);
    border-color: var(--text-secondary);
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}


/* ===== HERO ===== */

.hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 30%;
    z-index: 0;
    opacity: 0.45;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-fade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(to bottom,
            rgba(9, 9, 11, 1) 0%,
            rgba(9, 9, 11, 0.1) 15%,
            rgba(9, 9, 11, 0.2) 75%,
            rgba(9, 9, 11, 1) 100%);
}

.hero {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    padding-bottom: 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.05em;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero-title .accent {
    background: linear-gradient(135deg, var(--accent-purple-hover) 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 3rem auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 800px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    max-width: 150px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}


/* ===== CARDS ===== */

.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
}

.card:hover {
    border-color: rgba(147, 51, 234, 0.4);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-icon {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    background-color: var(--bg-main);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}


/* ===== SECTION HEADERS ===== */

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.25rem;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
}


/* ===== GALLERY ===== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    aspect-ratio: 16/9;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.lazy-load {
    filter: blur(2px);
    transition: filter 0.4s var(--ease-smooth);
}

.lazy-load.loaded {
    filter: blur(0);
}

.editorial-img.lazy-load {
    cursor: zoom-in;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    pointer-events: none;
}

.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
    z-index: 1;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}


/* ===== RULE CARDS ===== */

.rule-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-purple);
    border-radius: var(--radius-md);
    padding: 2rem 2rem 2rem 2.25rem;
    transition: all 0.3s var(--ease-smooth);
    position: relative;
}

.rule-card:hover {
    border-color: rgba(147, 51, 234, 0.3);
    border-left-color: var(--accent-purple-hover);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.rule-card .rule-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.rule-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background: var(--accent-glow-soft);
    border: 1px solid rgba(147, 51, 234, 0.3);
    color: var(--accent-purple-hover);
    font-weight: 700;
    font-size: 0.85rem;
}

.rule-card .card-title {
    margin-bottom: 0;
    font-size: 1.15rem;
}

.rule-card .card-text {
    padding-left: calc(32px + 1rem);
}


/* ===== STEP TIMELINE (Join Page) ===== */

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

.steps-timeline::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 32px;
    bottom: 32px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-purple), rgba(147, 51, 234, 0.15));
}

.step-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem 2rem 2rem 4rem;
    position: relative;
    transition: all 0.3s var(--ease-smooth);
    margin-bottom: 1.5rem;
}

.step-card:last-child {
    margin-bottom: 0;
}

.step-card:hover {
    border-color: rgba(147, 51, 234, 0.3);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
    transform: translateX(4px);
}

.step-dot {
    position: absolute;
    left: -1px;
    top: 2rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-purple);
    border: 3px solid var(--bg-main);
    box-shadow: 0 0 12px var(--accent-glow);
    z-index: 1;
    transform: translateX(-50%);
    left: 24px;
}

.step-card.step-highlight {
    border-color: rgba(147, 51, 234, 0.5);
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(147, 51, 234, 0.05) 100%);
}

.step-card .step-icon {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    display: block;
}

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

.ip-display {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    text-align: center;
    color: var(--text-primary);
    margin: 1rem 0;
    border: 1px solid var(--border-subtle);
    letter-spacing: 0.02em;
    user-select: all;
}


/* ===== SUPPORT CTA ===== */

.support-cta {
    padding: 4rem 0;
    position: relative;
}

.support-banner {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3.5rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.support-banner:hover {
    border-color: rgba(147, 51, 234, 0.3);
}

.support-banner::before {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-glow-soft) 0%, transparent 70%);
    pointer-events: none;
}

.support-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.support-info p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 500px;
}

.support-banner .btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.85rem 2rem;
    font-size: 1rem;
}


/* ===== TOAST NOTIFICATION ===== */

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: 0.85rem 1.5rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-sans);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s var(--ease-out);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    color: #22c55e;
}


/* ===== REVEAL ANIMATIONS ===== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}


/* ===== CURRENCY SELECTOR (Store) ===== */

.currency-selector {
    display: inline-flex;
    align-items: center;
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s var(--ease-smooth);
    margin-top: 1rem;
}

.currency-selector:hover {
    border-color: var(--accent-purple);
    transform: translateY(-2px);
    background: rgba(24, 24, 27, 0.8);
}

.currency-selector select {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    outline: none;
    padding: 2px 8px;
    font-family: 'Inter', sans-serif;
}

.currency-selector option {
    background: #121214;
    color: #fff;
    padding: 10px;
}


/* ===== RESPONSIVE: MOBILE ===== */

@media (max-width: 768px) {
    .hero {
        padding-top: 180px;
        padding-bottom: 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .stats-bar {
        flex-direction: row;
        justify-content: space-evenly;
        gap: 0;
        padding: 1.5rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .stat-item {
        flex: 1;
        position: relative;
        padding: 0 0.5rem;
    }

    .stat-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 10%;
        height: 80%;
        width: 1px;
        background: rgba(255, 255, 255, 0.1);
    }

    .stat-value {
        font-size: 1.35rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .steps-timeline::before {
        left: 19px;
    }

    .step-dot {
        left: 20px;
        width: 12px;
        height: 12px;
    }

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

    .rule-card .card-text {
        padding-left: 0;
    }

    .support-banner {
        flex-direction: column;
        text-align: center;
        padding: 3rem 1.25rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
        width: calc(100% + 2.5rem);
        margin-left: -1.25rem;
    }

    .support-info {
        text-align: center;
    }

    .support-info p {
        max-width: 100%;
    }

    /* gallery-grid handled by layout.css */

    /* Gallery items always show overlay text on mobile (no hover) */
    .gallery-item .gallery-overlay {
        opacity: 1;
    }

    /* IP display bigger tap target */
    .ip-display {
        font-size: 1rem;
        padding: 0.9rem 1rem;
        letter-spacing: 0;
    }

    /* Step cards on mobile */
    .step-card:hover {
        transform: none;
    }

    /* Toast full width on very small screens */
    .toast {
        width: calc(100% - 2rem);
        left: 1rem;
        transform: translateX(0) translateY(100px);
        border-radius: 12px;
    }

    .toast.show {
        transform: translateX(0) translateY(0);
    }

    /* Pillars single column gap fix */
    .about-pillars {
        gap: 1rem;
    }

    /* Card hover transforms disabled on touch */
    .card:hover,
    .rule-card:hover,
    .step-card:hover {
        transform: none;
    }
}

/* ===== VERY SMALL SCREENS (< 400px) ===== */
@media (max-width: 400px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-buttons .btn {
        font-size: 0.9rem;
    }

    .stat-value {
        font-size: 1.65rem;
    }

    .section-title {
        font-size: 1.85rem;
    }
}

/* ===== GLITTER ICONS ===== */

.glitter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.glitter-icon svg {
    stroke: #d946ef; /* Vibrant pink/purple */
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.7));
}