/*
 * Copyright 2025-2026 Eugene Petrenko (mcp@jonnyzzz.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/* Base styles */
:root {
    /* Color System - Semantic Tokens */
    --color-primary: #ffffff;
    --color-secondary: #d0d0e0;
    --color-tertiary: #b0b0c0;
    --color-quaternary: #909090;

    /* Brand Colors */
    --gradient-brand: linear-gradient(135deg, #6B57FF 0%, #FE2857 100%);
    --color-brand-purple: #6B57FF;
    --color-brand-pink: #FE2857;

    /* Background */
    --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --bg-overlay: rgba(255, 255, 255, 0.05);
    --bg-code: rgba(0, 0, 0, 0.3);

    /* Accent Colors */
    --color-link: #a0a0ff;
    --color-code: #c0c0ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-gradient);
    color: var(--color-primary);
}
a {
    color: var(--color-link);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
/* Navigation */
.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-primary);
}
.nav-brand:hover {
    text-decoration: none;
}
.nav-logo {
    width: 32px;
    height: 32px;
}
/* Ensure minimum touch target size (44x44px) */
.nav-brand {
    padding: 6px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
}
.nav-title {
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-link {
    color: var(--color-tertiary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 44px;
    padding: 8px 0;
}
.nav-link:hover {
    color: var(--color-primary);
    text-decoration: none;
}
.nav-link.active {
    color: var(--color-primary);
}
.nav-link svg {
    width: 16px;
    height: 16px;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
}
.nav-toggle svg {
    width: 24px;
    height: 24px;
}
/* Middle nav — hide Docs/Releases to prevent double-line wrapping */
@media (max-width: 1024px) {
    .nav-link.nav-collapsible {
        display: none;
    }
}
/* Mobile nav — hamburger menu. Breakpoint raised to 960px so the horizontal
   menu collapses before it can collide with the wider brand (logo + "MCP Steroid"
   + devrig badge); below this the badge would butt against the first menu item. */
@media (max-width: 960px) {
    .nav-toggle {
        display: block;
    }
    .nav-link.nav-collapsible {
        display: flex;
    }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(26, 26, 46, 0.98);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: none;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-link {
        padding: 1rem 1.5rem;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .social-links a {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }
}
/* Main content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
/* Footer */
footer {
    margin-top: auto;
    padding: 2rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}
.social-links a {
    color: var(--color-quaternary);
    transition: color 0.2s;
}
.social-links a:hover {
    color: var(--color-tertiary);
    text-decoration: none;
}
.social-links svg {
    width: 24px;
    height: 24px;
}
/* Common button styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 44px;
    min-width: 44px;
}
.btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(107, 87, 255, 0.3);
}
.btn-primary {
    background: var(--gradient-brand);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-icon {
    width: 20px;
    height: 20px;
}
/* Code styling */
code {
    font-family: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace;
    background: var(--bg-code);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    color: var(--color-code);
    font-size: 0.9em;
}
pre {
    background: var(--bg-code);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    max-width: 100%;
}
pre code {
    background: none;
    padding: 0;
}
/* Focus indicators for accessibility (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-brand-purple);
    outline-offset: 2px;
    border-radius: 4px;
}
a:focus-visible {
    background: rgba(107, 87, 255, 0.1);
}
/* Skip link for keyboard users (WCAG 2.4.1) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-brand-purple);
    color: var(--color-primary);
    padding: 8px 16px;
    z-index: 1001;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}
.skip-link:focus {
    top: 0;
}
/* Page-specific styles will be in block */

/* Home page styles */
    
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
    width: 100%;
}
.hero-content {
    width: 100%;
}
.hero-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.25rem 0 1.5rem;
}
.hero-cards-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hero-cards-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-card,
.about-content,
.whatsnew-banner,
.cta-card,
.video-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-align: left;
    display: flex;
    flex-direction: column;
}
.hero-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}
.hero-card p {
    font-size: 0.95rem;
    color: var(--color-tertiary);
    line-height: 1.5;
}
.hero-card-cta {
    margin-top: auto;
    padding-top: 0.5rem;
}

/* "Book a PoC" anchors to #support, the last section on the page.
 *
 * Constraint: for the browser to scroll the section title to
 * `scroll-margin-top: 4rem` (just under the sticky `.nav`), the
 * page must be tall enough — at least `supportTopY + viewportH -
 * 4rem` total. On small viewports (1080p and below) the natural
 * section + footer already provide enough page height; on 1440p,
 * ultrawide and 4K the page bottoms out before the title reaches
 * the desired position, so the section title gets stuck mid-page
 * after the click.
 *
 * Fix: when (and only when) the user has navigated here via the
 * URL hash, `min-height: 100vh` makes the section itself one
 * viewport tall. That guarantees enough scroll runway on any
 * screen size for the title to land cleanly under the nav. The
 * visible empty space between the content card and the footer
 * grows naturally with viewport — a side-effect of using vh
 * units, and the price of making navigation work on huge screens.
 *
 * Without the hash, no min-height applies and the section sits
 * tight against the footer at its natural content height. */
#support {
    scroll-margin-top: 4rem;
}
#support:target {
    min-height: 100vh;
}
/* Make the PoC card itself visually pop more than the default
 * `.about-content` (rgba 0.06 → 0.12 background, stronger border,
 * subtle brand-tinted glow). Helps it stand out on a long page and
 * — when `:target` adds 100vh of section height for the navigation
 * fix above — keeps the eye on the actual content card instead of
 * letting it blend into the empty section area below. */
#support .about-content {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(107, 87, 255, 0.35);
    box-shadow: 0 0 0 1px rgba(107, 87, 255, 0.1),
                0 8px 32px rgba(0, 0, 0, 0.25);
}
.hero {
    text-align: center;
    max-width: 980px;
    margin: 0 auto 3rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
    .logo {
width: 120px;
height: 120px;
margin-bottom: 2rem;
    }
    h1 {
font-size: 2.5rem;
margin-bottom: 0.75rem;
background: var(--gradient-brand);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
    }
    .tagline {
font-size: 1.2rem;
color: var(--color-tertiary);
margin-bottom: 0.75rem;
line-height: 1.6;
    }
        .cta-buttons {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
    }
    h2 {
font-size: 1.5rem;
margin-bottom: 1.5rem;
color: var(--color-secondary);
text-align: center;
    }
        .whatsnew-banner {
background: linear-gradient(135deg, rgba(107, 87, 255, 0.15) 0%, rgba(254, 40, 87, 0.15) 100%);
border: 1px solid rgba(107, 87, 255, 0.25);
border-radius: 12px;
padding: 1.5rem 2rem;
backdrop-filter: blur(10px);
    }
    .whatsnew-header {
text-align: center;
margin-bottom: 0.75rem;
    }
    .whatsnew-label {
display: inline-block;
background: var(--gradient-brand);
color: var(--color-primary);
padding: 0.2rem 0.6rem;
border-radius: 4px;
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
    }
    .whatsnew-list {
list-style: none;
    }
    .whatsnew-item {
display: flex;
gap: 1rem;
padding: 0.35rem 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .whatsnew-item:last-child {
border-bottom: none;
padding-bottom: 0;
    }
    .whatsnew-item:first-child {
padding-top: 0;
    }
    .whatsnew-date {
color: var(--color-quaternary);
font-size: 0.85rem;
white-space: nowrap;
min-width: 90px;
    }
    .whatsnew-text {
color: var(--color-secondary);
font-size: 0.95rem;
line-height: 1.4;
    }
        
.about-section,
.whatsnew-section,
.videos-section,
.cta-section,
.feedback-section {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 2rem auto;
    text-align: left;
}

.about-content {
background: rgba(255, 255, 255, 0.06);
border-radius: 12px;
padding: 2rem 2.5rem;
text-align: left;
    }
    .about-content p {
color: var(--color-tertiary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}
    .about-content p:last-child {
margin-bottom: 0;
    }
    .features-list {
list-style: none;
margin: 1rem 0;
    }
    .features-list li {
color: var(--color-tertiary);
padding: 0.45rem 0;
padding-left: 1.5rem;
position: relative;
line-height: 1.55;
    }
.features-list li::before {
    content: "\2192";
    position: absolute;
    left: 0;
    top: 0.45rem;
    color: var(--color-brand-purple);
}
.whatsnew-banner {
    text-align: left;
}
    .agents-list {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 1rem;
    }
    .agent-badge {
background: rgba(107, 87, 255, 0.2);
color: var(--color-link);
padding: 0.25rem 0.75rem;
border-radius: 20px;
font-size: 0.85rem;
    }
    .version-badge {
display: inline-block;
background: rgba(107, 87, 255, 0.3);
color: var(--color-code);
padding: 0.25rem 0.75rem;
border-radius: 20px;
font-size: 0.9rem;
margin-bottom: 0.75rem;
text-decoration: none;
    }
    a.version-badge:hover {
text-decoration: none;
background: rgba(107, 87, 255, 0.5);
    }
    .version-badge-sup {
font-size: 0.35em;
vertical-align: super;
margin-bottom: 0;
-webkit-text-fill-color: var(--color-code);
background-clip: unset;
-webkit-background-clip: unset;
    }
.cta-card {
background: rgba(255, 255, 255, 0.06);
border-radius: 12px;
padding: 1.5rem 2rem;
text-align: left;
}
    .cta-card h3 {
font-size: 1.3rem;
margin-bottom: 0.75rem;
color: var(--color-primary);
    }
    .cta-card p {
color: var(--color-tertiary);
margin-bottom: 1.5rem;
line-height: 1.6;
    }
    .cta-card .btn {
margin: 0.5rem;
    }
    
.section-title {
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    color: var(--color-secondary);
    text-align: left;
}

.learn-more-link {
color: #a0a0ff;
text-decoration: none;
    }
    .learn-more-link:hover {
text-decoration: underline;
    }
/* Videos carousel */
.videos-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(107, 87, 255, 0.5) rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    margin-right: -2rem;
    padding-right: 2rem;
}
.videos-carousel::-webkit-scrollbar {
    height: 6px;
}
.videos-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.videos-carousel::-webkit-scrollbar-thumb {
    background: rgba(107, 87, 255, 0.5);
    border-radius: 3px;
}
.videos-carousel::-webkit-scrollbar-thumb:hover {
    background: rgba(107, 87, 255, 0.7);
}
.videos-carousel .video-card {
    flex: 0 0 240px;
    scroll-snap-align: start;
}
.video-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.video-card a {
    text-decoration: none;
    color: inherit;
}
.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    background: #000;
}
.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}
.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}
.video-play-overlay svg {
    width: 28px;
    height: 28px;
    color: white;
    margin-left: 3px;
}
.video-card:hover .video-play-overlay {
    background: rgba(254, 40, 87, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}
.video-info {
    padding: 1rem;
}
.video-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}
.video-meta {
    font-size: 0.8rem;
    color: var(--color-quaternary);
}
/* View more card in carousel */
.view-more-card {
    background: linear-gradient(135deg, rgba(107, 87, 255, 0.2) 0%, rgba(254, 40, 87, 0.2) 100%);
    border: 1px solid rgba(107, 87, 255, 0.3);
    display: flex;
    align-items: stretch;
}
.view-more-card:hover {
    transform: translateY(-4px);
    border-color: rgba(107, 87, 255, 0.5);
}
.view-more-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 200px;
}
.view-more-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}
.view-more-icon {
    width: 48px;
    height: 48px;
    color: var(--color-brand-purple);
    opacity: 0.8;
}
.view-more-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
}
.view-more-count {
    font-size: 0.85rem;
    color: var(--color-quaternary);
}
.videos-box {
    padding: 1.5rem 2rem;
    overflow: hidden;
}
                    
    /* Responsive design */
    @media (max-width: 768px) {
        .hero {
            margin-bottom: 3rem;
        }
h1 {
    font-size: 2rem;
}
.tagline {
    font-size: 1rem;
}
.logo {
    width: 100px;
    height: 100px;
}
.cta-buttons {
    flex-direction: column;
    align-items: stretch;
}
.cta-buttons .btn {
    width: 100%;
    justify-content: center;
}
.whatsnew-section,
.about-section,
.cta-section,
.videos-section,
.feedback-section {
    margin-bottom: 2rem;
}
.whatsnew-banner {
    padding: 1rem;
}
.whatsnew-item {
    flex-direction: column;
    gap: 0.25rem;
}
.whatsnew-date {
    min-width: auto;
}
.about-content {
    padding: 1.5rem 2rem;
}
.cta-card {
    padding: 1.5rem;
}
.videos-carousel .video-card {
    flex: 0 0 200px;
}
    }

    @media (max-width: 480px) {
h1 {
    font-size: 1.75rem;
}
.tagline {
    font-size: 0.95rem;
}
.whatsnew-banner {
    padding: 0.75rem;
}
.about-content {
    padding: 1.5rem;
}
.cta-card {
    padding: 1.25rem;
}
    }

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }    .hero-content {
        order: 1;
    }
    .hero-cards {
        grid-template-columns: 1fr;
    }
    .hero-cards-two {
        grid-template-columns: 1fr;
    }
    .hero-cards-three {
        grid-template-columns: 1fr;
    }
}

.feedback-section p {
    color: var(--color-tertiary);
    margin-bottom: 0.5rem;
}
.feedback-section a {
    color: var(--color-link);
}

/* Page content (single pages like release notes) */
.page-content {
    max-width: 800px;
    width: 100%;
}
.page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-content h2 {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.page-content h3 {
    font-size: 1.2rem;
    color: var(--color-secondary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.page-content p,
.page-content ul,
.page-content ol {
    color: var(--color-tertiary);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.page-content ul,
.page-content ol {
    padding-left: 1.5rem;
}
.page-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.page-content pre {
    overflow-x: auto;
    max-width: 100%;
}
.page-content code {
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    display: block;
    overflow-x: auto;
    max-width: 100%;
}
.page-content th {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 2px solid rgba(107, 87, 255, 0.3);
    color: var(--color-secondary);
    font-weight: 600;
}
.page-content td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-tertiary);
    vertical-align: top;
}
.page-content tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}
.page-content .note {
    background: rgba(107, 87, 255, 0.1);
    border-left: 3px solid var(--color-brand-purple);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}
.page-content .note p {
    margin: 0;
    color: var(--color-secondary);
}
.page-content .note strong {
    color: var(--color-primary);
}
.page-content .warning {
    background: rgba(254, 40, 87, 0.1);
    border-left: 3px solid var(--color-brand-pink);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}
.page-content .warning p {
    margin: 0;
    color: var(--color-secondary);
}
.page-content .warning strong {
    color: var(--color-brand-pink);
}
.page-content .success {
    background: rgba(40, 167, 69, 0.15);
    border-left: 3px solid #28a745;
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}
.page-content .success p {
    margin: 0;
    color: var(--color-secondary);
}
.page-content .success strong {
    color: #5cb85c;
}

/* Docs layout */
.docs-layout {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
}
.docs-sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
}
.docs-sidebar h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-quaternary);
    margin-bottom: 1rem;
}
.docs-sidebar ul {
    list-style: none;
}
.docs-sidebar li {
    margin-bottom: 0.5rem;
}
.sidebar-group {
    margin-bottom: 0.5rem;
}
.sidebar-group + .sidebar-group {
    margin-top: 1.25rem;
}
.sidebar-group-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--color-quaternary);
    margin-bottom: 0.35rem;
    padding-left: 1rem;
}
.docs-sidebar a {
    color: var(--color-tertiary);
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    padding: 0.5rem 0;
    border-left: 2px solid transparent;
    padding-left: 1rem;
    transition: all 0.2s;
}
.docs-sidebar a:hover {
    color: var(--color-primary);
    text-decoration: none;
}
.docs-sidebar a.active {
    color: var(--color-primary);
    border-left-color: var(--color-brand-purple);
    background: rgba(107, 87, 255, 0.1);
}
.docs-content {
    flex: 1;
    min-width: 0;
    max-width: 800px;
}
.docs-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.docs-content h2 {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}
.docs-content h3 {
    font-size: 1.2rem;
    color: var(--color-secondary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.docs-content p,
.docs-content ul,
.docs-content ol {
    color: var(--color-tertiary);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.docs-content ul,
.docs-content ol {
    padding-left: 1.5rem;
}
.docs-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    display: block;
    overflow-x: auto;
    max-width: 100%;
}
.docs-content th {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 2px solid rgba(107, 87, 255, 0.3);
    color: var(--color-secondary);
    font-weight: 600;
}
.docs-content td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-tertiary);
    vertical-align: top;
}
.docs-content tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}
.docs-content pre {
    overflow-x: auto;
    max-width: 100%;
}
.docs-content code {
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.docs-content .note {
    background: rgba(107, 87, 255, 0.1);
    border-left: 3px solid var(--color-brand-purple);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}
.docs-content .note p {
    margin: 0;
    color: var(--color-secondary);
}
.docs-content .note strong {
    color: var(--color-primary);
}


@media (max-width: 900px) {
    .docs-layout {
        flex-direction: column;
    }
}
/* Docs layout responsive */
@media (max-width: 900px) {
    .docs-sidebar {
        width: 100%;
        position: static;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    .docs-sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .docs-sidebar a {
        padding: 0.5rem 1rem;
        border-left: none;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.05);
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .docs-sidebar a.active {
        background: rgba(107, 87, 255, 0.2);
    }
}

/* Docs listing page */
.docs-header {
    text-align: center;
    max-width: 700px;
    margin-bottom: 3rem;
}
.docs-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.docs-header p {
    color: var(--color-tertiary);
    font-size: 1.1rem;
    line-height: 1.6;
}
.docs-groups {
    width: 100%;
    max-width: 900px;
}
.docs-group-section {
    margin-bottom: 2rem;
}
.docs-group-section + .docs-group-section {
    margin-top: 2.5rem;
}
.docs-group-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--color-quaternary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}
.doc-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.doc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(107, 87, 255, 0.2);
    text-decoration: none;
}
.doc-card h2,
.doc-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
    text-align: left;
}
.doc-card p {
    color: var(--color-tertiary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}
.doc-card .arrow {
    color: var(--color-brand-purple);
    margin-top: 1rem;
    display: block;
    font-size: 0.9rem;
}

.releases-footer {
    width: 100%;
    max-width: 900px;
    margin-top: 2.5rem;
}

.releases-footer-title {
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.releases-footer-grid .doc-card p + p {
    margin-top: 0.75rem;
}

/* Benchmark panel -- dark terminal look with JetBrains Mono */
.benchmark-panel {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    font-family: 'JetBrains Mono', 'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace;
}
.benchmark-panel .section-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}
.benchmark-subtitle {
    color: var(--color-tertiary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}
.benchmark-footnote {
    margin-top: 0.75rem;
    color: #888;
    font-size: 0.8rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}
.benchmark-table-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
}
.benchmark-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.benchmark-table th {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    font-weight: 600;
    white-space: nowrap;
}
.benchmark-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #bbb;
}
.benchmark-table tr:hover td {
    background: rgba(255, 255, 255, 0.04);
}
.benchmark-faster {
    color: #4caf50;
}
.benchmark-case {
    font-family: monospace;
    font-size: 0.85em;
    opacity: 0.8;
}
@media (max-width: 768px) {
    .benchmark-panel {
        padding: 1.25rem 0.75rem;
    }
    .benchmark-table-wrapper {
        margin: 0.75rem -0.5rem;
    }
    .benchmark-table {
        font-size: 0.75rem;
        min-width: 480px;
    }
    .benchmark-table th,
    .benchmark-table td {
        padding: 0.4rem 0.5rem;
    }
}
@media (max-width: 480px) {
    .code-example {
        font-size: 0.72rem;
        padding: 0.75rem;
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        border-radius: 0;
    }
}

/* Consulting note */
.about-content p.consulting-note {
    background: rgba(107, 87, 255, 0.08);
    border-left: 3px solid var(--color-brand-purple);
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Support section */
.support-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}
@media (max-width: 480px) {
    .support-links {
        flex-direction: column;
    }
    .support-links .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Heart icons */
.heart-icon {
    width: 20px;
    height: 20px;
    color: #e25555;
    vertical-align: middle;
    margin-right: 0.25rem;
    display: inline;
}
.heart-icon-btn {
    color: #e25555;
}
.nav-heart {
    width: 16px;
    height: 16px;
    color: #e25555;
}
.nav-heart-mobile {
    display: none;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}
.nav-heart-mobile .nav-heart {
    width: 22px;
    height: 22px;
}
@media (max-width: 768px) {
    .nav-heart-mobile {
        display: flex;
    }
}
.nav-support {
    color: var(--color-tertiary);
}
.nav-support:hover {
    color: #e25555;
}

/* Card links */
.card-link {
    color: inherit;
    text-decoration: none;
}
.card-link:hover {
    text-decoration: underline;
    color: var(--color-link);
}

/* Code example block */
.code-example {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    margin: 1rem 0;
    font-size: 0.85rem;
    line-height: 1.6;
}
.code-example code {
    background: none;
    padding: 0;
    color: var(--color-tertiary);
    font-size: 0.85rem;
}

/* ── devrig brand badge in the top-left nav (next to "MCP Steroid") ───────── */
.nav-devrig {
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    color: var(--color-primary);
    background: var(--gradient-brand);
    padding: 3px 7px;
    border-radius: 6px;
    white-space: nowrap;
    align-self: center;
}
@media (max-width: 480px) {
    .nav-container { padding-left: 0.9rem; padding-right: 0.9rem; }
    .nav-devrig { font-size: 0.62rem; padding: 2px 5px; }
    .nav-brand { gap: 0.4rem; }
    .nav-title { font-size: 1rem; }
}

/* ── Footer copyright ─────────────────────────────────────────────────────── */
.footer-copyright {
    margin-top: 1rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--color-quaternary);
    padding: 0 1rem;
}
.footer-copyright a {
    color: var(--color-link);
    text-decoration: none;
}
.footer-copyright a:hover { text-decoration: underline; }
