:root {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --accent: #00f0ff;
    --accent-glow: rgba(0, 240, 255, 0.4);
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow: hidden; /* Lock scrolling */
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* Mobile viewport fix */
    position: relative;
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none; /* Let touches pass through to canvas by default */
    padding: 1.5rem;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
}

.dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-glow);
    animation: pulse 2s infinite;
}

.content-wrapper {
    margin-bottom: 2rem;
    pointer-events: auto; /* Re-enable interactions for UI content */
}

.data-readout {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.main-title {
    font-size: clamp(3rem, 12vw, 5rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-weight: 300;
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 80%;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.btn {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    outline: none;
}

.btn.primary {
    background-color: var(--accent);
    color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn.primary:active {
    transform: scale(0.95);
    box-shadow: 0 0 5px var(--accent-glow);
}

.btn.secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.btn.secondary:active {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
}

.interaction-hint {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
    pointer-events: none;
}

@keyframes pulse {
    0% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
    100% { opacity: 0.5; transform: scale(1); }
}

/* Animations */
.main-title { animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.subtitle { animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards; opacity: 0; }
.cta-group { animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards; opacity: 0; }

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