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

:root {
    --bg-dark: #f5f5f7;
    --bg-card: rgba(0, 0, 0, 0.03);
    --bg-card-hover: rgba(0, 0, 0, 0.06);
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --accent: #f97316;
    --accent-glow: rgba(249, 115, 22, 0.15);
    --accent-2: #fb923c;
    --accent-3: #fbbf24;
    --text: #1a1a2e;
    --text-dim: #64748b;
    --text-muted: #94a3b8;
    --gradient-warm: linear-gradient(135deg, #f97316, #fbbf24, #fb923c);
    --radius: 16px;
    --radius-sm: 10px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: rgba(249, 115, 22, 0.2);
    color: #1a1a2e;
}

/* ============ CANVAS ============ */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============ BG GLOWS ============ */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    animation: glowFloat 20s ease-in-out infinite;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(249, 115, 22, 0.06);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: rgba(251, 146, 60, 0.05);
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.bg-glow-3 {
    width: 400px;
    height: 400px;
    background: rgba(251, 191, 36, 0.04);
    top: 40%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes glowFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.9); }
}

/* ============ CLOUDS ============ */
.clouds-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.cloud {
    position: absolute;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 100px;
}

@keyframes cloudDrift {
    from { transform: translateX(-300px); }
    to { transform: translateX(calc(100vw + 300px)); }
}

/* ============ FLOATING BLOCKS ============ */
.floating-blocks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.mine-block {
    position: absolute;
    border-radius: 4px;
    opacity: 0;
    animation: floatBlock linear infinite;
}

@keyframes floatBlock {
    0% { transform: translateY(100vh) rotate(0deg) scale(0.8); opacity: 0; }
    8% { opacity: 0.4; }
    92% { opacity: 0.4; }
    100% { transform: translateY(-100px) rotate(180deg) scale(1); opacity: 0; }
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(245, 245, 247, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 28px;
    height: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    transform: rotate(-5deg);
}

.logo-icon span {
    border-radius: 3px;
    animation: logoPulse 3s ease-in-out infinite;
}

.logo-icon span:nth-child(1) { background: var(--accent); animation-delay: 0s; }
.logo-icon span:nth-child(2) { background: var(--accent-2); animation-delay: 0.5s; }
.logo-icon span:nth-child(3) { background: var(--accent-3); animation-delay: 1s; }
.logo-icon span:nth-child(4) { background: #eab308; animation-delay: 1.5s; }

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

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: rgba(0, 0, 0, 0.05);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-socials {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--text-dim);
    transition: all 0.2s;
}

.nav-social-link:hover {
    color: var(--accent);
    background: rgba(249, 115, 22, 0.08);
}

.nav-ip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    padding: 8px 16px;
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.nav-ip:hover {
    background: rgba(249, 115, 22, 0.12);
    border-color: rgba(249, 115, 22, 0.3);
}

.ip-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(249, 115, 22, 0); }
}

.copy-icon {
    opacity: 0.5;
    transition: opacity 0.2s;
}

.nav-ip:hover .copy-icon {
    opacity: 1;
}

/* ============ HERO ============ */
.hero {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 32px 60px;
    text-align: center;
}

.hero-content {
    max-width: 720px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    background: rgba(249, 115, 22, 0.06);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: 100px;
    margin-bottom: 32px;
    animation: fadeInDown 0.8s ease-out;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: #34d399;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(48px, 8vw, 88px);
    font-weight: 700;
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.title-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-dim);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #ea580c);
    color: #fff;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.25), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-copy {
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent);
    border: 1px solid rgba(249, 115, 22, 0.25);
    font-size: 13px;
    padding: 12px 22px;
}

.btn-copy:hover {
    background: rgba(249, 115, 22, 0.18);
    border-color: rgba(249, 115, 22, 0.4);
}

/* ============ STATS ============ */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ============ SCROLL INDICATOR ============ */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(6px); }
}

/* ============ SECTIONS ============ */
section {
    position: relative;
    z-index: 10;
    padding: 100px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 15px;
    color: var(--text-dim);
    max-width: 480px;
    margin: 0 auto;
}

/* ============ FEATURES ============ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(24px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.feature-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.gradient-1 { background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.05)); color: var(--accent); }
.gradient-2 { background: linear-gradient(135deg, rgba(251, 146, 60, 0.15), rgba(251, 146, 60, 0.05)); color: var(--accent-2); }
.gradient-3 { background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.05)); color: var(--accent-3); }
.gradient-4 { background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(167, 139, 250, 0.05)); color: #a78bfa; }
.gradient-5 { background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(52, 211, 153, 0.05)); color: #34d399; }
.gradient-6 { background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(244, 63, 94, 0.05)); color: #f43f5e; }

.feature-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.feature-card p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.7;
}

/* ============ RULES ============ */
.rules-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
}

.rule-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.rule-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.rule-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: rgba(249, 115, 22, 0.3);
    flex-shrink: 0;
    line-height: 1;
    min-width: 44px;
}

.rule-content h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.rule-content p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ============ JOIN ============ */
.join-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.join-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
}

.join-step {
    padding: 28px 20px;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.join-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.join-step:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.step-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.join-step h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.join-step p {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.6;
}

.ip-display {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    flex-wrap: wrap;
    justify-content: center;
}

.ip-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.ip-address {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.5px;
}

.copy-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    align-items: center;
    gap: 8px;
    background: #34d399;
    color: #1a1a2e;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 200;
    box-shadow: 0 8px 30px rgba(52, 211, 153, 0.3);
}

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

/* ============ FOOTER ============ */
.footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 32px;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.footer-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.footer-brand .logo-icon {
    width: 22px;
    height: 22px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-site {
    color: var(--accent) !important;
    font-weight: 500;
}

.footer-site a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-site a:hover {
    opacity: 0.8;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .join-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-inner {
        padding: 0 20px;
    }

    section {
        padding: 60px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .join-steps {
        grid-template-columns: 1fr 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .join-steps {
        grid-template-columns: 1fr;
    }

    .ip-display {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}
