/* ==========================================================================
   GitLite Sandbox (lab.gitlite.dev) Theme: Hyper-Violet Engineered Nexus
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700;800&display=swap');
:root {
    --bg-base: #0a0914;
    --bg-surface: #11101e;
    --bg-surface-elevated: #171628;
    --bg-code: #0b0a16;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(139, 92, 246, 0.35);
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --accent-cyan: #38bdf8;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, monospace;
}
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* -------------------------------------------------------------------------- Top Navigation (.site-header) -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 60px;
    background: rgba(10, 9, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand-group {
    display: flex;
    align-items: center;
    gap: 16px;
}
.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
}
.brand-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--primary-light);
}
.brand-logo-icon svg {
    width: 18px;
    height: 18px;
}
.brand-name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.btn-launch-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-mono);
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-launch-header:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
    color: #ffffff;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
.lang-switch {
    display: flex;
    align-items: center;
    padding: 2px 4px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    font-size: 12px;
    font-family: var(--font-mono);
}
.lang-link {
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-dim);
    transition: all 0.15s ease;
}
.lang-link.active {
    background: rgba(139, 92, 246, 0.25);
    color: #fff;
    font-weight: 600;
}
.lang-link:hover:not(.active) {
    color: var(--text-main);
}
.btn-hub-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #d8b4fe;
    transition: all 0.2s ease;
}
.btn-hub-link:hover {
    background: rgba(139, 92, 246, 0.22);
    border-color: rgba(139, 92, 246, 0.5);
    color: #ffffff;
}

/* -------------------------------------------------------------------------- Hero Section -------------------------------------------------------------------------- */
.hero-section {
    text-align: center;
    padding: 64px 0 40px;
}
.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 9999px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--accent-cyan);
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}
.hero-sub-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.hero-sub-badge .badge-icon {
    color: var(--primary-light);
}
.hero-domain-title {
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 16px;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}
.hero-h2-title {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 12px;
}
.hero-description {
    max-width: 720px;
    margin: 0 auto;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* -------------------------------------------------------------------------- Interactive IDE Preview Showcase Window -------------------------------------------------------------------------- */
.ide-showcase-wrap {
    margin: 24px auto 72px;
}
.ide-window {
    border-radius: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-glow);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 92, 246, 0.15);
    overflow: hidden;
}
.ide-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #0d0c18;
    border-bottom: 1px solid var(--border-subtle);
}
.ide-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.window-dots {
    display: flex;
    gap: 6px;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-red {
    background: #ef4444;
}
.dot-amber {
    background: #f59e0b;
}
.dot-green {
    background: #10b981;
}
.ide-repo-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}
.ide-container-status {
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--accent-emerald);
    font-size: 10px;
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 0.05em;
}
.ide-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-ide-action {
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}
.btn-ide-action.active {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    color: #ffffff;
}
.btn-ide-action.highlight {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.35);
    color: var(--accent-cyan);
}
/* IDE Split Workspace */
.ide-body {
    display: grid;
    grid-template-columns: 240px 1fr;
    height: 480px;
}
@media (max-width: 840px) {
    .ide-body {
        grid-template-columns: 1fr;
        height: auto;
    }
    .ide-sidebar {
        display: none;
    }
}
.ide-sidebar {
    background: #090913;
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
}
.sidebar-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border-subtle);
}
.ide-file-tree {
    list-style: none;
    padding: 8px 6px;
    font-family: var(--font-mono);
    font-size: 12px;
}
.file-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.15s;
}
.file-row:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}
.file-row.active {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    font-weight: 500;
}
.file-row svg {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}
/* IDE Editor + Console Column */
.ide-editor-area {
    display: flex;
    flex-direction: column;
    background: var(--bg-code);
    min-width: 0;
}
.editor-tabs-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
    padding: 0 12px;
    background: #0f0e1c;
    border-bottom: 1px solid var(--border-subtle);
}
.tabs-left {
    display: flex;
    gap: 4px;
}
.tab-btn {
    padding: 4px 12px;
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--text-dim);
    border-radius: 4px;
}
.tab-btn.active {
    background: var(--bg-code);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    border-bottom-color: transparent;
}
.tab-meta-info {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-dim);
}
.code-view {
    flex: 1;
    padding: 16px 20px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.6;
    color: #cbd5e1;
}
.code-keyword {
    color: #c084fc;
    font-weight: 600;
}
.code-fn {
    color: #38bdf8;
}
.code-str {
    color: #34d399;
}
.code-comment {
    color: #64748b;
    font-style: italic;
}
/* In-Window Terminal */
.ide-terminal-pane {
    height: 160px;
    background: #06050b;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
    font-family: var(--font-mono);
    font-size: 12px;
}
.term-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    color: var(--text-dim);
    font-size: 11px;
}
.term-badge-success {
    color: var(--accent-emerald);
    font-weight: 600;
}
.term-logs {
    flex: 1;
    overflow-y: auto;
    line-height: 1.5;
}
.term-line-user {
    color: #a78bfa;
}
.term-line-dim {
    color: #475569;
}
.term-line-info {
    color: #38bdf8;
}
.term-status-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 10.5px;
    color: var(--text-dim);
}

/* -------------------------------------------------------------------------- Ecosystem Cards (3-Column Grid) -------------------------------------------------------------------------- */
.section-block {
    margin-bottom: 80px;
}
.section-pill-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-light);
    margin-bottom: 6px;
}
.section-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 8px;
}
.section-desc {
    font-size: 14.5px;
    color: var(--text-muted);
    margin-bottom: 28px;
}
.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px) {
    .ecosystem-grid {
        grid-template-columns: 1fr;
    }
}
.eco-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
}
.eco-card:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}
.eco-card.current-active {
    border-color: var(--primary);
    background: linear-gradient(180deg, #16152a 0%, #11101e 100%);
}
.card-status-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--accent-cyan);
    font-size: 10px;
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 0.05em;
}
.card-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.card-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--primary-light);
}
.eco-card.current-active .card-icon-box {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    color: #ffffff;
}
.card-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}
.card-body-text {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 24px;
    flex: 1;
}
.card-footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
    font-size: 11.5px;
    font-family: var(--font-mono);
    color: var(--text-dim);
}
.link-highlight {
    color: var(--accent-emerald);
    font-weight: 600;
}

/* -------------------------------------------------------------------------- Ready-to-Execute Runtimes (12 Badges Grid) -------------------------------------------------------------------------- */
.runtimes-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.runtimes-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
@media (max-width: 1024px) {
    .runtimes-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 640px) {
    .runtimes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.runtime-item-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.15s ease;
}
.runtime-item-card:hover {
    border-color: rgba(139, 92, 246, 0.35);
    background: #141324;
}
.rt-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.rt-icon {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 13px;
    color: var(--primary-light);
}
.rt-ver {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-dim);
}
.rt-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}
.rt-tools {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

/* -------------------------------------------------------------------------- Features (4-Column Grid) -------------------------------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 960px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 540px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}
.feature-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.feature-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: var(--primary-light);
}
.feature-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}
.feature-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* -------------------------------------------------------------------------- Global Footer (.site-footer) -------------------------------------------------------------------------- */
.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-subtle);
    background: #080711;
    padding: 40px 0 28px;
}
.footer-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-brand-name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}
.footer-brand-desc {
    font-size: 12px;
    color: var(--text-dim);
}
.footer-social-nodes {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    font-family: var(--font-mono);
}
.social-label {
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.social-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}
.social-link:hover {
    color: var(--primary-light);
}
.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 12px;
    color: var(--text-dim);
    flex-wrap: wrap;
    gap: 12px;
}
.inquiry-link {
    color: var(--text-muted);
    text-decoration: none;
}
.inquiry-link:hover {
    color: var(--accent-cyan);
}
