/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e10600;
    --secondary-color: #15151e;
    --accent-color: #ff1e1e;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
}

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

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.tagline {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 300;
}

/* Hero Section */
.hero {
    background: linear-gradient(to bottom, var(--bg-light) 0%, var(--bg-white) 100%);
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.lead {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* Video Demo Section */
.video-demo {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.video-demo h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background-color: #2a2a3e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Sections */
section {
    padding: 80px 0;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* Features Grid */
.features {
    background-color: var(--bg-white);
}

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

.feature-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* How It Works */
.how-it-works {
    background-color: var(--bg-light);
}

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

.workflow-step {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.workflow-step h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.workflow-step p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Commentary Examples */
.commentary-examples {
    background-color: var(--bg-white);
}

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

.comparison-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.comparison-card.enhanced {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border-color: var(--primary-color);
}

.comparison-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.example-box {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.example-box p {
    margin-bottom: 10px;
    font-style: italic;
    color: var(--text-color);
}

.example-box p:last-child {
    margin-bottom: 0;
}

.comparison-card .note {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

/* Technical Highlights */
.technical-highlights {
    background-color: var(--bg-light);
}

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

.tech-item {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.tech-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.tech-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Installation */
.installation {
    background-color: var(--bg-white);
}

.install-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.install-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.install-card.primary {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(225, 6, 0, 0.2);
}

.install-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.install-steps {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.install-steps li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    color: var(--text-color);
    line-height: 1.7;
}

.install-steps li::before {
    content: counter(list-item);
    counter-increment: list-item;
    position: absolute;
    left: 0;
    top: 12px;
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
}

.install-steps code {
    background: var(--secondary-color);
    color: #00ff00;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.method-note {
    color: var(--text-light);
    line-height: 1.7;
    margin-top: 15px;
    font-size: 0.95rem;
}

.code-block {
    background: var(--secondary-color);
    color: #00ff00;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
}

.code-block code {
    font-size: 0.95rem;
}

.install-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.requirements {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.requirements h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.requirements ul {
    list-style: none;
    padding-left: 0;
}

.requirements li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-color);
}

.requirements li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.requirements a {
    color: var(--primary-color);
    text-decoration: none;
}

.requirements a:hover {
    text-decoration: underline;
}

/* Usage */
.usage {
    background-color: var(--bg-light);
}

.usage-steps {
    max-width: 800px;
    margin: 0 auto;
}

.usage-step {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.usage-step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.usage-step p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.usage-step code {
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
}

/* Architecture */
.architecture {
    background-color: var(--bg-white);
}

.arch-diagram {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.arch-layer {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    padding: 25px;
    border-radius: 12px;
    margin: 10px 0;
    border: 2px solid var(--border-color);
}

.arch-layer h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.arch-layer p {
    color: var(--text-light);
}

.arch-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 10px 0;
}

/* Credits */
.credits {
    background-color: var(--bg-light);
}

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

.credit-item {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.credit-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.credit-item p {
    color: var(--text-light);
}

/* Final CTA */
.cta-final {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.cta-final h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-final p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 30px 0;
}

footer p {
    margin: 5px 0;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .feature-grid,
    .workflow,
    .comparison,
    .tech-grid,
    .install-methods,
    .credits-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

.feature-card,
.workflow-step,
.comparison-card,
.tech-item,
.install-card,
.usage-step,
.credit-item {
    animation: fadeIn 0.6s ease-out;
}
