/* =========================================
   Why Nodes Section - Web3 Futuristic Style
   ========================================= */

.why-nodes-section {
    position: relative;
    padding: 3rem 5% 6rem 5%;
    background: #0f172a;
    /* Dark background base */
    overflow: hidden;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.why-nodes-container {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.why-nodes-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Background Effects from landingpage.html */
.why-nodes-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, #0a0e17 0%, #0f172a 50%, #1e1b4b 100%);
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(26, 90, 254, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 90, 254, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* Particles Animation Styles Matching Source */
.particle {
    position: absolute;
    background-color: #00e0ff;
    /* Web3 Accent */
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

/* Connection Lines */
.connection-line-bg {
    position: absolute;
    background: linear-gradient(90deg, transparent, #1a5afe, transparent);
    /* Web3 Primary */
    height: 1px;
    transform-origin: left center;
    opacity: 0.2;
}

/* Container */
.why-nodes-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Content Grid */
.nodes-content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: start;
}

/* Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-description {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* List Items */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: background 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-blue {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.icon-purple {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.feature-text h4 {
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.3rem 0;
}

.feature-text p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

/* Specific Card Styles */
.infrastructure-card {
    border-top: 4px solid #38bdf8;
    /* Cyan accent */
}

.returns-card {
    border-top: 4px solid #a855f7;
    /* Purple accent */
}

/* Quote Box */
.quote-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(56, 189, 248, 0.05);
    /* Cyan tint */
    border-left: 4px solid #38bdf8;
    border-radius: 0 12px 12px 0;
    color: #e2e8f0;
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Mining vs Nodes Comparison */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.comparison-column h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.mining-title {
    color: #f87171;
}

/* Red for mining */
.nodes-title {
    color: #4ade80;
}

/* Green for nodes */

.comparison-list {
    list-style: none;
    padding: 0;
}

.comparison-list li {
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    color: #cbd5e1;
}

/* Responsive */
@media (max-width: 900px) {
    .nodes-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .why-nodes-section {
        padding: 2rem 1rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }
}