/* ==============================================================
   DYSTOPIAN WAVES - SUBPAGES & PRODUCT SHOWCASE DESIGN SYSTEM
   ============================================================== */

/* Layout Container */
.subpage-layout {
    max-width: 1360px;
    margin: 0 auto;
    padding: 40px 28px 100px 28px;
}

.catalog-header {
    margin-bottom: 36px;
}

.subpage-title {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.subpage-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Filter Tab Bar (Catalog Pages) */
.filter-tab-bar {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 14px;
    overflow-x: auto;
}

.filter-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 7px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.filter-btn.active {
    background: var(--accent-cyan-dim);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.catalog-card-item {
    flex: none;
    width: 100%;
}

/* ==============================================================
   PRODUCT DETAIL PAGE: GRID & MEDIA
   ============================================================== */

.product-main-grid {
    display: grid;
    grid-template-columns: 1.28fr 0.72fr;
    gap: 36px;
    align-items: flex-start;
}

/* Video Frame (16:9) */
.product-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: #000;
    margin-bottom: 16px;
}

.product-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Video Selector Tab Bar */
.video-selector-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.video-selector-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--text-dim);
    margin-right: 4px;
}

.btn-video-tab {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-video-tab:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-video-tab.active {
    background: var(--accent-cyan-dim);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.product-image-wrap {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: #000;
    margin-bottom: 24px;
}

.product-hero-screenshot {
    width: 100%;
    height: auto;
    display: block;
}

/* ==============================================================
   LEFT COLUMN: DEDICATED PANELS
   ============================================================== */

.product-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 26px 28px;
    margin-bottom: 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s ease;
}

.product-panel:hover {
    border-color: var(--border-bright);
}

.panel-heading {
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #fff;
    margin-bottom: 14px;
}

.panel-body {
    font-size: 13.5px;
    line-height: 1.68;
    color: var(--text-muted);
}

.content-paragraph {
    font-size: 13.5px;
    line-height: 1.68;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.content-paragraph:last-child {
    margin-bottom: 0;
}

.panel-media-wrap {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: #000;
    margin-top: 10px;
}

/* ==============================================================
   CORE CAPABILITIES: SINGLE MERGED PANEL
   ============================================================== */

.capabilities-unified-stack {
    display: flex;
    flex-direction: column;
}

.capability-unified-group {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.capability-unified-group:first-child {
    padding-top: 4px;
}

.capability-unified-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.capability-group-heading {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--accent-cyan);
    letter-spacing: 0.6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.feature-bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-bullet-item {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-muted);
    position: relative;
    padding-left: 16px;
}

.feature-bullet-item strong {
    color: var(--text-main);
    font-weight: 700;
}

.feature-bullet-item::before {
    content: "■";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 7.5px;
    color: var(--accent-cyan);
}

/* ==============================================================
   SYSTEM REQUIREMENTS & DAW SUPPORT PANEL
   ============================================================== */

.reqs-columns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.req-box {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 14px 16px;
}

.req-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--text-main);
    margin-bottom: 8px;
}

.req-icon {
    color: var(--accent-cyan);
}

.req-box-text {
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-muted);
}

.req-format-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.format-chip {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--accent-cyan);
    background: var(--accent-cyan-dim);
    padding: 3px 7px;
    border-radius: 3px;
    border: 1px solid rgba(0, 229, 255, 0.25);
}

.req-bottom-span {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.req-m4l-line,
.req-daws-line {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.req-strip-label {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--accent-cyan);
}

/* ==============================================================
   RIGHT COLUMN: STICKY PURCHASE PANEL & SPACING
   ============================================================== */

.purchase-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 26px 24px;
    position: sticky;
    top: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.purchase-badge-wrap {
    margin-bottom: 12px;
}

/* Resized Title (Keeps it on 2 clean lines) */
.purchase-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.2px;
    color: #fff;
    margin-bottom: 8px;
}

/* Subtitle / Tagline */
.purchase-tagline {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 20px; /* Balanced space to price */
}

/* Price Row */
.purchase-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 18px; /* Balanced space to button */
}

.purchase-price {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
}

.price-strike {
    font-size: 14px;
    color: var(--text-dim);
    text-decoration: line-through;
}

/* Buy CTA Button */
.buy-btn {
    display: block;
    text-align: center;
    padding: 13px 20px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    border-radius: 4px;
    margin-bottom: 16px; /* Balanced space to guarantee row */
    text-decoration: none;
}

/* Instant Delivery Line */
.product-guarantee-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    margin-bottom: 22px; /* Balanced space to specs card */
}

.guarantee-dot {
    color: var(--border-bright);
    font-size: 10px;
}

/* Technical Specifications Card */
.product-specs-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 16px;
}

/* Dedicated Space Between Specs Card and Reqs Panel */
.sidebar-formats-panel {
    margin-top: 18px; /* Distinct visual separation */
}

.specs-card-title {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--text-dim);
    margin-bottom: 12px;
    display: block;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-prop {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
}

.spec-value {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-main);
    text-align: right;
    max-width: 60%;
}

/* Line 1: Windows & Mac Icons with Labels */
.sidebar-os-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
}

.sidebar-os-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-main);
}

.sidebar-os-item svg {
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.sidebar-os-sep {
    color: var(--border-bright);
    font-size: 10px;
}

/* Line 2: Format Chips */
.sidebar-formats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mini-format-pill {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--accent-cyan);
    background: var(--accent-cyan-dim);
    border: 1px solid rgba(0, 229, 255, 0.25);
    padding: 3px 8px;
    border-radius: 3px;
}

/* ==============================================================
   RESPONSIVENESS
   ============================================================== */

@media (max-width: 1024px) {
    .product-main-grid {
        grid-template-columns: 1fr;
    }

    .purchase-card {
        position: static;
        margin-top: 24px;
    }
}

@media (max-width: 768px) {
    .subpage-layout {
        padding: 30px 18px 80px 18px;
    }

    .reqs-columns-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-os-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .sidebar-os-sep {
        display: none;
    }
}

/* ==============================================================
   LITE VS PRO COMPARISON MATRIX (SHOWN ON LITE PAGES)
   ============================================================== */

.comparison-panel {
    border-color: rgba(0, 229, 255, 0.25);
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.03) 0%, var(--bg-surface) 100%);
}

.comparison-table-wrap {
    overflow-x: auto;
    margin: 16px 0 20px 0;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    text-align: left;
    min-width: 540px;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-table th {
    background: var(--bg-surface-elevated);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-dim);
}

.col-feature {
    width: 38%;
    font-weight: 700;
    color: var(--text-main);
}

.col-lite {
    width: 31%;
    color: var(--text-muted);
}

.col-pro {
    width: 31%;
    color: #fff;
    background: rgba(0, 229, 255, 0.04);
    font-weight: 700;
}

.comparison-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table tr:hover .col-pro {
    background: rgba(0, 229, 255, 0.08);
}

.pro-badge-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-cyan);
}

.pro-upgrade-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--accent-cyan);
    border-radius: 6px;
    padding: 14px 18px;
    margin-top: 16px;
    gap: 16px;
}

.pro-upgrade-text h4 {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}

.pro-upgrade-text p {
    font-size: 11.5px;
    color: var(--text-muted);
}

.btn-pro-upgrade {
    background: var(--accent-cyan);
    color: #06070a;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.8px;
    padding: 8px 16px;
    border-radius: 4px;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-pro-upgrade:hover {
    background: #33ecff;
    box-shadow: 0 0 14px var(--accent-cyan-glow);
}

/* ==============================================================
   INTERACTIVE SIGNAL FLOW / DSP ARCHITECTURE (NEUON & CELIUM II)
   ============================================================== */

.dsp-diagram-container {
    margin-top: 14px;
}

.dsp-flow-scroll {
    overflow-x: auto;
    padding-bottom: 12px;
}

.dsp-chain-track {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 620px;
}

.dsp-node-btn {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 12px 14px;
    cursor: pointer;
    flex: 1;
    min-width: 115px;
    text-align: left;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dsp-node-btn:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.dsp-node-btn.active {
    background: rgba(0, 229, 255, 0.08);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan-dim);
}

.node-idx {
    font-size: 8.5px;
    font-weight: 900;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.dsp-node-btn.active .node-idx {
    color: var(--accent-cyan);
}

.node-name {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
}

.dsp-flow-arrow {
    color: var(--border-bright);
    font-size: 12px;
    flex-shrink: 0;
    user-select: none;
}

/* DSP Inspector Box */
.dsp-node-inspector {
    margin-top: 14px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 16px;
    animation: fadeInDsp 0.25s ease;
}

@keyframes fadeInDsp {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.inspector-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.inspector-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--accent-cyan);
    letter-spacing: 0.5px;
}

.inspector-algo {
    font-size: 9.5px;
    font-weight: 800;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.inspector-desc {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.inspector-params {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.param-pill {
    font-size: 9px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 3px 8px;
    border-radius: 3px;
}
