/* ============================================
   HASHRYX MINING NETWORK - 2027 STYLE
   ============================================ */

/* ---------- IMPORTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* ---------- ROOT VARIABLES ---------- */
:root {
    /* Primary Colors */
    --primary-900: #0a0e1a;
    --primary-800: #111827;
    --primary-700: #1a2332;
    --primary-600: #2a3a5c;
    --primary-500: #3b5a8c;
    
    /* Accent Colors */
    --accent-cyan: #00d4ff;
    --accent-blue: #0066ff;
    --accent-purple: #7c3aed;
    --accent-pink: #ec4899;
    --accent-gold: #f59e0b;
    --accent-green: #10b981;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-dark: linear-gradient(135deg, #0a0e1a 0%, #1a2332 100%);
    --gradient-cyber: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    --gradient-purple: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
}

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--primary-900);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--primary-800);
}
::-webkit-scrollbar-thumb {
    background: var(--gradient-cyber);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* ---------- UTILITY CLASSES ---------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 800;
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
}

.gradient-text {
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-purple {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- BUTTONS ---------- */
.btn-primary {
    background: var(--gradient-cyber);
    color: #fff;
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 100, 255, 0.4);
    color: #fff;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.15);
}

.btn-gold {
    background: var(--gradient-gold);
    color: #fff;
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.4);
    color: #fff;
}

/* ---------- NAVIGATION ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    background: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar .logo i {
    font-size: 32px;
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
}

.navbar .logo span {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.navbar .logo span .highlight {
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-cyber);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .btn-nav {
    background: var(--gradient-cyber);
    color: #fff !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
}

.nav-links .btn-nav::after {
    display: none;
}

.nav-links .btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 100, 255, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ---------- HERO SECTION ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    background: var(--primary-900);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content h1 .highlight {
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.hero-stats .stat {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-stats .stat:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero-stats .stat .number {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stats .stat .label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual .orb {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--gradient-cyber);
    opacity: 0.1;
    position: absolute;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.2); opacity: 0.2; }
}

.hero-visual .mining-illustration {
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.hero-visual .mining-illustration .circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(0, 212, 255, 0.3);
    position: absolute;
    animation: rotate 20s linear infinite;
}

.hero-visual .mining-illustration .circle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-duration: 15s;
}

.hero-visual .mining-illustration .circle:nth-child(2) {
    bottom: 20%;
    right: 10%;
    animation-duration: 25s;
}

.hero-visual .mining-illustration .circle:nth-child(3) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    animation-duration: 30s;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ---------- FEATURES SECTION ---------- */
.features {
    padding: var(--section-padding);
    background: var(--primary-800);
    position: relative;
    overflow: hidden;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-cyber);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: var(--gradient-cyber);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    position: relative;
    z-index: 1;
}

/* ---------- LIVE STATS SECTION ---------- */
.live-stats {
    padding: var(--section-padding);
    background: var(--primary-900);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.3);
}

.stat-card .number {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card .label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

.stat-card .change {
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
}

.stat-card .change.up {
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
}

.stat-card .change.down {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* ---------- PRICING SECTION ---------- */
.pricing {
    padding: var(--section-padding);
    background: var(--primary-800);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pricing-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--accent-cyan);
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.1);
}

.pricing-card.featured .badge {
    position: absolute;
    top: -12px;
    right: 30px;
    background: var(--gradient-cyber);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-card .plan-name {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.pricing-card .price {
    font-size: 48px;
    font-weight: 900;
    margin: 15px 0;
}

.pricing-card .price .currency {
    font-size: 24px;
    font-weight: 600;
}

.pricing-card .price .period {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.pricing-card .features-list {
    list-style: none;
    margin: 25px 0;
    text-align: left;
}

.pricing-card .features-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.pricing-card .features-list li i {
    color: var(--accent-cyan);
    margin-right: 10px;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
    padding: var(--section-padding);
    background: var(--primary-900);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.2);
}

.testimonial-card .stars {
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.testimonial-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial-card .user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-card .user .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-cyber);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.testimonial-card .user .info .name {
    font-weight: 600;
}

.testimonial-card .user .info .role {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ---------- CTA SECTION ---------- */
.cta {
    padding: 80px 0;
    background: var(--gradient-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.cta h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

.cta p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta .buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--primary-900);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.8;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer ul li a:hover {
    color: var(--accent-cyan);
}

.footer .social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer .social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background: var(--gradient-cyber);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content p {
        margin: 0 auto 30px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid,
    .pricing-grid,
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary-800);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .features-grid,
    .pricing-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .cta h2 {
        font-size: 28px;
    }
}

/* ============================================
   LIGHT MODE OVERRIDES
   ============================================ */
body.light-mode {
    --primary-900: #f8f9fa;
    --primary-800: #e9ecef;
    --primary-700: #dee2e6;
    --primary-600: #ced4da;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
body.light-mode .navbar .logo span,
body.light-mode .navbar .nav-links a {
    color: #1a1a2e !important;
}
body.light-mode .navbar .nav-links a:hover {
    color: #000 !important;
}
body.light-mode .navbar .nav-links a::after {
    background: var(--gradient-primary);
}
body.light-mode .btn-secondary {
    color: #1a1a2e;
    border-color: rgba(0, 0, 0, 0.2);
}
body.light-mode .btn-secondary:hover {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}
body.light-mode .card-custom,
body.light-mode .stat-box,
body.light-mode .pricing-card,
body.light-mode .testimonial-card,
body.light-mode .feature-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.08);
}
body.light-mode .stat-box .label,
body.light-mode .text-muted,
body.light-mode .hero-content p,
body.light-mode .section-header p,
body.light-mode .footer p,
body.light-mode .footer ul li a,
body.light-mode .pricing-card .plan-name,
body.light-mode .pricing-card .price .period,
body.light-mode .feature-card p {
    color: #6c757d !important;
}
body.light-mode .hero-stats .stat,
body.light-mode .stat-card {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.08);
}
body.light-mode .tree-node {
    background: rgba(0, 0, 0, 0.02);
    border-left-color: #667eea;
}
body.light-mode .tree-node:hover {
    background: rgba(0, 0, 0, 0.04);
}
body.light-mode .tree-node.current-user {
    background: rgba(16, 185, 129, 0.08);
}
body.light-mode .referral-item {
    background: rgba(0, 0, 0, 0.02);
}
body.light-mode .referral-item:hover {
    background: rgba(0, 0, 0, 0.04);
}
body.light-mode .no-data {
    color: #6c757d;
}
body.light-mode .back-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: #1a1a2e;
}
body.light-mode .back-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #000;
}
body.light-mode .referral-link-box {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}
body.light-mode .referral-link-box .link {
    color: #0066ff;
}
body.light-mode .cta {
    background: #e9ecef;
}
body.light-mode .cta h2,
body.light-mode .cta p {
    color: #1a1a2e;
}
body.light-mode .footer {
    background: #f8f9fa;
    border-top-color: rgba(0, 0, 0, 0.06);
}
body.light-mode .footer h4 {
    color: #1a1a2e;
}
body.light-mode .footer .social-links a {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: #1a1a2e;
}
body.light-mode .footer .social-links a:hover {
    background: var(--gradient-primary);
    color: #fff;
}
body.light-mode .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.06);
}
body.light-mode .footer-bottom p {
    color: #6c757d;
}
body.light-mode .gradient-text,
body.light-mode .gradient-text-gold,
body.light-mode .gradient-text-purple {
    -webkit-text-fill-color: initial;
}
body.light-mode .gradient-text {
    color: var(--accent-blue);
}
body.light-mode .gradient-text-gold {
    color: #d97706;
}
body.light-mode .gradient-text-purple {
    color: #7c3aed;
}
/* Navbar theme control: improves contrast when the saved light theme is active. */
body.light-mode .navbar.navbar-custom {
    background: rgba(255, 255, 255, 0.96) !important;
}
body.light-mode .navbar .navbar-brand,
body.light-mode .navbar .nav-link {
    color: #172033 !important;
}
body.light-mode .navbar .nav-link.active,
body.light-mode .navbar .nav-link:hover {
    color: #075985 !important;
}
body.light-mode .navbar-toggler-icon {
    filter: invert(1);
}
#themeToggle { min-width: 2.25rem; }
/* Home-page motion system: layered, restrained, and accessible. */
.hero { isolation: isolate; overflow: hidden; }
.hero-grid { position:absolute; inset:0; z-index:-1; opacity:.18; background-image:linear-gradient(rgba(56,189,248,.16) 1px,transparent 1px),linear-gradient(90deg,rgba(56,189,248,.16) 1px,transparent 1px); background-size:54px 54px; mask-image:linear-gradient(to bottom,black,transparent 80%); animation:gridDrift 24s linear infinite; }
.hero-glow { position:absolute; width:34rem; height:34rem; border-radius:50%; filter:blur(50px); opacity:.22; z-index:-1; pointer-events:none; }
.hero-glow-one { top:-15rem; right:-9rem; background:#0284c7; animation:glowFloat 10s ease-in-out infinite; }
.hero-glow-two { bottom:-20rem; left:25%; background:#7c3aed; animation:glowFloat 13s ease-in-out infinite reverse; }
.hero-reveal { animation:heroReveal .8s cubic-bezier(.22,1,.36,1) both; }
.hero-reveal-delay { animation-delay:.16s; }
.hero-stats .stat { animation:statReveal .6s ease both; }
.hero-stats .stat:nth-child(1){animation-delay:.22s}.hero-stats .stat:nth-child(2){animation-delay:.32s}.hero-stats .stat:nth-child(3){animation-delay:.42s}
.mining-core { animation:corePulse 4.5s ease-in-out infinite; }
.pricing-card { transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease; }
.pricing-card:hover { transform:translateY(-10px) scale(1.01); box-shadow:0 22px 50px rgba(0,212,255,.14); }
@keyframes heroReveal { from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:translateY(0)} }
@keyframes statReveal { from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)} }
@keyframes gridDrift { from{transform:translate(0,0)}to{transform:translate(54px,54px)} }
@keyframes glowFloat { 0%,100%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(-32px,24px,0) scale(1.1)} }
@keyframes corePulse { 0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-10px) scale(1.025)} }
@media (prefers-reduced-motion: reduce) { .hero-grid,.hero-glow,.hero-reveal,.hero-stats .stat,.mining-core { animation:none !important; } .pricing-card:hover { transform:none; } }
/* Home-page motion system: layered, restrained, and accessible. */
.hero { isolation: isolate; overflow: hidden; }
.hero-grid { position:absolute; inset:0; z-index:-1; opacity:.18; background-image:linear-gradient(rgba(56,189,248,.16) 1px,transparent 1px),linear-gradient(90deg,rgba(56,189,248,.16) 1px,transparent 1px); background-size:54px 54px; mask-image:linear-gradient(to bottom,black,transparent 80%); animation:gridDrift 24s linear infinite; }
.hero-glow { position:absolute; width:34rem; height:34rem; border-radius:50%; filter:blur(50px); opacity:.22; z-index:-1; pointer-events:none; }
.hero-glow-one { top:-15rem; right:-9rem; background:#0284c7; animation:glowFloat 10s ease-in-out infinite; }
.hero-glow-two { bottom:-20rem; left:25%; background:#7c3aed; animation:glowFloat 13s ease-in-out infinite reverse; }
.hero-reveal { animation:heroReveal .8s cubic-bezier(.22,1,.36,1) both; }.hero-reveal-delay { animation-delay:.16s; }
.hero-stats .stat { animation:statReveal .6s ease both; }.hero-stats .stat:nth-child(1){animation-delay:.22s}.hero-stats .stat:nth-child(2){animation-delay:.32s}.hero-stats .stat:nth-child(3){animation-delay:.42s}
.mining-core { animation:corePulse 4.5s ease-in-out infinite; }.pricing-card { transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease; }.pricing-card:hover { transform:translateY(-10px) scale(1.01); box-shadow:0 22px 50px rgba(0,212,255,.14); }
@keyframes heroReveal { from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:translateY(0)} }@keyframes statReveal { from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)} }@keyframes gridDrift { from{transform:translate(0,0)}to{transform:translate(54px,54px)} }@keyframes glowFloat { 0%,100%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(-32px,24px,0) scale(1.1)} }@keyframes corePulse { 0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-10px) scale(1.025)} }
@media (prefers-reduced-motion: reduce) { .hero-grid,.hero-glow,.hero-reveal,.hero-stats .stat,.mining-core { animation:none !important; } .pricing-card:hover { transform:none; } }
/* Hashryx 3D logo assets */
.brand-logo { width: 24px !important; height: 24px !important; max-width: 24px !important; max-height: 24px !important; object-fit: contain; vertical-align: middle; margin-right: 6px; display: inline-block; flex: 0 0 auto; }
.home-brand-logo { width: 26px !important; height: 26px !important; max-width: 26px !important; max-height: 26px !important; object-fit: contain; vertical-align: middle; margin-right: 7px; display: inline-block; }
.footer-brand-logo { width: 20px !important; height: 20px !important; max-width: 20px !important; max-height: 20px !important; object-fit: contain; vertical-align: middle; margin-right: 2px; display: inline-block; }
