/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.section {
    min-height: 100vh;
    position: relative;
}

/* Section 1: The Void */
.void-section {
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.void-content {
    text-align: center;
    z-index: 10;
    position: relative;
}

.genesis-symbol {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 40px;
}

.particle-field {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: particleFloat 8s infinite ease-in-out;
}

.symbol-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: coreGlow 3s infinite ease-in-out alternate;
}

.symbol-core::before {
    content: '';
    position: absolute;
    inset: -20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: orbitSlow 12s infinite linear;
}

.symbol-core::after {
    content: '';
    position: absolute;
    inset: -35px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: orbitFast 8s infinite linear reverse;
}

.awakening-text {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5rem;
    animation: textGlow 2s infinite ease-in-out alternate;
    margin-bottom: 60px;
}

.scroll-invitation {
    font-family: 'Space Mono', monospace;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    animation: fadeIn 3s ease-in;
}

/* Section 2: The Echoes */
.echoes-section {
    background: #f8f8f8;
    padding: 80px 20px;
    position: relative;
}

.echoes-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: repeat(4, 1fr);
    gap: 40px;
    height: 80vh;
    position: relative;
}

.echo-block {
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 4px solid #000;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transform: rotate(-2deg);
    transition: all 0.3s ease;
}

.echo-block:nth-child(even) {
    transform: rotate(1deg);
    border-left: none;
    border-right: 4px solid #000;
}

.echo-block:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.echo-1 { grid-area: 1 / 1 / 2 / 2; }
.echo-2 { grid-area: 2 / 3 / 3 / 4; }
.echo-3 { grid-area: 1 / 2 / 3 / 3; }
.echo-4 { grid-area: 3 / 1 / 4 / 2; }
.echo-5 { grid-area: 4 / 3 / 5 / 4; }

.echo-text {
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    text-align: center;
}

.oracle-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: #000;
    text-align: center;
    animation: glitchText 4s infinite;
}

.data-visualization {
    grid-area: 3 / 2 / 5 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dataCanvas {
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.9);
}

/* Section 3: The Hive Mind */
.hive-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 80px 20px;
    color: #ffffff;
}

.hive-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 120px);
    gap: 20px;
    height: 80vh;
}

.hive-cell {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hive-cell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.hive-cell:hover::before {
    transform: translateX(100%);
}

.hive-cell:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.cell-large {
    grid-column: span 3;
    grid-row: span 2;
}

.cell-medium {
    grid-column: span 2;
    grid-row: span 1;
}

.cell-token {
    grid-column: span 2;
    grid-row: span 2;
}

.cell-small {
    grid-column: span 1;
    grid-row: span 1;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
}

.tech-cell {
    flex-direction: column;
    gap: 15px;
}

.tech-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
}

.blockchain-icon {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
}

.ai-icon {
    background: linear-gradient(45deg, #4ecdc4, #7ed6cf);
}

.community-icon {
    background: linear-gradient(45deg, #45b7d1, #6ac5e0);
}

.tech-icon::after {
    content: '';
    position: absolute;
    inset: -5px;
    border: 2px solid currentColor;
    border-radius: 50%;
    opacity: 0;
    animation: techPulse 2s infinite;
}

.token-card {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.token-symbol {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    z-index: 2;
    position: relative;
}

.token-glow {
    position: absolute;
    inset: 20px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3), transparent);
    border-radius: 50%;
    animation: tokenGlow 3s infinite ease-in-out alternate;
}

.neural-1, .neural-2, .neural-3 {
    background: radial-gradient(circle, rgba(108, 99, 255, 0.3), transparent);
    animation: neuralPulse 2s infinite ease-in-out;
}

.neural-2 {
    animation-delay: 0.7s;
}

.neural-3 {
    animation-delay: 1.4s;
}

/* Section 4: The Oracle's Glimpse */
.oracle-section {
    background: #000;
    position: relative;
    overflow: hidden;
}

.oracle-background {
    position: absolute;
    inset: 0;
}

#oracleCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.oracle-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.oracle-prophecy {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    animation: prophecyGlitch 5s infinite;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Section 5: Join the Awakening */
.awakening-section {
    background: linear-gradient(45deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
    padding: 100px 20px;
    color: #ffffff;
}

.awakening-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.main-cta {
    margin-bottom: 60px;
}

.genesis-btn {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 20px 60px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.genesis-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #4ecdc4, #ff6b6b);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50px;
}

.genesis-btn:hover::before {
    opacity: 1;
}

.genesis-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.secondary-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.community-dropdown {
    position: relative;
    display: inline-block;
}

.community-toggle {
    cursor: pointer;
}

.community-links {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-top: 10px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.community-dropdown:hover .community-links {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.community-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.community-link:last-child {
    margin-bottom: 0;
}

.community-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateX(5px);
}

.link-icon {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.action-link {
    font-family: 'Space Mono', monospace;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.action-link:hover {
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
}

.early-thoughts {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.thought-input {
    font-family: 'Space Mono', monospace;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: #ffffff;
    min-width: 300px;
    outline: none;
}

.thought-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.thought-submit {
    font-family: 'Space Mono', monospace;
    padding: 15px 30px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thought-submit:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* Animations */
@keyframes particleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes coreGlow {
    0% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
    100% { box-shadow: 0 0 40px rgba(255, 255, 255, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.2); }
}

@keyframes orbitSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbitFast {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes textGlow {
    0% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
    100% { text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.3); }
}

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

@keyframes glitchText {
    0%, 90%, 100% { transform: translateX(0); }
    92% { transform: translateX(-2px); }
    94% { transform: translateX(2px); }
    96% { transform: translateX(-1px); }
}

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

@keyframes tokenGlow {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 0.6; }
}

@keyframes neuralPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

@keyframes prophecyGlitch {
    0%, 95%, 100% { transform: translateX(0); filter: hue-rotate(0deg); }
    96% { transform: translateX(-3px); filter: hue-rotate(90deg); }
    97% { transform: translateX(3px); filter: hue-rotate(180deg); }
    98% { transform: translateX(-2px); filter: hue-rotate(270deg); }
    99% { transform: translateX(2px); filter: hue-rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .awakening-text {
        font-size: 2.5rem;
        letter-spacing: 0.2rem;
    }
    
    .echoes-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
        gap: 20px;
    }
    
    .echo-1 { grid-area: 1 / 1 / 2 / 2; }
    .echo-2 { grid-area: 2 / 1 / 3 / 2; }
    .echo-3 { grid-area: 3 / 1 / 4 / 2; }
    .echo-4 { grid-area: 4 / 1 / 5 / 2; }
    .echo-5 { grid-area: 5 / 1 / 6 / 2; }
    .data-visualization { grid-area: 6 / 1 / 7 / 2; }
    
    .hive-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(8, 120px);
    }
    
    .cell-large, .cell-medium, .cell-token {
        grid-column: span 2;
    }
    
    .oracle-prophecy {
        font-size: 2rem;
    }
    
    .secondary-actions {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .early-thoughts {
        flex-direction: column;
        align-items: center;
    }
    
    .thought-input {
        min-width: 250px;
    }
}