:root {
    --bg-primary: #000814;
    --bg-secondary: #001d3d;
    --accent-primary: #ffd60a;
    --accent-secondary: #003566;
    --accent-tertiary: #7209b7;
    --text-primary: #ffffff;
    --text-secondary: #b7c9e2;
    --text-dim: #4895ef;
    --energy-glow: rgba(0, 183, 255, 0.6);
    --focus-glow: rgba(255, 214, 10, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(0, 8, 20, 0.9) 0%, rgba(0, 8, 20, 0) 100%);
    padding: 1rem 2rem;
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, var(--accent-primary), var(--text-dim));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.credit {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.credit:hover {
    color: var(--accent-primary);
}

/* Main Container */
.main {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.universe-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.universe-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

/* Overlay UI */
.overlay-ui {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 100;
}

.scale-indicator {
    position: absolute;
    top: -40vh;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
}

.scale-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.5rem;
}

.scale-value {
    font-size: 1.2rem;
    color: var(--accent-primary);
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.energy-meter {
    position: absolute;
    bottom: -35vh;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    pointer-events: none;
}

.energy-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.energy-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-primary), var(--text-dim));
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--focus-glow);
}

.energy-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    display: block;
}

.controls {
    position: absolute;
    right: -45vw;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: all;
}

.control-btn {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 29, 61, 0.5);
    color: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: rgba(0, 53, 102, 0.7);
    border-color: var(--accent-primary);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--energy-glow);
}

.control-btn.active {
    background: rgba(255, 214, 10, 0.2);
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px var(--focus-glow);
}

.control-btn .icon {
    font-size: 1.2rem;
}

.control-btn .label {
    font-size: 0.6rem;
    margin-top: 2px;
}

.zoom-btn {
    width: 40px;
    height: 40px;
}

/* Sections */
.section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 2000;
    overflow-y: auto;
    padding: 6rem 2rem 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.section.visible {
    opacity: 1;
    visibility: visible;
}

.section.hidden {
    opacity: 0;
    visibility: hidden;
}

.section-content {
    max-width: 1000px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--text-dim));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Philosophy Section */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.philosophy-card {
    background: linear-gradient(135deg, rgba(0, 53, 102, 0.2), rgba(114, 9, 183, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.philosophy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 183, 255, 0.2);
    border-color: var(--accent-primary);
}

.philosophy-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.philosophy-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.philosophy-quote {
    font-size: 1.2rem;
    font-style: italic;
    text-align: center;
    color: var(--text-dim);
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Guide Section */
.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: rgba(0, 53, 102, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.step:hover {
    background: rgba(0, 53, 102, 0.2);
    transform: translateX(10px);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--text-dim));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--accent-primary);
}

.step-content p {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: linear-gradient(0deg, rgba(0, 8, 20, 0.9) 0%, rgba(0, 8, 20, 0) 100%);
    padding: 1rem 2rem;
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.archetype-indicator {
    font-size: 0.9rem;
    color: var(--accent-primary);
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        gap: 1rem;
    }

    .controls {
        right: 2rem;
        flex-direction: row;
        top: auto;
        bottom: 8rem;
        transform: none;
    }

    .scale-indicator {
        top: 2rem;
    }

    .energy-meter {
        bottom: 12rem;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.pulsing {
    animation: pulse 2s ease-in-out infinite;
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Focus cursor */
.focus-cursor {
    position: fixed;
    width: 60px;
    height: 60px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    opacity: 0;
}

.focus-cursor.active {
    opacity: 1;
    box-shadow: 0 0 30px var(--focus-glow);
}

.focus-cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
}
</style>