/* --- 1. General Reset & Design Variables --- */
:root {
    --bg-color: #FAF9F6;          /* Warm Cream Light background */
    --bg-secondary: #FFFFFF;      /* Pure white for containers */
    --bg-tertiary: #F1EFE9;       /* Section alternates */
    --border-color: rgba(15, 23, 42, 0.12); /* Crisp blueprint line divider */
    --text-primary: #0F172A;      /* Deep Slate Charcoal for readability */
    --text-secondary: #475569;    /* Secondary Slate for descriptions */
    --text-muted: #64748B;         /* Grayed out metadata text */
    --accent-color: #C2410C;      /* Warm Terra Cotta/Copper representing structures */
    --accent-secondary: #0D9488;  /* Muted Glass Teal representing optical glass */
    --accent-glow: rgba(194, 65, 12, 0.08);
    --success-bg: rgba(13, 148, 136, 0.06);
    --danger-bg: rgba(194, 65, 12, 0.06);
    
    --font-family: 'Prompt', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --transition-speed: 0.25s;
    --transition-curve: cubic-bezier(0.16, 1, 0.3, 1);
    --drawer-width: 540px;
}

[data-theme="dark"] {
    --bg-color: #0F172A;          /* Deep Blueprint Navy */
    --bg-secondary: #1E293B;      /* Card Slate background */
    --bg-tertiary: #0B0F19;       /* Dark section background */
    --border-color: rgba(255, 255, 255, 0.08); /* Clean white blueprint lines */
    --text-primary: #F8FAFC;      /* Crisp white text */
    --text-secondary: #CBD5E1;    /* Light gray text */
    --text-muted: #94A3B8;        /* Slate gray metadata */
    --accent-color: #EA580C;      /* Vibrant Orange Copper */
    --accent-secondary: #14B8A6;  /* Vivid Glass Teal */
    --accent-glow: rgba(234, 88, 12, 0.15);
    --success-bg: rgba(20, 184, 166, 0.08);
    --danger-bg: rgba(234, 88, 12, 0.08);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-speed) var(--transition-curve), 
                color var(--transition-speed) var(--transition-curve);
}

/* --- 2. Typography Rules --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p {
    font-weight: 300;
    font-size: 1rem;
    color: var(--text-secondary);
}

.lead-text {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.highlight-text {
    font-weight: 500;
    color: var(--text-primary);
    border-bottom: 1px dashed var(--accent-color);
}

.text-orange { color: var(--accent-color) !important; }
.text-green { color: var(--accent-secondary) !important; }
.text-danger { color: var(--accent-color) !important; }

/* --- 3. App Header & Navigation --- */
.app-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color var(--transition-speed) var(--transition-curve);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-section {
    display: flex;
    flex-direction: column;
}

.brand-sub {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent-color);
}

.brand-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge-partner {
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.6rem;
    border-radius: 2px;
    color: var(--text-muted);
}

.btn-icon {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: background-color var(--transition-speed);
}

.btn-icon:hover {
    background-color: var(--bg-tertiary);
}

.theme-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid currentColor;
    position: relative;
    display: inline-block;
}

[data-theme="dark"] .theme-icon {
    background-color: currentColor;
}

.app-nav {
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

.nav-links {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    list-style: none;
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    white-space: nowrap;
}

.nav-links li a {
    display: block;
    padding: 0.8rem 0;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: color var(--transition-speed), border-color var(--transition-speed);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-color);
}

/* --- 4. Main Content Layout --- */
.app-main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.section-container {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.section-container:last-of-type {
    border-bottom: none;
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-desc {
    font-size: 1.05rem;
    max-width: 800px;
    margin-bottom: 2.5rem;
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 900px) {
    .grid-2col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* --- 5. Hero & Glass-Media Slider --- */
.hero-section {
    padding-top: 1rem;
}

.quick-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 4px;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 600;
}

.hero-visual-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.visual-header {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.glass-slider-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.glass-bg {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    height: 250px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    background-color: #0b111e;
}

.glass-view-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.cityscape-bg {
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 100" width="200" height="100"><rect x="10" y="30" width="30" height="70" fill="%232D3748"/><rect x="50" y="10" width="45" height="90" fill="%231A202C"/><rect x="105" y="40" width="35" height="60" fill="%232D3748"/><rect x="150" y="20" width="40" height="80" fill="%231A202C"/><circle cx="170" cy="40" r="1" fill="%23F7FAFC"/><circle cx="30" cy="50" r="1" fill="%23F7FAFC"/><circle cx="70" cy="30" r="1" fill="%23F7FAFC"/></svg>');
    background-size: cover;
    background-position: center;
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(13, 148, 136, 0.15);
    border: 3px solid #0D9488;
    box-shadow: inset 0 0 20px rgba(13, 148, 136, 0.3);
    pointer-events: none;
    opacity: 0.7; /* Default opacity */
    transition: opacity 0.1s ease;
}

.media-content-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 0 8px rgba(13, 148, 136, 0.8), 0 0 15px #0D9488;
    letter-spacing: 0.05em;
}

.media-content-sub {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
    text-shadow: 0 0 4px rgba(0,0,0,0.5);
}

.slider-control-box {
    margin-top: 1.25rem;
}

.slider-control-box label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.slider-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.app-slider {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    outline: none;
}

.app-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: 2px solid var(--bg-secondary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* --- 6. Technology Cards Section --- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

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

.tech-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: transform var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.tech-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.tech-card.active {
    border-color: var(--accent-secondary);
    background-color: var(--accent-glow);
}

.tech-card-header {
    margin-bottom: 1rem;
}

.tech-num {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.tech-card-header h3 {
    font-size: 1.15rem;
    margin-bottom: 0.15rem;
}

.tech-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tech-short-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.tech-bullet-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-bottom: 1.25rem;
}

.tech-bullet {
    line-height: 1.4;
}

.tech-bullet span {
    font-weight: 500;
    color: var(--text-primary);
}

.btn-text {
    background: none;
    border: none;
    color: var(--accent-color);
    font-family: var(--font-family);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    align-self: flex-start;
}

.btn-text:hover {
    text-decoration: underline;
}

/* --- 7. Technology Interactive Sandbox --- */
.tech-sandbox-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.sandbox-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem 0 1.5rem;
}

.sandbox-header h4 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sandbox-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: 1px solid transparent;
    border-bottom: none;
    font-family: var(--font-family);
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: 4px 4px 0 0;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

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

.tab-btn.active {
    background-color: var(--bg-color);
    border-color: var(--border-color);
    color: var(--text-primary);
    font-weight: 500;
}

.sandbox-body {
    padding: 2rem;
    background-color: var(--bg-color);
}

.sandbox-panel {
    display: none;
}

.sandbox-panel.active {
    display: block;
}

.sandbox-visual-area {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

/* 7.1 Sandbox Panel 1: Film Sim */
.film-sim-canvas {
    width: 250px;
    height: 180px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    background-color: #0b111e;
}

.sim-bg-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100"><rect x="25" y="25" width="50" height="50" fill="%23E2E8F0" rx="8"/><circle cx="50" cy="50" r="15" fill="%23CBD5E1"/><path d="M50 30 L50 70 M30 50 L70 50" stroke="%2394A3B8" stroke-width="2"/></svg>');
    background-size: 60px 60px;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.85;
    z-index: 1;
}

.sim-led-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    opacity: 0.35;
    background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 8px 8px; /* Dynamic size from JS */
}

.sim-resolved-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: radial-gradient(circle, #C2410C 2px, transparent 2px);
    background-size: 8px 8px; /* Dynamic from JS */
    opacity: 0.9;
}

.sim-legend {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.color-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.color-dot.text-clear { background-color: #CBD5E1; }
.color-dot.text-grid { background-color: #C2410C; }

.pitch-slider-wrapper {
    margin: 1.5rem 0;
}

.slider-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.sim-results-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.result-row:last-child {
    border-bottom: none;
}

.res-label {
    color: var(--text-secondary);
}

.res-val {
    font-weight: 500;
    color: var(--text-primary);
}

.highlight-val {
    color: var(--accent-color);
    font-weight: 600;
}

/* 7.2 Sandbox Panel 2: Glass SVG styles */
.glass-layer-diagram {
    width: 100%;
    height: 220px;
}

.architectural-svg {
    width: 100%;
    height: 100%;
}

.svg-text {
    font-family: var(--font-family);
    font-size: 9px;
    fill: var(--text-primary);
}

.svg-text-small {
    font-family: var(--font-family);
    font-size: 7px;
    fill: var(--text-secondary);
}

.svg-text.highlight {
    font-weight: 600;
    fill: var(--accent-color);
}

.info-stat-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.info-tag-item {
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 0.5rem 0.75rem;
    background-color: var(--bg-secondary);
}

.info-tag-item span {
    color: var(--text-secondary);
    font-weight: 300;
}

.info-tag-item strong {
    color: var(--text-primary);
    float: right;
}

/* 7.3 Sandbox Panel 3: 3D Anamorphic */
.anamorphic-visual-container {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    align-items: center;
}

.view-observer-sim {
    flex-grow: 1;
    border-right: 1px solid var(--border-color);
    padding-right: 1.5rem;
}

.screen-view-mock {
    width: 120px;
    flex-shrink: 0;
    text-align: center;
}

.mock-screen-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.mock-3d-box-container {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-secondary);
    width: 100px;
    height: 100px;
    margin: 0 auto;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.interactive-dot {
    cursor: grab;
    transition: r 0.1s ease;
}

.interactive-dot:hover {
    r: 10;
}

.observer-controls {
    margin-top: 1.5rem;
}

.control-row {
    margin-bottom: 1.25rem;
}

.control-row label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-small {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 3px;
    font-family: var(--font-family);
    font-size: 0.75rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: background-color var(--transition-speed), border-color var(--transition-speed), color var(--transition-speed);
}

.btn-small:hover,
.btn-small.active {
    background-color: var(--bg-color);
    border-color: var(--accent-color);
    color: var(--text-primary);
}

/* 7.4 Sandbox Panel 4: Environmental & Sky */
.building-env-container {
    width: 280px;
    height: 180px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.env-sky-layer {
    width: 100%;
    height: 100%;
    transition: background 0.5s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.env-sky-layer.night {
    background: linear-gradient(to bottom, #0F172A, #1E293B);
}

.env-sky-layer.day {
    background: linear-gradient(to bottom, #BAE6FD, #F0F9FF);
}

.env-sky-layer.rain {
    background: linear-gradient(to bottom, #64748B, #94A3B8);
}

.building-silhouette {
    width: 120px;
    height: 140px;
    background-color: #334155;
    position: relative;
    border-radius: 4px 4px 0 0;
}

.facade-display-glow {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 80px;
    height: 100px;
    background-color: #0D9488;
    opacity: 0.2; /* Dynamic from JS */
    transition: opacity 0.5s ease, background-color 0.5s ease;
    box-shadow: 0 0 10px rgba(13, 148, 136, 0.3);
}

.dimming-gauge-bar {
    width: 280px;
    height: 24px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.gauge-fill {
    height: 100%;
    background-color: var(--accent-secondary);
    transition: width 0.5s ease;
}

.gauge-label {
    position: absolute;
    width: 100%;
    text-align: center;
    top: 0;
    left: 0;
    line-height: 22px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-primary);
}

.btn-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
}

.btn-weather {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.6rem 0.4rem;
    font-family: var(--font-family);
    font-size: 0.75rem;
    border-radius: 3px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.btn-weather:hover,
.btn-weather.active {
    background-color: var(--bg-color);
    border-color: var(--accent-color);
    color: var(--text-primary);
}

/* --- 8. Market & Financial Dashboard Elements --- */
.dashboard-block {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.block-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.block-header h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.pricing-chart-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.bar-chart-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chart-label-group {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 500;
}

.chart-title {
    color: var(--text-primary);
}

.chart-price-range {
    color: var(--accent-color);
}

.stacked-bar {
    display: flex;
    height: 28px;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.bar-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 500;
    color: #FFFFFF;
}

.bar-segment.hardware-cost {
    background-color: var(--accent-secondary);
}

.bar-segment.hidden-cost {
    background-color: var(--accent-color);
}

.chart-legend-box {
    margin-top: auto;
    padding: 1rem;
    border-radius: 4px;
}

.warning-box {
    background-color: var(--danger-bg);
    border-left: 3px solid var(--accent-color);
}

.warning-title {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.25rem;
}

/* Segments list style */
.segments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.segment-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.seg-info {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.seg-icon {
    font-size: 1.25rem;
}

.seg-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.seg-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.seg-percentage {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.percent-bar-fill {
    height: 6px;
    background-color: var(--accent-secondary);
    border-radius: 3px;
}

.percent-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    width: 30px;
    text-align: right;
}

.market-size-banner {
    background-color: var(--bg-tertiary);
    border-radius: 4px;
    padding: 1rem;
    margin-top: auto;
}

.banner-title {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

/* Financial models side by side comparison */
.financial-comparison-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2rem;
    margin-top: 3rem;
}

.financial-comparison-box h4 {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
}

.model-compare-card {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
}

.model-compare-card.recommended {
    border-color: var(--accent-secondary);
    background-color: var(--success-bg);
}

.model-compare-card.danger-accent {
    border-color: var(--border-color);
    background-color: var(--danger-bg);
}

.recommend-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background-color: var(--accent-secondary);
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
}

.model-compare-card h5 {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.financial-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.m-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.m-val {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.compare-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.compare-bullets li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text-secondary);
}

.compare-bullets li::before {
    content: "■";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-size: 0.65rem;
}

.recommended .compare-bullets li::before {
    color: var(--accent-secondary);
}

/* Ensure equal layout rendering */
.font-layout-equal {
    align-items: stretch;
}

/* --- 9. 16-Point Operations Blueprint Section --- */
.blueprint-dashboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 900px) {
    .blueprint-dashboard {
        grid-template-columns: 1fr;
    }
}

.blueprint-quadrant {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem;
}

.quad-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.quad-icon {
    font-size: 1.25rem;
}

.quad-header h4 {
    font-size: 1rem;
    color: var(--text-primary);
}

.quad-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bp-item-card {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    background-color: var(--bg-color);
    transition: background-color var(--transition-speed), border-color var(--transition-speed), transform 0.15s ease;
}

.bp-item-card:hover {
    background-color: var(--bg-secondary);
    border-color: var(--accent-color);
    transform: translateX(4px);
}

.bp-num {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    background-color: var(--bg-tertiary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bp-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* --- 10. Scale-up Roadmap Section --- */
.roadmap-timeline-container {
    position: relative;
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.timeline-line {
    position: absolute;
    top: 24px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.timeline-nodes {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.timeline-node {
    width: 30%;
    text-align: center;
    cursor: pointer;
}

.node-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 auto 0.75rem auto;
    transition: all 0.3s ease;
}

.timeline-node:hover .node-dot {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.timeline-node.active .node-dot {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #FFFFFF;
    box-shadow: 0 0 10px var(--accent-glow);
}

.node-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.timeline-node.active .node-title {
    color: var(--text-primary);
}

.node-target {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.timeline-node.active .node-target {
    color: var(--accent-color);
    font-weight: 500;
}

/* Timeline detail card */
.roadmap-detail-display {
    max-width: 900px;
    margin: 0 auto;
}

.roadmap-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2.5rem;
}

.roadmap-card h4 {
    font-size: 1.25rem;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.roadmap-card .lead-text {
    margin-bottom: 2rem;
}

.info-block h5 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.info-block p {
    font-size: 0.85rem;
    line-height: 1.6;
}

/* --- 11. Investor Verdict Highlight Section --- */
.verdict-banner-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2.5rem;
    margin-top: 2rem;
}

.verdict-status-box {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.verdict-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.verdict-verdict h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-top: 0.25rem;
    line-height: 1.4;
}

.verdict-lbl {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.verdict-detailed-blocks {
    margin-bottom: 2rem;
}

.verdict-action-card {
    border-radius: 4px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.verdict-action-card h4 {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.block-dont {
    background-color: var(--danger-bg);
    border-left: 4px solid var(--accent-color);
}

.block-do {
    background-color: var(--success-bg);
    border-left: 4px solid var(--accent-secondary);
}

.moat-highlight-box {
    background-color: var(--bg-tertiary);
    border-radius: 4px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.moat-highlight-box h5 {
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* --- 12. Detail Drawer Component --- */
.detail-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--drawer-width);
    height: 100%;
    z-index: 200;
    visibility: hidden;
    transition: visibility var(--transition-speed);
}

.detail-drawer[aria-hidden="false"] {
    visibility: visible;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.detail-drawer[aria-hidden="false"] .drawer-overlay {
    opacity: 1;
}

.drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-secondary);
    box-shadow: -4px 0 24px rgba(15, 23, 42, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition-speed) var(--transition-curve);
}

.detail-drawer[aria-hidden="false"] .drawer-content {
    transform: translateX(0);
}

.drawer-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.drawer-meta-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.drawer-tag {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 2px;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.drawer-tag-id {
    font-size: 0.6rem;
    font-family: 'Inter', sans-serif;
    padding: 0.15rem 0.4rem;
    border-radius: 2px;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.drawer-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    padding-right: 2rem;
}

.btn-close {
    position: absolute;
    top: 1.75rem;
    right: 1.75rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

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

.drawer-body {
    padding: 2rem;
    overflow-y: auto;
    flex-grow: 1;
}

/* Markdown styling inside drawer */
.drawer-body h4 {
    font-size: 1.05rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.25rem;
}

.drawer-body h4:first-of-type {
    margin-top: 0;
}

.drawer-body p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.drawer-body ul {
    list-style: none;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.drawer-body li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.25rem;
}

.drawer-body li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.drawer-body blockquote {
    background-color: var(--bg-tertiary);
    border-left: 3px solid var(--accent-color);
    padding: 0.75rem 1rem;
    margin: 1.25rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.drawer-body blockquote p {
    margin-bottom: 0;
}

.drawer-body strong {
    font-weight: 600;
    color: var(--text-primary);
}

.alert-box {
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.85rem;
}

.alert-box.info {
    background-color: var(--success-bg);
    border-left: 3px solid var(--accent-secondary);
}

.alert-box.warning {
    background-color: var(--danger-bg);
    border-left: 3px solid var(--accent-color);
}

.alert-title {
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.alert-box.info .alert-title { color: var(--accent-secondary); }
.alert-box.warning .alert-title { color: var(--accent-color); }

/* --- 13. App Footer --- */
.app-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-container p {
    font-size: 0.8rem;
}

.footer-subtext {
    color: var(--text-muted);
    font-size: 0.7rem !important;
    margin-top: 0.5rem;
}

/* --- 14. Responsive Layout Adjustments --- */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .app-nav {
        padding: 0 1rem;
    }
    
    .app-main {
        padding: 0 1rem;
        margin: 1rem auto;
    }
    
    .detail-drawer {
        width: 100%;
    }
    
    .timeline-node {
        width: auto;
    }
    
    .timeline-node .node-title {
        font-size: 0.75rem;
    }
    
    .timeline-line {
        left: 20px;
        right: 20px;
    }
    
    .node-dot {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
    
    .mobile-only {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }
}

/* --- WallPrint Ai Custom Simulator & Visualization Styles --- */

/* 1. Base Dropdown Select Styling */
.app-select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-family: var(--font-family);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    outline: none;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color var(--transition-speed);
}
.app-select:focus {
    border-color: var(--accent-color);
}
.selector-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.select-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.select-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* 2. Hero Wall Print Simulator Base Textures */
.wall-texture-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.wall-texture-layer.concrete {
    background-color: #78716c;
    background-image: radial-gradient(#a8a29e 1px, transparent 1px), radial-gradient(#57534e 1px, transparent 1px);
    background-size: 10px 10px;
    background-position: 0 0, 5px 5px;
    opacity: 0.95;
}
.wall-texture-layer.brick {
    background-color: #c2410c;
    background-image: linear-gradient(rgba(127, 29, 29, 0.35) 2px, transparent 2px), linear-gradient(90deg, rgba(127, 29, 29, 0.35) 2px, transparent 2px);
    background-size: 36px 18px;
    opacity: 0.95;
}
.wall-texture-layer.wood {
    background-color: #854d0e;
    background-image: linear-gradient(90deg, rgba(67, 36, 9, 0.3) 1px, transparent 1px);
    background-size: 24px 100%;
    opacity: 0.95;
}
.wall-texture-layer.glass {
    background-color: rgba(13, 148, 136, 0.15);
    border: 2px solid rgba(13, 148, 136, 0.3);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
    background-size: 30px 30px;
}

.wall-print-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    /* We clip the width from JS to represent printing progress */
    clip-path: polygon(0 0, 70% 0, 70% 100%, 0 100%);
    transition: clip-path 0.1s linear;
}

.gantry-carriage-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0.1), #3b82f6, rgba(59, 130, 246, 0.1));
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
    z-index: 3;
    left: 70%; /* Dynamic from JS */
    transition: left 0.1s linear;
    pointer-events: none;
}
.gantry-nozzle-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 12px #3b82f6, 0 0 20px #2563eb;
    left: -4px;
    top: 0; /* Dynamic from JS */
    transition: top 0.1s linear;
}
.gantry-nozzle-dot::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 60px;
    background: radial-gradient(ellipse at top, rgba(168, 85, 247, 0.5) 0%, transparent 70%);
    left: -10px;
    top: 10px;
    pointer-events: none;
    opacity: 0.85;
}

/* 3. Global Benchmarking & Revenue Engine Widgets */
.global-benchmarking-container {
    margin-top: 3.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2.5rem;
}
.sub-section-title {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}
.case-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
}
.case-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 4px;
    position: relative;
}
.case-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    color: #FFFFFF;
    letter-spacing: 0.05em;
}
.case-badge.us { background-color: #3b82f6; }
.case-badge.de { background-color: #10b981; }

.benchmark-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.revenue-engine-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.engine-visual-flow {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}
.engine-node {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 4px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.engine-node:hover {
    transform: translateX(4px);
    border-color: var(--accent-secondary);
}
.engine-node .node-icon {
    font-size: 1.75rem;
    background: var(--bg-secondary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}
.engine-node h5 {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text-primary);
    width: 110px;
    flex-shrink: 0;
}
.engine-node .node-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: left;
}

/* 4. Print Types Grid */
.print-types-container {
    margin-top: 3.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2.5rem;
}
.print-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}
@media (max-width: 768px) {
    .print-types-grid {
        grid-template-columns: 1fr;
    }
}
.print-type-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}
.print-type-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
}
.pt-icon {
    font-size: 2rem;
    color: var(--accent-color);
}
.print-type-card h4 {
    font-size: 1.15rem;
    color: var(--text-primary);
}
.pt-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.pt-bullets {
    list-style: none;
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.pt-bullets li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.pt-bullets li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
    font-weight: bold;
}

/* 5. DPI Sandbox */
.dpi-sim-canvas {
    width: 250px;
    height: 180px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    background-color: #0F172A;
}
.dpi-bg-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100"><circle cx="50" cy="50" r="30" fill="%23EA580C" opacity="0.8"/><rect x="25" y="25" width="20" height="50" fill="%2314B8A6" opacity="0.9"/><polygon points="50,15 80,85 20,85" fill="none" stroke="%23F8FAFC" stroke-width="4"/></svg>');
    background-size: 70% 70%;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
    transition: filter 0.1s ease;
}
.dpi-dots-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.55;
    background-image: radial-gradient(circle, rgba(248, 250, 252, 0.4) 1px, transparent 1px);
    background-size: 12px 12px; /* Dynamic size in JS */
}

/* 6. Adhesion Curing Sandbox */
.curing-simulator-container {
    width: 250px;
    height: 150px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #cbd5e1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.curing-material-wall {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.curing-paint-stripe {
    width: 80%;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    border: 1px dashed rgba(15, 23, 42, 0.3);
}
.curing-paint-stripe.cured {
    background: linear-gradient(90deg, #ea580c, #14b8a6, #a855f7, #3b82f6);
    border: 1px solid rgba(15, 23, 42, 0.15);
}
.curing-laser-sweep {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 8px;
    background-color: #a855f7;
    box-shadow: 0 0 10px #a855f7, 0 0 20px #c084fc;
    left: -12px;
}
.curing-laser-sweep.active {
    animation: sweepCure 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes sweepCure {
    0% { left: -12px; }
    100% { left: 110%; }
}

/* 7. Dead Zones Sandbox */
.deadzone-visualizer-box {
    width: 250px;
    height: 200px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-secondary);
    overflow: hidden;
}
.room-wall-mock {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    background: #e2e8f0;
}
.dead-zone-label {
    height: 35px;
    background: rgba(239, 68, 68, 0.15);
    border-bottom: 1px dashed #ef4444;
    font-size: 0.6rem;
    color: #b91c1c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-align: center;
    z-index: 2;
    padding: 0 0.5rem;
}
.dead-zone-label.bottom {
    height: 45px;
    border-bottom: none;
    border-top: 1px dashed #ef4444;
}
.active-print-zone {
    flex-grow: 1;
    position: relative;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}
.printable-artwork {
    width: 85%;
    height: 85%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100"><circle cx="50" cy="50" r="35" fill="none" stroke="%233b82f6" stroke-width="5"/><path d="M50,15 L50,85 M15,50 L85,50" stroke="%233b82f6" stroke-width="3"/><rect x="35" y="35" width="30" height="30" fill="none" stroke="%23ea580c" stroke-width="3"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
}
.printable-artwork.fade {
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}
.printable-artwork.cut {
    mask-image: none;
    -webkit-mask-image: none;
}
.printable-artwork.manual {
    mask-image: none;
    -webkit-mask-image: none;
    border-top: 2px solid #10b981;
    border-bottom: 2px solid #10b981;
}
.composition-selector {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.75rem;
}
.btn-deadzone {
    padding: 0.3rem 0.5rem;
    font-size: 0.65rem;
}

/* 8. Laser Obstacle Tracking Sandbox */
.obstacle-track-canvas {
    width: 250px;
    height: 150px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #1e293b;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.obstacle-svg {
    width: 100%;
    height: 100%;
}
.avoidance-controls-row {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.75rem;
}
.btn-laser-toggle {
    padding: 0.3rem 0.5rem;
    font-size: 0.65rem;
}
#sim-printhead-block {
    transition: transform 0.05s linear;
}

/* 9. Segment Selector Styles */
.segment-pitch-selector-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2rem;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.segment-tabs-row {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}
.segment-tab-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-family: var(--font-family);
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--text-secondary);
    background-color: var(--bg-color);
    transition: all 0.2s ease;
    white-space: nowrap;
}
.segment-tab-btn:hover, .segment-tab-btn.active {
    background-color: var(--accent-glow);
    border-color: var(--accent-color);
    color: var(--text-primary);
    font-weight: 600;
}
.segment-pitch-content-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem;
}
.pitch-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 768px) {
    .pitch-grid-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
.pitch-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
}
.pitch-column.warning { border-left: 4px solid var(--accent-color); }
.pitch-column.info { border-left: 4px solid #3b82f6; }
.pitch-column.success { border-left: 4px solid var(--accent-secondary); }
.col-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.pitch-column h5 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin: 0.25rem 0;
}
