.header{position:fixed;top:0;left:0;right:0;z-index:1000;background:#000000e6;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid rgba(255,255,255,.1)}.header-container{max-width:1200px;margin:0 auto;padding:1.25rem 2rem;display:flex;align-items:center;justify-content:space-between;gap:2rem;position:relative}.logo{display:flex;align-items:center;gap:.5rem;cursor:pointer;transition:transform .3s ease}.logo:hover{transform:scale(1.05)}.logo-icon{width:120px;height:60px;object-fit:cover;object-position:center;filter:drop-shadow(0 4px 16px rgba(0,0,0,.6));border-radius:8px}.nav{display:flex;gap:3rem;justify-content:center;align-items:center;position:absolute;left:50%;transform:translate(-50%)}.nav-link{background:none;color:#fffc;font-size:1rem;font-weight:500;padding:.75rem 1.5rem;position:relative;transition:all .3s ease;border-radius:8px;white-space:nowrap}.nav-link:after{content:"";position:absolute;bottom:4px;left:50%;transform:translate(-50%) scaleX(0);width:80%;height:2px;background:var(--cyan);border-radius:1px;transition:transform .3s ease}.nav-link:hover{color:var(--white);background:#ffffff0d}.nav-link.active{color:var(--white);background:#00d4ff1a}.nav-link.active:after{transform:translate(-50%) scaleX(1)}.header-actions{display:flex;gap:1rem}.btn-secondary{background:transparent;color:var(--white);border:2px solid rgba(255,255,255,.3);padding:.75rem 1.75rem;border-radius:10px;font-weight:600;font-size:.95rem;transition:all .3s ease;white-space:nowrap}.btn-secondary:hover{background:var(--white);color:var(--black);border-color:var(--white);transform:translateY(-1px);box-shadow:0 4px 12px #fff3}@media (max-width: 768px){.header-container{padding:1rem;gap:1rem;flex-wrap:wrap;justify-content:center}.logo{width:100%;justify-content:center;order:1}.logo-icon{width:80px;height:40px}.nav{position:static;transform:none;gap:1rem;width:100%;justify-content:center;order:2}.nav-link{padding:.5rem 1rem;font-size:.85rem;white-space:nowrap}.btn-secondary{padding:.625rem 1.25rem;font-size:.875rem}}@media (max-width: 1024px){.nav{gap:2rem}.nav-link{padding:.625rem 1.25rem;font-size:.95rem}}.document-intelligence{min-height:100vh;padding-top:6rem;padding-bottom:4rem;background:linear-gradient(180deg,#000,#0a0a0a)}.di-container{max-width:1200px;margin:0 auto;padding:0 2rem}.di-header{text-align:center;margin-bottom:3rem}.di-header h1{font-size:3rem;margin-bottom:1rem;background:linear-gradient(135deg,#fff,#ffffffb3);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.di-header p{font-size:1.25rem;color:#fff9;display:block;visibility:visible}.di-tabs{display:flex;gap:1rem;margin-bottom:2rem;border-bottom:1px solid rgba(255,255,255,.1)}.tab{background:none;color:#fff9;padding:1rem 2rem;font-size:1rem;font-weight:600;position:relative;transition:all .3s ease}.tab:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--cyan);transform:scaleX(0);transition:transform .3s ease}.tab.active{color:var(--white)}.tab.active:after{transform:scaleX(1)}.di-content{background:#08213533;border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:3rem;min-height:500px;position:relative}.upload-section{display:flex;flex-direction:column;gap:2rem}.upload-area{border:2px dashed rgba(0,212,255,.3);border-radius:12px;padding:4rem 2rem;text-align:center;transition:all .3s ease;cursor:pointer}.upload-area:hover{border-color:var(--cyan);background:#00d4ff0d}.upload-label{cursor:pointer;display:block}.upload-icon{font-size:4rem;margin-bottom:1rem}.upload-area h3{font-size:1.5rem;margin-bottom:.5rem}.upload-area p{color:#fff9;margin-bottom:1rem}.upload-formats{display:inline-block;padding:.5rem 1rem;background:#ffffff0d;border-radius:6px;font-size:.875rem;color:#ffffff80}.divider{text-align:center;position:relative;margin:2rem 0}.divider:before,.divider:after{content:"";position:absolute;top:50%;width:45%;height:1px;background:#ffffff1a}.divider:before{left:0}.divider:after{right:0}.divider span{color:#fff6;background:#08213533;padding:0 1rem}.paste-section{text-align:center}.paste-section h3{margin-bottom:1rem;font-size:1.25rem}.paste-textarea{width:100%;background:#0006;border:1px solid rgba(255,255,255,.1);border-radius:8px;padding:1rem;color:var(--white);font-size:.95rem;line-height:1.6;resize:vertical;font-family:Courier New,monospace}.paste-textarea:focus{outline:none;border-color:var(--cyan)}.text-section{display:flex;flex-direction:column;gap:1.5rem}.text-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}.text-actions{display:flex;gap:1rem}.btn-analyze{background:linear-gradient(135deg,var(--cyan) 0%,var(--blue) 100%);color:var(--white);padding:.75rem 1.5rem;border-radius:8px;font-weight:600;transition:all .3s ease}.btn-analyze:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 20px #00d4ff4d}.btn-analyze:disabled{opacity:.6;cursor:not-allowed}.btn-clear{background:#ffffff1a;color:var(--white);padding:.75rem 1.5rem;border-radius:8px;font-weight:600;transition:all .3s ease}.btn-download{background:linear-gradient(135deg,var(--cyan) 0%,var(--blue) 100%);color:var(--white);padding:.75rem 1.5rem;border-radius:8px;font-weight:600;transition:all .3s ease;border:none;box-shadow:0 4px 12px #00d4ff4d}.btn-chat{background:#ffffff1a;color:var(--white);padding:.75rem 1.5rem;border-radius:8px;font-weight:600;transition:all .3s ease}.btn-download:hover{transform:translateY(-2px);box-shadow:0 6px 20px #00d4ff66}.btn-clear:hover,.btn-chat:hover{background:#fff3}.text-preview{background:#0006;border:1px solid rgba(255,255,255,.1);border-radius:8px;padding:2rem;max-height:500px;overflow-y:auto}.text-preview pre{color:#fffc;font-family:Courier New,monospace;font-size:.95rem;line-height:1.6;white-space:pre-wrap;word-wrap:break-word}.results-section{display:flex;flex-direction:column;gap:2rem}.results-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}.results-actions{display:flex;gap:1rem}.analysis-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem}.analysis-card{background:#0006;border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:2rem;transition:all .3s ease}.analysis-card:hover{border-color:#00d4ff4d;transform:translateY(-4px)}.analysis-card h3{font-size:1.25rem;margin-bottom:1rem;color:var(--cyan)}.analysis-content{color:#fffc;line-height:1.7;white-space:pre-wrap}.citations-card{grid-column:1 / -1}.citations-list,.key-points-list{list-style:none;display:flex;flex-direction:column;gap:.75rem}.citations-list li,.key-points-list li{padding-left:1.5rem;position:relative;color:#fffc;line-height:1.6}.citations-list li:before{content:"📌";position:absolute;left:0}.key-points-list li:before{content:"•";position:absolute;left:0;color:var(--cyan);font-size:1.5rem;line-height:1}.loading-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:#000c;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;border-radius:16px;z-index:100}.spinner{width:50px;height:50px;border:3px solid rgba(0,212,255,.2);border-top-color:var(--cyan);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error-message{background:#ff3b301a;border:1px solid rgba(255,59,48,.3);border-radius:8px;padding:1rem;color:#ff3b30;display:flex;align-items:center;gap:.75rem;margin-top:1rem}.error-icon{font-size:1.25rem}@media (max-width: 768px){.di-container{padding:0 1rem}.di-header h1{font-size:2rem;margin-bottom:.75rem}.di-header p{font-size:1rem!important;display:block!important;visibility:visible!important;opacity:1!important;color:#fff9;margin-top:.5rem}.di-content{padding:1.5rem}.di-tabs{overflow-x:auto}.tab{padding:.75rem 1rem;font-size:.875rem;white-space:nowrap}.analysis-grid{grid-template-columns:1fr}.text-header,.results-header{flex-direction:column;align-items:flex-start}.text-actions,.results-actions{width:100%;flex-direction:column}.btn-analyze,.btn-clear,.btn-chat,.btn-download{width:100%}.document-intelligence{padding-top:10rem;padding-bottom:2rem}.di-header{margin-bottom:2rem;padding:0 .5rem}.results-header{padding:1.5rem}}.legal-chat{min-height:100vh;padding-top:6rem;padding-bottom:2rem;background:linear-gradient(180deg,#000,#0a0a0a)}.chat-container{max-width:1200px;margin:0 auto;padding:0 2rem;display:flex;flex-direction:column;height:calc(100vh - 6rem);position:relative}.chat-header{text-align:center;margin-bottom:2rem;display:flex;flex-direction:column;gap:1rem;align-items:center}.chat-header-content{text-align:center;display:flex;flex-direction:column;gap:1rem;align-items:center}.chat-header-content h1{font-size:2.5rem;margin-bottom:.5rem;background:linear-gradient(135deg,#fff,#ffffffb3);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.chat-header-content p{font-size:1.125rem;color:#fff9;display:block;visibility:visible}.document-badge{background:#00d4ff1a;border:1px solid rgba(0,212,255,.3);border-radius:8px;padding:.75rem 1.5rem;display:inline-flex;align-items:center;gap:.5rem;font-size:.95rem;color:var(--cyan);align-self:center}.chat-messages{flex:1;overflow-y:auto;background:#08213533;border:1px solid rgba(255,255,255,.1);border-radius:20px;padding:2rem;margin-bottom:1.5rem;display:flex;flex-direction:column;gap:1.5rem;scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:rgba(0,212,255,.3) transparent}.chat-messages::-webkit-scrollbar{width:6px}.chat-messages::-webkit-scrollbar-track{background:transparent}.chat-messages::-webkit-scrollbar-thumb{background:#00d4ff4d;border-radius:3px}.chat-messages::-webkit-scrollbar-thumb:hover{background:#00d4ff80}.message{display:flex;gap:1rem;align-items:flex-start;animation:messageSlideIn .3s ease-out}.assistant-message{margin-left:-.5rem}@keyframes messageSlideIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.user-message{flex-direction:row-reverse}.message-avatar{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.25rem;flex-shrink:0;background:#ffffff14;border:2px solid rgba(255,255,255,.15);box-shadow:0 2px 8px #0003;transition:all .3s ease}.assistant-message .message-avatar{background:linear-gradient(135deg,#082135cc,#00d4ff1a);border-color:#00d4ff4d}.avatar-image{width:100%;height:100%;object-fit:cover;border-radius:50%}.user-message .message-avatar{background:linear-gradient(135deg,var(--cyan) 0%,var(--blue) 100%);border:none;box-shadow:0 4px 12px #00d4ff4d}.message-content{max-width:75%;background:#0009;border:1px solid rgba(255,255,255,.1);border-radius:18px;padding:1.25rem 1.5rem;box-shadow:0 4px 20px #0000004d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:all .3s ease}.message-content:hover{transform:translateY(-1px);box-shadow:0 6px 25px #0006}.user-message .message-content{background:linear-gradient(135deg,#00d4ff26,#0066ff1a);border-color:#00d4ff66;box-shadow:0 4px 20px #00d4ff33}.message-text{color:#fffffff2;line-height:1.7;white-space:pre-wrap;word-wrap:break-word;font-size:.95rem;margin-bottom:.5rem}.message-timestamp{color:#fff6;font-size:.75rem;text-align:right;margin-top:.5rem;font-weight:500}.typing-indicator{display:flex;gap:.5rem;padding:.5rem 0;align-items:center}.typing-indicator span{width:8px;height:8px;border-radius:50%;background:var(--cyan);animation:typing 1.4s infinite;box-shadow:0 0 10px #00d4ff80}.typing-indicator span:nth-child(2){animation-delay:.2s}.typing-indicator span:nth-child(3){animation-delay:.4s}@keyframes typing{0%,60%,to{transform:translateY(0);opacity:.7}30%{transform:translateY(-10px);opacity:1}}.chat-input-container{background:#08213566;border:1px solid rgba(255,255,255,.15);border-radius:20px;padding:1.25rem;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 8px 32px #0000004d}.chat-input-wrapper{display:flex;gap:1rem;align-items:flex-end}.chat-input{flex:1;background:#0009;border:2px solid rgba(255,255,255,.1);border-radius:12px;padding:1rem 1.25rem;color:var(--white);font-size:1rem;line-height:1.6;resize:none;max-height:150px;font-family:inherit;transition:all .3s ease;box-shadow:0 4px 12px #0003}.chat-input:focus{outline:none;border-color:var(--cyan);box-shadow:0 0 0 3px #00d4ff1a,0 6px 20px #0000004d;background:#000000b3}.chat-input:disabled{opacity:.6;cursor:not-allowed}.send-button{width:52px;height:52px;border-radius:12px;background:linear-gradient(135deg,var(--cyan) 0%,var(--blue) 100%);display:flex;align-items:center;justify-content:center;font-size:2.5rem;font-weight:900;color:#fff;transition:all .3s ease;flex-shrink:0;box-shadow:0 4px 16px #00d4ff4d;border:2px solid rgba(255,255,255,.2);cursor:pointer;text-shadow:0 1px 2px rgba(0,0,0,.3)}.send-button:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 8px 25px #00d4ff66;background:linear-gradient(135deg,#00e5ff,#06f)}.send-button:active:not(:disabled){transform:translateY(-1px)}.send-button:disabled{opacity:.4;cursor:not-allowed;transform:none}@media (max-width: 768px){.chat-container{padding:0 1rem;height:calc(100vh - 6rem)}.chat-header-content h1{font-size:1.75rem}.chat-messages{padding:1rem}.message-content{max-width:80%}.suggestions-grid{grid-template-columns:1fr}.legal-chat{padding-top:10rem;padding-bottom:1rem}.chat-container{height:calc(100vh - 5rem)}.chat-header{margin-bottom:1.5rem;padding:0 .5rem}.chat-header-content h1{font-size:1.5rem;margin-bottom:.5rem}.chat-header-content p{font-size:1rem!important;display:block!important;visibility:visible!important;opacity:1!important;color:#fff9;margin-top:.5rem}.chat-header{margin-bottom:1.5rem}}.footer{background:#000000f2;border-top:1px solid rgba(255,255,255,.1);padding:3rem 0 1.5rem;margin-top:auto}.footer-container{max-width:1400px;margin:0 auto;padding:0 2rem}.footer-bottom{padding-top:2rem;border-top:1px solid rgba(255,255,255,.05);text-align:center}.footer-bottom p{color:#fff6;font-size:.875rem}.app{min-height:100vh;display:flex;flex-direction:column}.container{max-width:1200px;margin:0 auto;padding:0 2rem}*{margin:0;padding:0;box-sizing:border-box}:root{--navy: #082135;--black: #000000;--white: #ffffff;--gray-light: #f5f5f5;--gray-medium: #666666;--gray-dark: #333333;--cyan: #00d4ff;--blue: #0066ff}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:var(--black);color:var(--white);overflow-x:hidden}#root{min-height:100vh}::-webkit-scrollbar{width:10px}::-webkit-scrollbar-track{background:var(--black)}::-webkit-scrollbar-thumb{background:var(--navy);border-radius:5px}::-webkit-scrollbar-thumb:hover{background:#0a2d4d}@keyframes fadeIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes slideIn{0%{transform:translate(-100%);opacity:0}to{transform:translate(0);opacity:1}}.fade-in{animation:fadeIn .6s ease-out}button{font-family:inherit;cursor:pointer;border:none;outline:none}input,textarea{font-family:inherit}
