:root {
    --bg-dark: #0a0e17;
    --primary: #00f0ff;
    --secondary: #7000ff;
    --text-light: #e0e6ed;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --danger: #ff003c;
    --success: #00ff66;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Glows */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: -200px;
    left: -200px;
    z-index: -1;
    border-radius: 50%;
}
.bg-glow-2 {
    background: radial-gradient(circle, rgba(112, 0, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -200px;
    right: -200px;
    top: auto;
    left: auto;
}

/* Navigation */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 3rem;
}

.descriptions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.desc-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    flex: 1 1 300px;
    position: relative;
    backdrop-filter: blur(10px);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.desc-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 240, 255, 0.2);
}

.lang-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.8rem;
}

/* Dashboard Section */
.dashboard-section {
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-header h2 {
    font-family: 'Orbitron', sans-serif;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
    font-weight: 600;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: var(--success);
    border-radius: 50%;
}

.pulse {
    animation: pulse 1.5s infinite;
}

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

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
}

.glass-panel h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Camera Feed Mock */
.camera-feed {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    border: 1px solid #334155;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 240, 255, 0.05) 2px, rgba(0, 240, 255, 0.05) 4px);
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 4px;
    background: var(--primary);
    opacity: 0.5;
    box-shadow: 0 0 10px var(--primary);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.crosshair {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 240, 255, 0.5);
    border-radius: 50%;
}
.crosshair::before, .crosshair::after {
    content: '';
    position: absolute;
    background: rgba(0, 240, 255, 0.5);
}
.crosshair::before { top: 50%; left: -10px; right: -10px; height: 1px; }
.crosshair::after { left: 50%; top: -10px; bottom: -10px; width: 1px; }

.feed-status {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-family: monospace;
    color: var(--primary);
    background: rgba(0,0,0,0.5);
    padding: 2px 5px;
}

.ai-box {
    position: absolute;
    border: 2px solid var(--danger);
    width: 120px;
    height: 120px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 0 20px rgba(255, 0, 60, 0.3);
    transition: all 0.3s;
}

.ai-box.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.ai-label {
    position: absolute;
    top: -25px;
    left: -2px;
    background: var(--danger);
    color: #fff;
    font-size: 0.8rem;
    padding: 2px 8px;
    font-family: monospace;
    font-weight: bold;
}

/* Controls */
.d-pad {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.d-pad-middle {
    display: flex;
    gap: 10px;
}

.btn-control {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-control:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.btn-control:active {
    transform: scale(0.95);
}

.btn-stop {
    background: rgba(255, 0, 60, 0.1);
    color: var(--danger);
}

.btn-stop:hover {
    background: rgba(255, 0, 60, 0.3);
    border-color: var(--danger);
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.4);
}

/* Telemetry */
.telemetry {
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-family: monospace;
}

.t-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.t-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.t-label {
    color: #94a3b8;
}

.text-neon {
    color: var(--primary);
    text-shadow: 0 0 5px var(--primary);
}

.t-val.moving {
    color: var(--success);
}

.t-val.stopped {
    color: var(--danger);
}

/* Primary Button */
.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Orbitron', sans-serif;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(112, 0, 255, 0.4);
}

footer {
    text-align: center;
    padding: 2rem;
    color: #64748b;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}
