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

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --dark-bg: #1a1a1a;
    --widget-bg: rgba(40, 40, 40, 0.95);
    --text-light: #ffffff;
    --text-gray: #cccccc;
    --success-color: #00ff00;
    --warning-color: #ffff00;
    --danger-color: #ff0000;
    --info-color: #0080ff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.demo-container {
    width: 100%;
    min-height: 100vh;
}

/* Header */
.demo-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    font-size: 32px;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.version {
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.header-badges {
    display: flex;
    gap: 8px;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.cpp {
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: white;
}

.badge.qt {
    background: linear-gradient(135deg, #41cd52, #2e8b3e);
    color: white;
}

.badge.cross-platform {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

/* Hero Section */
.hero-section {
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Desktop Mockup */
.demo-widget-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.desktop-mockup {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    min-height: 400px;
}

.taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 0 0 12px 12px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    justify-content: space-between;
}

.start-button {
    color: white;
    font-size: 16px;
    padding: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.taskbar-apps {
    display: flex;
    gap: 8px;
}

.app-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.app-icon.active {
    background: var(--primary-color);
}

.system-tray .time {
    color: white;
    font-size: 12px;
}

/* Live Demo Widget */
.desktop-widget {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 200px;
    background: var(--widget-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    overflow: hidden;
    animation: widgetFloat 4s ease-in-out infinite;
}

.widget-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.widget-title {
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.widget-controls {
    display: flex;
    gap: 4px;
}

.control-btn {
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 50%;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.control-btn[data-action="minimize"] {
    background: #ffc107;
}

.control-btn[data-action="close"] {
    background: #dc3545;
}

.widget-content {
    padding: 12px;
}

.metric-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.metric-label {
    width: 30px;
    font-size: 10px;
    color: var(--text-gray);
    text-align: right;
}

.metric-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
    animation: progressPulse 2s ease-in-out infinite;
}

.cpu-bar {
    background: linear-gradient(90deg, var(--success-color) 0%, var(--warning-color) 70%, var(--danger-color) 100%);
}

.ram-bar {
    background: linear-gradient(90deg, var(--info-color) 0%, #ff8000 100%);
}

.metric-value {
    width: 30px;
    font-size: 10px;
    color: white;
    text-align: left;
    font-weight: 600;
}

.metric-info {
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--text-gray);
}

.info-item i {
    width: 12px;
    color: var(--primary-color);
}

.mini-chart {
    height: 35px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 4px;
    margin-top: 8px;
}

.widget-tooltip {
    position: absolute;
    top: 50%;
    left: -200px;
    transform: translateY(-50%);
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    animation: tooltipFade 6s ease-in-out infinite;
}

.tooltip-content h4 {
    font-size: 12px;
    margin-bottom: 8px;
    color: #333;
}

.tooltip-content ul {
    list-style: none;
    font-size: 10px;
    color: #666;
}

.tooltip-content li {
    margin-bottom: 2px;
}

/* Features Section */
.features-section {
    background: white;
    padding: 80px 20px;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Modes Section */
.modes-section {
    background: #f8fafc;
    padding: 80px 20px;
    text-align: center;
}

.modes-section h2 {
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

.modes-showcase {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.mode-demo {
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.mode-demo:hover,
.mode-demo.active {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
    border: 2px solid var(--primary-color);
}

.mode-widget {
    width: 80px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.mode-widget.compact {
    background: var(--widget-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.compact-bars {
    display: flex;
    gap: 4px;
}

.compact-bars .bar {
    width: 20px;
    height: 4px;
    border-radius: 2px;
}

.cpu-compact {
    background: var(--success-color);
    width: 45%;
}

.ram-compact {
    background: var(--info-color);
    width: 67%;
}

.mode-widget.standard,
.mode-widget.extended {
    background: var(--widget-bg);
    padding: 6px;
}

.widget-title-small {
    color: white;
    font-size: 8px;
    text-align: center;
    margin-bottom: 4px;
}

.standard-content,
.extended-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.small-metric,
.tiny-metric {
    color: var(--text-gray);
    font-size: 7px;
    text-align: left;
}

.tiny-metric {
    font-size: 6px;
}

.mode-widget.graph {
    background: var(--widget-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.graph-mini {
    width: 60px;
    height: 20px;
    position: relative;
}

.graph-line {
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--success-color), var(--warning-color), var(--success-color), transparent);
    animation: graphFlow 2s ease-in-out infinite;
}

.mode-demo h4 {
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.mode-demo p {
    font-size: 12px;
    color: #666;
}

/* Tech Section */
.tech-section {
    background: white;
    padding: 80px 20px;
}

.tech-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

.tech-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tech-card {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.tech-card h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.tech-card ul {
    list-style: none;
}

.tech-card li {
    padding: 5px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.tech-card li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 10px;
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.download-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.download-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    min-width: 180px;
    justify-content: center;
}

.btn.primary {
    background: white;
    color: var(--primary-color);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn.secondary {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn.secondary:hover {
    background: white;
    color: var(--primary-color);
}

.build-instructions {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.build-instructions h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.code-block {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    text-align: left;
}

.code-block code {
    color: #00ff00;
    font-size: 14px;
    line-height: 1.8;
}

/* Animations */
@keyframes widgetFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes progressPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes tooltipFade {
    0%, 20%, 80%, 100% { opacity: 0; }
    40%, 60% { opacity: 1; }
}

@keyframes graphFlow {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .desktop-widget {
        position: static;
        margin: 20px auto;
        transform: none;
    }
    
    .widget-tooltip {
        display: none;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .modes-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
}
