/* relativity.quest */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #050510;
    color: #8A8AA0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.65;
    min-height: 100vh;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(110, 193, 228, 0.3); }
    50% { box-shadow: 0 0 20px rgba(110, 193, 228, 0.6); }
}

@keyframes fade-in-key {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mission/Hero Section */
.mission {
    position: relative;
    padding: 6rem 2rem 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background: linear-gradient(135deg, rgba(5, 5, 16, 0.95) 0%, rgba(15, 15, 30, 0.8) 100%);
}

.hud-ring {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 0 30px rgba(110, 193, 228, 0.1);
}

.hud-tick {
    position: absolute;
    width: 2px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    left: 50%;
    top: 0;
    transform-origin: center 150px;
    transform: translateX(-1px) rotate(0deg);
}

.hud-tick-0 { transform: translateX(-1px) rotate(0deg); }
.hud-tick-1 { transform: translateX(-1px) rotate(45deg); }
.hud-tick-2 { transform: translateX(-1px) rotate(90deg); }
.hud-tick-3 { transform: translateX(-1px) rotate(135deg); }
.hud-tick-4 { transform: translateX(-1px) rotate(180deg); }
.hud-tick-5 { transform: translateX(-1px) rotate(225deg); }
.hud-tick-6 { transform: translateX(-1px) rotate(270deg); }
.hud-tick-7 { transform: translateX(-1px) rotate(315deg); }

.hud-content {
    text-align: center;
    z-index: 2;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.4rem);
    color: #ffffff;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.hero-sub {
    font-size: 0.95rem;
    color: #8A8AA0;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.cta-btn {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #6EC1E4;
    border: 1px solid #6EC1E4;
    border-radius: 6px;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse-glow 3s ease-in-out infinite;
}

.cta-btn:hover {
    background: rgba(110, 193, 228, 0.1);
    box-shadow: 0 0 20px rgba(110, 193, 228, 0.6);
}

.corner-data {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #8A8AA0;
}

.corner-data.tl { top: 2rem; left: 2rem; }
.corner-data.tr { top: 2rem; right: 2rem; }
.corner-data.bl { bottom: 2rem; left: 2rem; }
.corner-data.br { bottom: 2rem; right: 2rem; }

.data-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #8A8AA0;
    display: block;
}

/* Concepts Section */
.concepts {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.concept-card {
    background: #0F0F1E;
    border: 1px dashed #1A1A30;
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.concept-card:hover {
    border-color: #6EC1E4;
    box-shadow: 0 0 15px rgba(110, 193, 228, 0.15);
}

.diagram-area {
    width: 100px;
    min-height: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.light-cone {
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 60px solid rgba(110,193,228,0.3);
    filter: drop-shadow(0 0 8px rgba(110,193,228,0.2));
}

.grid-warp {
    width: 80px;
    height: 80px;
    background-image:
        linear-gradient(rgba(110,193,228,0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110,193,228,0.2) 1px, transparent 1px);
    background-size: 20px 20px;
    border: 1px solid rgba(110,193,228,0.3);
    border-radius: 50%;
}

.coord-axes {
    width: 70px;
    height: 70px;
    position: relative;
}

.coord-axes::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 70px;
    background: #6EC1E4;
    left: 50%;
    top: 0;
    transform: translateX(-1px);
}

.coord-axes::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 2px;
    background: #6EC1E4;
    bottom: 50%;
    left: 0;
    transform: translateY(1px);
}

.concept-text {
    flex: 1;
}

.concept-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 0.8rem;
    letter-spacing: 0.01em;
}

.concept-body {
    font-size: 0.95rem;
    color: #8A8AA0;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.equation {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #6EC1E4;
    background: rgba(110, 193, 228, 0.1);
    padding: 0.3rem 0.7rem;
    border-radius: 2px;
    display: inline-block;
}

/* Lab Section */
.lab {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.lab-panel {
    background: #0F0F1E;
    border: 1px solid rgba(110, 193, 228, 0.2);
    border-radius: 8px;
    padding: 3rem;
    position: relative;
}

.spacetime-grid {
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.lab-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.experiment-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.exp-item {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #8A8AA0;
    border: 1px solid #1A1A30;
    border-radius: 4px;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exp-item:hover {
    border-color: #6EC1E4;
    color: #6EC1E4;
}

.exp-item.active {
    color: #6EC1E4;
    border-color: #6EC1E4;
    background: rgba(110, 193, 228, 0.1);
}

.exp-desc {
    font-size: 0.95rem;
    color: #8A8AA0;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.readout {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #6EC1E4;
    display: block;
}

/* Discovery/Timeline Section */
.discovery {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.discovery-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: 0.02em;
}

.timeline {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #6EC1E4 25%, #6EC1E4 75%, transparent 100%);
    z-index: 0;
}

.timeline-mark {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.timeline-mark::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    background: #050510;
    border: 2px solid #6EC1E4;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.year {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #6EC1E4;
    display: block;
    margin-bottom: 0.5rem;
}

.event {
    font-size: 0.85rem;
    color: #8A8AA0;
    margin: 0;
}

/* Footer */
.footer {
    text-align: center;
    padding: 4rem 2rem 5rem;
    border-top: 1px solid rgba(110, 193, 228, 0.1);
}

.quote {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-style: italic;
    font-size: 1.2rem;
    color: #C4B5FD;
    margin-bottom: 0.8rem;
}

.footer-attr {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #8A8AA0;
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(12px);
    animation: fade-in-key 0.6s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .concept-card {
        flex-direction: column;
        padding: 1.5rem;
    }

    .diagram-area {
        width: 100%;
        height: 80px;
    }

    .hud-ring {
        width: 240px;
        height: 240px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 4vw, 2.2rem);
    }

    .lab-panel {
        padding: 2rem;
    }

    .timeline {
        flex-direction: column;
        gap: 1.5rem;
    }

    .timeline::before {
        display: none;
    }

    .timeline-mark::before {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 520px) {
    .mission {
        min-height: 70vh;
        padding: 3rem 1rem 2rem;
    }

    .concepts,
    .lab,
    .discovery {
        padding: 2rem 1rem;
    }

    .corner-data {
        font-size: 0.6rem;
    }

    .corner-data.tl { top: 1rem; left: 1rem; }
    .corner-data.tr { top: 1rem; right: 1rem; }
    .corner-data.bl { bottom: 1rem; left: 1rem; }
    .corner-data.br { bottom: 1rem; right: 1rem; }

    .hud-ring {
        width: 180px;
        height: 180px;
    }

    .hero-title {
        font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    }

    .hero-sub {
        font-size: 0.8rem;
    }

    .concept-card {
        gap: 1rem;
    }

    .diagram-area {
        width: 60px;
        height: 60px;
        min-height: 60px;
    }

    .light-cone {
        border-left-width: 25px;
        border-right-width: 25px;
        border-bottom-width: 40px;
    }

    .grid-warp {
        width: 60px;
        height: 60px;
    }

    .coord-axes {
        width: 50px;
        height: 50px;
    }

    .experiment-selector {
        gap: 0.5rem;
    }

    .exp-item {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
}
