/* ===== CSS Variables / Design Tokens ===== */
:root {
    --bg-deep: #040208;
    --bg-dark: #0a0614;
    --bg-card: rgba(15, 10, 30, 0.7);
    --bg-card-hover: rgba(25, 15, 50, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.04);
    
    --cyan: #00e5ff;
    --cyan-dim: #0099aa;
    --gold: #f5bf26;
    --gold-dim: #c49a1e;
    --purple: #b347e0;
    --purple-dim: #7a2d9e;
    --magenta: #ff3399;
    --green: #00ff88;
    
    --text-primary: #e8e6f0;
    --text-secondary: #a8a4b8;
    --text-muted: #6b6580;
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 229, 255, 0.25);
    
    --font-display: 'Orbitron', monospace, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    --shadow-glow: 0 0 40px rgba(0, 229, 255, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ===== Container ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-dark {
    background: linear-gradient(180deg, rgba(8, 4, 20, 0.95) 0%, rgba(4, 2, 8, 0.98) 100%);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-title .accent {
    margin-right: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

/* ===== Hero Section ===== */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 229, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 30% 80%, rgba(179, 71, 224, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 70% 80%, rgba(245, 191, 38, 0.05) 0%, transparent 50%),
        var(--bg-deep);
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.12) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-glow 4s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes pulse-glow {
    from { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
    to { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--cyan);
    margin-bottom: 32px;
    animation: badge-appear 0.8s ease-out 0.2s both;
}

@keyframes badge-appear {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    border-radius: var(--radius-lg);
    box-shadow: 
        0 0 60px rgba(0, 229, 255, 0.3),
        0 0 120px rgba(179, 71, 224, 0.15);
    animation: icon-float 3s ease-in-out infinite alternate, icon-appear 1s ease-out 0.4s both;
}

@keyframes icon-float {
    from { transform: translateY(0); }
    to { transform: translateY(-8px); }
}

@keyframes icon-appear {
    from { opacity: 0; transform: scale(0.8) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 8px;
    animation: title-appear 1s ease-out 0.6s both;
}

@keyframes title-appear {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.title-grid {
    color: var(--cyan);
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
}

.title-miner {
    color: var(--gold);
    text-shadow: 0 0 30px rgba(245, 191, 38, 0.4);
}

.title-idle {
    display: block;
    font-size: 0.45em;
    letter-spacing: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 4px;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--purple);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: title-appear 1s ease-out 0.8s both;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    animation: title-appear 1s ease-out 1s both;
}

.hero-desc em {
    color: var(--gold);
    font-style: normal;
    font-weight: 600;
}

.hero-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 16px;
    animation: title-appear 1s ease-out 1.4s both;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    animation: title-appear 1s ease-out 2s both;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    margin: 8px auto 0;
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(6px); }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan) 0%, #0099cc 100%);
    color: #000;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 229, 255, 0.5);
    color: #000;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
    border-color: var(--cyan-dim);
    color: var(--cyan);
}

.btn-discord {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.5);
    color: #fff;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.15rem;
}

.btn-step {
    background: rgba(0, 229, 255, 0.1);
    color: var(--cyan);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 10px 20px;
    font-size: 0.9rem;
    margin-top: 16px;
}

.btn-step:hover {
    background: rgba(0, 229, 255, 0.2);
    transform: translateY(-2px);
    color: var(--cyan);
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: title-appear 1s ease-out 1.2s both;
}

/* ===== Banner Section ===== */
.section-banner {
    padding: 0;
    background: var(--bg-deep);
    position: relative;
    z-index: 1;
}

.banner-img {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ===== Steps Grid ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    position: relative;
    backdrop-filter: blur(12px);
    transition: all var(--transition);
}

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

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.9rem;
    color: #000;
    box-shadow: 0 4px 16px rgba(0, 229, 255, 0.3);
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.step-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== Important Notice ===== */
.important-notice {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(245, 191, 38, 0.06);
    border: 1px solid rgba(245, 191, 38, 0.2);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 16px;
}

.notice-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.important-notice strong {
    color: var(--gold);
    font-size: 1rem;
    display: block;
    margin-bottom: 4px;
}

.important-notice p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 4px;
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

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

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* ===== Ore Timeline ===== */
.ore-timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 60px;
}

.ore-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        var(--text-muted),
        var(--cyan-dim),
        var(--gold-dim),
        var(--purple-dim),
        var(--magenta)
    );
    border-radius: 2px;
}

.ore-tier {
    position: relative;
    margin-bottom: 36px;
}

.ore-tier::before {
    content: '';
    position: absolute;
    left: -44px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
    border: 2px solid var(--bg-deep);
}

.ore-tier:nth-child(2)::before { background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.ore-tier:nth-child(3)::before { background: #ccc; box-shadow: 0 0 12px #ccc; }
.ore-tier:nth-child(4)::before { background: var(--purple); box-shadow: 0 0 12px var(--purple); }
.ore-tier:nth-child(5)::before { background: var(--magenta); box-shadow: 0 0 12px var(--magenta); }

.tier-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.ore-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ore-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--ore-color, var(--border-glass));
    color: var(--text-primary);
    transition: all var(--transition);
}

.ore-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    box-shadow: 0 0 16px color-mix(in srgb, var(--ore-color) 30%, transparent);
}

/* ===== Community Card ===== */
.community-card {
    background: var(--bg-card);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: var(--radius-xl);
    padding: 48px;
    display: flex;
    align-items: center;
    gap: 48px;
    backdrop-filter: blur(12px);
    max-width: 800px;
    margin: 0 auto;
}

.community-info h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.community-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.community-perks {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.community-perks li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 4px 0;
}

/* ===== Final CTA ===== */
.section-cta {
    background: 
        radial-gradient(ellipse 80% 50% at 50% 50%, rgba(0, 229, 255, 0.06) 0%, transparent 60%),
        var(--bg-deep);
    text-align: center;
}

.cta-content {
    max-width: 550px;
    margin: 0 auto;
}

.cta-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    margin: 0 auto 24px;
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.2);
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ===== Footer ===== */
#footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-glass);
    position: relative;
    z-index: 1;
}

.footer-brand {
    font-size: 1rem;
    margin-bottom: 12px;
}

.footer-brand strong {
    color: var(--cyan);
}

.footer-links {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== Scroll Reveal Animations ===== */
.step-card,
.feature-card,
.ore-tier,
.community-card,
.important-notice {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.step-card.visible,
.feature-card.visible,
.ore-tier.visible,
.community-card.visible,
.important-notice.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays for grids */
.step-card:nth-child(1) { transition-delay: 0.1s; }
.step-card:nth-child(2) { transition-delay: 0.2s; }
.step-card:nth-child(3) { transition-delay: 0.3s; }

.feature-card:nth-child(1) { transition-delay: 0.05s; }
.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.15s; }
.feature-card:nth-child(4) { transition-delay: 0.2s; }
.feature-card:nth-child(5) { transition-delay: 0.25s; }
.feature-card:nth-child(6) { transition-delay: 0.3s; }
.feature-card:nth-child(7) { transition-delay: 0.35s; }
.feature-card:nth-child(8) { transition-delay: 0.4s; }

.ore-tier:nth-child(1) { transition-delay: 0.1s; }
.ore-tier:nth-child(2) { transition-delay: 0.2s; }
.ore-tier:nth-child(3) { transition-delay: 0.3s; }
.ore-tier:nth-child(4) { transition-delay: 0.4s; }
.ore-tier:nth-child(5) { transition-delay: 0.5s; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .community-card {
        flex-direction: column;
        text-align: center;
        padding: 36px 28px;
    }
    
    .community-perks {
        grid-template-columns: 1fr;
        text-align: left;
    }
}

@media (max-width: 700px) {
    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-icon {
        width: 90px;
        height: 90px;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .section-subtitle {
        margin-bottom: 40px;
    }
    
    .ore-timeline {
        padding-left: 40px;
    }
    
    .ore-timeline::before {
        left: 10px;
    }
    
    .ore-tier::before {
        left: -36px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }
    
    .community-card {
        padding: 28px 20px;
    }
}
