* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #0a0a0a; color: #e0e0e0; min-height: 100vh; }
.home-logo { position: fixed; top: 15px; left: 15px; z-index: 1000; cursor: pointer; }
.container { max-width: 1200px; margin: 0 auto; padding: 60px 20px 20px; }
.page-header { margin-bottom: 0.8rem; }
.breadcrumb { font-size: 0.85rem; color: #666; margin-bottom: 0.5rem; }
.breadcrumb a { color: #4a9eff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-title { font-size: 1.6rem; font-weight: 300; color: #fff; }
.page-title span { color: #ff6b6b; }
.steps-indicator { display: flex; gap: 0.5rem; margin-bottom: 1rem; align-items: center; }
.step-dot { width: 10px; height: 10px; border-radius: 50%; background: #333; transition: all 0.3s; cursor: pointer; }
.step-dot.active { background: #4a9eff; transform: scale(1.3); }
.step-dot.completed { background: #4a9eff; opacity: 0.5; }
.step-line { flex: 1; height: 2px; background: #222; max-width: 40px; }
.step-label { color: #888; font-size: 0.85rem; margin-left: 1rem; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 800px) { .comparison { grid-template-columns: 1fr; } }
.comp-panel { display: flex; flex-direction: column; gap: 0.5rem; }
.comp-header { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; padding: 0.4rem 0.8rem; border-radius: 6px 6px 0 0; text-align: center; }
.comp-header.bad { color: #ff6b6b; background: rgba(255,107,107,0.08); border: 1px solid rgba(255,107,107,0.15); border-bottom: none; }
.comp-header.good { color: #4ade80; background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.15); border-bottom: none; }
.graph-panel { background: #111; border: 1px solid #222; border-radius: 0 0 8px 8px; padding: 0.8rem; position: relative; }
.graph-title { font-size: 0.75rem; color: #666; margin-bottom: 0.4rem; }
.graph-canvas { width: 100%; height: 180px; display: block; }
.status-row { display: flex; gap: 0.5rem; }
.status-card { background: #111; border: 1px solid #222; border-radius: 8px; padding: 0.5rem 0.7rem; flex: 1; transition: all 0.3s; }
.status-card-label { font-size: 0.7rem; color: #666; text-transform: uppercase; letter-spacing: 0.1em; }
.status-card-value { font-size: 1.1rem; font-weight: 600; transition: color 0.3s; }
.status-green { color: #4ade80; border-color: rgba(74,222,128,0.2); }
.status-red { color: #ff6b6b; border-color: rgba(255,107,107,0.3); }
.alert-badge { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; background: #ff6b6b; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; opacity: 0; transform: scale(0); transition: all 0.3s; }
.alert-badge.visible { opacity: 1; transform: scale(1); }
.repair-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(10,10,10,0.92); border: 1px solid rgba(74,158,255,0.3); border-radius: 12px; padding: 0.8rem 1.2rem; display: flex; align-items: center; gap: 0.7rem; opacity: 0; pointer-events: none; transition: opacity 0.4s; z-index: 10; }
.repair-overlay.visible { opacity: 1; }
.repair-icon { font-size: 1.4rem; animation: wrench 0.5s ease-in-out infinite; }
@keyframes wrench { 0%,100% { transform: rotate(0deg); } 30% { transform: rotate(-25deg); } 70% { transform: rotate(25deg); } }
.repair-text { color: #4a9eff; font-size: 0.85rem; font-weight: 500; }
.repair-dots::after { content: ''; animation: dots 1.5s steps(4,end) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.ok-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(10,10,10,0.92); border: 1px solid rgba(74,222,128,0.3); border-radius: 12px; padding: 0.8rem 1.2rem; text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.4s; z-index: 10; }
.ok-overlay.visible { opacity: 1; }
.ok-overlay .ok-icon { font-size: 1.4rem; margin-bottom: 0.2rem; }
.ok-overlay .ok-text { color: #4ade80; font-size: 0.85rem; font-weight: 500; }
.wear-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(10,10,10,0.92); border: 1px solid rgba(255,170,50,0.3); border-radius: 12px; padding: 0.8rem 1.2rem; text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.4s; z-index: 10; }
.wear-overlay.visible { opacity: 1; }
.wear-overlay .wear-icon { font-size: 1.3rem; margin-bottom: 0.2rem; }
.wear-overlay .wear-title { color: #ffaa32; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; }
.wear-overlay .wear-line { color: #999; font-size: 0.75rem; line-height: 1.5; }
.cost-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(10,10,10,0.94); border: 1px solid rgba(255,107,107,0.3); border-radius: 12px; padding: 1rem 1.4rem; text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.4s; z-index: 10; }
.cost-overlay.visible { opacity: 1; }
.cost-overlay .cost-icon { font-size: 1.4rem; margin-bottom: 0.3rem; }
.cost-overlay .cost-title { color: #ff6b6b; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem; }
.cost-overlay .cost-row { display: flex; justify-content: space-between; gap: 1.5rem; color: #999; font-size: 0.78rem; line-height: 1.8; }
.cost-overlay .cost-val { color: #ff6b6b; font-weight: 600; }
.cost-overlay .cost-total { margin-top: 0.4rem; padding-top: 0.4rem; border-top: 1px solid #333; display: flex; justify-content: space-between; color: #fff; font-size: 0.85rem; font-weight: 600; }
.cost-overlay .cost-total .cost-val { color: #ff6b6b; font-size: 0.95rem; }
.cost-overlay .cost-downtime { color: #666; font-size: 0.7rem; margin-top: 0.3rem; }
.chat-scene { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.95); z-index: 900; display: flex; align-items: center; gap: 1.5rem; opacity: 0; pointer-events: none; transition: all 0.4s ease; }
.chat-scene.visible { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.chat-character { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; width: 70px; flex-shrink: 0; opacity: 0.25; transition: all 0.4s ease; }
.chat-character.active { opacity: 1; }
.char-avatar { width: 72px; height: 72px; border-radius: 50%; background: #151515; border: 2px solid #2a2a2a; display: flex; align-items: center; justify-content: center; transition: all 0.4s ease; overflow: hidden; }
.char-avatar svg { width: 56px; height: 56px; }
.chat-director.active .char-avatar { border-color: #ff6b6b; box-shadow: 0 0 16px rgba(255,107,107,0.2); }
.chat-engineer.active .char-avatar { border-color: #4a9eff; box-shadow: 0 0 16px rgba(74,158,255,0.2); }
.char-name { font-size: 0.7rem; color: #555; transition: color 0.3s; }
.chat-director.active .char-name { color: #ff6b6b; }
.chat-engineer.active .char-name { color: #4a9eff; }
.chat-window { width: 360px; background: #111; border: 1px solid #222; border-radius: 12px; overflow: hidden; }
.tg-chat-header { padding: 0.6rem 0.8rem; background: #0d0d0d; border-bottom: 1px solid #222; }
.tg-chat-title { color: #fff; font-size: 0.9rem; font-weight: 600; }
.chat-messages { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.8rem; max-height: 280px; overflow-y: auto; min-height: 80px; }
.chat-msg { padding: 0.5rem 0.7rem; border-radius: 8px; font-size: 0.82rem; line-height: 1.4; opacity: 0; transform: translateY(8px); transition: all 0.3s ease; }
.chat-msg.visible { opacity: 1; transform: translateY(0); }
.chat-msg-bot { background: #1a1a2e; border: 1px solid #2a2a4a; color: #8899bb; font-size: 0.78rem; }
.chat-msg-question { background: #1c1111; border: 1px solid rgba(255,107,107,0.15); color: #ddb8b8; align-self: flex-start; max-width: 85%; }
.chat-msg-answer { background: #0f1a2a; border: 1px solid rgba(74,158,255,0.15); color: #99c4ff; align-self: flex-end; max-width: 85%; }
.chat-sender { font-size: 0.7rem; font-weight: 600; margin-bottom: 0.15rem; }
.chat-msg-question .chat-sender { color: #ff6b6b; }
.chat-msg-answer .chat-sender { color: #4a9eff; }
.chat-msg-bot .chat-sender { color: #6677aa; }
.chat-msg-time { font-size: 0.6rem; color: #444; margin-top: 0.2rem; }
@media (max-width: 600px) { .chat-character { display: none; } .chat-window { width: 90vw; } }
.step-text { background: #111; border: 1px solid #222; border-radius: 8px; padding: 0.8rem 1.2rem; margin-bottom: 1rem; font-size: 0.95rem; line-height: 1.5; color: #bbb; transition: opacity 0.3s; }
.nav-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.nav-btn { padding: 0.5rem 1.2rem; border: 1px solid #333; border-radius: 4px; background: transparent; color: #4a9eff; font-size: 0.95rem; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.nav-btn:hover { border-color: #4a9eff; background: rgba(74,158,255,0.1); }
.nav-btn:disabled { opacity: 0.3; cursor: default; }
.nav-btn:disabled:hover { border-color: #333; background: transparent; }
.nav-btn.primary { background: rgba(74,158,255,0.15); border-color: #4a9eff; }
.nav-btn.pulse { animation: btnPulse 2s ease-in-out infinite; }
@keyframes btnPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(74,158,255,0); } 50% { box-shadow: 0 0 12px 2px rgba(74,158,255,0.3); } }
.step-counter { color: #555; font-size: 0.85rem; }
.cta-buttons { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; opacity: 0; transform: translateY(10px); transition: all 0.4s; }
.cta-buttons.visible { opacity: 1; transform: translateY(0); }
.cta-btn { padding: 0.8rem 1.5rem; border: 1px solid #333; border-radius: 4px; background: transparent; color: #4a9eff; text-decoration: none; font-size: 0.95rem; transition: all 0.2s; }
.cta-btn:hover { border-color: #4a9eff; background: rgba(74,158,255,0.1); }
.cta-btn.primary { background: #4a9eff; color: #0a0a0a; border-color: #4a9eff; font-weight: 600; }
.cta-btn.primary:hover { background: #6bb3ff; }
.intro-overlay { position: fixed; inset: 0; z-index: 800; background: rgba(10,10,10,0.85); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; transition: opacity 0.5s; }
.intro-overlay.hidden { opacity: 0; pointer-events: none; }
.intro-bubble { text-align: center; max-width: 480px; padding: 2.5rem 2rem; background: #111; border: 1px solid #222; border-radius: 16px; }
.intro-bubble h2 { font-size: 1.4rem; font-weight: 300; color: #fff; margin-bottom: 0.6rem; }
.intro-bubble p { color: #888; font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.5rem; }
.intro-bubble p span { color: #ff6b6b; }
.intro-start { padding: 0.8rem 2rem; border: none; border-radius: 8px; background: #4a9eff; color: #0a0a0a; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s; animation: btnPulse 2s ease-in-out infinite; }
.intro-start:hover { background: #6bb3ff; transform: scale(1.03); }
