/* ===== CSS Variables ===== */
:root {
    --primary-color: #667eea;
    --primary-dark: #3949ab;
    --primary-light: #8fa7ff;
    --accent-color: #00bcd4;
    --accent-dark: #008ba3;

    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;

    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;

    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);

    --font-sans: 'Inter', 'Segoe UI', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Mono', 'Courier New', monospace;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 700px;
    margin: -1.5rem auto 2rem;
}

.large-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ===== Navigation ===== */
.nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.nav-menu a:hover {
    color: var(--primary-dark);
}

.nav-github {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 0.375rem;
    transition: var(--transition);
    font-size: 0.9rem;
}

.nav-github:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nav-cta {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Hero Section ===== */
.hero {
    padding: 3rem 0 2.5rem;
    background: linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-logo {
    width: auto;
    height: 70px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

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

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

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--border-color);
}

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

.btn-download {
    background: var(--primary-color);
    color: white;
    width: 100%;
    text-align: center;
}

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

/* ===== Sections ===== */
.section {
    padding: 3rem 0;
}

.section-alt {
    background: var(--bg-secondary);
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.05);
}

/* ===== Video Grid ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-placeholder {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.video-card h3 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.video-card p {
    padding: 0 1rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== Content Boxes ===== */
.content-box {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.highlight-box {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 3px solid var(--primary-color);
    margin: 2rem 0;
}

/* ===== Two Column Layout ===== */
.two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.column h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.fail-list {
    list-style: none;
    padding: 0;
}

.fail-list li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
    color: var(--text-secondary);
}

/* ===== Architecture Grid ===== */
.architecture-section {
    margin-top: 2rem;
}

.architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.arch-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

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

.arch-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.arch-card h4 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.arch-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.arch-card p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.arch-card p a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-left: 3px solid var(--primary-color);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.feature-card ul {
    list-style: none;
    padding: 0;
}

.feature-card ul li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
}

.feature-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ===== Use Case Grid ===== */
.use-case-grid {
    display: grid;
    gap: 2rem;
}

.use-case-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.use-case-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.use-case-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.use-case-card h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.use-case-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.use-case-example {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

/* ===== Example Cards (Reworked) ===== */
.example-tabs {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.example-card {
    background: white;
    padding: 0;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

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

.example-header {
    background: var(--bg-secondary);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.example-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.example-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.example-description {
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    background: white;
}

.example-card pre {
    background: #0d1117;
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
    border-left: 3px solid var(--primary-color);
    border-top: 1px solid #21262d;
    border-bottom: 1px solid #21262d;
}

.example-card code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    color: #e6edf3;
    display: block;
    tab-size: 4;
    -moz-tab-size: 4;
}

.example-footer {
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.example-footer strong {
    color: var(--text-primary);
}

/* ===== Usage Guide ===== */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
}

.usage-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.usage-card h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.usage-card ol {
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.usage-card ol li {
    margin-bottom: 0.75rem;
}

.example-box {
    background: linear-gradient(135deg, #eef2ff 0%, #ede9fe 100%);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-top: 1.5rem;
    border-left: 4px solid var(--primary-color);
    color: var(--text-primary);
}

.command-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.command-item {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
    color: var(--text-primary);
}

.command-item code {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.command-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* ===== Download Section ===== */
.download-status {
    text-align: center;
    margin-bottom: 3rem;
}

.status-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.625rem 1.75rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.download-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

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

.os-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.download-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.download-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.requirements-box {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 1rem;
}

.requirements-box h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.requirements-box ul {
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.requirements-box ul li {
    margin-bottom: 0.5rem;
}

/* ===== Development Section ===== */
.dev-content h3 {
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.dev-content ul {
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.dev-content ul li {
    margin-bottom: 0.5rem;
}

.dev-content pre {
    background: #1e293b;
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.dev-content code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e2e8f0;
}

/* ===== Footer ===== */
.footer {
    background: #1a202c;
    color: #b6c2cd;
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid #e2e8f0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-style: italic;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1.5rem;
    text-align: center;
    color: #94a3b8;
}

.footer-credits {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 4rem 0 3rem;
    }
    
    .example-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .example-card pre {
        padding: 1rem;
    }
    
    .example-card code {
        font-size: 0.8rem;
    }
}

/* ===== Utility Classes ===== */
code {
    font-family: var(--font-mono);
    /*background: var(--bg-tertiary);*/
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.95em;
    color: var(--text-primary);
}

strong {
    font-weight: 600;
    color: var(--text-primary);
}
