/* ==========================================================================
   Research Society Styles (Built on global.css)
   Theme: Connected Nodes, Constellations, Exclusive Networking
   ========================================================================== */

/* --- SECTION 1: HERO --- */
.rs-hero {
    position: relative;
    padding: 10rem 0 8rem 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.rs-network-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    /* CSS Representation of a deep space network glow */
    background: 
        radial-gradient(circle at 50% 50%, rgba(255, 94, 0, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 40%);
}

.rs-hero-title {
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 1.5rem 0;
    font-family: var(--font-heading);
}

.rs-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}

/* --- SECTION 2: PURPOSE (Cinematic Box) --- */
.rs-purpose-section {
    display: flex;
    justify-content: center;
}

.purpose-cinematic-box {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.purpose-cinematic-box h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.purpose-cinematic-box p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.membership-badge {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    text-align: left;
}

.badge-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    line-height: 1;
}

.badge-text strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.badge-text span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .membership-badge { flex-direction: column; text-align: center; }
}

/* --- SECTION 3: CONSTELLATION NODES --- */
.rs-constellation-container {
    position: relative;
    max-width: 900px;
    margin: 5rem auto 0 auto;
    padding: 2rem 0;
}

.constellation-track {
    position: absolute;
    top: 0; bottom: 0; left: 40px;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.constellation-fill {
    position: absolute;
    top: 0; left: -1px; width: 4px; height: 0%;
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-orange-glow);
    border-radius: 4px;
    transition: height 0.1s linear;
}

.rs-node-block {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 6rem;
    z-index: 2;
}

.rs-node-block:last-child { margin-bottom: 0; }

.node-marker {
    width: 24px;
    height: 24px;
    background: var(--bg-color);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-left: 29px; /* Aligns with track */
    flex-shrink: 0;
    transition: all 0.5s var(--premium-bezier);
    position: relative;
}

/* The glow pulse when node is active */
.node-marker::after {
    content: '';
    position: absolute; inset: -8px;
    border-radius: 50%;
    background: var(--accent-orange-glow);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s var(--premium-bezier);
}

.rs-node-block.node-active .node-marker {
    border-color: var(--accent-color);
    background: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-color);
}

.rs-node-block.node-active .node-marker::after {
    opacity: 1; transform: scale(1);
}

.node-content {
    margin-left: 4rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
    width: 100%;
}

.rs-node-block.node-active .node-content {
    border-color: var(--border-premium-hover);
    transform: translateX(10px);
}

.node-content h3 { font-size: 1.5rem; margin-bottom: 1rem; color: #fff; }
.node-content p { color: var(--text-muted); line-height: 1.6; }

@media (max-width: 768px) {
    .constellation-track { left: 20px; }
    .node-marker { margin-left: 9px; }
    .node-content { margin-left: 2rem; padding: 1.5rem; }
    .rs-node-block.node-active .node-content { transform: translateX(5px); }
}

/* --- SECTION 4: THE PHILOSOPHY --- */
.rs-philosophy-section {
    position: relative;
    padding: 10rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ambient-philosophy-glow {
    position: absolute;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(255,94,0,0.06) 0%, transparent 60%);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.philosophy-cascade h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.2;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.philosophy-cascade .text-muted { color: rgba(255, 255, 255, 0.2); }

/* --- SECTION 5: GATEWAY (CTA) --- */
.gateway-card {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-color);
    border: 1px solid var(--border-premium-hover);
    border-radius: 16px;
    padding: 5rem 4rem;
    text-align: center;
    overflow: hidden;
}

.gateway-glow {
    position: absolute;
    bottom: -50%; left: 50%; transform: translateX(-50%);
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255, 94, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.gateway-content { position: relative; z-index: 2; }
.gateway-content h2 { font-size: 3rem; margin: 1rem 0; }
.gateway-content p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto 3rem auto; line-height: 1.6;}

.gateway-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

@media (max-width: 600px) {
    .gateway-card { padding: 3rem 1.5rem; }
    .gateway-actions { flex-direction: column; }
}