:root{--primary: #3b82f6;--primary-dark: #2563eb;--secondary: #8b5cf6;--background: #0f172a;--surface: #1e293b;--surface-light: #334155;--text: #f1f5f9;--text-muted: #94a3b8;--border: #334155;--success: #10b981;--warning: #f59e0b;--danger: #ef4444;--shadow: rgba(0, 0, 0, .3)}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;background:var(--background);color:var(--text);line-height:1.6;min-height:100vh}.container{max-width:1200px;margin:0 auto;padding:2rem}.header{text-align:center;margin-bottom:3rem;padding:2rem 0}.header h1{font-size:3rem;background:linear-gradient(135deg,var(--primary),var(--secondary));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin-bottom:.5rem}.subtitle{color:var(--text-muted);font-size:1.125rem}.examples-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem;margin-bottom:3rem}.example-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:2rem;transition:all .3s ease;display:flex;flex-direction:column;align-items:center;text-align:center}.example-card:hover{transform:translateY(-4px);box-shadow:0 12px 24px var(--shadow);border-color:var(--primary)}.card-icon{font-size:3rem;margin-bottom:1rem}.example-card h2{color:var(--text);margin-bottom:1rem;font-size:1.5rem}.example-card p{color:var(--text-muted);margin-bottom:1.5rem;flex-grow:1}.btn{background:var(--primary);color:#fff;padding:.75rem 1.5rem;border-radius:8px;text-decoration:none;font-weight:500;transition:all .2s ease;border:none;cursor:pointer;display:inline-block}.btn:hover{background:var(--primary-dark);transform:scale(1.05)}.btn:active{transform:scale(.98)}.footer{text-align:center;padding:2rem 0;color:var(--text-muted);border-top:1px solid var(--border)}.footer a{color:var(--primary);text-decoration:none}.footer a:hover{text-decoration:underline}.example-container{max-width:1400px;margin:0 auto;padding:2rem}.back-link{display:inline-flex;align-items:center;gap:.5rem;color:var(--primary);text-decoration:none;margin-bottom:2rem;font-weight:500}.back-link:hover{text-decoration:underline}.example-layout{display:grid;grid-template-columns:400px 1fr;gap:2rem;margin-top:2rem}.controls-panel{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.5rem;height:fit-content;position:sticky;top:2rem}.controls-panel h3{margin-bottom:1.5rem;color:var(--text)}.control-group{margin-bottom:1.5rem}.control-group label{display:block;margin-bottom:.5rem;color:var(--text-muted);font-size:.875rem;font-weight:500}.control-group select,.control-group input{width:100%;padding:.75rem;background:var(--background);border:1px solid var(--border);border-radius:8px;color:var(--text);font-size:1rem}.control-group select:focus,.control-group input:focus{outline:none;border-color:var(--primary)}.button-group{display:flex;flex-wrap:wrap;gap:.5rem}.btn-small{padding:.5rem 1rem;font-size:.875rem}.btn-secondary{background:var(--surface-light);color:var(--text)}.btn-secondary:hover{background:var(--border)}.visualization-panel{display:flex;flex-direction:column;gap:2rem}.bloch-sphere-container{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:2rem}.bloch-sphere-container h3{margin-bottom:1rem;color:var(--text)}.bloch-sphere{width:100%;height:auto;border-radius:8px}.state-info{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.5rem}.state-info h3{margin-bottom:1rem;color:var(--text)}.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.info-item{background:var(--background);padding:1rem;border-radius:8px}.info-item-label{color:var(--text-muted);font-size:.875rem;margin-bottom:.25rem}.info-item-value{color:var(--text);font-size:1.125rem;font-weight:600;font-family:Courier New,monospace}.probability-bars{display:flex;gap:1rem;margin-top:1rem}.probability-bar{flex:1}.probability-bar-label{display:flex;justify-content:space-between;margin-bottom:.5rem;color:var(--text-muted);font-size:.875rem}.probability-bar-fill-container{height:24px;background:var(--background);border-radius:4px;overflow:hidden}.probability-bar-fill{height:100%;background:linear-gradient(90deg,var(--primary),var(--secondary));transition:width .3s ease}@media(max-width:1024px){.example-layout{grid-template-columns:1fr}.controls-panel{position:static}}@media(max-width:768px){.header h1{font-size:2rem}.examples-grid{grid-template-columns:1fr}}
