:root {
    --main-color: #00ff00; /* Default: Green */
}

.theme-green { --main-color: #00ff00; }
.theme-orange { --main-color: #ffaa00; }
.theme-cyan { --main-color: #00ffff; }
.theme-pink { --main-color: #ff77ff; }
.theme-red { --main-color: #ff4444; }

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

body {
    background: #000;
    color: var(--main-color);
    font-family: 'Courier New', monospace;
    margin: 0;
}

.app {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #000;
    padding: 10px 20px;
    color: var(--main-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--main-color);
    z-index: 100;
}

.top-bar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

#theme-picker {
    background: #000;
    color: var(--main-color);
    border: 1px solid var(--main-color);
    font-family: 'Courier New', monospace;
    padding: 5px;
    cursor: pointer;
}

/* Main Body */
.app-body {
    margin-top: 60px;
    padding: 40px 20px;
    width: 95%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* General Section Styles */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h1, h2 {
    font-size: 28px;
    color: var(--main-color);
    margin-bottom: 20px;
}

h1 {
    font-size: 36px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
}

.tagline, .sub-tagline {
    font-size: 20px;
    margin: 15px 0;
    position: relative;
    display: inline-block;
}

.tagline::after, .sub-tagline::after {
    content: '_';
    margin-left: 5px;
    animation: blink 1s infinite;
}

/* Buttons */
.cta-btn, .demo-btn {
    background: #000;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    padding: 12px 24px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s;
    font-size: 16px;
}

a {
    color: #fff;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    font-size: 16px;
}

a .hover {
    color: var(--main-color);
}

.cta-btn:hover, .demo-btn:hover {
    background: var(--main-color);
    color: #000;
    transform: scale(1.05);
}

.demo-btn.secondary {
    background: #111;
    border-color: #555;
}

.demo-btn.secondary:hover {
    background: #555;
}

/* Introduction Section */
.introduction {
    padding: 40px 0;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-paragraph {
    font-size: 16px;
    margin: 15px 0;
    line-height: 1.5;
    position: relative;
    padding-left: 20px;
}

.intro-paragraph::before {
    content: '> ';
    position: absolute;
    left: 0;
}

.intro-bullets {
    list-style: none;
    padding-left: 20px;
    margin: 15px 0;
}

.intro-bullets li {
    font-size: 14px;
    margin: 10px 0;
}

/* Features Section */
.features {
    padding: 40px 0;
}

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

.feature-card {
    background: #111;
    border: 2px dashed var(--main-color);
    padding: 25px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 10px var(--main-color);
}

.feature-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
}

.feature-description {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.feature-bullets {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 15px;
}

.feature-bullets li {
    font-size: 14px;
    margin: 10px 0;
}

.feature-animation {
    display: flex;
    align-items: center;
    gap: 10px;
}

.animation-label {
    font-size: 12px;
    opacity: 0.7;
}

/* Use Cases Section */
.use-cases {
    padding: 40px 0;
}

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

.use-case-card {
    background: #000;
    border: 2px solid var(--main-color);
    padding: 25px;
    transition: transform 0.2s;
}

.use-case-card:hover {
    transform: scale(1.02);
}

.use-case-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
}

.use-case-description {
    font-size: 16px;
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.use-case-description::before {
    content: '> ';
    position: absolute;
    left: 0;
}

.use-case-details {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.use-case-bullets {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 15px;
}

.use-case-bullets li {
    font-size: 14px;
    margin: 10px 0;
}

.use-case-animation {
    display: flex;
    align-items: center;
    gap: 10px;
}

.animation-label {
    font-size: 12px;
    opacity: 0.7;
}

/* Component Library Section */
.components {
    padding: 40px 0;
}

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

.component {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.component-title {
    font-size: 16px;
    font-weight: bold;
}

.demo-checkbox {
    display: none;
}

.demo-label {
    color: var(--main-color);
    cursor: pointer;
    font-size: 14px;
}

.demo-checkbox:checked + .demo-label {
    text-decoration: underline;
}

.demo-checkbox:checked + .demo-label::before {
    content: '[x]';
    margin-right: 5px;
}

.demo-checkbox:not(:checked) + .demo-label::before {
    content: '[ ]';
    margin-right: 5px;
}

/* Testimonials Section */
.testimonials {
    padding: 40px 0;
}

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

.testimonial-card {
    background: #111;
    border: 2px dotted var(--main-color);
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--main-color);
    opacity: 0.3;
}

.testimonial-text {
    font-size: 16px;
    position: relative;
    padding-left: 20px;
    min-height: 40px;
    margin-bottom: 15px;
}

.testimonial-text::before {
    content: '> ';
    position: absolute;
    left: 0;
}

.testimonial-text::after {
    content: '_';
    margin-left: 5px;
    animation: blink 1s infinite;
}

.testimonial-bullets {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 15px;
}

.testimonial-bullets li {
    font-size: 14px;
    margin: 10px 0;
}

.testimonial-author {
    font-size: 12px;
    opacity: 0.7;
}

/* Documentation Section */
.documentation {
    padding: 40px 0;
}

.doc-content {
    max-width: 800px;
    margin: 0 auto;
}

.doc-paragraph {
    font-size: 16px;
    margin: 15px 0;
    line-height: 1.5;
    position: relative;
    padding-left: 20px;
}

.doc-paragraph::before {
    content: '> ';
    position: absolute;
    left: 0;
}

.doc-bullets {
    list-style: none;
    padding-left: 20px;
    margin: 15px 0;
}

.doc-bullets li {
    font-size: 14px;
    margin: 10px 0;
}

/* CTA Section */
.cta {
    text-align: center;
    padding: 80px 20px;
}

.cta-text {
    font-size: 20px;
    margin: 20px 0;
}

.pulse-cta {
    animation: pulse-cta 2s infinite;
}

/* Animations */
@keyframes blink {
    50% { opacity: 0; }
}

@keyframes pulse {
    0% { width: 20%; }
    50% { width: 80%; }
    100% { width: 20%; }
}

@keyframes pulse-cta {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Reference Animations */
.status-indicator {
    width: 15px;
    height: 15px;
    background: var(--main-color);
    border-radius: 50%;
    animation: status-pulse 2s infinite;
}

.status-indicator.online {
    background: var(--main-color);
}

@keyframes status-pulse {
    50% { opacity: 0.3; }
}

.waveform {
    display: flex;
    gap: 2px;
    height: 20px;
}

.wave {
    width: 5px;
    background: var(--main-color);
    animation: waveform 1s infinite;
}

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

@keyframes waveform {
    0% { height: 5px; }
    50% { height: 20px; }
    100% { height: 5px; }
}

.fan-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid var(--main-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.signal-bars {
    display: flex;
    gap: 2px;
}

.bar {
    width: 5px;
    background: var(--main-color);
    animation: signal-pulse 2s infinite;
}

.bar:nth-child(2) { height: 10px; animation-delay: 0.2s; }
.bar:nth-child(3) { height: 15px; animation-delay: 0.4s; }
.bar:nth-child(4) { height: 20px; animation-delay: 0.6s; }

@keyframes signal-pulse {
    0% { height: 5px; }
    50% { height: 20px; }
    100% { height: 5px; }
}

.pulse {
    width: 15px;
    height: 15px;
    background: var(--main-color);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.scan-radar {
    width: 30px;
    height: 30px;
    position: relative;
}

.radar-sweep {
    width: 100%;
    height: 100%;
    background: var(--main-color);
    opacity: 0.3;
    border-radius: 50%;
    animation: radar-sweep 2s infinite;
}

@keyframes radar-sweep {
    0% { transform: scale(0); opacity: 0.5; }
    100% { transform: scale(1); opacity: 0; }
}

.progress-bar {
    height: 10px;
    background: #000;
    border: 1px solid var(--main-color);
}

.progress {
    height: 100%;
    background: var(--main-color);
    animation: pulse 3s infinite;
}

.allocation-chart {
    display: flex;
    gap: 5px;
}

.chart-bar {
    width: 10px;
    background: var(--main-color);
    animation: chart-pulse 2s infinite;
}

.chart-bar.cpu { animation-delay: 0s; }
.chart-bar.mem { animation-delay: 0.2s; }
.chart-bar.disk { animation-delay: 0.4s; }

@keyframes chart-pulse {
    0% { height: 10px; }
    50% { height: 30px; }
    100% { height: 10px; }
}

.thermometer {
    width: 80px;
    height: 10px;
    background: #000;
    border: 1px solid var(--main-color);
}

.temp-level {
    height: 100%;
    background: var(--main-color);
    animation: temp-pulse 3s infinite;
}

@keyframes temp-pulse {
    0% { width: 40%; }
    50% { width: 70%; }
    100% { width: 40%; }
}

.battery-icon {
    width: 40px;
    height: 15px;
    border: 2px solid var(--main-color);
    position: relative;
}

.battery-level {
    height: 100%;
    background: var(--main-color);
    animation: battery-pulse 4s infinite;
}

@keyframes battery-pulse {
    0% { width: 20%; }
    50% { width: 80%; }
    100% { width: 20%; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .feature-grid, .use-case-grid, .component-grid, .testimonial-grid {
        grid-template-columns: 1fr;
    }
}