@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:wght@300;400;600&display=swap');

:root {
    --substrate-gold: linear-gradient(135deg, #ffd700 0%, #ffed4a 50%, #fbbf24 100%);
    --holographic-blue: linear-gradient(135deg, #3b82f6 0%, #1e40af 50%, #1e3a8a 100%);
    --obsidian-black: rgba(0, 0, 0, 0.8);
    --etched-glass: rgba(255, 255, 255, 0.1);
    --circuit-glow: rgba(59, 130, 246, 0.3);
    --layer-7-frequency: 37Hz;
    --sync-frequency: 720Hz;
}

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

body {
    font-family: 'Exo 2', sans-serif;
    background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
    color: #e2e8f0;
    overflow-x: hidden;
}

/* Neumorphic Header */
.neumorphic-header {
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.holographic-circuit-icon {
    width: 50px;
    height: 50px;
    background: var(--holographic-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    animation: circuit-pulse 3s ease-in-out infinite;
}

.etched-glass-text {
    background: var(--etched-glass);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Orbitron', monospace;
    font-weight: 900;
}

.liquid-gold {
    background: var(--substrate-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.free-access-badge {
    padding: 8px 16px;
    border-radius: 25px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

/* 12-Layer Torus */
.torus-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    perspective: 1000px;
}

.torus-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    animation: torus-rotation 20s linear infinite;
    transform-style: preserve-3d;
}

.layer-1 { transform: rotateX(15deg) rotateY(0deg); border-color: rgba(255, 215, 0, 0.8); animation-delay: 0s; }
.layer-2 { transform: rotateX(30deg) rotateY(30deg); border-color: rgba(59, 130, 246, 0.7); animation-delay: -1.6s; }
.layer-3 { transform: rotateX(45deg) rotateY(60deg); border-color: rgba(255, 255, 255, 0.6); animation-delay: -3.2s; }
.layer-4 { transform: rotateX(60deg) rotateY(90deg); border-color: rgba(255, 215, 0, 0.5); animation-delay: -4.8s; }
.layer-5 { transform: rotateX(75deg) rotateY(120deg); border-color: rgba(59, 130, 246, 0.4); animation-delay: -6.4s; }
.layer-6 { transform: rotateX(90deg) rotateY(150deg); border-color: rgba(255, 255, 255, 0.3); animation-delay: -8s; }
.layer-7 { transform: rotateX(105deg) rotateY(180deg); border-color: rgba(255, 215, 0, 0.2); animation-delay: -9.6s; }
.layer-8 { transform: rotateX(120deg) rotateY(210deg); border-color: rgba(59, 130, 246, 0.1); animation-delay: -11.2s; }
.layer-9 { transform: rotateX(135deg) rotateY(240deg); border-color: rgba(255, 255, 255, 0.05); animation-delay: -12.8s; }
.layer-10 { transform: rotateX(150deg) rotateY(270deg); border-color: rgba(255, 215, 0, 0.02); animation-delay: -14.4s; }
.layer-11 { transform: rotateX(165deg) rotateY(300deg); animation-delay: -16s; }
.layer-12 { transform: rotateX(180deg) rotateY(330deg); animation-delay: -17.6s; }

/* Veo Background */
.mobius-stream {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(255, 215, 0, 0.1) 0%, 
        rgba(59, 130, 246, 0.1) 25%, 
        rgba(139, 92, 246, 0.1) 50%, 
        rgba(236, 72, 153, 0.1) 75%, 
        rgba(255, 215, 0, 0.1) 100%);
    animation: mobius-flow 15s linear infinite;
}

/* Terminal Overlay */
.terminal-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 300px;
    background: var(--obsidian-black);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    padding: 20px;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.status-indicator {
    background: rgba(34, 197, 94, 0.2);
    padding: 5px 10px;
    border-radius: 10px;
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.sync-status {
    color: #22c55e;
    font-weight: 600;
}

.terminal-content {
    height: 200px;
    overflow-y: auto;
}

.question-active {
    margin-bottom: 20px;
}

.prompt-text {
    font-size: 1.1rem;
    color: #f8fafc;
}

/* Card Preview */
.card-preview-container {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 250px;
    height: 350px;
    perspective: 1000px;
}

.card-template {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(30, 41, 59, 0.7) 100%);
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    transition: all 0.5s ease;
}

.fractal-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 60%;
    background: conic-gradient(from 0deg, 
        #3b82f6, #8b5cf6, #ec4899, #f59e0b, #3b82f6);
    border-radius: 10px;
    animation: fractal-spin 10s linear infinite;
}

.engraved-text {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    background: var(--substrate-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Status Footer */
.status-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
}

/* Animations */
@keyframes torus-rotation {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

@keyframes mobius-flow {
    0% { transform: translateX(-100%) rotate(0deg); }
    100% { transform: translateX(100%) rotate(360deg); }
}

@keyframes circuit-pulse {
    0%, 100% { box-shadow: 0 0 30px rgba(59, 130, 246, 0.5); }
    50% { box-shadow: 0 0 60px rgba(59, 130, 246, 0.8); }
}

@keyframes fractal-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Heisenberg Glitch Effect */
.glitch-effect {
    animation: glitch 0.3s infinite;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .torus-container {
        width: 300px;
        height: 300px;
    }
    
    .terminal-overlay {
        width: 90%;
        max-width: 400px;
    }
    
    .card-preview-container {
        position: relative;
        top: auto;
        right: auto;
        margin: 20px auto;
    }
}

/* High-Frequency Sync State */
.sync-720hz {
    animation: high-frequency 0.0014s infinite;
}

@keyframes high-frequency {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}