:root {
    --primary: #00f0ff;
    --secondary: #7000ff;
    --bg-dark: #030305;
    --text-main: #ffffff;
    --text-muted: #8892b0;
    --glass-bg: rgba(10, 10, 15, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
}

/* 3D Canvas */
#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* UI Layer Layout */
#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 to background if needed */
}

/* Make interactive elements clickable */
#ui-layer > * {
    pointer-events: auto;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(to bottom, rgba(3,3,5,0.8), transparent);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.logo-icon {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 4px;
    box-shadow: 0 0 15px var(--primary);
}

.menu-btn {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    cursor: pointer;
}

.menu-btn span {
    display: block;
    height: 2px;
    background: white;
    transition: 0.3s;
}

.menu-btn span:first-child { width: 24px; }
.menu-btn span:last-child { width: 16px; }

/* Hero Content */
.hero-content {
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    transform: translateY(-5vh);
}

.badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    max-width: 90%;
}

.cta-container {
    margin-top: 1rem;
    width: 100%;
}

.primary-btn {
    width: 100%;
    max-width: 300px;
    height: 56px;
    border: none;
    border-radius: 12px;
    background: var(--text-main);
    color: var(--bg-dark);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.primary-btn:active {
    transform: scale(0.98);
}

/* Bottom Bar */
.bottom-bar {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to top, rgba(3,3,5,0.9), transparent);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.metric .value {
    color: white;
    font-weight: 600;
}

/* Modal / Glass Panel */
.modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.active .glass-panel {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.glass-panel h2 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.glass-panel p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
    outline: none;
}

.input-group input:focus {
    border-color: var(--primary);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
}