/* MOOD Soundscape - Demo & Landing Page Styles */

:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #111127;
    --bg-card: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-purple: #8B5CF6;
    --accent-cyan: #06B6D4;
    --accent-green: #10B981;
    --accent-red: #EF4444;
    --accent-yellow: #F59E0B;
    --gradient: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 100%);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    backdrop-filter: blur(20px); background: rgba(10, 10, 26, 0.8);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--gradient); display: flex; align-items: center; justify-content: center;
    color: white;
}
.logo-text { font-size: 20px; font-weight: 700; color: white; }
.logo-accent { color: var(--accent-purple); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: white; }
.nav-cta {
    background: var(--accent-purple) !important; color: white !important;
    padding: 8px 20px !important; border-radius: 8px; font-weight: 600 !important;
}
.nav-cta:hover { opacity: 0.9; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px;
    border-radius: 10px; font-size: 15px; font-weight: 600; text-decoration: none;
    transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--gradient); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3); }
.btn-secondary { background: var(--bg-card); color: white; border: 1px solid var(--border); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

/* Hero */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    justify-content: center; text-align: center; padding: 120px 24px 80px;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
#hero-canvas { width: 100%; height: 100%; opacity: 0.4; }
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
    display: inline-block; padding: 6px 16px; border-radius: 20px;
    background: rgba(139, 92, 246, 0.15); border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--accent-purple); font-size: 13px; font-weight: 600; margin-bottom: 24px;
    letter-spacing: 0.5px;
}
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 900; line-height: 1.1; margin-bottom: 24px; }
.gradient-text {
    background: var(--gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto 40px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 60px; }
.hero-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-value { font-size: 28px; font-weight: 800; color: white; }
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* Sections */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.section-header p { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* Verified Section */
.verified-section { padding: 60px 0; background: var(--bg-primary); }
.verified-banner {
    display: flex; align-items: center; gap: 16px;
    background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 16px; padding: 20px 28px; margin-bottom: 40px;
}
.verified-icon { color: var(--accent-green); font-size: 12px; animation: pulse 2s infinite; }
.verified-banner h3 { font-size: 16px; font-weight: 700; color: var(--accent-green); margin-bottom: 4px; }
.verified-banner p { font-size: 13px; color: var(--text-secondary); }
.verified-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.verified-stat {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
    padding: 20px; text-align: center;
}
.verified-stat-value { font-size: 28px; font-weight: 800; color: white; margin-bottom: 4px; }
.verified-stat-label { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* Video Section */
.video-section { background: var(--bg-primary); padding: 80px 0; }
.video-container { margin-bottom: 40px; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); }
.demo-video { width: 100%; display: block; background: #000; }
.demo-screenshots { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.screenshot-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
    padding: 28px; text-align: center;
}
.screenshot-icon { font-size: 36px; margin-bottom: 12px; }
.screenshot-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.screenshot-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* Features */
.features-section { background: var(--bg-secondary); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
    padding: 32px; transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, 0.3); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* Demo */
.demo-section { background: var(--bg-primary); }
.demo-container { display: grid; grid-template-columns: 300px 1fr 260px; gap: 20px; }
.demo-panel {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px;
}
.demo-panel h3 { font-size: 15px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.live-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--accent-green);
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Controls */
.control-group { margin-bottom: 18px; }
.control-group label { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.control-group label span { color: white; font-weight: 600; }
.slider {
    width: 100%; height: 6px; border-radius: 3px; -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1); outline: none;
}
.slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
    background: var(--accent-purple); cursor: pointer; border: 2px solid white;
}
.mood-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.mood-btn {
    padding: 6px 12px; border-radius: 8px; font-size: 11px; font-weight: 600;
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
    color: var(--text-secondary); cursor: pointer; transition: all 0.2s;
}
.mood-btn:hover, .mood-btn.active {
    background: rgba(var(--mood-color), 0.2);
    border-color: var(--mood-color); color: var(--mood-color);
}
.mood-btn.active { color: white; background: var(--mood-color); border-color: var(--mood-color); }
.select-input {
    width: 100%; padding: 8px 12px; border-radius: 8px; font-size: 13px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
    color: white; outline: none;
}
.select-input option { background: var(--bg-secondary); }

/* Params Grid */
.params-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-bottom: 20px; }
.param-row { display: flex; align-items: center; gap: 8px; }
.param-label { font-size: 11px; color: var(--text-muted); width: 80px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.param-bar { flex: 1; height: 8px; background: rgba(255, 255, 255, 0.05); border-radius: 4px; overflow: hidden; }
.param-fill { height: 100%; border-radius: 4px; transition: width 0.3s ease; }
.param-value { font-size: 11px; color: var(--text-secondary); width: 30px; text-align: right; font-variant-numeric: tabular-nums; }

/* Section Info */
.demo-section-info { margin-bottom: 16px; }
.section-badge {
    display: inline-block; padding: 4px 12px; border-radius: 6px;
    background: rgba(139, 92, 246, 0.2); color: var(--accent-purple);
    font-size: 12px; font-weight: 700; margin-bottom: 8px;
}
.section-progress { height: 4px; background: rgba(255, 255, 255, 0.05); border-radius: 2px; overflow: hidden; }
.section-progress-bar { height: 100%; background: var(--accent-purple); border-radius: 2px; transition: width 0.5s; width: 0%; }

/* OSC Preview */
.osc-preview { background: rgba(0, 0, 0, 0.3); border-radius: 10px; padding: 12px; }
.osc-header { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.osc-log { font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 10px; color: var(--accent-green); max-height: 100px; overflow-y: auto; }
.osc-line { padding: 1px 0; opacity: 0.8; white-space: nowrap; }

/* LED Preview */
.led-preview { margin-bottom: 20px; }
.led-label, .haptic-label { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.led-strip { display: flex; gap: 3px; flex-wrap: wrap; }
.led { width: 12px; height: 12px; border-radius: 3px; transition: background-color 0.5s; }
.haptic-viz { background: rgba(0, 0, 0, 0.3); border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
#haptic-canvas { display: block; }
.haptic-info { font-size: 11px; color: var(--text-muted); }

/* Architecture */
.arch-section { background: var(--bg-secondary); }
.arch-diagram { margin-bottom: 40px; }
.arch-flow { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 40px 0; }
.arch-node {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
    padding: 24px; text-align: center; min-width: 160px;
}
.arch-node-icon { font-size: 32px; margin-bottom: 8px; }
.arch-node-label { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.arch-sub-nodes { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.arch-sub-nodes span {
    font-size: 10px; padding: 2px 8px; border-radius: 4px;
    background: rgba(139, 92, 246, 0.15); color: var(--accent-purple);
}
.arch-arrow { font-size: 24px; color: var(--text-muted); }
.arch-core { border-color: var(--accent-purple); box-shadow: 0 0 30px rgba(139, 92, 246, 0.1); }
.tech-stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.tech-item {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
    padding: 16px; font-size: 14px; color: var(--text-secondary);
}
.tech-item strong { color: white; }

/* Pricing */
.pricing-section { background: var(--bg-primary); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
.pricing-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px;
    padding: 36px; text-align: center; position: relative;
}
.pricing-featured { border-color: var(--accent-purple); box-shadow: 0 0 40px rgba(139, 92, 246, 0.15); }
.pricing-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--gradient); color: white; padding: 4px 16px; border-radius: 20px;
    font-size: 12px; font-weight: 700;
}
.pricing-tier { font-size: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.pricing-price { font-size: 42px; font-weight: 900; margin-bottom: 4px; }
.pricing-period { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 32px; }
.pricing-features li {
    padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px; color: var(--text-secondary); padding-left: 24px; position: relative;
}
.pricing-features li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-green); font-weight: 700; }

/* CTA */
.cta-section { background: var(--bg-secondary); text-align: center; }
.cta-content h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.cta-content p { font-size: 18px; color: var(--text-secondary); margin-bottom: 32px; }
.cta-form { display: flex; gap: 12px; justify-content: center; max-width: 500px; margin: 0 auto 16px; }
.cta-input {
    flex: 1; padding: 12px 20px; border-radius: 10px; font-size: 15px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
    color: white; outline: none;
}
.cta-input:focus { border-color: var(--accent-purple); }
.cta-note { font-size: 13px; color: var(--text-muted); }
.cta-direct { margin-top: 16px; font-size: 14px; color: var(--text-secondary); }
.cta-email { color: var(--accent-purple); text-decoration: none; font-weight: 600; }
.cta-email:hover { text-decoration: underline; }

/* Footer */
.footer { padding: 60px 0 30px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; }
.footer-desc { font-size: 14px; color: var(--text-muted); margin-top: 12px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: white; }
.footer-bottom { text-align: center; font-size: 13px; color: var(--text-muted); padding-top: 20px; border-top: 1px solid var(--border); }

/* Responsive */
@media (max-width: 900px) {
    .demo-container { grid-template-columns: 1fr; }
    .arch-flow { flex-direction: column; }
    .arch-arrow { transform: rotate(90deg); }
    .nav-links { display: none; }
    .hero-stats { gap: 24px; }
}
@media (max-width: 600px) {
    .hero h1 { font-size: 32px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .pricing-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
}
