.admin-dashboard{padding:2rem;max-width:1400px;margin:0 auto;background:#0a0a1a;min-height:100vh;color:#e5e7eb}.demo-banner{background:#1e1e3f;border:1px solid #3b3b6d;color:#a5b4fc;padding:.75rem 1.25rem;border-radius:8px;font-size:.875rem;font-weight:500;display:flex;align-items:center;gap:.5rem;margin-bottom:1.5rem}.dashboard-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem;padding:1.5rem;background:#111827;border-radius:12px;border:1px solid #1f2937}.dashboard-header h1{margin:0;font-size:1.75rem;color:#f3f4f6}.controls{display:flex;gap:1rem;align-items:center}.controls label{display:flex;align-items:center;gap:.5rem;cursor:pointer;color:#9ca3af;font-size:.9rem}.controls select{padding:.5rem;border:1px solid #374151;border-radius:6px;font-size:.9rem;background:#1f2937;color:#e5e7eb}.refresh-btn{padding:.6rem 1.2rem;background:#4f46e5;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.9rem;font-weight:500;transition:background .2s}.refresh-btn:hover{background:#4338ca}.overview-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.5rem;margin-bottom:2rem}.stat-card{background:#111827;padding:1.5rem;border-radius:12px;border:1px solid #1f2937;border-left:4px solid;min-height:120px;display:flex;flex-direction:column;justify-content:center}.stat-card.primary{border-left-color:#6366f1}.stat-card.success{border-left-color:#10b981}.stat-card.danger{border-left-color:#ef4444}.stat-card.info{border-left-color:#3b82f6}.stat-card h3{margin:0 0 .75rem;font-size:.85rem;color:#9ca3af;text-transform:uppercase;letter-spacing:.5px}.stat-value{font-size:1.8rem;font-weight:700;color:#f3f4f6;line-height:1.2;white-space:normal;overflow:visible;word-break:break-all;text-align:center}.stat-subtitle{margin-top:.5rem;font-size:.9rem;color:#6b7280}.layer-performance{background:#111827;padding:2rem;border-radius:12px;border:1px solid #1f2937;margin-bottom:2rem;overflow-x:auto}.layer-performance h2{margin:0 0 1.5rem;font-size:1.5rem;color:#f3f4f6}.performance-table{width:100%;border-collapse:collapse}.performance-table th{text-align:left;padding:.75rem;border-bottom:2px solid #374151;font-size:.85rem;color:#9ca3af;text-transform:uppercase;letter-spacing:.5px}.performance-table td{padding:1rem .75rem;border-bottom:1px solid #1f2937;color:#e5e7eb}.performance-table tr:hover{background:#6366f10d}.layer-badge{display:inline-block;padding:.25rem .75rem;border-radius:20px;font-size:.85rem;font-weight:600;color:#fff}.layer-badge.layer-1{background:#10b981}.layer-badge.layer-2{background:#3b82f6}.layer-badge.layer-3{background:#8b5cf6}.progress-bar{position:relative;width:120px;height:24px;background:#1f2937;border-radius:12px;overflow:hidden}.progress-fill{height:100%;background:#10b981;transition:width .3s ease}.progress-text{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.75rem;font-weight:600;color:#f3f4f6}.latency{font-family:Courier New,monospace;color:#9ca3af}.flow-visualization{background:#111827;padding:2rem;border-radius:12px;border:1px solid #1f2937;margin-bottom:2rem}.flow-visualization h2{margin:0 0 2rem;font-size:1.5rem;color:#f3f4f6}.flow-diagram{display:flex;align-items:center;justify-content:space-between;gap:1rem;overflow-x:auto;padding:1rem 0}.flow-node{flex-shrink:0;min-width:140px;padding:1.5rem;border-radius:12px;text-align:center;border:1px solid}.flow-node.incoming{background:#6366f126;border-color:#6366f1;color:#a5b4fc}.flow-node.layer1{background:#10b98126;border-color:#10b981;color:#6ee7b7}.flow-node.layer2{background:#3b82f626;border-color:#3b82f6;color:#93c5fd}.flow-node.layer3{background:#8b5cf626;border-color:#8b5cf6;color:#c4b5fd}.flow-node.miss{background:#ef444426;border-color:#ef4444;color:#fca5a5}.node-label{font-size:.85rem;font-weight:600;margin-bottom:.5rem;opacity:.8}.node-value{font-size:1.5rem;font-weight:700;margin-bottom:.25rem;white-space:normal;word-break:break-all;color:#f3f4f6}.node-subtitle{font-size:.75rem;opacity:.7}.flow-arrow{flex-shrink:0;display:flex;flex-direction:column;align-items:center;gap:.25rem;color:#4b5563;font-size:1.5rem}.flow-arrow.miss{color:#ef4444}.arrow-value{font-size:.9rem;font-weight:600;color:#9ca3af}.arrow-label{font-size:.75rem;color:#6b7280}.layer-details{background:#111827;padding:2rem;border-radius:12px;border:1px solid #1f2937;margin-bottom:2rem}.layer-details h2{margin:0 0 1.5rem;font-size:1.5rem;color:#f3f4f6}.layer-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:1.5rem}.layer-card{padding:1.5rem;border:1px solid #374151;border-radius:12px;transition:all .2s;background:#0d1117;min-width:0}.layer-card:hover{border-color:#6366f1;background:#6366f10d}.layer-card h3{margin:0 0 1rem;font-size:1.1rem;color:#f3f4f6}.layer-info{display:flex;flex-direction:column;gap:.5rem}.layer-info p{margin:0;font-size:.875rem;color:#9ca3af;display:flex;flex-wrap:wrap;gap:.5rem}.layer-info strong{color:#6b7280;font-size:.8rem}.layer-info span{color:#e5e7eb;word-break:break-word}} .smart-matching{background:#111827;padding:2rem;border-radius:12px;border:1px solid #1f2937;margin-bottom:2rem}.smart-matching h2{margin:0 0 1.5rem;font-size:1.5rem;color:#f3f4f6}.smart-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(350px,1fr));gap:1.5rem}.smart-card{padding:1.5rem;border:1px solid #374151;border-radius:12px;background:#0d1117}.smart-card h3{margin:0 0 .5rem;font-size:1.1rem;color:#f3f4f6}.smart-card p{margin:0 0 1rem;font-size:.9rem;color:#9ca3af}.smart-card pre{background:#1f2937;padding:1rem;border-radius:6px;font-size:.8rem;overflow-x:auto;max-height:200px;overflow-y:auto;color:#e5e7eb}.system-info{background:#111827;padding:2rem;border-radius:12px;border:1px solid #1f2937}.system-info h2{margin:0 0 1.5rem;font-size:1.5rem;color:#f3f4f6}.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem}.info-item{padding:1rem;background:#0d1117;border:1px solid #374151;border-radius:8px;display:flex;justify-content:space-between;align-items:center}.info-item strong{color:#9ca3af;font-size:.9rem}.info-item span{color:#e5e7eb;font-size:.9rem;font-weight:500}.admin-dashboard.loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;color:#e5e7eb}@media (max-width: 768px){.admin-dashboard{padding:1rem}.dashboard-header{flex-direction:column;gap:1rem;align-items:flex-start}.flow-diagram{flex-direction:column}.flow-arrow{transform:rotate(90deg)}.performance-table{font-size:.85rem}.performance-table th,.performance-table td{padding:.5rem}}.cache-simulation{min-height:100vh;background:linear-gradient(135deg,#0a0a1a,#1a1a2e,#0f0f23);color:#e0e0e0;padding:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif}.sim-header{display:flex;justify-content:space-between;align-items:center;padding:20px 30px;background:#ffffff08;border-radius:16px;border:1px solid rgba(255,255,255,.1);margin-bottom:24px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.sim-title h1{margin:0;font-size:28px;background:linear-gradient(135deg,#00d4ff,#7c3aed,#f472b6);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.sim-title p{margin:8px 0 0;color:#888;font-size:14px}.sim-controls{display:flex;gap:16px;align-items:center}.control-btn{padding:12px 24px;font-size:16px;font-weight:600;border:none;border-radius:12px;cursor:pointer;transition:all .3s ease}.control-btn.stopped{background:linear-gradient(135deg,#10b981,#059669);color:#fff;box-shadow:0 4px 20px #10b98166}.control-btn.stopped:hover{transform:translateY(-2px);box-shadow:0 6px 30px #10b98199}.control-btn.running{background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff;box-shadow:0 4px 20px #f59e0b66;animation:pulse-glow 2s ease-in-out infinite}@keyframes pulse-glow{0%,to{box-shadow:0 4px 20px #f59e0b66}50%{box-shadow:0 4px 30px #f59e0bb3}}.speed-control{display:flex;align-items:center;gap:10px;padding:8px 16px;background:#ffffff0d;border-radius:8px}.speed-control label{font-size:14px;color:#888}.speed-control input[type=range]{width:80px;accent-color:#7c3aed}.speed-control span{font-weight:600;color:#7c3aed;min-width:30px}.reset-btn{padding:10px 16px;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);color:#e0e0e0;border-radius:8px;cursor:pointer;transition:all .2s}.reset-btn:hover{background:#ffffff26;border-color:#ffffff4d}.sim-main{display:grid;grid-template-columns:250px 1fr 280px;gap:20px;margin-bottom:24px}.stats-panel{background:#ffffff08;border-radius:16px;border:1px solid rgba(255,255,255,.1);padding:20px}.stats-panel h2{margin:0 0 20px;font-size:16px;color:#888}.stat-group{margin-bottom:24px}.stat-item{padding:16px;border-radius:12px;margin-bottom:12px;background:#ffffff0d}.stat-item.total{background:linear-gradient(135deg,#6366f133,#6366f10d);border:1px solid rgba(99,102,241,.3)}.stat-item.hit-rate{background:linear-gradient(135deg,#10b98133,#10b9810d);border:1px solid rgba(16,185,129,.3)}.stat-label{display:block;font-size:12px;color:#888;margin-bottom:4px;text-transform:uppercase;letter-spacing:.5px}.stat-item .stat-value{font-size:28px;font-weight:700;color:#fff}.hit-rate-bar{height:6px;background:#ffffff1a;border-radius:3px;margin-top:8px;overflow:hidden}.hit-rate-fill{height:100%;background:linear-gradient(90deg,#10b981,#34d399);border-radius:3px;transition:width .5s ease}.layer-stats{display:flex;flex-direction:column;gap:10px;margin-bottom:20px}.layer-stat{display:grid;grid-template-columns:36px 1fr;grid-template-rows:auto auto;gap:4px 10px;padding:10px;border-radius:10px;background:#ffffff08;border:1px solid rgba(255,255,255,.08)}.layer-stat.l1{border-left:3px solid #10b981}.layer-stat.l2{border-left:3px solid #f59e0b}.layer-stat.l3{border-left:3px solid #3b82f6}.layer-stat.miss{border-left:3px solid #ef4444}.layer-icon{grid-row:span 2;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;width:36px;height:36px;border-radius:8px;background:#ffffff1a}.layer-stat.l1 .layer-icon{background:#10b98133;color:#10b981}.layer-stat.l2 .layer-icon{background:#f59e0b33;color:#f59e0b}.layer-stat.l3 .layer-icon{background:#3b82f633;color:#3b82f6}.layer-stat.miss .layer-icon{background:#ef444433;color:#ef4444;font-size:16px}.layer-info{display:flex;justify-content:space-between;align-items:center}.layer-name{font-size:12px;color:#888}.layer-hits{font-size:12px;font-weight:600;color:#fff}.layer-bar{grid-column:2;height:4px;background:#ffffff1a;border-radius:2px;overflow:hidden}.layer-stat.l1 .layer-fill{background:#10b981}.layer-stat.l2 .layer-fill{background:#f59e0b}.layer-stat.l3 .layer-fill{background:#3b82f6}.layer-stat.miss .layer-fill{background:#ef4444}.layer-fill{height:100%;transition:width .5s ease}.latency-stat,.cache-size{padding:12px;background:#ffffff08;border-radius:8px;margin-bottom:10px;display:flex;justify-content:space-between}.latency-stat .stat-value,.cache-size .stat-value{font-weight:600;color:#7c3aed}.flow-container{display:flex;align-items:stretch;gap:8px;background:#ffffff05;border-radius:16px;border:1px solid rgba(255,255,255,.08);padding:20px;overflow-x:auto}.flow-stage{flex:1;min-width:140px;padding:16px;border-radius:12px;background:#ffffff08;border:1px solid rgba(255,255,255,.1);display:flex;flex-direction:column;transition:all .3s ease}.flow-stage.active{transform:scale(1.02);box-shadow:0 0 30px #ffffff1a}.flow-stage.pulse{animation:layer-pulse .5s ease}@keyframes layer-pulse{0%{transform:scale(1)}50%{transform:scale(1.05)}to{transform:scale(1)}}.flow-stage.l1{background:linear-gradient(180deg,#10b9811a,#10b98105);border-color:#10b9814d}.flow-stage.l1.active{box-shadow:0 0 40px #10b9814d;border-color:#10b98199}.flow-stage.l1.pulse{animation:l1-pulse .5s ease}@keyframes l1-pulse{0%,to{box-shadow:0 0 20px #10b9814d}50%{box-shadow:0 0 60px #10b981cc}}.flow-stage.l2{background:linear-gradient(180deg,#f59e0b1a,#f59e0b05);border-color:#f59e0b4d}.flow-stage.l2.active{box-shadow:0 0 40px #f59e0b4d;border-color:#f59e0b99}.flow-stage.l2.pulse{animation:l2-pulse .5s ease}@keyframes l2-pulse{0%,to{box-shadow:0 0 20px #f59e0b4d}50%{box-shadow:0 0 60px #f59e0bcc}}.flow-stage.l3{background:linear-gradient(180deg,#3b82f61a,#3b82f605);border-color:#3b82f64d}.flow-stage.l3.active{box-shadow:0 0 40px #3b82f64d;border-color:#3b82f699}.flow-stage.l3.pulse{animation:l3-pulse .5s ease}@keyframes l3-pulse{0%,to{box-shadow:0 0 20px #3b82f64d}50%{box-shadow:0 0 60px #3b82f6cc}}.flow-stage.miss-stage{background:linear-gradient(180deg,#ef44441a,#ef444405);border-color:#ef44444d}.stage-header{display:flex;flex-direction:column;align-items:center;gap:4px;margin-bottom:12px}.stage-icon{font-size:24px}.stage-label{font-size:12px;font-weight:600;text-align:center;color:#fff}.stage-speed{font-size:10px;color:#888;background:#0000004d;padding:2px 8px;border-radius:10px}.layer-visual{flex:1;display:flex;align-items:center;justify-content:center;min-height:80px;margin-bottom:12px}.hash-table{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.hash-slot{width:20px;height:20px;border-radius:4px;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;transition:all .3s ease}.hash-slot.filled{background:#10b9814d;border-color:#10b98180}.slot-key{font-size:10px;color:#10b981}.normalize-steps{display:flex;align-items:center;gap:4px;flex-wrap:wrap;justify-content:center}.step{font-size:9px;padding:3px 6px;background:#f59e0b33;border-radius:4px;color:#f59e0b}.step-arrow{color:#666;font-size:10px}.embedding-visual{width:100%;height:80px}.vector-space{position:relative;width:100%;height:100%;background:radial-gradient(circle at center,rgba(59,130,246,.1),transparent 70%);border-radius:8px;border:1px dashed rgba(59,130,246,.3)}.vector-point{position:absolute;width:8px;height:8px;background:#3b82f6;border-radius:50%;box-shadow:0 0 10px #3b82f680;animation:float 3s ease-in-out infinite}.vector-point:nth-child(odd){animation-delay:-1.5s}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-5px)}}.query-vector{position:absolute;left:50%;top:50%;width:12px;height:12px;background:#f472b6;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 15px #f472b6b3;animation:pulse-query 1.5s ease-in-out infinite}@keyframes pulse-query{0%,to{transform:translate(-50%,-50%) scale(1);box-shadow:0 0 15px #f472b6b3}50%{transform:translate(-50%,-50%) scale(1.3);box-shadow:0 0 25px #f472b6e6}}.llm-visual{display:flex;flex-direction:column;align-items:center;gap:8px}.llm-icon{font-size:32px;animation:spin 2s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.llm-label{font-size:11px;color:#888}.llm-time{font-size:10px;color:#ef4444;background:#ef444433;padding:2px 8px;border-radius:10px}.layer-queries{min-height:40px;display:flex;flex-wrap:wrap;gap:6px;justify-content:center}.query-particle{padding:4px 10px;border-radius:20px;font-size:10px;font-weight:600;animation:particle-enter .3s ease;position:relative}@keyframes particle-enter{0%{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}.query-particle.entering{background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;box-shadow:0 0 15px #6366f180}.query-particle.l1-check,.query-particle.l1-hit{background:linear-gradient(135deg,#10b981,#34d399);color:#fff;box-shadow:0 0 15px #10b98180}.query-particle.l2-check,.query-particle.l2-hit{background:linear-gradient(135deg,#f59e0b,#fbbf24);color:#fff;box-shadow:0 0 15px #f59e0b80}.query-particle.l3-check,.query-particle.l3-hit{background:linear-gradient(135deg,#3b82f6,#60a5fa);color:#fff;box-shadow:0 0 15px #3b82f680}.query-particle.miss{background:linear-gradient(135deg,#ef4444,#f87171);color:#fff;box-shadow:0 0 15px #ef444480}.hit-badge,.miss-badge{font-size:9px;font-weight:700;animation:badge-pop .3s ease}@keyframes badge-pop{0%{transform:scale(0)}50%{transform:scale(1.3)}to{transform:scale(1)}}.layer-description{text-align:center;font-size:9px;color:#666;margin-top:auto}.flow-connector{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:40px;position:relative}.connector-line{width:30px;height:2px;background:linear-gradient(90deg,#ffffff4d,#ffffff1a);position:relative}.connector-line:after{content:"";position:absolute;right:0;top:50%;transform:translateY(-50%);border:4px solid transparent;border-left-color:#ffffff4d}.connector-arrow{font-size:16px;color:#666}.connector-label{font-size:9px;color:#666;margin-top:4px}.miss-line{background:linear-gradient(90deg,#ef44444d,#ef44441a)}.miss-line:after{border-left-color:#ef44444d}.miss-label{color:#ef4444}.event-log{background:#ffffff08;border-radius:16px;border:1px solid rgba(255,255,255,.1);padding:16px;display:flex;flex-direction:column}.event-log h2{margin:0 0 12px;font-size:14px;color:#888}.events-container{flex:1;overflow-y:auto;max-height:400px}.event-item{padding:8px 12px;margin-bottom:6px;border-radius:8px;font-size:11px;animation:event-slide .3s ease;border-left:3px solid}@keyframes event-slide{0%{opacity:0;transform:translate(-10px)}to{opacity:1;transform:translate(0)}}.event-item.hit{background:#10b9811a;border-left-color:#10b981;color:#34d399}.event-item.miss{background:#ef44441a;border-left-color:#ef4444;color:#f87171}.event-item.check{background:#3b82f61a;border-left-color:#3b82f6;color:#60a5fa}.event-item.info{background:#6366f11a;border-left-color:#6366f1;color:#a5b4fc}.no-events{color:#666;font-style:italic;text-align:center;padding:20px}.cache-contents{background:#ffffff08;border-radius:16px;border:1px solid rgba(255,255,255,.1);padding:20px;margin-bottom:20px}.cache-contents h2{margin:0 0 16px;font-size:16px;color:#888}.cache-entries{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px}.cache-entry{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#ffffff08;border-radius:10px;border:1px solid rgba(255,255,255,.08);animation:entry-appear .3s ease}@keyframes entry-appear{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.entry-query{font-size:12px;color:#e0e0e0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px}.entry-hits{font-size:11px;color:#10b981;background:#10b9811a;padding:4px 10px;border-radius:12px;white-space:nowrap}.no-cache{color:#666;font-style:italic;text-align:center;padding:20px;grid-column:1 / -1}.sim-legend{display:flex;justify-content:center;gap:30px;padding:16px;background:#ffffff05;border-radius:12px}.legend-item{display:flex;align-items:center;gap:8px;font-size:12px;color:#888}.legend-color{width:12px;height:12px;border-radius:50%}.legend-item.l1 .legend-color{background:#10b981;box-shadow:0 0 8px #10b98180}.legend-item.l2 .legend-color{background:#f59e0b;box-shadow:0 0 8px #f59e0b80}.legend-item.l3 .legend-color{background:#3b82f6;box-shadow:0 0 8px #3b82f680}.legend-item.miss .legend-color{background:#ef4444;box-shadow:0 0 8px #ef444480}.query-queue{min-height:50px;display:flex;flex-direction:column;gap:6px;padding:8px}.query-text{font-size:10px}.input-stage{background:linear-gradient(180deg,#6366f11a,#6366f105);border-color:#6366f14d}.output-stage{background:linear-gradient(180deg,#ef44441a,#ef444405);border-color:#ef44444d}@media (max-width: 1200px){.sim-main{grid-template-columns:1fr}.stats-panel{order:-1}.event-log{max-height:200px}.flow-container{flex-wrap:wrap;justify-content:center}.flow-connector{display:none}}@media (max-width: 768px){.sim-header{flex-direction:column;gap:16px;text-align:center}.sim-controls{flex-wrap:wrap;justify-content:center}.sim-legend{flex-wrap:wrap;gap:16px}}.cross-user-simulation{background:#0a0a1a;color:#e0e0e0;padding:2rem;font-family:Segoe UI,system-ui,sans-serif}.simulation-header{text-align:center;margin-bottom:2rem}.simulation-header h1{font-size:2.5rem;color:#f3f4f6;margin-bottom:.5rem;font-weight:700;letter-spacing:-.02em}.subtitle{color:#888;font-size:1.1rem;margin-bottom:1.5rem}.hero-stats{display:flex;gap:3rem;justify-content:center;margin:2rem 0;flex-wrap:wrap}.hero-stat{text-align:center;padding:1rem}.hero-stat-value{font-size:2.5rem;font-weight:700;color:#10b981;margin-bottom:.5rem}.hero-stat-label{color:#999;font-size:.9rem;text-transform:uppercase;letter-spacing:1px}.simulation-divider{text-align:center;margin:4rem 0 2rem;padding:2rem 0;border-top:2px solid rgba(76,175,80,.2)}.simulation-divider h2{font-size:2rem;color:#f3f4f6;font-weight:600;margin-bottom:.75rem}.divider-subtitle{color:#999;font-size:1.1rem;max-width:600px;margin:0 auto}.controls{display:flex;justify-content:center;align-items:center;gap:1.5rem;margin-bottom:2rem;flex-wrap:wrap}.control-btn{padding:.75rem 1.5rem;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease}.control-btn.start{background:linear-gradient(135deg,#4caf50,#45a049);color:#fff}.control-btn.stop{background:linear-gradient(135deg,#ff9800,#f57c00);color:#fff}.control-btn.reset{background:linear-gradient(135deg,#607d8b,#546e7a);color:#fff}.control-btn:hover{transform:translateY(-2px);box-shadow:0 4px 15px #0000004d}.speed-control{display:flex;align-items:center;gap:.75rem;color:#888}.speed-control input{width:100px;accent-color:#4CAF50}.visualization-container{display:grid;grid-template-columns:280px 1fr 300px;gap:2rem;margin-bottom:2rem;min-height:400px}.users-panel{background:#ffffff0d;border-radius:16px;padding:1.5rem;border:1px solid rgba(255,255,255,.1)}.users-panel h3{margin-bottom:1rem;font-size:1.1rem;color:#aaa}.users-grid{display:flex;flex-direction:column;gap:.75rem}.user-card{display:flex;align-items:center;gap:.75rem;padding:.75rem;background:#ffffff08;border-radius:10px;border:2px solid transparent;transition:all .3s ease;position:relative;overflow:hidden}.user-card.active{border-color:var(--user-color);background:#ffffff14}.user-card.hit{animation:hitPulse .5s ease}.user-card.hit:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(90deg,transparent,rgba(76,175,80,.2),transparent);animation:hitSweep .5s ease}.user-card.miss{animation:missGlow 1s ease infinite}@keyframes hitPulse{0%,to{transform:scale(1)}50%{transform:scale(1.02)}}@keyframes hitSweep{0%{transform:translate(-100%)}to{transform:translate(100%)}}@keyframes missGlow{0%,to{box-shadow:0 0 5px #ff98004d}50%{box-shadow:0 0 15px #ff980080}}.user-avatar{font-size:1.5rem;width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:#ffffff1a;border-radius:50%}.user-info{flex:1}.user-name{font-weight:600;color:var(--user-color);font-size:.95rem}.user-role{font-size:.75rem;color:#888}.user-status{font-size:.7rem;padding:.25rem .5rem;border-radius:4px;background:#0000004d}.status-hit{color:#4caf50}.status-miss{color:#ff9800}.status-processing{color:#2196f3}.cache-visualization{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}.central-cache{width:200px;height:200px;background:linear-gradient(135deg,#2196f333,#9c27b033);border:3px solid rgba(33,150,243,.5);border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;animation:cacheGlow 3s ease-in-out infinite}@keyframes cacheGlow{0%,to{box-shadow:0 0 20px #2196f34d,0 0 40px #9c27b033}50%{box-shadow:0 0 30px #2196f380,0 0 60px #9c27b04d}}.cache-icon{font-size:3rem;margin-bottom:.5rem}.cache-label{font-size:.9rem;color:#aaa;text-align:center}.cache-count{font-size:1.2rem;font-weight:700;color:#4caf50;margin-top:.25rem}.connections-svg{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.connection-line{stroke-width:3;stroke-dasharray:5,5;opacity:0;transition:opacity .3s ease}.connection-line.active{opacity:.8;animation:connectionPulse .5s ease}@keyframes connectionPulse{0%{stroke-dashoffset:20;opacity:0}50%{opacity:1}to{stroke-dashoffset:0;opacity:0}}.query-bubbles{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.query-bubble{position:absolute;display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;background:#000000b3;border:2px solid var(--user-color);border-radius:20px;font-size:.75rem;white-space:nowrap;animation:bubbleFloat 1s ease-out;opacity:.9}.query-bubble.sending{left:10%;top:50%;transform:translateY(-50%)}.query-bubble.processing{left:35%;top:50%;transform:translateY(-50%);animation:bubbleProcess .5s ease}.query-bubble.hit{left:50%;top:30%;transform:translate(-50%,-50%);background:#4caf504d;border-color:#4caf50;animation:bubbleHit .5s ease}.query-bubble.miss{left:50%;top:70%;transform:translate(-50%,-50%);background:#ff98004d;border-color:#ff9800}.query-bubble.complete{opacity:0;transition:opacity .3s ease}@keyframes bubbleFloat{0%{opacity:0;transform:translateY(-50%) scale(.8)}to{opacity:.9;transform:translateY(-50%) scale(1)}}@keyframes bubbleProcess{0%,to{transform:translateY(-50%) scale(1)}50%{transform:translateY(-50%) scale(1.05)}}@keyframes bubbleHit{0%{transform:translate(-50%,-50%) scale(.8)}50%{transform:translate(-50%,-50%) scale(1.1)}to{transform:translate(-50%,-50%) scale(1)}}.bubble-avatar{font-size:1rem}.bubble-text{color:#ddd}.bubble-hit-from{color:#4caf50;font-weight:700}.stats-panel{background:#ffffff0d;border-radius:16px;padding:1.5rem;border:1px solid rgba(255,255,255,.1)}.stats-panel h3{margin-bottom:1rem;font-size:1.1rem;color:#aaa}.stat-card{background:#0000004d;border-radius:12px;padding:1.25rem;text-align:center;margin-bottom:1rem}.stat-card.primary{background:linear-gradient(135deg,#2196f34d,#2196f31a);border:1px solid rgba(33,150,243,.3)}.stat-card.savings{background:linear-gradient(135deg,#4caf504d,#4caf501a);border:1px solid rgba(76,175,80,.3)}.stat-value{font-size:2.5rem;font-weight:700;background:linear-gradient(135deg,#4caf50,#2196f3);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.stat-card.savings .stat-value{background:linear-gradient(135deg,#4caf50,#8bc34a);-webkit-background-clip:text;background-clip:text}.stat-label{font-size:.85rem;color:#888;margin-top:.25rem}.stat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem;margin-bottom:1rem}.stat-item{background:#0003;border-radius:8px;padding:.75rem;text-align:center}.stat-item.hit{border-left:3px solid #4CAF50}.stat-item.miss{border-left:3px solid #FF9800}.stat-num{display:block;font-size:1.5rem;font-weight:700;color:#fff}.stat-name{font-size:.7rem;color:#888}.response-time{margin-top:1rem}.time-bar{height:8px;background:#0000004d;border-radius:4px;overflow:hidden}.time-fill{height:100%;border-radius:4px;transition:width .3s ease,background-color .3s ease}.time-label{font-size:.8rem;color:#aaa;margin-top:.5rem;text-align:center}.time-compare{color:#666;font-size:.7rem;display:block}.feed-cache-container{display:grid;grid-template-columns:280px 1fr;gap:2rem;margin-bottom:2rem;height:350px}.event-feed{background:#ffffff0d;border-radius:16px;padding:1.5rem;border:1px solid rgba(255,255,255,.1);height:100%;display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box}.event-feed h3{margin-bottom:1rem;font-size:1.1rem;color:#aaa}.events-list{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:.5rem}.event-item{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;background:#0003;border-radius:8px;font-size:.85rem;animation:eventSlide .3s ease}@keyframes eventSlide{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}.event-item.hit{border-left:3px solid #4CAF50;background:#4caf501a}.event-item.miss{border-left:3px solid #FF9800;background:#ff98001a}.event-item.info{border-left:3px solid #2196F3}.event-user{font-weight:600}.event-text{flex:1;color:#ccc}.event-hit-from{font-size:.75rem;opacity:.8}.cache-contents{background:#0f0f23cc;border-radius:16px;padding:1.5rem;border:1px solid rgba(255,255,255,.1);height:100%;display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box}.cache-contents h3{margin-bottom:1rem;font-size:1.1rem;color:#aaa}.cache-topics{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem;flex:1;overflow-y:auto}.topic-card{background:#0003;border-radius:10px;padding:1rem;border:1px solid rgba(255,255,255,.05)}.topic-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem;padding-bottom:.5rem;border-bottom:1px solid rgba(255,255,255,.1)}.topic-name{font-weight:600;color:#2196f3}.topic-count{font-size:.75rem;color:#888;background:#2196f333;padding:.2rem .5rem;border-radius:10px}.topic-entries{display:flex;flex-direction:column;gap:.4rem}.topic-entry{display:flex;align-items:center;gap:.5rem;font-size:.8rem}.entry-user{font-size:1rem}.entry-query{color:#aaa}.topic-more{font-size:.75rem;color:#666;text-align:center;margin-top:.5rem}.explanation{background:#ffffff08;border-radius:16px;padding:2rem;border:1px solid rgba(255,255,255,.05)}.explanation h3{text-align:center;margin-bottom:1.5rem;font-size:1.3rem;color:#aaa}.explanation-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.5rem}.exp-card{background:#0003;border-radius:12px;padding:1.5rem;text-align:center;transition:transform .3s ease}.exp-card:hover{transform:translateY(-5px)}.exp-icon{font-size:2.5rem;margin-bottom:.75rem}.exp-title{font-weight:600;color:#fff;margin-bottom:.5rem}.exp-text{font-size:.85rem;color:#888;line-height:1.5}@media (max-width: 1200px){.visualization-container{grid-template-columns:1fr;gap:1.5rem}.users-panel{order:1}.cache-visualization{order:2;min-height:300px}.stats-panel{order:3}.users-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem}.feed-cache-container{grid-template-columns:1fr}}@media (max-width: 768px){.cross-user-simulation{padding:1rem}.simulation-header h1{font-size:1.8rem}.users-grid{grid-template-columns:repeat(2,1fr)}.controls{flex-direction:column}.stat-grid{grid-template-columns:repeat(3,1fr)}.explanation-cards{grid-template-columns:1fr 1fr}.feed-cache-container{grid-template-columns:1fr}}.events-list::-webkit-scrollbar{width:6px}.events-list::-webkit-scrollbar-track{background:#0003;border-radius:3px}.events-list::-webkit-scrollbar-thumb{background:#fff3;border-radius:3px}.events-list::-webkit-scrollbar-thumb:hover{background:#ffffff4d}.cache-topics::-webkit-scrollbar{width:6px}.cache-topics::-webkit-scrollbar-track{background:#0003;border-radius:3px}.cache-topics::-webkit-scrollbar-thumb{background:#fff3;border-radius:3px}.cache-topics::-webkit-scrollbar-thumb:hover{background:#ffffff4d}.try-it-section{background:#1a1a3eb3;border:2px solid rgba(76,175,80,.3);border-radius:12px;padding:2rem;margin:2rem auto;max-width:900px}.try-it-section.featured{border:3px solid rgba(76,175,80,.5);box-shadow:0 8px 32px #4caf5033;animation:featurePulse 2s ease-in-out infinite}@keyframes featurePulse{0%,to{box-shadow:0 8px 32px #4caf5033}50%{box-shadow:0 8px 48px #4caf5066}}.try-it-section h2{text-align:center;font-size:1.8rem;background:linear-gradient(135deg,#4caf50,#2196f3);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin-bottom:1.5rem}.try-it-controls{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;flex-wrap:wrap;gap:1rem}.api-toggle{display:flex;align-items:center}.toggle-label{display:flex;align-items:center;gap:.75rem;cursor:pointer;-webkit-user-select:none;user-select:none}.toggle-label input[type=checkbox]{display:none}.toggle-switch{position:relative;width:44px;height:24px;background:#ffffff1a;border-radius:12px;transition:background .3s}.toggle-switch:after{content:"";position:absolute;top:2px;left:2px;width:20px;height:20px;background:#fff;border-radius:50%;transition:transform .3s}.toggle-label input[type=checkbox]:checked+.toggle-switch{background:#4caf50}.toggle-label input[type=checkbox]:checked+.toggle-switch:after{transform:translate(20px)}.toggle-text{color:#ccc;font-size:.9rem}.api-status{padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:600;margin-left:.5rem}.api-status.checking{background:#ffc10733;color:#ffc107}.api-status.online{background:#4caf5033;color:#4caf50}.api-status.offline{background:#f4433633;color:#f44336}.cache-info{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background:#2196f31a;border:1px solid rgba(33,150,243,.3);border-radius:8px;font-size:.9rem;color:#64b5f6}.cache-info-icon{font-size:1.2rem}.try-it-form{display:flex;gap:1rem;margin-bottom:1.5rem}.try-it-input{flex:1;padding:.75rem 1rem;border:2px solid rgba(255,255,255,.1);border-radius:8px;background:#0000004d;color:#e0e0e0;font-size:1rem;transition:border-color .3s}.try-it-input:focus{outline:none;border-color:#4caf50}.try-it-input::placeholder{color:#666}.try-it-button{padding:.75rem 1.5rem;border:none;border-radius:8px;background:linear-gradient(135deg,#4caf50,#45a049);color:#fff;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;white-space:nowrap}.try-it-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 15px #4caf5066}.try-it-button:disabled{opacity:.5;cursor:not-allowed}.try-it-results{margin-bottom:1.5rem}.try-it-results h4{color:#888;font-size:.9rem;margin-bottom:.75rem;text-transform:uppercase;letter-spacing:1px}.try-it-result{background:#0000004d;border-radius:8px;padding:1rem;margin-bottom:.75rem;border-left:3px solid transparent}.try-it-result.hit{border-left-color:#4caf50;background:#4caf501a}.try-it-result.miss{border-left-color:#ff9800;background:#ff98001a}.result-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.result-badge{padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:700;letter-spacing:.5px}.result-badge.hit{background:#4caf5033;color:#4caf50}.result-badge.miss{background:#ff980033;color:#ff9800}.result-time{color:#888;font-size:.85rem;font-weight:600}.result-query{color:#e0e0e0;font-size:.95rem;margin-bottom:.5rem}.result-match{display:flex;align-items:center;gap:.5rem;margin-top:.5rem;padding:.5rem;background:#ffffff0d;border-radius:6px;font-size:.85rem}.match-arrow{color:#4caf50;font-weight:700}.match-text{color:#aaa;flex:1}.match-similarity{padding:.15rem .5rem;background:#4caf5033;color:#4caf50;border-radius:8px;font-size:.75rem;font-weight:600}.result-savings{margin-top:.5rem;color:#4caf50;font-size:.85rem;font-weight:600}.try-it-suggestions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.suggestions-label{color:#888;font-size:.85rem;margin-right:.5rem}.suggestion-chip{padding:.4rem .75rem;border:1px solid rgba(255,255,255,.2);border-radius:16px;background:#ffffff0d;color:#aaa;font-size:.8rem;cursor:pointer;transition:all .2s}.suggestion-chip:hover{background:#4caf5033;border-color:#4caf50;color:#4caf50;transform:translateY(-2px)}@media (max-width: 768px){.try-it-form{flex-direction:column}.try-it-controls{flex-direction:column;align-items:stretch}.hero-stats{gap:1.5rem}.hero-stat-value{font-size:2rem}}.home-page{min-height:100vh;background:#0a0a1a;color:#fff;overflow-x:hidden}.hero{position:relative;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:6rem 2rem;overflow:hidden}.hero-bg{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden}.hero-grid{position:absolute;top:0;right:0;bottom:0;left:0;background-image:linear-gradient(rgba(99,102,241,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(99,102,241,.03) 1px,transparent 1px);background-size:60px 60px}.hero-orb{position:absolute;border-radius:50%;filter:blur(80px);opacity:.6;animation:float 20s ease-in-out infinite}.hero-orb-1{width:600px;height:600px;background:radial-gradient(circle,#6366f1 0%,transparent 70%);top:-200px;right:-100px;animation-delay:0s}.hero-orb-2{width:500px;height:500px;background:radial-gradient(circle,#8b5cf6 0%,transparent 70%);bottom:-150px;left:-100px;animation-delay:-7s}.hero-orb-3{width:400px;height:400px;background:radial-gradient(circle,#06b6d4 0%,transparent 70%);top:50%;left:50%;transform:translate(-50%,-50%);animation-delay:-14s}@keyframes float{0%,to{transform:translate(0) scale(1)}25%{transform:translate(30px,-30px) scale(1.05)}50%{transform:translate(-20px,20px) scale(.95)}75%{transform:translate(-30px,-20px) scale(1.02)}}.hero-content{position:relative;z-index:10;text-align:center;max-width:900px}.hero-badge{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background:#6366f126;border:1px solid rgba(99,102,241,.3);border-radius:50px;font-size:.875rem;color:#a5b4fc;margin-bottom:2rem;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.badge-icon{font-size:1rem}.hero-title{font-size:clamp(3rem,8vw,5.5rem);font-weight:800;line-height:1.1;margin-bottom:1.5rem;letter-spacing:-.02em;color:#f3f4f6}.title-gradient{background:linear-gradient(135deg,#6366f1,#8b5cf6,#06b6d4);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.hero-subtitle{font-size:1.25rem;color:#94a3b8;line-height:1.7;max-width:700px;margin:0 auto 2.5rem}.hero-subtitle strong{color:#10b981;font-weight:600}.hero-cta{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap;margin-bottom:4rem}.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.875rem 1.75rem;border-radius:12px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s ease;border:none;text-decoration:none}.btn-lg{padding:1rem 2rem;font-size:1.1rem}.btn-primary{background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;box-shadow:0 4px 20px #6366f166}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 6px 30px #6366f180}.btn-secondary{background:#ffffff1a;color:#fff;border:1px solid rgba(255,255,255,.2);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.btn-secondary:hover{background:#ffffff26;border-color:#ffffff4d}.btn-ghost{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.2)}.btn-ghost:hover{background:#ffffff1a}.hero-stats{display:flex;align-items:center;justify-content:center;gap:2rem;flex-wrap:wrap}.stat-item{display:flex;flex-direction:column;align-items:center;gap:.25rem}.stat-value{font-size:2rem;font-weight:700;background:linear-gradient(135deg,#10b981,#06b6d4);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.stat-label{font-size:.875rem;color:#64748b}.stat-divider{width:1px;height:40px;background:#ffffff1a}.section{padding:6rem 2rem}.section-container{max-width:1200px;margin:0 auto}.section-header{text-align:center;margin-bottom:4rem}.section-badge{display:inline-block;padding:.375rem 1rem;background:#6366f126;border:1px solid rgba(99,102,241,.3);border-radius:50px;font-size:.875rem;color:#a5b4fc;margin-bottom:1rem}.section-title{font-size:clamp(2rem,5vw,3rem);font-weight:700;margin-bottom:1rem}.section-subtitle{font-size:1.125rem;color:#94a3b8;max-width:600px;margin:0 auto}.how-it-works{background:linear-gradient(180deg,#0a0a1a,#0f0f23)}.flow-diagram{display:flex;align-items:center;justify-content:center;gap:1rem;flex-wrap:wrap}.flow-step{background:#ffffff08;border:1px solid rgba(255,255,255,.08);border-radius:20px;padding:2rem;text-align:center;max-width:280px;transition:all .3s ease}.flow-step:hover{background:#ffffff0d;border-color:#6366f14d;transform:translateY(-4px)}.flow-step.highlighted{background:#6366f11a;border-color:#6366f14d}.flow-icon{width:64px;height:64px;margin:0 auto 1.5rem;background:linear-gradient(135deg,#6366f1,#8b5cf6);border-radius:16px;display:flex;align-items:center;justify-content:center}.flow-icon svg{width:32px;height:32px;color:#fff}.flow-step h3{font-size:1.25rem;font-weight:600;margin-bottom:.75rem}.flow-step p{color:#94a3b8;font-size:.9rem;line-height:1.6}.flow-layers{display:flex;gap:.5rem;justify-content:center;margin-top:1rem;flex-wrap:wrap}.layer{padding:.25rem .75rem;background:#6366f133;border-radius:20px;font-size:.75rem;color:#a5b4fc}.flow-arrow{color:#4b5563;flex-shrink:0}.flow-arrow svg{width:24px;height:24px}.features{background:#0a0a1a}.features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:1.5rem}.feature-card{background:#ffffff05;border:1px solid rgba(255,255,255,.06);border-radius:20px;padding:2rem;transition:all .3s ease}.feature-card:hover{background:#ffffff0a;border-color:#ffffff1a;transform:translateY(-4px)}.feature-icon{width:56px;height:56px;border-radius:14px;display:flex;align-items:center;justify-content:center;margin-bottom:1.5rem}.feature-icon svg{width:28px;height:28px}.feature-icon-purple{background:#8b5cf626;color:#a78bfa}.feature-icon-blue{background:#3b82f626;color:#60a5fa}.feature-icon-green{background:#10b98126;color:#34d399}.feature-icon-orange{background:#f9731626;color:#fb923c}.feature-icon-pink{background:#ec489926;color:#f472b6}.feature-icon-cyan{background:#06b6d426;color:#22d3ee}.feature-card h3{font-size:1.25rem;font-weight:600;margin-bottom:.75rem}.feature-card>p{color:#94a3b8;font-size:.95rem;line-height:1.6;margin-bottom:1rem}.feature-list{list-style:none;padding:0;margin:0}.feature-list li{position:relative;padding-left:1.5rem;color:#64748b;font-size:.875rem;margin-bottom:.5rem}.feature-list li:before{content:"✓";position:absolute;left:0;color:#10b981;font-weight:600}.architecture{background:linear-gradient(180deg,#0f0f23,#0a0a1a)}.architecture-diagram{display:flex;align-items:center;justify-content:center;gap:0;margin-bottom:3rem;flex-wrap:wrap}.arch-layer{background:#ffffff05;border:1px solid rgba(255,255,255,.08);border-radius:20px;padding:2rem;max-width:280px;transition:all .3s ease}.arch-layer:hover{transform:translateY(-4px)}.layer-1{border-color:#10b9814d;background:#10b9810d}.layer-2{border-color:#3b82f64d;background:#3b82f60d}.layer-3{border-color:#8b5cf64d;background:#8b5cf60d}.layer-header{margin-bottom:1rem}.layer-badge{display:inline-block;padding:.25rem .75rem;border-radius:20px;font-size:.75rem;font-weight:600;margin-bottom:.5rem}.layer-1 .layer-badge{background:#10b98133;color:#34d399}.layer-2 .layer-badge{background:#3b82f633;color:#60a5fa}.layer-3 .layer-badge{background:#8b5cf633;color:#a78bfa}.layer-header h3{font-size:1.1rem;font-weight:600}.layer-content{text-align:center}.layer-icon{width:48px;height:48px;margin:0 auto 1rem;border-radius:12px;display:flex;align-items:center;justify-content:center}.layer-1 .layer-icon{background:#10b98133;color:#34d399}.layer-2 .layer-icon{background:#3b82f633;color:#60a5fa}.layer-3 .layer-icon{background:#8b5cf633;color:#a78bfa}.layer-icon svg{width:24px;height:24px}.layer-content p{color:#94a3b8;font-size:.875rem;margin-bottom:1rem}.layer-speed{display:inline-block;padding:.25rem .75rem;background:#10b98126;color:#34d399;border-radius:20px;font-size:.75rem;font-weight:600}.arch-connector{display:flex;flex-direction:column;align-items:center;padding:0 1rem}.connector-line{width:40px;height:2px;background:linear-gradient(90deg,#6366f180,#8b5cf680)}.connector-label{font-size:.75rem;color:#64748b;margin-top:.5rem}.arch-benefits{display:flex;justify-content:center;gap:2rem;flex-wrap:wrap}.benefit-item{display:flex;align-items:center;gap:.75rem;padding:1rem 1.5rem;background:#ffffff05;border:1px solid rgba(255,255,255,.06);border-radius:12px}.benefit-icon{font-size:1.5rem}.benefit-text{color:#94a3b8;font-size:.9rem}.demos{background:#0a0a1a}.demo-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem}.demo-card{display:flex;gap:1.5rem;background:#ffffff05;border:1px solid rgba(255,255,255,.06);border-radius:20px;padding:1.5rem;cursor:pointer;transition:all .3s ease}.demo-card:hover{background:#6366f114;border-color:#6366f14d;transform:translateY(-4px)}.demo-card-icon{flex-shrink:0;width:56px;height:56px;background:linear-gradient(135deg,#6366f133,#8b5cf633);border-radius:14px;display:flex;align-items:center;justify-content:center;color:#a5b4fc}.demo-card-icon svg{width:28px;height:28px}.demo-card-content h3{font-size:1.1rem;font-weight:600;margin-bottom:.5rem}.demo-card-content p{color:#94a3b8;font-size:.875rem;line-height:1.5;margin-bottom:.75rem}.demo-link{color:#a5b4fc;font-size:.875rem;font-weight:500;transition:color .2s}.demo-card:hover .demo-link{color:#c4b5fd}.tech-stack{background:linear-gradient(180deg,#0a0a1a,#0f0f23)}.tech-grid{display:flex;justify-content:center;gap:2rem;flex-wrap:wrap}.tech-item{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:1.5rem 2rem;background:#ffffff05;border:1px solid rgba(255,255,255,.06);border-radius:16px;transition:all .3s ease}.tech-item:hover{background:#ffffff0a;transform:translateY(-4px)}.tech-icon-img{width:56px;height:56px;object-fit:contain}.tech-item span{color:#e2e8f0;font-size:.9rem;font-weight:500}.cta{background:linear-gradient(135deg,#6366f11a,#8b5cf61a);border-top:1px solid rgba(99,102,241,.2);border-bottom:1px solid rgba(99,102,241,.2)}.cta-content{text-align:center}.cta-content h2{font-size:clamp(1.75rem,4vw,2.5rem);font-weight:700;margin-bottom:1rem}.cta-content>p{color:#94a3b8;font-size:1.125rem;margin-bottom:2rem}.cta-buttons{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}.footer{background:#0a0a1a;padding:3rem 2rem;border-top:1px solid rgba(255,255,255,.06)}.footer-content{max-width:1200px;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:1.5rem}.footer-brand{display:flex;align-items:center;gap:.75rem}.footer-logo{font-size:1.5rem}.footer-name{font-size:1.125rem;font-weight:600}.footer-links{display:flex;gap:2rem}.footer-links a{color:#64748b;text-decoration:none;font-size:.9rem;transition:color .2s}.footer-links a:hover{color:#a5b4fc}.footer-license{display:flex;align-items:center;gap:.75rem;color:#4b5563;font-size:.875rem}.footer-separator{color:#374151}@media (max-width: 768px){.hero{padding:4rem 1.5rem}.hero-stats{gap:1.5rem}.stat-divider{display:none}.flow-arrow{transform:rotate(90deg)}.architecture-diagram{flex-direction:column;gap:1rem}.arch-connector{transform:rotate(90deg);padding:1rem 0}.features-grid{grid-template-columns:1fr}.demo-card{flex-direction:column;text-align:center}.demo-card-icon{margin:0 auto}}.app-container{display:flex;flex-direction:column;min-height:100vh;overflow:auto;background:#f8fafc}.app-container.simulation-view{background:#0a0a1a;overflow:auto}.app-container.admin-view{background:#0a0a1a}.app-nav{display:flex;align-items:center;gap:0;background:linear-gradient(135deg,#1f2937,#111827);padding:0;box-shadow:0 4px 20px #0000004d;position:relative;z-index:100}.nav-brand{background:linear-gradient(135deg,#6366f1,#8b5cf6)!important;color:#fff!important;font-weight:600!important;border-right:1px solid rgba(255,255,255,.1)!important}.nav-brand:hover{background:linear-gradient(135deg,#4f46e5,#7c3aed)!important}.nav-spacer{flex:1}.nav-btn{padding:1rem 1.5rem;background:transparent;color:#9ca3af;border:none;font-size:.95rem;font-weight:500;cursor:pointer;transition:all .2s;border-bottom:3px solid transparent;display:flex;align-items:center;gap:.5rem}.nav-btn:hover{background:#6366f11a;color:#fff}.nav-btn.active{background:#6366f126;color:#fff;border-bottom-color:#6366f1}.nav-dropdown{position:relative}.nav-dropdown-trigger{display:flex;align-items:center;gap:.5rem}.dropdown-arrow{transition:transform .2s}.dropdown-arrow.open{transform:rotate(180deg)}.nav-dropdown-menu{position:absolute;top:100%;left:0;background:#1f2937;border:1px solid rgba(255,255,255,.1);border-radius:0 0 12px 12px;box-shadow:0 10px 40px #0006;min-width:180px;overflow:hidden;animation:slideDown .2s ease}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.dropdown-item{display:block;width:100%;padding:.875rem 1.25rem;background:transparent;border:none;color:#9ca3af;font-size:.9rem;text-align:left;cursor:pointer;transition:all .2s}.dropdown-item:hover{background:#6366f126;color:#fff}.dropdown-item.active{background:#6366f133;color:#a5b4fc}.dropdown-item+.dropdown-item{border-top:1px solid rgba(255,255,255,.05)}.app{display:flex;flex-direction:column;flex:1}.header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:1rem 2rem;display:flex;justify-content:space-between;align-items:center;box-shadow:0 2px 4px #0000001a}.header h1{font-size:1.5rem;font-weight:600}.stats{display:flex;align-items:center;gap:1rem;font-size:.9rem}.clear-btn{background:#fff3;color:#fff;border:1px solid rgba(255,255,255,.3);padding:.5rem 1rem;border-radius:6px;cursor:pointer;font-size:.875rem;transition:all .2s}.clear-btn:hover{background:#ffffff4d}.chat-container{flex:1;display:flex;flex-direction:column;max-width:1200px;margin:0 auto;width:100%;padding:1rem;overflow:hidden}.messages{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:1rem}.welcome{text-align:center;padding:3rem 2rem;color:#666}.welcome h2{color:#333;margin-bottom:1rem}.welcome p{margin-bottom:.5rem;line-height:1.6}.hint{font-style:italic;font-size:.9rem;margin-top:1rem!important;color:#888}.message{display:flex;margin-bottom:.5rem}.message.user{justify-content:flex-end}.message.assistant{justify-content:flex-start}.message-content{max-width:70%;padding:1rem;border-radius:12px;word-wrap:break-word}.message.user .message-content{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-bottom-right-radius:4px}.message.assistant .message-content{background:#fff;color:#333;border:1px solid #e0e0e0;border-bottom-left-radius:4px}.message-content p{margin:0;line-height:1.5}.message-meta{margin-top:.5rem;font-size:.75rem;opacity:.9}.cached-badge{background:#4caf50;color:#fff;padding:.25rem .5rem;border-radius:4px;font-weight:500}.fresh-badge{background:#2196f3;color:#fff;padding:.25rem .5rem;border-radius:4px;font-weight:500}.typing-indicator{display:flex;gap:.25rem;padding:.5rem 0}.typing-indicator span{width:8px;height:8px;background:#999;border-radius:50%;animation:typing 1.4s infinite}.typing-indicator span:nth-child(2){animation-delay:.2s}.typing-indicator span:nth-child(3){animation-delay:.4s}@keyframes typing{0%,60%,to{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-10px)}}.input-form{display:flex;gap:.5rem;padding:1rem;background:#fff;border-radius:12px;box-shadow:0 -2px 10px #0000000d}.input-field{flex:1;padding:.75rem 1rem;border:2px solid #e0e0e0;border-radius:8px;font-size:1rem;outline:none;transition:border-color .2s}.input-field:focus{border-color:#667eea}.input-field:disabled{background:#f5f5f5;cursor:not-allowed}.send-btn{padding:.75rem 2rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:transform .2s,opacity .2s}.send-btn:hover:not(:disabled){transform:translateY(-2px)}.send-btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.messages::-webkit-scrollbar{width:8px}.messages::-webkit-scrollbar-track{background:#f1f1f1;border-radius:4px}.messages::-webkit-scrollbar-thumb{background:#888;border-radius:4px}.messages::-webkit-scrollbar-thumb:hover{background:#555}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#0a0a1a}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}#root{min-height:100vh;display:flex;flex-direction:column}
