/* Demos Page Styles */
.demos-page {
    min-height: 100vh;
}

.demos-page main {
    position: relative;
    z-index: 2;
}

/* === Reset base.css globals that break demos page === */

/* Override blanket * { transition: all 0.3s ease } from base.css 
   to avoid scroll-jank and unintended side-effects */
.demos-page *,
.demos-page *::before,
.demos-page *::after {
    transition: none;
}

/* Re-enable transitions only where explicitly needed */
.demos-page .bug-report-card,
.demos-page .test-case-item,
.demos-page .expand-btn,
.demos-page .run-tests-btn,
.demos-page .test-case-header,
.demos-page .bug-details,
.demos-page .test-case-content,
.demos-page .demos-anchor-link,
.demos-page .brand-cta-primary,
.demos-page .brand-cta-secondary,
.demos-page .carousel-arrow,
.demos-page .deliverable-card,
.demos-page .test-progress-fill,
.demos-page .test-progress-container,
.demos-page .test-results,
.demos-page .logo-text,
.demos-page .logo-bug,
.demos-page nav,
.demos-page nav a,
.demos-page nav::before,
.demos-page #scrollTopBtn,
.demos-page #quickContactBtn,
.demos-page #cookie-banner button,
.demos-page .bug-report-card .bug-details {
    transition: all 0.3s ease;
}

/* Reset base.css ul styles inside demos page content */
.demos-page main ul,
.demos-page main ol {
    list-style: revert;
    padding-left: 24px;
    margin: 10px 0 0;
    max-width: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.demos-page main ul li,
.demos-page main ol li {
    background: none;
    padding: 0;
    margin-bottom: 10px;
    border-radius: 0;
    box-shadow: none;
    cursor: default;
    user-select: auto;
    border: none;
    font-size: inherit;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.demos-page main ul li::before {
    content: none;
}

.demos-page main ul li:hover,
.demos-page main ol li:hover {
    transform: none;
    box-shadow: none;
}

/* Restore ordered list numbering */
.demos-page main ol {
    list-style-type: decimal;
}

.demos-page main ul {
    list-style-type: none;
    padding-left: 0;
}

/* Hero Section - matching index.html styles */
.demos-page .hero {
    text-align: center;
    width: 100%;
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding-left: var(--page-padding-x);
    padding-right: var(--page-padding-x);
    box-sizing: border-box;
}

.demos-page .hero-headline {
    font-size: 2em;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
    margin-top: 40px;
    text-shadow: 0 0 20px var(--accent), 0 0 20px var(--accent);
    animation: dropFade 2s forwards;
}

.demos-page .hero-subtitle {
    font-size: 1.2rem;
    max-width: var(--page-text-max-width);
    margin: 0 auto;
    line-height: 1.6;
}

/* Intro Section */
.intro-section {
    width: 100%;
    max-width: var(--page-max-width);
    padding: 50px var(--page-padding-x) 0;
    margin: 0 auto 40px;
    text-align: center;
    box-sizing: border-box;
}

.intro-section,
.bug-reports-section,
.test-runner-section,
.test-cases-section,
.deliverables-section {
    position: relative;
    z-index: 2;
    margin-top: 26px;
    margin-bottom: 40px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
    background: transparent;
    width: 100%;
    max-width: var(--page-max-width);
    box-sizing: border-box;
}



.intro-section h2 {
    font-size: 1.8em;
    color: var(--accent);
    margin-bottom: 20px;
}

.intro-section p {
    font-size: 1.1em;
    max-width: var(--page-text-max-width);
    margin: 0 auto;
    line-height: 1.6;
}

.report-flow-section {
    width: 100%;
    max-width: var(--page-max-width);
    padding: 12px var(--page-padding-x) 0;
    margin: 0 auto 24px;
    text-align: center;
    box-sizing: border-box;
}

.report-flow-section h2 {
    color: var(--accent);
    margin-bottom: 18px;
    font-size: 1.6em;
}

.report-flow-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.report-flow-step {
    position: relative;
    padding: 22px 20px 20px;
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 255, 0.18);
    background: var(--glass);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: left;
}

.report-flow-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 28px;
    margin-bottom: 12px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 255, 0.18);
    background: rgba(0, 20, 30, 0.38);
    color: rgba(156, 248, 255, 0.76);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.report-flow-step h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.report-flow-step p {
    margin: 0;
    line-height: 1.55;
    text-align: left;
}

/* Bug Reports Section */
.bug-reports-section {
    padding: 50px var(--page-padding-x) 0;
    margin: 0 auto 40px;
}

.bug-reports-section h2 {
    text-align: center;
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.8em;
}

.bug-report-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 24px;
}

.bug-reports-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 44px 0 30px;
}

.bug-reports-carousel > .site-slider-status {
    position: absolute;
    top: -18px;
    left: 64px;
    right: 64px;
    z-index: 2;
}

.demos-slider-dots {
    margin-top: 18px;
}

.bug-reports-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 16px;
    flex: 1;
    align-items: stretch;
}

.bug-reports-grid.has-expanded-card {
    grid-auto-rows: auto;
    align-items: start;
}

.bug-reports-grid.has-expanded-card .bug-report-card {
    height: auto;
}

.bug-report-card {
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    background: var(--glass);
    border: 1px solid rgba(0, 255, 255, 0.22);
    border-radius: 20px;
    padding: 22px 22px 30px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.42);
    display: flex;
    flex-direction: column;
    min-height: clamp(470px, 34vw, 540px);
    height: 100%;
    overflow: hidden;
}

.bug-report-card > * {
    position: relative;
    z-index: 1;
}

.bug-report-card.expanded {
    height: auto;
    min-height: 640px;
    align-self: start;
    overflow: visible;
}

.bug-report-card .bug-header,
.bug-report-card h3,
.bug-report-card .bug-summary {
    flex-shrink: 0;
    margin-bottom: 0;
}

.bug-report-card .bug-summary {
    flex-shrink: 0;
    margin-bottom: 16px;
    line-height: 1.5;
}

.bug-report-card .bug-tags {
    flex-shrink: 0;
}

.bug-report-card .bug-basic-info {
    flex: 0 0 auto;
    margin-top: auto;
    overflow: visible;
    padding: 18px 0 0;
    min-height: 168px;
}

.bug-report-card .expand-btn {
    flex-shrink: 0;
    margin-top: 20px;
    margin-bottom: 0;
    padding: 14px;
    width: 100%;
}

.bug-report-card .bug-details {
    flex: 0 0 auto;
    min-height: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.bug-report-card .bug-details:not(.collapsed) {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 6px 6px 0 0;
    opacity: 1;
}

.bug-report-card.expanded .bug-basic-info {
    flex: 0 0 auto;
    overflow: visible;
    padding-bottom: 8px;
}

.bug-report-card.expanded .bug-details:not(.collapsed) {
    overflow: visible;
    margin-top: 18px;
    margin-bottom: 18px;
    padding-right: 0;
}

.bug-report-card:hover {
    background-color: rgba(10, 20, 30, .8);
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 0 6px 20px rgba(0, 255, 255, .4), 0 0 35px rgba(0, 255, 255, .25);
}

.bug-report-card.severity-critical,
.bug-report-card.severity-high,
.bug-report-card.severity-medium {
    border-left: none;
}

.bug-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px;
    margin-top: 10px;
    margin-bottom: 30px;
}

.bug-id {
    font-family: var(--font-mono);
    font-size: 0.9em;
    padding-top: 6px;
    padding-right: 12px;
    flex: 1 1 auto;
}

.bug-severity {
    font-weight: 600;
    font-size: 0.85em;
    padding: 9px 18px;
    border-radius: 8px;
    text-transform: uppercase;
    line-height: 1;
    margin-left: auto;
    flex-shrink: 0;
    align-self: flex-start;
}

.bug-report-card.severity-critical .bug-severity,
.bug-report-card.severity-high .bug-severity,
.bug-report-card.severity-medium .bug-severity {
    background: rgba(0, 255, 255, 0.14);
    color: #aefcff;
    border: 1px solid rgba(0, 255, 255, 0.24);
}

.bug-report-card h3 {
    font-size: 1.2em;
    margin-top: 10px;
    margin-bottom: 16px;
    padding-right: 42px;
}

.bug-summary {
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* Bug Type Icon */
.bug-type-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--font-mono);
    margin-bottom: 12px;
    background: rgba(0, 20, 32, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.2);
    text-shadow: 0 0 10px rgba(255, 143, 122, 0.18);
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.05);
}

/* Bug Tags */
.bug-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.bug-tag {
    font-size: 0.75em;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(188, 246, 248, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.18);
    font-family: var(--font-mono);
}

/* Bug Status Badge */
.bug-status {
    position: absolute;
    top: 22px;
    right: 22px;
    font-size: 0.7em;
    padding: 7px 14px;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1;
}

.bug-status-open,
.bug-status-verified {
    background: rgba(0, 255, 255, 0.12);
    color: #aefcff;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.bug-details {
    overflow: hidden;
    transition: opacity 0.3s ease, flex 0.3s ease;
    opacity: 0;
    flex: 0;
}

.bug-details:not(.collapsed) {
    opacity: 1;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 12px;
    padding-right: 4px;
}

.bug-details:not(.collapsed)::-webkit-scrollbar {
    width: 4px;
}

.bug-details:not(.collapsed)::-webkit-scrollbar-track {
    background: rgba(0, 255, 255, 0.05);
    border-radius: 2px;
}

.bug-details:not(.collapsed)::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.2);
    border-radius: 2px;
}

.bug-basic-info {
    margin-top: 16px;
}

.bug-basic-info .bug-section {
    margin-bottom: 0;
    padding: 14px 0 4px;
    border-bottom: none;
}

.bug-media-preview {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(0, 255, 255, 0.16);
    background: rgba(0, 20, 30, 0.34);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bug-media-title {
    display: block;
    margin-bottom: 10px;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(156, 248, 255, 0.76);
}

.bug-media-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bug-media-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 255, 255, 0.16);
    color: rgba(188, 246, 248, 0.92);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.bug-media-glyph {
    position: relative;
    width: 16px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid rgba(122, 255, 246, 0.7);
    box-shadow: inset 0 0 0 1px rgba(234, 242, 242, 0.92);
}

.bug-media-glyph::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 1px;
    background: rgba(15, 217, 224, 0.92);
}

.bug-media-glyph.is-video::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 0;
    height: 0;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-left: 5px solid rgba(222, 242, 243, 0.92);
    z-index: 1;
}

.bug-section {
    margin-bottom: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.bug-section:last-child {
    border-bottom: none;
}

.bug-section strong {
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
    line-height: 1.35;
}

.bug-section ol,
.bug-section ul {
    margin: 10px 0 0;
    padding-left: 24px;
    color: rgba(255, 255, 255, 0.8);
}

.bug-section li {
    margin-bottom: 10px;
    line-height: 1.55;
}

.bug-section.recommendation {
    background: rgba(0, 255, 255, 0.08);
    border-left: 3px solid rgba(0, 255, 255, 0.45);
    padding: 18px 20px;
    border-radius: 0 8px 8px 0;
    margin-top: 16px;
}

.bug-section.recommendation ul {
    margin: 10px 0 0 0;
    padding-left: 0;
    list-style: none;
}

.bug-section.recommendation li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 0.95em;
    line-height: 1.55;
}

.bug-section.recommendation li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #9cf8ff;
    font-weight: bold;
    font-size: 1.1em;
}

.bug-section code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: var(--font-mono);
    color: #9cf8ff;
}

.expand-btn {
    width: 100%;
    min-height: 62px;
    padding: 14px 18px;
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 255, 255, 0.24);
    border-radius: 10px;
    color: var(--accent);
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.3s ease;
}

.expand-btn:hover {
    background: rgba(0, 255, 255, 0.08);
}

/* Test Runner Section */
.test-runner-section {
    padding: 50px var(--page-padding-x) 0;
    margin: 0 auto 40px;
    text-align: center;
}

.test-runner-intro {
    font-size: 1.1em;
    max-width: var(--page-text-max-width);
    margin: 0 auto 12px;
    line-height: 1.6;
}

.test-runner-what-you-get {
    font-size: 0.95em;
    max-width: var(--page-text-max-width);
    margin: 0 auto 30px;
    line-height: 1.5;
}

.test-runner-what-you-get strong {
    color: var(--accent);
}

.test-runner-description {
    background: rgba(0, 255, 255, 0.06);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
    text-align: left;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.test-runner-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.test-suite-badge {
    background: rgba(0, 255, 255, 0.15);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.test-duration {
    font-size: 0.85em;
}

.test-runner-hint {
    font-size: 0.85em;
    margin: 0;
}

.test-runner-hint kbd {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 2px 8px;
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--accent);
}

.test-runner-section h2 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.8em;
}

.test-runner-section > p {
    margin-bottom: 30px;
}

.test-runner-demo {
    position: relative;
    z-index: 1;
    background: var(--glass);
    border: 1px solid rgba(0, 255, 255, 0.22);
    border-radius: 22px;
    padding: 24px;
    text-align: left;
    font-family: var(--font-mono);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.test-runner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.test-runner-title {
    color: #9cf8ff;
    font-size: 0.95em;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.18);
}

.run-tests-btn {
    padding: 12px 24px;
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.42);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1em;
    color: #b7fcff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.run-tests-btn:hover {
    background: rgba(0, 255, 255, 0.14);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.14);
    transform: translateY(-1px);
}

.run-tests-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 0.8em;
}

.run-tests-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.test-progress-container {
    margin: 16px 0;
    transition: opacity 0.3s ease;
}

.test-progress-container.hidden {
    display: none;
}

.test-progress-bar {
    height: 4px;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.test-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 191, 255, 0.85), rgba(0, 255, 255, 1));
    width: 0%;
    transition: width 0.1s linear;
}

.test-status {
    color: #9cf8ff;
    font-size: 0.9em;
}

.test-results {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    transition: opacity 0.3s ease;
}

.test-results.hidden {
    display: none;
}

.test-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 16px;
}

.test-results .stat {
    text-align: center;
}

.test-results .stat-number {
    display: block;
    font-size: 2em;
    font-weight: 600;
}

.test-results .passed .stat-number,
.test-results .failed .stat-number,
.test-results .warnings .stat-number {
    color: #9cf8ff;
}

.test-results .stat-label {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
}

.test-coverage {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.test-coverage strong {
    color: var(--accent);
}

.test-results-details {
    margin-top: 24px;
    display: grid;
    gap: 14px;
}

.test-results-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 2px;
}

.test-results-head strong {
    color: var(--accent);
    font-size: 1rem;
}

.test-results-head span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.86rem;
}

.test-findings-list {
    display: grid;
    gap: 12px;
}

.test-finding-item {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 255, 0.16);
    background: var(--glass);
    box-shadow: 0 0 12px rgba(0, 191, 255, 0.24);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.test-finding-item.finding-fail {
    border-color: rgba(0, 255, 255, 0.22);
    box-shadow: inset 3px 0 0 rgba(0, 255, 255, 0.4);
}

.test-finding-item.finding-warning {
    border-color: rgba(0, 191, 255, 0.22);
    box-shadow: inset 3px 0 0 rgba(0, 191, 255, 0.45);
}

.test-finding-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.test-finding-top strong {
    font-size: 0.98rem;
}

.test-finding-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.finding-fail .test-finding-badge {
    background: rgba(0, 255, 255, 0.12);
    color: #aefcff;
}

.finding-warning .test-finding-badge {
    background: rgba(0, 191, 255, 0.14);
    color: #9ceeff;
}

.test-finding-item p {
    margin: 0;
    line-height: 1.55;
}

.test-finding-meta {
    margin-top: 10px;
    color: rgba(156, 248, 255, 0.8);
    font-size: 0.84rem;
}

/* Test Cases Section */
.test-cases-section {
    padding: 50px var(--page-padding-x) 0;
    margin: 0 auto 40px;
}

.test-cases-section h2 {
    text-align: center;
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.8em;
}

.test-cases-section .site-slider-status {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin: 20px auto 22px;
    max-width: var(--page-max-width);
}

.test-case-accordion {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    grid-auto-rows: 1fr;
    align-items: stretch;
}

.test-case-accordion.has-expanded-card {
    grid-auto-rows: auto;
    align-items: start;
}

.test-case-accordion.has-expanded-card .test-case-item {
    height: auto;
}

.test-case-item {
    position: relative;
    z-index: 1;
    background: var(--glass);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.36);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 100%;
}

.test-case-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 1em;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}

.test-case-header::after {
    content: "▾";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: 4px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 255, 0.18);
    background: rgba(0, 255, 255, 0.06);
    color: var(--accent);
    font-size: 0.92rem;
    line-height: 1;
    flex-shrink: 0;
    transform: rotate(0deg);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.test-case-header[aria-expanded="true"]::after {
    transform: rotate(180deg);
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.28);
}

.test-case-header:hover {
    background: rgba(0, 255, 255, 0.05);
}

.test-case-id {
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85em;
    min-width: 60px;
}

.test-case-title {
    flex: 1;
}

.test-case-status {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.test-case-status.pass {
    background: rgba(0, 255, 255, 0.14);
    color: #aefcff;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.test-case-content {
    padding: 0 16px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.test-case-content.collapsed {
    max-height: 0;
    padding: 0 16px;
}

.test-case-content:not(.collapsed) {
    max-height: 800px;
    padding: 16px;
}

.test-case-field {
    margin-bottom: 12px;
}

.test-case-field strong {
    color: var(--accent);
    display: block;
    margin-bottom: 6px;
}

.test-case-field ol {
    margin: 0;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.test-case-field li {
    margin-bottom: 6px;
}

.demos-page [data-demos-section] {
    scroll-margin-top: 136px;
}

.demos-anchor-nav {
    position: sticky;
    top: 95px;
    z-index: 30;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: var(--page-max-width);
    margin: 22px auto 0;
    padding: 14px var(--page-padding-x);
    box-sizing: border-box;
    background: rgba(10, 20, 28, 0.72);
    border: 1px solid rgba(0, 255, 255, 0.14);
    border-radius: 22px;
    box-shadow: 0 0 18px rgba(0, 191, 255, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.demos-anchor-link {
    margin: 0;
    line-height: 1.2;
}

.demos-proof-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    max-width: var(--page-max-width);
    margin: 28px auto 0;
    padding: 0 var(--page-padding-x);
    box-sizing: border-box;
}

.demos-proof-card {
    background: var(--glass);
    padding: 20px 22px;
    border-radius: 14px;
    border: 1px solid rgba(0, 255, 255, 0.18);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.36);
    text-align: left;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.demos-proof-value {
    display: block;
    margin-bottom: 6px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
}

.demos-proof-label {
    line-height: 1.5;
}

.demos-section-kicker {
    margin-bottom: 12px;
    color: rgba(156, 248, 255, 0.76);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.demos-inline-cta {
    margin-top: 28px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.demos-inline-cta .brand-cta-primary {
    min-width: 280px;
}

.bug-reports-grid,
.test-case-accordion {
    position: relative;
}

.bug-report-card.is-rotating-out,
.test-case-item.is-rotating-out {
    opacity: 0;
    transform: translateY(8px);
}

.bug-report-card,
.test-case-item {
    transition: transform 0.32s ease, box-shadow 0.32s ease, opacity 0.32s ease, border-color 0.32s ease;
}

.deliverables-section {
    padding: 56px var(--page-padding-x) 0;
    margin: 0 auto 40px;
    text-align: center;
}

.deliverables-section h2 {
    color: var(--accent);
    margin-bottom: 18px;
    font-size: 1.8em;
}

.deliverables-section > p {
    max-width: var(--page-text-max-width);
    margin: 0 auto 28px;
    line-height: 1.65;
}

.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.deliverable-card {
    padding: 22px;
    border-radius: 14px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    background: var(--glass);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.36);
    text-align: left;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.deliverable-card h3 {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.deliverable-card p {
    line-height: 1.55;
}

/* Responsive */
@media (max-width: 1200px) {
    .report-flow-section {
        padding-left: var(--page-padding-x);
        padding-right: var(--page-padding-x);
    }

    .report-flow-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .demos-page .hero,
    .intro-section,
    .bug-reports-section,
    .test-runner-section,
    .test-cases-section,
    .deliverables-section,
    .demos-anchor-nav,
    .demos-proof-strip {
        padding-left: 24px;
        padding-right: 24px;
    }

    .bug-reports-grid,
    .deliverables-grid,
    .demos-proof-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .test-case-accordion {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .bug-reports-carousel {
        gap: 12px;
    }

    .bug-report-card {
        min-height: 500px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }
}

@media (max-width: 768px) {
    .report-flow-section {
        padding-left: var(--page-padding-x);
        padding-right: var(--page-padding-x);
        margin-bottom: 18px;
    }

    .report-flow-track {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .report-flow-step {
        padding: 18px 16px;
    }

    .demos-page .hero,
    .intro-section,
    .bug-reports-section,
    .test-runner-section,
    .test-cases-section,
    .deliverables-section,
    .demos-proof-strip {
        padding-left: 20px;
        padding-right: 20px;
    }

    .demos-anchor-nav {
        top: 72px;
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 4px;
        scroll-padding-left: 20px;
        scroll-padding-right: 20px;
        box-sizing: border-box;
    }

    .demos-anchor-link {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .demos-proof-strip,
    .bug-reports-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

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

    .bug-report-filters {
        justify-content: center;
        gap: 10px;
    }

    .bug-report-filters button {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .bug-report-card,
    .bug-report-card.expanded {
        min-height: 0;
        height: auto;
    }
    
    .test-stats {
        gap: 20px;
    }
    
    .test-case-header {
        flex-wrap: wrap;
    }
    
    .test-case-id {
        min-width: auto;
    }
}
