/* state-of-3d.html page styles (moved out of the page; uses tokens from /styles.css) */
/* Hero */
.hero-section {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.15) 0%, rgba(187, 134, 252, 0.1) 100%);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    border-radius: 16px;
    padding: 3rem 2rem;
    margin: 2rem 0;
    text-align: center;
}

.hero-section h2 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--accent), #bb86fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero-section .tagline {
    font-size: 1.25rem;
    color: #c0c0c0;
    margin-bottom: 0;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Content sections */
.info-section {
    background: rgba(0, 0, 0, 0.75);
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
    color: #f1f1f1;
}

.info-section h2 {
    color: var(--accent);
    margin-top: 0;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.7rem;
}

.info-section h3 {
    color: #bb86fc;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.info-section p {
    line-height: 1.8;
    color: #d0d0d0;
    margin-bottom: 1rem;
}

.info-section ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.info-section li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: #c0c0c0;
}

.info-section li strong,
.info-section p strong {
    color: var(--accent);
}

/* Short answer callout */
.short-answer {
    background: linear-gradient(135deg, rgba(187, 134, 252, 0.18) 0%, rgba(var(--accent-rgb), 0.12) 100%);
    border: 1px solid rgba(187, 134, 252, 0.35);
    border-left: 4px solid #bb86fc;
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    margin: 1.5rem 0;
}

.short-answer .label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: #bb86fc;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.short-answer p {
    margin: 0;
    font-size: 1.2rem;
    color: #f1f1f1;
    line-height: 1.6;
}

/* Image + text split layout */
.media-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin: 1.5rem 0;
}

.media-row.reverse .media-text { order: 2; }
.media-row.reverse .media-img { order: 1; }

.media-img img {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    display: block;
}

.media-caption {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.6rem;
    font-style: italic;
}

/* Poster strip */
.poster-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 130px));
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.poster-strip figure {
    margin: 0;
    text-align: center;
}

.poster-strip img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.poster-strip img:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.25);
}

.poster-strip figcaption {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #999;
}

/* Comparison table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.2);
}

.comparison-table th {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    font-weight: 600;
}

.comparison-table td {
    color: #c0c0c0;
    vertical-align: top;
}

.comparison-table tr:hover {
    background: rgba(var(--accent-rgb), 0.05);
}

/* Format cards */
.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.format-card {
    background: rgba(20, 20, 40, 0.6);
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    border-radius: 10px;
    padding: 1.5rem;
}

.format-card h4 {
    color: #bb86fc;
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.format-card p {
    color: #a0a0a0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Quality scale */
.quality-scale {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.quality-card {
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

.quality-card .q-icon { font-size: 2.2rem; margin-bottom: 0.5rem; }
.quality-card h4 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.quality-card p { margin: 0; font-size: 0.9rem; line-height: 1.55; }

.quality-card.good {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(129, 199, 132, 0.08) 100%);
    border: 1px solid rgba(76, 175, 80, 0.3);
}
.quality-card.good h4 { color: #81c784; }
.quality-card.good p { color: #a5d6a7; }

.quality-card.average {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 213, 79, 0.08) 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
}
.quality-card.average h4 { color: #ffd54f; }
.quality-card.average p { color: #ffe082; }

.quality-card.poor {
    background: linear-gradient(135deg, rgba(229, 115, 115, 0.15) 0%, rgba(239, 154, 154, 0.08) 100%);
    border: 1px solid rgba(229, 115, 115, 0.3);
}
.quality-card.poor h4 { color: #e57373; }
.quality-card.poor p { color: #ef9a9a; }

/* Highlight & quote boxes */
.highlight-box {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(129, 199, 132, 0.1) 100%);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.highlight-box p { margin: 0; color: #a5d6a7; }
.highlight-box strong { color: #81c784; }

.pull-quote {
    font-size: 1.35rem;
    line-height: 1.6;
    color: #e6e6e6;
    text-align: center;
    border-top: 1px solid rgba(var(--accent-rgb), 0.2);
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.2);
    padding: 1.75rem 1rem;
    margin: 2rem 0;
    font-style: italic;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2) 0%, rgba(187, 134, 252, 0.15) 100%);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    margin: 2.5rem 0;
    text-align: center;
}

.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p { color: #c0c0c0; margin-bottom: 2rem; font-size: 1.1rem; }

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cta-btn.primary {
    background: linear-gradient(135deg, var(--accent), #6a94d8);
    color: #1a1a2e;
}
.cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(var(--accent-rgb), 0.4);
}

.cta-btn.secondary {
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid rgba(var(--accent-rgb), 0.4);
    color: var(--accent);
}
.cta-btn.secondary:hover {
    background: rgba(var(--accent-rgb), 0.15);
    border-color: var(--accent);
}

/* Stats row */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin: 2rem 0 0.5rem;
}
.stat-item { text-align: center; }
.stat-number {
    font-size: 2.6rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--accent), #bb86fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { color: #9a9a9a; font-size: 0.95rem; margin-top: 0.25rem; max-width: 180px; }

/* Timeline */
.timeline {
    position: relative;
    margin: 2rem 0 1rem;
    padding-left: 2rem;
    border-left: 2px solid rgba(var(--accent-rgb), 0.3);
}
.timeline-item {
    position: relative;
    padding: 0 0 1.75rem 1.25rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.45rem;
    top: 0.25rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18);
}
.timeline-item.fall::before { background: #e57373; box-shadow: 0 0 0 4px rgba(229, 115, 115, 0.18); }
.timeline-item .t-year {
    font-weight: 700;
    color: #bb86fc;
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}
.timeline-item .t-text { color: #c0c0c0; line-height: 1.6; margin: 0; }

/* Depth comparison slider */
.depth-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 1.5rem 0;
}
.depth-demo figure { margin: 0; }
.depth-demo .depth-frame {
    border-radius: 10px;
    padding: 1.5rem;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
}
.depth-demo .flat {
    background: repeating-linear-gradient(45deg, rgba(60,60,80,0.5), rgba(60,60,80,0.5) 10px, rgba(45,45,65,0.5) 10px, rgba(45,45,65,0.5) 20px);
}
.depth-demo .layered {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.25), rgba(187,134,252,0.18));
    box-shadow: inset 0 0 40px rgba(var(--accent-rgb), 0.25);
}
.depth-demo figcaption { text-align: center; margin-top: 0.6rem; font-size: 0.85rem; color: #999; }

/* FAQ accordion */
.faq-item {
    border: 1px solid rgba(var(--accent-rgb), 0.18);
    border-radius: 10px;
    margin-bottom: 0.85rem;
    overflow: hidden;
    background: rgba(20, 20, 40, 0.5);
}
.faq-item summary {
    cursor: pointer;
    padding: 1.1rem 1.35rem;
    font-weight: 600;
    color: var(--accent);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    color: #bb86fc;
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
    padding: 0 1.35rem 1.2rem;
    color: #c0c0c0;
    line-height: 1.7;
}
.faq-item .faq-body p { margin: 0; }

@media (max-width: 768px) {
    .hero-section { padding: 2rem 1.5rem; }
    .stats-row { gap: 2rem; }
    .stat-number { font-size: 2rem; }
    .depth-demo { grid-template-columns: 1fr; }
    .hero-section h2 { font-size: 1.7rem; }
    .media-row { grid-template-columns: 1fr; }
    .media-row.reverse .media-text,
    .media-row.reverse .media-img { order: initial; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-btn { width: 100%; max-width: 280px; justify-content: center; }
}
