/* ==========================================================================
   Leir Engine — INSPIRIO-Inspired Modern Dark Theme with Translucent Violet
   Designed for leir256studios
   ========================================================================== */

:root {
    --bg-main: #090b11;
    --bg-secondary: #0f121d;
    --bg-card: rgba(18, 22, 36, 0.75);
    --bg-card-hover: rgba(26, 32, 52, 0.9);
    --border-glass: rgba(139, 92, 246, 0.22);
    --border-glass-glow: rgba(168, 85, 247, 0.55);

    --accent-violet: #8b5cf6;
    --accent-violet-light: #a855f7;
    --accent-violet-glow: rgba(139, 92, 246, 0.45);
    --accent-purple-deep: #6d28d9;
    --accent-purple: #c084fc;
    --accent-blue-indigo: #4f46e5;
    
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background Ambient Glows (Cosmic Navy & Violet Layer) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(circle at 15% 15%, rgba(109, 40, 217, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 55%, rgba(139, 92, 246, 0.14) 0%, transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(79, 70, 229, 0.12) 0%, transparent 55%);
}

.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.glow-top {
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 520px;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.35) 0%, rgba(79, 70, 229, 0.15) 60%, transparent 100%);
}

.glow-middle {
    top: 38%;
    right: -150px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.22) 0%, rgba(109, 40, 217, 0.08) 60%, transparent 70%);
}

.glow-bottom {
    bottom: 15%;
    left: -150px;
    width: 750px;
    height: 750px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.22) 0%, rgba(139, 92, 246, 0.1) 60%, transparent 70%);
}

/* Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    position: relative;
    z-index: 1;
}

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

.gradient-text {
    background: linear-gradient(135deg, #ffffff 20%, #d8b4fe 60%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent-text {
    color: var(--accent-violet-light);
}

/* Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 11, 17, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-fast);
}

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

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    transition: var(--transition-fast);
}

.brand-wrapper:hover .brand-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px var(--accent-violet-glow));
}

.brand-fallback {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-box {
    width: 38px;
    height: 38px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.logo-symbol {
    color: var(--accent-violet);
    font-size: 20px;
    font-weight: 800;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: #ffffff;
    text-shadow: 0 0 12px var(--accent-violet-glow);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 22px;
    font-size: 0.92rem;
    font-family: var(--font-sans);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 30px;
    font-size: 1.02rem;
}

.btn-primary {
    background: linear-gradient(135deg, #9333ea 0%, #7928ca 50%, #6366f1 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(147, 51, 234, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-glass {
    background: rgba(168, 85, 247, 0.08);
    color: #ffffff;
    border: 1px solid var(--border-glass-glow);
    backdrop-filter: blur(12px);
}

.btn-glass:hover {
    background: rgba(168, 85, 247, 0.16);
    border-color: var(--accent-violet-light);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
}

/* Hero Section */
.hero-section {
    padding: 0 0 60px 0;
    text-align: center;
    position: relative;
}

.hero-logo-banner {
    --banner-logo-height: clamp(44px, 6vw, 68px);
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 3vw, 40px);
    padding: 24px 20px;
    box-sizing: border-box;
}

.hero-logo-main,
.hero-logo-img {
    height: calc(var(--banner-logo-height) * 0.88);
    width: auto;
    max-width: 45vw;
    object-fit: contain;
    display: block;
}

.hero-logo-left {
    height: var(--banner-logo-height);
    width: auto;
    max-width: 25vw;
    object-fit: contain;
    display: block;
    margin-right: clamp(8px, 1.2vw, 16px);
}

.hero-logo-right {
    height: var(--banner-logo-height);
    width: auto;
    max-width: 20vw;
    object-fit: contain;
    display: block;
}

.hero-container {
    padding-top: 48px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a855f7;
    box-shadow: 0 0 10px #a855f7;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(168, 85, 247, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

.badge-text {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #e9d5ff;
}


.hero-title {
    font-size: clamp(1.85rem, 3.4vw, 2.85rem);
    line-height: 1.25;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    letter-spacing: -0.015em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 780px;
    margin: 0 auto 36px auto;
    font-weight: 300;
    line-height: 1.75;
}

.hero-subtitle strong {
    color: var(--text-primary);
    font-weight: 500;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

/* Specs Strip */
.hero-specs-strip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 16, 28, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    padding: 12px 30px;
    backdrop-filter: blur(16px);
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spec-label {
    font-size: 0.68rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.spec-value {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
}

.spec-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
}

/* Editor Showcase Header (Ported from Page 1) */
.editor-showcase-header {
    text-align: center;
    margin-top: 45px;
    margin-bottom: 28px;
}

.editor-showcase-header .hero-badge {
    margin-bottom: 45px;
}

.editor-showcase-title {
    font-size: clamp(1.65rem, 2.8vw, 2.35rem);
    font-weight: 700;
    color: #ffffff;
    margin-top: 14px;
    margin-bottom: 10px;
}

.editor-showcase-lead {
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.65;
    font-weight: 300;
}

/* ===============================================================
   PRIMARY EDITOR CAROUSEL (PORTED FROM PAGE 1)
=============================================================== */
.carousel-container-styled {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(24, 28, 46, 0.7), rgba(12, 15, 26, 0.9));
    border: 1px solid var(--border-glass);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(138, 43, 226, 0.2);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.carousel-fade-container {
    position: relative;
    width: 100%;
    height: 630px;
    background: #06070c;
    overflow: hidden;
}

.carousel-fade-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #06070c;
    z-index: 1;
}

.carousel-fade-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.carousel-fade-item .carousel-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: #06070c;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.carousel-fade-item .carousel-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    background: #06070c;
    display: block;
}

.carousel-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(6, 8, 14, 0.92);
    padding: 1.3rem 2.2rem 1.1rem 2.2rem;
    text-align: left;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 2px solid #84848C;
    z-index: 5;
}

.carousel-caption-overlay .badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.carousel-caption-overlay .badge-tag {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 4px;
    background: rgba(168, 85, 247, 0.2);
    color: #e9d5ff;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.carousel-caption-overlay .sub-tag {
    font-size: 0.76rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 9px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.carousel-caption-overlay h4 {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
    color: #ffffff;
    font-weight: 700;
}

.carousel-caption-overlay p {
    color: #cbd5e1;
    font-size: 0.92rem;
    margin-bottom: 0;
    max-width: 820px;
    line-height: 1.5;
    font-weight: 300;
}

/* Custom Nav Buttons */
.custom-carousel-btn {
    width: 48px;
    height: 48px;
    background: rgba(14, 18, 32, 0.85);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: var(--transition-smooth);
    z-index: 10;
    cursor: pointer;
}

.custom-carousel-btn:hover {
    background: rgba(139, 92, 246, 0.45);
    border-color: #a855f7;
    color: #ffffff;
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.carousel-btn-prev {
    left: 20px;
}

.carousel-btn-next {
    right: 20px;
}

/* Indicators */
.carousel-indicators-styled {
    position: absolute;
    bottom: 20px;
    right: 28px;
    display: flex;
    gap: 8px;
    z-index: 12;
}

.carousel-indicators-styled .ind-btn {
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition-smooth);
    padding: 0;
}

.carousel-indicators-styled .ind-btn.active {
    background-color: var(--accent-violet-light);
    width: 42px;
    opacity: 1;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
}

@media (max-width: 1024px) {
    .carousel-fade-container {
        height: 550px;
    }
}

@media (max-width: 768px) {
    .carousel-fade-container {
        height: clamp(380px, 52vh, 450px);
    }
    .carousel-fade-item .carousel-img-wrapper img {
        object-fit: cover;
    }
    .carousel-caption-overlay {
        padding: 1.2rem 1.4rem 1rem 1.4rem;
    }
    .carousel-caption-overlay h4 {
        font-size: 1.15rem;
    }
    .carousel-caption-overlay p {
        font-size: 0.82rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .custom-carousel-btn {
        width: 38px;
        height: 38px;
    }
    .carousel-btn-prev { left: 10px; }
    .carousel-btn-next { right: 10px; }
    .carousel-indicators-styled {
        bottom: 12px;
        right: 14px;
    }
}

/* Hero Showcase Frame (Inspirio UI preview box) */
.hero-showcase-frame {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(15, 13, 23, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(138, 43, 226, 0.2);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(20px);
}

.window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(25, 22, 38, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.window-title {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.window-meta {
    display: flex;
    gap: 10px;
}

.tag-status, .tag-rhi {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.tag-status {
    background: rgba(168, 85, 247, 0.2);
    color: #e9d5ff;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.tag-rhi {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.window-viewport {
    position: relative;
    width: 100%;
    min-height: 480px;
    background: #08070d;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: var(--transition-smooth);
}

/* Fallback mockup when local image isn't yet present */
.window-viewport.has-placeholder .fallback-canvas-overlay,
.window-viewport:not(:has(img[src*=".png"])) .fallback-canvas-overlay {
    opacity: 1;
}

.fallback-canvas-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, #151128 0%, #08070e 80%);
    background-size: 30px 30px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    pointer-events: none;
}

.canvas-mock-hud {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hud-chip {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    backdrop-filter: blur(8px);
}

.hud-chip.highlight {
    border-color: var(--accent-violet-light);
    color: #e9d5ff;
}

/* Glass Panels */
.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--bg-card-hover);
}

/* Core Architecture & Explicit RHI Section (Ported from Page 1) */
.section-badge-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.badge-alpha {
    background: rgba(139, 92, 246, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.45);
    color: #d8b4fe;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.text-violet {
    color: var(--accent-violet-light) !important;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.rhi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .rhi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .rhi-grid {
        grid-template-columns: 1fr;
    }
}

.rhi-col {
    display: flex;
}

/* Glass Cards for RHI & Features */
.card-glass {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 1.85rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.card-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-glass:hover {
    background: var(--bg-card-hover);
    border-color: rgba(168, 85, 247, 0.55);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(139, 92, 246, 0.2);
}

.card-glass:hover::before {
    opacity: 1;
}

.card-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.16);
    border: 1px solid rgba(139, 92, 246, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent-violet-light);
    margin-bottom: 1.25rem;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.card-icon-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
}

.card-icon-group .card-icon-box {
    margin-bottom: 0;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.card-glass p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.65;
    font-weight: 300;
    flex-grow: 1;
}

.tech-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.25rem;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-family: var(--font-mono);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.tech-tag:hover {
    background: rgba(139, 92, 246, 0.22);
    border-color: rgba(168, 85, 247, 0.5);
    color: #ffffff;
}

/* Section Common Styles */
.section-block {
    padding: 90px 0;
    position: relative;
}

.alternate-bg {
    background: linear-gradient(180deg, rgba(15, 18, 29, 0.6) 0%, rgba(9, 11, 17, 0.85) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-badge {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent-violet-light);
    margin-bottom: 14px;
    text-transform: uppercase;
}

.section-heading {
    font-size: clamp(2rem, 3.8vw, 3rem);
    margin-bottom: 18px;
    max-width: 820px;
}

.section-heading-sm {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 8px;
}

.section-lead {
    font-size: 1.12rem;
    color: var(--text-secondary);
    max-width: 780px;
    margin-bottom: 48px;
}

/* Architecture Layout */
.architecture-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.arch-card {
    padding: 36px;
}

.arch-card-header {
    margin-bottom: 18px;
}

.badge-accent {
    display: inline-block;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(168, 85, 247, 0.15);
    color: #e9d5ff;
    border: 1px solid rgba(168, 85, 247, 0.3);
    margin-bottom: 10px;
}

.arch-card h4 {
    font-size: 1.45rem;
}

.arch-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.98rem;
}

.platform-matrix {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.platform-chip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.platform-chip .os {
    color: #ffffff;
    font-weight: 600;
}

.platform-chip .backend {
    color: #c084fc;
}

.platform-chip.roadmap {
    opacity: 0.65;
    border-style: dashed;
}

.feature-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-bullets li {
    position: relative;
    padding-left: 24px;
    color: var(--text-secondary);
    font-size: 0.94rem;
}

.feature-bullets li::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-violet-light);
    font-size: 0.8rem;
}

.feature-bullets strong {
    color: #ffffff;
}

/* Feature 2-Column (Jolt & Hybrid ECS) */
.feature-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.feature-box {
    padding: 38px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--accent-violet-light);
    margin-bottom: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feature-box h3 {
    font-size: 1.45rem;
    margin-bottom: 14px;
}

.feature-box p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Game Reference Showcase Cards (Jolt PS5 & Next-Gen Validation) */
.game-ref-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-ref-media {
    position: relative;
    width: 100%;
    height: 310px;
    background: #06050b;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.game-ref-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.game-ref-info {
    padding: 26px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-ref-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.35;
}

.game-ref-info p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.6;
    margin-bottom: 0;
    font-weight: 300;
}

/* ==========================================================================
   Carousels (Modern Inspirio Multi-Card Responsive Track)
   ========================================================================== */
.carousel-section {
    padding: 80px 0;
    overflow: hidden;
}

.carousel-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.carousel-desc {
    color: var(--text-secondary);
    font-size: 0.98rem;
    margin-top: 6px;
}

.carousel-controls {
    display: flex;
    gap: 10px;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: #ffffff;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-btn:hover {
    background: var(--accent-violet);
    border-color: var(--accent-violet-light);
    box-shadow: 0 0 16px var(--accent-violet-glow);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 calc(50% - 12px);
    min-width: calc(50% - 12px);
}

@media (max-width: 860px) {
    .carousel-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

.slide-card {
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.slide-media {
    position: relative;
    width: 100%;
    height: 280px;
    background: #06050b;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.slide-media::after {
    content: '';
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: rgba(9, 11, 17, 0.8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cpolyline points='9 21 3 21 3 15'/%3E%3Cline x1='21' y1='3' x2='14' y2='10'/%3E%3Cline x1='3' y1='21' x2='10' y2='14'/%3E%3C/svg%3E") center no-repeat;
    border: 1px solid rgba(168, 85, 247, 0.4);
    opacity: 0;
    transform: scale(0.85);
    transition: var(--transition-fast);
    pointer-events: none;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.slide-card:hover .slide-media::after {
    opacity: 1;
    transform: scale(1);
    border-color: var(--accent-violet-light);
    box-shadow: 0 0 14px var(--accent-violet-glow);
}

.slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.slide-card:hover .slide-media img {
    transform: scale(1.04);
}

.mock-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #e9d5ff;
    backdrop-filter: blur(8px);
}

.slide-media.has-mock {
    background: radial-gradient(circle at center, #1b1633 0%, #090812 80%);
    background-size: 24px 24px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

.slide-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.slide-info h4 {
    font-size: 1.18rem;
    margin-bottom: 8px;
}

.slide-info p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.indicator-dot {
    width: 24px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.indicator-dot.active {
    background: var(--accent-violet-light);
    width: 42px;
    box-shadow: 0 0 10px var(--accent-violet-glow);
}

/* Studio Section */
.studio-card {
    padding: 56px 48px;
    position: relative;
    background: radial-gradient(circle at 90% 10%, rgba(138, 43, 226, 0.15) 0%, rgba(18, 16, 28, 0.8) 70%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.studio-lead {
    font-size: 1.25rem;
    color: #ffffff;
    max-width: 860px;
    margin-bottom: 36px;
    line-height: 1.6;
}

.studio-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 36px;
}

.detail-box {
    padding: 0;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.detail-box-content {
    flex: 1;
    min-width: 0;
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-box h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.detail-box p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

.detail-box-thumb {
    flex-shrink: 0;
    width: 175px;
    border-left: 1px solid rgba(168, 85, 247, 0.25);
    position: relative;
    overflow: hidden;
}

.detail-box-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.studio-quote-box {
    border-left: 3px solid var(--accent-violet-light);
    background: rgba(255, 255, 255, 0.02);
    padding: 24px 28px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: 36px;
}

.quote-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.studio-quote-box p {
    color: #d4d4d8;
    font-style: italic;
    font-size: 0.96rem;
    margin-bottom: 12px;
}

.quote-author {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent-violet-light);
}

.studio-cta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
}

.studio-cta-bar span {
    font-size: 1rem;
    color: var(--text-secondary);
}

.studio-cta-bar .btn {
    padding: 10px 24px;
    gap: 10px;
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 36px;
}

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

.comparison-table th, .comparison-table td {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.94rem;
}

.comparison-table th {
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.3);
}

.comparison-table .highlight-col {
    background: rgba(168, 85, 247, 0.07);
    color: #ffffff;
    font-weight: 600;
}

.badge-success {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(39, 201, 63, 0.15);
    border: 1px solid rgba(39, 201, 63, 0.3);
    color: #4ade80;
    font-size: 0.8rem;
}

/* Final CTA Section */
.final-cta-section {
    padding: 80px 0 100px 0;
}

.cta-inner {
    text-align: center;
    padding: 60px 30px;
    background: radial-gradient(circle at 50% 0%, rgba(138, 43, 226, 0.25) 0%, rgba(18, 16, 28, 0.9) 75%);
    border-color: rgba(168, 85, 247, 0.4);
}

.cta-inner h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 14px;
}

.cta-inner p {
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 30px auto;
    font-size: 1.08rem;
}

.cta-btn-group {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Footer */
.site-footer {
    background: #050609;
    border-top: 1px solid var(--border-glass);
    padding: 70px 0 35px 0;
    position: relative;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-left {
    max-width: 400px;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.footer-brand-logo {
    height: 44px;
    border-radius: 8px;
    display: block;
}

.footer-brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    line-height: 1.15;
}

.footer-brand-sub {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-violet-light);
    font-weight: 600;
    white-space: nowrap;
    margin-top: 4px;
}

.footer-tagline {
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.footer-studio-btn-wrap {
    display: flex;
    gap: 8px;
}

.btn-studio {
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
    font-weight: 600;
    padding: 0.42rem 0.9rem;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    text-decoration: none;
    white-space: nowrap;
}

.btn-studio:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--accent-violet);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.text-violet {
    color: var(--accent-violet-light) !important;
}

.footer-nav {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    flex: 1;
    justify-content: space-between;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-column h5 {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.footer-column a, .footer-column span {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--accent-violet-light);
    transform: translateX(3px);
}

.footer-col-studio {
    max-width: 290px;
}

.footer-studio-desc {
    color: #cbd5e1;
    font-size: 0.86rem;
    line-height: 1.55;
    margin-bottom: 12px;
}

.spec-box {
    background: rgba(15, 18, 32, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 10px 14px;
    transition: var(--transition-smooth);
}

.spec-box:hover {
    border-color: var(--border-glass-glow);
    background: rgba(22, 28, 48, 0.9);
}

.spec-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.footer-spec-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.84rem;
    font-family: var(--font-mono);
    display: inline-block;
    transition: var(--transition-fast);
}

.footer-spec-link:hover {
    color: var(--accent-violet-light);
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 30px 0 25px 0;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #94a3b8;
    font-size: 0.84rem;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-platforms {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #94a3b8;
    font-size: 0.84rem;
}

/* Responsiveness */
@media (max-width: 960px) {
    .architecture-layout, .feature-two-col, .studio-details-grid {
        grid-template-columns: 1fr;
    }

    .feature-two-col .card-simd { order: 1; }
    .feature-two-col .card-horizon { order: 2; }
    .feature-two-col .card-ecs { order: 3; }
    .feature-two-col .card-ds2 { order: 4; }

    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-menu.is-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        background: rgba(9, 9, 13, 0.97);
        padding: 24px;
        border-bottom: 1px solid var(--border-glass);
        gap: 18px;
    }
}

/* ==========================================================================
   Slang Shading Deep-Dive Showcase & Code Preview
   ========================================================================== */
.slang-split-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}

.slang-split-layout > * {
    min-width: 0;
    max-width: 100%;
}

.slang-text-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
}

.slang-text-column .section-heading {
    margin-bottom: 20px;
    font-size: clamp(1.8rem, 3.2vw, 2.35rem);
    line-height: 1.22;
}

.section-lead-inline {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.section-lead-inline strong {
    color: var(--text-primary);
}

.slang-features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 14px;
    width: 100%;
}

.slang-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 22px;
    width: 100%;
    box-sizing: border-box;
}

.slang-feature-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: var(--accent-violet-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

.slang-feature-content {
    flex: 1;
    min-width: 0;
}

.slang-feature-content h4 {
    font-size: 1.02rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.slang-feature-content p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
}

.slang-code-column {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

/* Code Preview Card */
.code-preview-card {
    background: #08080f;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(138, 43, 226, 0.15);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.code-header {
    background: #0e0d1a;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 0;
    box-sizing: border-box;
}

.code-header-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.code-filename {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #cbd5e1;
    margin-left: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.code-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #e9d5ff;
    flex-shrink: 0;
    white-space: nowrap;
}

.code-body {
    padding: 22px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.65;
    color: #e2e8f0;
    overflow-x: auto;
    margin: 0;
    background: #08080f;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.code-keyword { color: #c084fc; font-weight: 600; }
.code-type { color: #38bdf8; }
.code-func { color: #60a5fa; }
.code-string { color: #34d399; }
.code-number { color: #f59e0b; }
.code-comment { color: #71717a; font-style: italic; }

@media (max-width: 960px) {
    .slang-split-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .slang-text-column .section-heading {
        font-size: 1.95rem;
    }
}

@media (max-width: 600px) {
    .slang-split-layout {
        gap: 28px;
    }

    .slang-text-column .section-heading {
        font-size: 1.6rem;
    }

    .section-lead-inline {
        font-size: 0.94rem;
        line-height: 1.6;
        margin-bottom: 14px;
    }

    .slang-feature-card {
        padding: 14px 16px;
        gap: 14px;
    }

    .slang-feature-icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .slang-feature-content h4 {
        font-size: 0.96rem;
    }

    .slang-feature-content p {
        font-size: 0.84rem;
    }

    .code-header {
        padding: 10px 14px;
    }

    .code-filename {
        font-size: 0.72rem;
    }

    .code-badge {
        font-size: 0.65rem;
        padding: 2px 8px;
    }

    .code-body {
        padding: 14px 16px;
        font-size: 0.76rem;
        line-height: 1.55;
    }
}

@media (max-width: 560px) {
    .detail-box {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .detail-box-thumb {
        width: 100%;
        height: 180px;
        border-left: none;
        border-top: 1px solid rgba(168, 85, 247, 0.25);
    }
}

/* ==========================================================================
   Fullscreen Lightbox Modal (Interactive Galleries)
   ========================================================================== */
body.lightbox-open {
    overflow: hidden !important;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 4, 7, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.lightbox-container {
    position: relative;
    z-index: 2;
    width: 95vw;
    max-width: 1300px;
    max-height: 96vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    transform: scale(0.96);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-lightbox.is-open .lightbox-container {
    transform: scale(1);
}

/* Top bar: Counter & Close button */
.lightbox-top-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.lightbox-counter {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #e9d5ff;
    padding: 4px 14px;
    border-radius: var(--radius-sm);
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.35);
    letter-spacing: 0.05em;
    font-weight: 600;
}

.lightbox-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);
    color: #ffffff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.45);
    transform: scale(1.05);
}

/* Main Viewport & Navigation */
.lightbox-main {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 14px;
}

.lightbox-media-wrap {
    max-width: calc(100% - 130px);
    max-height: 66vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #06050b;
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(138, 43, 226, 0.25);
}

.lightbox-image {
    max-width: 100%;
    max-height: 66vh;
    object-fit: contain;
    display: block;
    user-select: none;
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-image.is-fading {
    opacity: 0;
    transform: scale(0.98);
}

.lightbox-nav-btn {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(18, 16, 28, 0.85);
    border: 1px solid var(--border-glass);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.lightbox-nav-btn:hover {
    background: var(--accent-violet);
    border-color: var(--accent-violet-light);
    color: #ffffff;
    box-shadow: 0 0 22px var(--accent-violet-glow);
    transform: scale(1.08);
}

/* Caption Panel */
.lightbox-caption-panel {
    max-width: 840px;
    width: 100%;
    text-align: center;
    padding: 14px 26px;
    background: rgba(10, 10, 18, 0.85);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-violet-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    font-weight: 600;
}

.lightbox-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.lightbox-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
    font-weight: 300;
}

/* Responsiveness for Lightbox */
@media (max-width: 768px) {
    .lightbox-container {
        padding: 12px 10px;
        width: 100vw;
    }

    .lightbox-main {
        gap: 8px;
    }

    .lightbox-media-wrap {
        max-width: 100%;
        max-height: 52vh;
    }

    .lightbox-image {
        max-height: 52vh;
    }

    .lightbox-nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 42px;
        height: 42px;
        background: rgba(10, 10, 18, 0.9);
    }

    .lightbox-nav-btn:hover {
        transform: translateY(-50%) scale(1.08);
    }

    .lightbox-nav-btn:active {
        transform: translateY(-50%) scale(0.96);
    }

    .lightbox-nav-btn.lightbox-prev {
        left: 8px;
    }

    .lightbox-nav-btn.lightbox-next {
        right: 8px;
    }

    .lightbox-caption-panel {
        padding: 10px 14px;
    }

    .lightbox-title {
        font-size: 1.05rem;
    }

    .lightbox-desc {
        font-size: 0.82rem;
    }
}
