/* ==== Shared Styles ==== */
:root {
            --bg-color: #0b0f15;
            --surface-color: #131a24;
            --surface-border: #1e293b;
            --text-main: #f8fafc;
            --text-muted: #94a3b8;
            --accent-cyan: #00f2fe;
            --accent-gold: #f5af19;
            --glow-cyan: rgba(0, 242, 254, 0.15);
        }

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

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-main);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            overflow-x: hidden;
            background-image: 
                radial-gradient(circle at 10% 20%, rgba(0, 242, 254, 0.03) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(245, 175, 25, 0.03) 0%, transparent 40%);
        }

        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 2rem 5%;
            max-width: 1400px;
            width: 100%;
            margin: 0 auto;
        }
        
        /* Collapsible site index at the bottom of the home page (also mirrored in /llms.txt) */
        .site-index {
            width: 100%;
            margin-top: 3rem;
            text-align: left;
            font-size: 0.9rem;
            color: var(--text-muted);
            border-top: 1px solid var(--surface-border);
            padding-top: 1rem;
        }
        .site-index summary {
            cursor: pointer;
            font-family: 'Fira Code', monospace;
            color: var(--text-muted);
            width: fit-content;
        }
        .site-index summary:hover { color: var(--accent-cyan); }
        .site-index h2 { font-size: 1rem; color: var(--text-main); margin: 1.25rem 0 0.5rem; }
        .site-index ul { padding-left: 1.2rem; margin: 0; }
        .site-index li { margin: 0.35rem 0; }
        .site-index a { color: var(--accent-cyan); }

        .brand {
            display: flex;
            align-items: center;
            gap: 1rem;
            text-decoration: none;
            color: var(--text-main);
        }

        .logo-mark {
            width: 42px;
            height: 42px;
            border-radius: 8px;
            background: linear-gradient(135deg, var(--accent-cyan), var(--accent-gold));
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-family: 'Fira Code', monospace;
            color: var(--bg-color);
            font-size: 1.2rem;
            box-shadow: 0 0 15px var(--glow-cyan);
        }

        .brand-text {
            font-weight: 600;
            font-size: 1.1rem;
            letter-spacing: -0.02em;
        }

        .brand-text span {
            color: var(--accent-cyan);
        }

        /* Navigation Styles */
        nav a {
            color: var(--text-muted);
            text-decoration: none;
            margin-left: 2rem;
            font-size: 0.95rem;
            transition: color 0.2s ease;
        }

        nav a:hover, nav a.active {
            color: var(--accent-cyan);
        }

        nav a.active {
            font-weight: 600;
            border-bottom: 2px solid var(--accent-cyan);
            padding-bottom: 4px;
        }

        .main-nav-links, .utility-nav-links {
            display: inline-flex;
            align-items: center;
        }

        .utility-nav-links {
            margin-left: 2rem;
            border-left: 1px solid var(--surface-border);
            padding-left: 2rem;
        }

        main {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 2rem 5%;
            max-width: 900px;
            margin: 0 auto;
        }

        .badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: var(--surface-color);
            border: 1px solid var(--surface-border);
            padding: 0.5rem 1rem;
            border-radius: 50px;
            font-size: 0.85rem;
            font-family: 'Fira Code', monospace;
            color: var(--accent-cyan);
            margin-bottom: 2rem;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }

        .pulse-dot {
            width: 8px;
            height: 8px;
            background-color: var(--accent-cyan);
            border-radius: 50%;
            box-shadow: 0 0 8px var(--accent-cyan);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(0.95); opacity: 0.8; }
            50% { transform: scale(1.2); opacity: 1; }
            100% { transform: scale(0.95); opacity: 0.8; }
        }

        h1 {
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 700;
            letter-spacing: -0.03em;
            line-height: 1.1;
            margin-bottom: 1.5rem;
        }

        h1 span {
            background: linear-gradient(135deg, var(--accent-cyan), var(--accent-gold));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        p.subtitle {
            font-size: clamp(1rem, 2vw, 1.2rem);
            color: var(--text-muted);
            line-height: 1.6;
            margin-bottom: 2.5rem;
            max-width: 650px;
        }

        .cta-group {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            justify-content: center;
            margin-bottom: 3rem;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 0.6rem;
            padding: 0.85rem 1.75rem;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.95rem;
            text-decoration: none;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--accent-cyan), #00a8ff);
            color: var(--bg-color);
            box-shadow: 0 4px 20px rgba(0, 242, 254, 0.25);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 25px rgba(0, 242, 254, 0.4);
        }

        .btn-secondary {
            background: var(--surface-color);
            color: var(--text-main);
            border: 1px solid var(--surface-border);
        }

        .btn-secondary:hover {
            border-color: var(--text-muted);
            background: #182232;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 1.5rem;
            width: 100%;
            margin-top: 1rem;
            text-align: left;
        }

        .feature-card-link {
            text-decoration: none;
            color: inherit;
            display: block;
        }

        .feature-card {
            background: var(--surface-color);
            border: 1px solid var(--surface-border);
            border-radius: 12px;
            padding: 1.5rem;
            transition: border-color 0.2s ease;
            height: 100%;
        }

        .feature-card:hover {
            border-color: rgba(0, 242, 254, 0.4);
        }

        .feature-card h3 {
            font-size: 1.05rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .feature-card h3::before {
            content: '';
            display: inline-block;
            width: 6px;
            height: 6px;
            background: var(--accent-gold);
            border-radius: 50%;
        }

        .feature-card p {
            font-size: 0.9rem;
            color: var(--text-muted);
            line-height: 1.5;
        }

         .tile-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
        }
        .tile {
            background: var(--surface-color);
            border: 1px solid var(--surface-border);
            border-radius: 16px;
            padding: 2rem;
            text-decoration: none;
            color: inherit;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 200px;
        }
        .tile:hover {
            border-color: var(--accent-gold);
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(245, 175, 25, 0.1);
        }
        .tile h3 {
            font-size: 1.4rem;
            margin-bottom: 1rem;
            color: var(--text-main);
        }
        .tile p {
            color: var(--text-muted);
            font-size: 0.95rem;
            line-height: 1.5;
            margin-bottom: 1.5rem;
        }
        .tile-footer {
            font-family: 'Fira Code', monospace;
            font-size: 0.8rem;
            color: var(--accent-gold);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        footer {
            padding: 2rem 5%;
            max-width: 1400px;
            width: 100%;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid var(--surface-border);
            font-size: 0.85rem;
            color: var(--text-muted);
            flex-wrap: wrap;
            gap: 1rem;
        }

        footer a {
            color: var(--text-muted);
            text-decoration: none;
        }

        footer a:hover {
            color: var(--accent-cyan);
        }

        @media (max-width: 768px) {
            header nav {
                display: none;
            }
            .features-grid {
                grid-template-columns: 1fr;
            }
        }
        /* ------------------------------------------------------------------
   Breadcrumb (only present in docker‑ollama‑openwebui.html)
------------------------------------------------------------------- */
.breadcrumb {
    font-size: .85rem;
    font-family: 'Fira Code', monospace;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text-main); }

/* ------------------------------------------------------------------
   Video embed container
------------------------------------------------------------------- */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;      /* 16:9 */
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--surface-border);
    margin-bottom: 2.5rem;
    background: var(--surface-color);
}
.video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* ------------------------------------------------------------------
   Content body typography (h2, paragraphs, lists)
------------------------------------------------------------------- */
.content-body h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    color: var(--text-main);
}
.content-body p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}
.content-body ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-muted);
}
.content-body li {
    margin-bottom: .5rem;
    line-height: 1.6;
}

/* ------------------------------------------------------------------
   Download box / Inline form styling
------------------------------------------------------------------- */
.download-box {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.download-box h3 {
    font-size: 1.25rem;
    margin-bottom: .75rem;
    color: var(--text-main);
}
.download-box p {
    font-size: .95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.form-group { margin-bottom: 1rem; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width:600px) {
    .form-row { grid-template-columns:1fr; }
}
label {
    display: block;
    font-size: .85rem;
    font-family: 'Fira Code', monospace;
    color: var(--text-muted);
    margin-bottom: .4rem;
}
input[type="text"],
input[type="email"] {
    width: 100%;
    padding: .75rem 1rem;
    background: var(--bg-color);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    transition: border-color .2s;
}
input[type="text"]:focus,
input[type="email"]:focus {
    outline:none;
    border-color: var(--accent-cyan);
}
.btn {
    width: 100%;               /* override generic btn */
    border:none;
    margin-top:.5rem;
}

/* Success state after download */
.success-state {
    text-align:center;
    padding:1rem 0;
}
.success-state h4 {
    color: var(--accent-cyan);
    margin-bottom:.5rem;
    font-size:1.1rem;
}