/* ==========================================================================
   Biraj MPV Configuration - Dynamic & Responsive Documentation Stylesheet
   Modern, Clean, High-Fidelity Design
   ========================================================================== */

:root {
    /* Color Tokens */
    --bg-main: #090a0f;
    --bg-surface: #11131a;
    --bg-surface-elevated: #161922;
    --bg-card: rgba(22, 25, 34, 0.75);
    --border-subtle: #1f2330;
    --border-hover: #373e52;
    --border-accent: rgba(99, 102, 241, 0.4);

    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.25);
    --accent-emerald: #10b981;
    --accent-emerald-glow: rgba(16, 185, 129, 0.2);

    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

    /* Dynamic Fluid Radius & Spacing */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Fluid Container Max Width */
    --container-max: 1200px;
    --container-padding: clamp(1rem, 3.5vw, 2rem);

    /* Shadows & Transitions */
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Model */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
    font-size: 16px;
    scrollbar-gutter: stable;
    overflow-y: scroll;
    scrollbar-width: auto;
    scrollbar-color: #2b3145 var(--bg-main);
}

/* Custom Medium-Thick Theme Scrollbar */
::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background-color: #2a3044;
    border-radius: 999px;
    border: 2.5px solid var(--bg-main);
    transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #434c6b;
}

::-webkit-scrollbar-thumb:active {
    background-color: var(--primary);
}

::-webkit-scrollbar-corner {
    background: var(--bg-main);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: clip;
    padding-top: 70px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.modal-open {
    overflow: hidden;
}

section[id] {
    scroll-margin-top: 70px;
}

/* Fluid Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

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

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--text-primary);
}

code {
    font-family: var(--font-mono);
    font-size: clamp(0.78rem, 1.2vw, 0.88rem);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.2em 0.45em;
    border-radius: var(--radius-sm);
    color: #e0e7ff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: clamp(0.72rem, 1vw, 0.8rem);
    font-weight: 600;
    padding: 0.2em 0.55em;
    background: #1e222e;
    color: #f3f4f6;
    border: 1px solid #333a4d;
    border-bottom: 2px solid #282e3d;
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.gradient-text {
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(9, 10, 15, 0.92);
    border-bottom: 1px solid var(--border-subtle);
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-sm);
    color: #ffffff;
    box-shadow: 0 0 16px var(--primary-glow);
    flex-shrink: 0;
}

.logo-icon svg {
    width: 18px;
    height: 18px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.75rem);
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding-block: 0.25rem;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle svg {
    width: 24px;
    height: 24px;
}

/* Mobile Navigation Backdrop (Desktop default: hidden) */
.nav-backdrop {
    display: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-weight: 600;
    font-size: 0.92rem;
    padding: clamp(0.55rem, 1vw, 0.7rem) clamp(1rem, 1.8vw, 1.35rem);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
    color: #ffffff;
}

.btn-secondary {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: #1c202c;
    transform: translateY(-2px);
}

.btn-extension {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22) 0%, rgba(109, 40, 217, 0.35) 100%);
    color: #f5f3ff;
    border: 1px solid rgba(167, 139, 250, 0.45);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.2);
}

.btn-extension:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.38) 0%, rgba(109, 40, 217, 0.55) 100%);
    border-color: #c4b5fd;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.35);
}

.btn-download-nav {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 0.5rem 0.95rem;
    font-size: 0.85rem;
}

.btn-download-nav:hover {
    background: rgba(99, 102, 241, 0.22);
    color: #ffffff;
    border-color: var(--primary-light);
}

.btn-github {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
}

.btn-github:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.btn-github svg {
    width: 20px;
    height: 20px;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* ==========================================================================
   Hero Section (Dynamic Fluid Scale)
   ========================================================================== */
.hero-section {
    position: relative;
    padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4.5rem);
    text-align: center;
}

.hero-bg-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(800px, 90vw);
    height: clamp(300px, 45vh, 450px);
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(139, 92, 246, 0.08) 50%, transparent 80%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 1rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.28);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    max-width: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-emerald);
    flex-shrink: 0;
}

.badge-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0.1rem;
}

.badge-primary-text {
    font-size: clamp(0.78rem, 1.2vw, 0.85rem);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

.badge-secondary-text {
    font-size: clamp(0.7rem, 1vw, 0.76rem);
    font-weight: 500;
    color: var(--primary-light);
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(2.1rem, 5.5vw + 0.2rem, 3.75rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.hero-description {
    font-size: clamp(0.98rem, 1.5vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 740px;
    margin-inline: auto;
    margin-bottom: 2.25rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.hero-extension-banner {
    display: flex;
    justify-content: center;
    margin-bottom: 1.75rem;
    width: 100%;
}

.hero-extension-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.42rem 1rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 999px;
    font-size: clamp(0.8rem, 1.2vw, 0.88rem);
    color: var(--text-secondary);
    transition: var(--transition);
    max-width: 100%;
    text-decoration: none;
}

.hero-extension-link:hover {
    background: rgba(99, 102, 241, 0.16);
    border-color: var(--primary-light);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

.ext-banner-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.18rem 0.55rem;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    border-radius: 999px;
    flex-shrink: 0;
}

.ext-banner-text {
    font-weight: 500;
    color: inherit;
}

.ext-banner-arrow {
    transition: transform 0.2s ease;
    color: var(--primary-light);
    font-weight: 600;
    flex-shrink: 0;
}

.hero-extension-link:hover .ext-banner-arrow {
    transform: translateX(3px);
}

.hero-clone-box {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #0f121a;
    border: 1px solid var(--border-subtle);
    padding: 0.45rem 0.75rem 0.45rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
    max-width: 100%;
    overflow-x: auto;
}

.clone-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-light);
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.hero-clone-box code {
    background: none;
    border: none;
    padding: 0;
    color: #e5e7eb;
    white-space: nowrap;
}

/* Hero Showcase Frame */
.hero-preview-frame {
    max-width: min(980px, 100%);
    margin-inline: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    overflow: hidden;
}

.frame-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: #151821;
    border-bottom: 1px solid var(--border-subtle);
}

.frame-dots {
    display: flex;
    gap: 6px;
}

.frame-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #2a2e3d;
}

.frame-dots span:nth-child(1) { background: #ef4444; }
.frame-dots span:nth-child(2) { background: #f59e0b; }
.frame-dots span:nth-child(3) { background: #10b981; }

.frame-title {
    font-family: var(--font-mono);
    font-size: clamp(0.72rem, 1vw, 0.8rem);
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-inline: 0.5rem;
}

.frame-action-tag {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(16, 185, 129, 0.25);
    flex-shrink: 0;
}

.frame-image-wrapper {
    position: relative;
    cursor: zoom-in;
    background: #000000;
}

.frame-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

/* ==========================================================================
   Section Layouts
   ========================================================================== */
.section {
    padding-top: clamp(1.75rem, 3.5vw, 2.5rem);
    padding-bottom: clamp(3rem, 5vw, 4.5rem);
    border-top: 1px solid var(--border-subtle);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin-inline: auto;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-light);
    margin-bottom: 0.65rem;
}

.section-title {
    font-size: clamp(1.65rem, 3.5vw, 2.25rem);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: clamp(0.92rem, 1.2vw, 1.05rem);
    color: var(--text-secondary);
}

/* ==========================================================================
   Features Grid (Fluid Responsive)
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.feature-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    margin-bottom: 1.25rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    flex-shrink: 0;
}

.feature-icon-box svg {
    width: 22px;
    height: 22px;
}

.feature-icon-box img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.feature-title {
    font-size: clamp(1.05rem, 1.5vw, 1.15rem);
    margin-bottom: 0.65rem;
}

.feature-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Feature Card Action Container */
.feature-card-action {
    margin-top: auto;
    padding-top: 1.35rem;
    width: 100%;
    display: flex;
}

/* Dynamically Optimized & Responsive Feature Card Button */
.btn-feature-extension {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    min-height: 42px;
    padding: clamp(0.58rem, 1.2vw, 0.72rem) clamp(0.85rem, 1.8vw, 1.15rem);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.16) 0%, rgba(99, 102, 241, 0.22) 100%);
    border: 1px solid rgba(167, 139, 250, 0.38);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: clamp(0.82rem, 1.1vw, 0.88rem);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.15);
    transition: background 0.25s ease,
                border-color 0.25s ease,
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.25s ease;
    white-space: normal;
    text-align: left;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.btn-feature-extension::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn-feature-extension:hover::before {
    left: 100%;
}

.btn-feature-extension .btn-content {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    flex: 1 1 auto;
}

.btn-feature-extension .btn-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-feature-extension .btn-text {
    line-height: 1.35;
    font-weight: 600;
    color: #f3f4f6;
    transition: color 0.2s ease;
    text-wrap: balance;
}

.btn-feature-extension .btn-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: rgba(196, 181, 253, 0.85);
    margin-left: 0.5rem;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.btn-feature-extension:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.32) 0%, rgba(99, 102, 241, 0.42) 100%);
    border-color: rgba(196, 181, 253, 0.7);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.32), 0 0 14px rgba(139, 92, 246, 0.22);
}

.btn-feature-extension:hover .btn-icon {
    transform: scale(1.1);
}

.btn-feature-extension:hover .btn-text {
    color: #ffffff;
}

.btn-feature-extension:hover .btn-arrow {
    transform: translateX(4px);
    color: #ffffff;
}

.btn-feature-extension:active {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 3px 10px rgba(124, 58, 237, 0.2);
}

.btn-feature-extension:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* ==========================================================================
   Visual Gallery Grid (Fluid Responsive)
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.gallery-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.gallery-image-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #050608;
}

.gallery-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-image-box img {
    transform: scale(1.03);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(17, 19, 26, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-hover);
    color: #ffffff;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.gallery-zoom-badge svg {
    width: 16px;
    height: 16px;
}

.gallery-info {
    padding: clamp(1rem, 2vw, 1.5rem);
    flex-grow: 1;
}

.gallery-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-light);
    margin-bottom: 0.35rem;
}

.gallery-title {
    font-size: clamp(0.95rem, 1.3vw, 1.05rem);
    margin-bottom: 0.4rem;
}

.gallery-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   Installation Guide & Tabs
   ========================================================================== */
.os-tabs-container {
    max-width: 860px;
    margin-inline: auto;
}

.os-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--bg-surface);
    padding: 0.35rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.os-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem clamp(1rem, 2vw, 1.5rem);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.os-tab-btn svg {
    width: 18px;
    height: 18px;
}

.os-tab-btn.active {
    background: var(--bg-surface-elevated);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.os-content {
    display: none;
    animation: fadeIn 0.25s ease forwards;
}

.os-content.active {
    display: block;
}

.step-card {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: 1.25rem;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-light);
    font-weight: 700;
    font-size: 1.05rem;
    flex-shrink: 0;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.step-body {
    flex-grow: 1;
    min-width: 0;
}

.step-title {
    font-size: clamp(1.05rem, 1.4vw, 1.15rem);
    margin-bottom: 0.45rem;
}

.step-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.code-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0a0c12;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    gap: 0.75rem;
    overflow-x: auto;
}

.code-block code {
    background: none;
    border: none;
    padding: 0;
    color: #e2e8f0;
    white-space: nowrap;
}

.path-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    word-break: break-all;
}

.structure-preview {
    background: #0a0c12;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    overflow-x: auto;
}

.structure-preview pre {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.5;
}

/* Copy Button Styling */
.btn-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    flex-shrink: 0;
}

.btn-copy:hover {
    color: #ffffff;
    border-color: var(--border-hover);
}

.btn-copy svg {
    width: 16px;
    height: 16px;
}

.btn-copy .check-icon {
    display: none;
    color: var(--accent-emerald);
}

.btn-copy.copied .copy-icon {
    display: none;
}

.btn-copy.copied .check-icon {
    display: block;
}

/* ==========================================================================
   Shortcuts Table, Search & Dynamic Filter Pills
   ========================================================================== */
.shortcuts-search-wrapper {
    max-width: 780px;
    margin-inline: auto;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-input-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    transition: var(--transition);
}

.search-input-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 16px var(--primary-glow);
}

.search-input-box svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input-box input {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

.shortcuts-filter-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-sans);
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-pill:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.filter-pill.active {
    background: rgba(99, 102, 241, 0.18);
    color: var(--primary-light);
    border-color: rgba(99, 102, 241, 0.4);
}

.table-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    box-shadow: var(--shadow-card);
    min-height: 480px;
    transition: var(--transition);
}

.shortcuts-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    text-align: left;
    min-width: 650px;
}

.shortcuts-table col.col-key {
    width: 26%;
}

.shortcuts-table col.col-desc {
    width: 56%;
}

.shortcuts-table col.col-cat {
    width: 18%;
}

.shortcuts-table th {
    background: #141720;
    padding: 1rem clamp(1rem, 2vw, 1.5rem);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
}

.shortcuts-table td {
    padding: 1rem clamp(1rem, 2vw, 1.5rem);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.92rem;
    vertical-align: middle;
}

.shortcuts-table th:nth-child(3),
.shortcuts-table td:nth-child(3) {
    text-align: right;
}

.shortcuts-table tr:last-child td {
    border-bottom: none;
}

.shortcuts-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.badge-cat {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ==========================================================================
   Code Showcase Grid
   ========================================================================== */
.code-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.code-card {
    background: #0d0f16;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.code-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    background: #141722;
    border-bottom: 1px solid var(--border-subtle);
}

.code-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.code-card-file {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.code-card pre {
    padding: 1.25rem;
    overflow-x: auto;
    margin: 0;
}

.code-card code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.84rem;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Reference Benchmark Hardware Card */
.benchmark-card {
    margin-top: clamp(2rem, 4vw, 3rem);
    background: linear-gradient(180deg, rgba(22, 25, 34, 0.95) 0%, rgba(13, 15, 22, 0.98) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: var(--shadow-card);
}

.benchmark-header {
    margin-bottom: 1.5rem;
}

.benchmark-title {
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: 700;
    color: #ffffff;
    margin-top: 0.5rem;
    margin-bottom: 0.35rem;
}

.benchmark-subtitle {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.benchmark-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1rem;
}

.benchmark-item {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: var(--transition);
}

.benchmark-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(99, 102, 241, 0.25);
}

.benchmark-label {
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-light);
}

.benchmark-val {
    font-size: 0.88rem;
    color: #e2e8f0;
    font-weight: 500;
    line-height: 1.4;
}

/* ==========================================================================
   Credits & Acknowledgements Section
   ========================================================================== */
.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
    gap: clamp(1.25rem, 2.5vw, 2rem);
}

.credit-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.credit-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.creator-card {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, rgba(22, 25, 34, 0.8) 100%);
    border-color: rgba(99, 102, 241, 0.3);
}

.creator-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.18);
}

.credit-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.creator-badge {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.35);
}

.community-badge {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.credit-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.credit-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(99, 102, 241, 0.45);
    box-shadow: 0 0 16px var(--primary-glow);
    flex-shrink: 0;
    transition: var(--transition);
}

.creator-card:hover .credit-avatar {
    border-color: var(--primary-light);
    transform: scale(1.05);
}

.credit-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.credit-handle {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--primary-light);
}

.credit-handle:hover {
    color: #ffffff;
    text-decoration: underline;
}

.credit-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.credit-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.credit-list li {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.5;
    position: relative;
    padding-left: 1.25rem;
}

.credit-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: bold;
    font-size: 1.1rem;
}

.community-card .credit-list li::before {
    color: var(--accent-emerald);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    padding-block: clamp(3.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
    border-top: 1px solid var(--border-subtle);
    background: #07080b;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.75rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.footer-title {
    font-weight: 700;
    font-size: 1.15rem;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 480px;
}

.footer-links-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-link:hover {
    color: #ffffff;
}

.footer-bottom {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 2rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: min(1100px, 95vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75);
    border: 1px solid var(--border-hover);
}

.lightbox-caption {
    margin-top: 1rem;
    color: #f3f4f6;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

.lightbox-close {
    position: fixed;
    top: clamp(1rem, 3vw, 2.5rem);
    right: clamp(1rem, 3vw, 2.5rem);
    z-index: 2050;
    background: rgba(22, 25, 34, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.lightbox-close svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Scroll To Top Floating Button
   ========================================================================== */
.btn-scroll-top {
    position: fixed;
    bottom: clamp(1.25rem, 3.5vw, 2.25rem);
    right: clamp(1.25rem, 3.5vw, 2.25rem);
    z-index: 990;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(22, 25, 34, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(0.9);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.2s ease,
                border-color 0.2s ease,
                color 0.2s ease,
                box-shadow 0.2s ease;
}

.btn-scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.btn-scroll-top:hover {
    background: rgba(99, 102, 241, 0.22);
    border-color: var(--primary-light);
    color: #ffffff;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.35);
}

.btn-scroll-top:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-scroll-top svg {
    width: 22px;
    height: 22px;
    transition: transform 0.2s ease;
}

.btn-scroll-top:hover svg {
    transform: translateY(-2px);
}

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

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
.mobile-nav-cta {
    display: none;
}

@media (max-width: 860px) {
    .btn-download-nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: var(--radius-sm);
        border: 1px solid var(--border-subtle);
        background: var(--bg-surface-elevated);
        color: var(--text-primary);
        cursor: pointer;
        padding: 0;
        transition: var(--transition);
    }

    .mobile-toggle .icon-menu {
        display: block;
        width: 20px;
        height: 20px;
    }

    .mobile-toggle .icon-close {
        display: none;
        width: 20px;
        height: 20px;
    }

    .mobile-toggle[aria-expanded="true"] {
        background: rgba(99, 102, 241, 0.15);
        border-color: var(--primary-light);
        color: var(--primary-light);
    }

    .mobile-toggle[aria-expanded="true"] .icon-menu {
        display: none;
    }

    .mobile-toggle[aria-expanded="true"] .icon-close {
        display: block;
    }

    /* Mobile Navigation Backdrop with Background Blur */
    .nav-backdrop {
        display: block;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(9, 10, 15, 0.72);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 998;
    }

    .nav-backdrop.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.nav-open {
        overflow: hidden;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(13, 15, 22, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-bottom: 1px solid var(--border-subtle);
        flex-direction: column;
        padding: 1.25rem 1.5rem;
        gap: 0.85rem;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
        animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-link {
        font-size: 1rem;
        padding-block: 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-link:last-of-type {
        border-bottom: none;
    }

    .mobile-nav-cta {
        display: block;
        padding-top: 0.85rem;
        margin-top: 0.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .btn-mobile-dl {
        width: 100%;
        justify-content: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-extension-banner {
        width: 100%;
        margin-bottom: 1.25rem;
        padding: 0 0.25rem;
    }

    .hero-extension-link {
        width: 100%;
        max-width: 440px;
        border-radius: var(--radius-md);
        padding: 0.65rem 0.85rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.65rem;
        text-align: left;
        background: rgba(13, 15, 22, 0.95);
        border: 1px solid rgba(99, 102, 241, 0.3);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    }

    .hero-extension-link .ext-banner-tag {
        font-size: 0.68rem;
        padding: 0.16rem 0.48rem;
    }

    .hero-extension-link .ext-banner-text {
        font-size: 0.82rem;
        line-height: 1.35;
        flex: 1;
        color: var(--text-primary);
    }

    .hero-extension-link .ext-banner-arrow {
        color: var(--primary-light);
        font-size: 1rem;
        flex-shrink: 0;
    }

    .hero-clone-box {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .step-card {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .btn-feature-extension {
        padding: 0.58rem 0.8rem;
        gap: 0.45rem;
    }

    .btn-feature-extension .btn-text {
        font-size: 0.82rem;
    }

    .btn-feature-extension .btn-icon {
        width: 16px;
        height: 16px;
    }

    .btn-feature-extension .btn-arrow {
        width: 14px;
        height: 14px;
        margin-left: 0.35rem;
    }
}
