:root {
    --bg-color: #050505;
    --panel-bg: rgba(15, 15, 25, 0.85);
    --accent-primary: #667eea;
    --accent-secondary: #8a2be2;
    --accent-glow: rgba(102, 126, 234, 0.5);
    --text-main: #e0e0e0;
    --text-dim: #a0a0a0;
    --border-soft: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(20px);
}

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

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(138, 43, 226, 0.05) 0%, transparent 40%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding: 40px 0;
}

header h1 {
    font-size: 3em;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.1em;
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.invention-card {
    background: var(--panel-bg);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: var(--glass-blur);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.invention-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0.5;
}

.invention-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(102, 126, 234, 0.1);
}

.card-icon {
    font-size: 2.5em;
    margin-bottom: 20px;
    display: block;
}

.invention-card h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #fff;
}

.invention-card p {
    color: var(--text-dim);
    margin-bottom: 20px;
    font-size: 0.95em;
}

.tech-specs {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
}

.tech-specs h3 {
    font-size: 0.9em;
    color: var(--accent-primary);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.spec-list {
    list-style: none;
}

.spec-list li {
    font-size: 0.85em;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.spec-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 5px;
    margin-bottom: 10px;
}

.badge-new { background: rgba(0, 255, 136, 0.15); color: #00ff88; border: 1px solid rgba(0, 255, 136, 0.3); }
.badge-concept { background: rgba(0, 160, 255, 0.15); color: #00a0ff; border: 1px solid rgba(0, 160, 255, 0.3); }

.action-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 1000;
}

.btn {
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid var(--border-soft);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
}

.btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.invention-card {
    animation: fadeInUp 0.8s ease backwards;
}

.invention-card:nth-child(2) { animation-delay: 0.2s; }
.invention-card:nth-child(3) { animation-delay: 0.4s; }

/* Spectral Visualization placeholder */
.spectral-view {
    height: 120px;
    background: linear-gradient(90deg, #ff0000, #ff8000, #ffff00, #00ff00, #00ffff, #0000ff, #8000ff);
    margin: 20px 0;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    opacity: 0.7;
}

.spectral-view::after {
    content: '';
    position: absolute;
    top: 0;
    left: 40%;
    width: 2px;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 10px #fff;
}
