*,:before,:after{box-sizing:border-box;margin:0;padding:0}:root{--bg:#07070f;--surface:#0d0d1f;--surface-2:#13132a;--border:#1a1a38;--border-hover:#28285a;--accent:#7c3aed;--accent-hover:#6d28d9;--accent-dim:#7c3aed24;--text:#ededff;--text-2:#8b8bbb;--text-3:#42425a;--green:#10b981;--red:#ef4444;--r:14px;--rs:8px;--shadow:0 8px 40px #0000008c}html{scroll-behavior:smooth;font-size:16px}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;min-height:100vh;font-family:Inter,system-ui,-apple-system,sans-serif;line-height:1.6}.container{max-width:720px;margin:0 auto;padding:0 1.5rem}.header{z-index:100;-webkit-backdrop-filter:blur(18px);border-bottom:1px solid var(--border);background:#07070fe0;position:sticky;top:0}.header-inner{justify-content:space-between;align-items:center;height:62px;display:flex}.logo{align-items:baseline;gap:0;text-decoration:none;display:flex}.logo-mark{background:linear-gradient(135deg,#a855f7 0%,#3b82f6 100%);-webkit-text-fill-color:transparent;letter-spacing:-.02em;-webkit-background-clip:text;background-clip:text;font-size:1.6rem;font-weight:800}.logo-text{color:var(--text);letter-spacing:-.02em;font-size:1.6rem;font-weight:800}.logo-sep{background:var(--border);align-self:center;width:1px;height:16px;margin:0 .875rem}.logo-tagline{color:var(--text-3);letter-spacing:.07em;text-transform:uppercase;font-size:.7rem;font-weight:600}.header-auth{align-items:center;gap:.75rem;display:flex}.hero{text-align:center;background:radial-gradient(70% 50% at 50% 0,#7c3aed14 0%,#0000 70%);padding:5.5rem 0 4.5rem}.hero-badge{letter-spacing:.09em;text-transform:uppercase;color:var(--accent);background:var(--accent-dim);border:1px solid #7c3aed47;border-radius:99px;align-items:center;gap:.4rem;margin-bottom:1.75rem;padding:.35rem .875rem;font-size:.725rem;font-weight:700;display:inline-flex}.hero-badge-dot{background:var(--accent);border-radius:50%;width:6px;height:6px;animation:2s ease-in-out infinite pulse}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.85)}}.hero-heading{letter-spacing:-.03em;margin-bottom:1.25rem;font-size:clamp(2rem,5.5vw,3.5rem);font-weight:800;line-height:1.12}.gradient-text{background:linear-gradient(135deg,#a855f7 0%,#3b82f6 100%);-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text}.hero-sub{color:var(--text-2);max-width:500px;margin:0 auto;font-size:1.0625rem;line-height:1.75}.tool-section{padding-bottom:7rem}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);box-shadow:var(--shadow);margin-bottom:1.25rem;overflow:hidden}.tabs{border-bottom:1px solid var(--border);display:flex}.tab{color:var(--text-2);cursor:pointer;background:0 0;border:none;flex:1;justify-content:center;align-items:center;gap:.4rem;padding:.875rem .5rem;font-size:.875rem;font-weight:500;transition:color .15s,background .15s;display:flex;position:relative}.tab:hover{color:var(--text);background:var(--accent-dim)}.tab-active{color:var(--text);font-weight:600}.tab-active:after{content:"";background:linear-gradient(90deg,#a855f7,#3b82f6);border-radius:2px 2px 0 0;height:2px;position:absolute;bottom:-1px;left:0;right:0}.input-area{padding:1.25rem}.input-field{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--rs);width:100%;color:var(--text);resize:vertical;outline:none;padding:.875rem 1rem;font-family:inherit;font-size:.9375rem;line-height:1.6;transition:border-color .15s,box-shadow .15s}.input-field::placeholder{color:var(--text-3)}.input-field:focus{border-color:var(--accent);box-shadow:0 0 0 3px #7c3aed1f}.input-url{resize:none;height:52px}.drop-zone{border:2px dashed var(--border);border-radius:var(--rs);text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none;padding:2.75rem 1.5rem;transition:border-color .15s,background .15s}.drop-zone:hover{border-color:var(--accent);background:var(--accent-dim)}.drop-zone-placeholder{flex-direction:column;align-items:center;gap:.5rem;display:flex}.dz-icon{background:var(--surface-2);border:1px solid var(--border);width:44px;height:44px;color:var(--text-3);border-radius:10px;justify-content:center;align-items:center;margin-bottom:.25rem;font-size:1.2rem;display:flex}.dz-label{color:var(--text-2);font-size:.9rem;font-weight:500}.dz-hint{color:var(--text-3);font-size:.75rem}.drop-zone-selected{color:var(--green);justify-content:center;align-items:center;gap:.5rem;font-size:.9rem;font-weight:600;display:flex}.dz-check{background:#10b98126;border:1px solid #10b98166;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:22px;height:22px;font-size:.7rem;display:flex}.error-banner{border-radius:var(--rs);color:#fca5a5;background:#ef444414;border:1px solid #ef444438;margin:0 1.25rem .875rem;padding:.75rem 1rem;font-size:.875rem;line-height:1.5}.card-footer{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:1rem;min-height:60px;padding:.875rem 1.25rem;display:flex}.remaining-badge{color:var(--text-3);font-size:.75rem;font-weight:500}.btn{border-radius:var(--rs);cursor:pointer;white-space:nowrap;border:none;justify-content:center;align-items:center;gap:.5rem;min-height:40px;padding:.625rem 1.4rem;font-family:inherit;font-size:.9rem;font-weight:600;transition:all .15s;display:inline-flex}.btn-primary{background:linear-gradient(135deg, var(--accent), #6366f1);color:#fff;min-width:130px;box-shadow:0 2px 12px #7c3aed59}.btn-primary:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 20px #7c3aed80}.btn-primary:active:not(:disabled){transform:translateY(0)}.btn-primary:disabled{opacity:.55;cursor:not-allowed;box-shadow:none;transform:none}.btn-ghost{color:var(--text-2);border:1px solid var(--border);background:0 0;padding:.5rem 1rem;font-size:.85rem}.btn-ghost:hover{border-color:var(--border-hover);color:var(--text);background:var(--surface-2)}.btn-send{background:linear-gradient(135deg, var(--accent), #6366f1);color:#fff;height:40px;padding:0 1.25rem;box-shadow:0 2px 10px #7c3aed47}.btn-send:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 16px #7c3aed66}.btn-send:disabled{opacity:.5;cursor:not-allowed;box-shadow:none;transform:none}.spinner{border:2px solid #ffffff4d;border-top-color:#fff;border-radius:50%;flex-shrink:0;width:15px;height:15px;animation:.65s linear infinite spin;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.result-header{justify-content:space-between;align-items:flex-start;gap:1rem;padding:1.5rem 1.5rem 0;display:flex}.result-title{flex:1;font-size:1.2rem;font-weight:700;line-height:1.35}.remaining-pill{background:var(--accent-dim);color:var(--accent);white-space:nowrap;letter-spacing:.02em;border:1px solid #7c3aed40;border-radius:99px;flex-shrink:0;padding:.25rem .65rem;font-size:.7rem;font-weight:700}.result-section{border-top:1px solid var(--border);padding:1.125rem 1.5rem}.result-label{letter-spacing:.1em;text-transform:uppercase;color:var(--accent);margin-bottom:.625rem;font-size:.685rem;font-weight:800;display:block}.result-summary{color:var(--text-2);font-size:.9375rem;line-height:1.8}.key-points{flex-direction:column;gap:.55rem;list-style:none;display:flex}.key-points li{color:var(--text-2);align-items:flex-start;gap:.625rem;font-size:.9375rem;line-height:1.65;display:flex}.key-points li:before{content:"";background:linear-gradient(135deg,#a855f7,#3b82f6);border-radius:50%;flex-shrink:0;width:6px;height:6px;margin-top:.55rem}.chat-card{flex-direction:column;display:flex}.chat-header{border-bottom:1px solid var(--border);align-items:center;gap:.5rem;padding:.875rem 1.25rem;display:flex}.chat-header-dot{background:var(--green);border-radius:50%;width:8px;height:8px;box-shadow:0 0 6px #10b98180}.chat-title{color:var(--text-2);font-size:.875rem;font-weight:600}.chat-messages{scroll-behavior:smooth;flex-direction:column;flex:1;gap:.75rem;min-height:180px;max-height:420px;padding:1.125rem;display:flex;overflow-y:auto}.chat-messages::-webkit-scrollbar{width:4px}.chat-messages::-webkit-scrollbar-track{background:0 0}.chat-messages::-webkit-scrollbar-thumb{background:var(--border);border-radius:2px}.chat-empty{flex:1;justify-content:center;align-items:center;padding:2rem;display:flex}.chat-empty p{color:var(--text-3);text-align:center;max-width:300px;font-size:.875rem;line-height:1.6}.message{display:flex}.message-user{justify-content:flex-end}.message-assistant{justify-content:flex-start}.message-bubble{white-space:pre-wrap;word-break:break-word;max-width:82%;padding:.7rem 1rem;font-size:.9rem;line-height:1.65}.message-user .message-bubble{background:linear-gradient(135deg, var(--accent), #6366f1);color:#fff;border-radius:14px 14px 4px;box-shadow:0 2px 12px #7c3aed4d}.message-assistant .message-bubble{background:var(--surface-2);color:var(--text);border:1px solid var(--border);border-radius:14px 14px 14px 4px}.message-loading{min-width:60px;padding:1rem}.typing-dots{align-items:center;gap:4px;height:16px;display:flex}.typing-dots span{background:var(--text-3);border-radius:50%;width:7px;height:7px;animation:1.2s ease-in-out infinite typing}.typing-dots span:nth-child(2){animation-delay:.18s}.typing-dots span:nth-child(3){animation-delay:.36s}@keyframes typing{0%,80%,to{opacity:.4;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}.chat-input-row{border-top:1px solid var(--border);gap:.625rem;padding:.875rem 1.25rem;display:flex}.chat-input{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--rs);color:var(--text);outline:none;flex:1;height:40px;padding:0 .875rem;font-family:inherit;font-size:.9rem;transition:border-color .15s,box-shadow .15s}.chat-input::placeholder{color:var(--text-3)}.chat-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px #7c3aed1a}.chat-input:disabled{opacity:.6;cursor:not-allowed}.modal-overlay{-webkit-backdrop-filter:blur(10px);z-index:999;background:#000000bf;justify-content:center;align-items:center;padding:1.5rem;animation:.15s fadeIn;display:flex;position:fixed;inset:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal{background:var(--surface);border:1px solid var(--border);border-radius:20px;width:100%;max-width:460px;padding:2.25rem;animation:.2s slideUp;position:relative;box-shadow:0 32px 100px #000000bf}@keyframes slideUp{0%{opacity:0;transform:translateY(16px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}.modal-close{background:var(--surface-2);border:1px solid var(--border);width:30px;height:30px;color:var(--text-2);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;font-size:1.1rem;line-height:1;transition:color .15s,background .15s;display:flex;position:absolute;top:1rem;right:1rem}.modal-close:hover{background:var(--border);color:var(--text)}.modal-content{text-align:center}.modal-icon{background:linear-gradient(135deg,#7c3aed33,#6366f133);border:1px solid #7c3aed40;border-radius:18px;justify-content:center;align-items:center;width:64px;height:64px;margin:0 auto 1.25rem;font-size:1.75rem;display:flex}.modal-title{margin-bottom:.6rem;font-size:1.375rem;font-weight:700}.modal-sub{color:var(--text-2);margin-bottom:1.5rem;font-size:.9rem;line-height:1.65}.upgrade-box{background:var(--accent-dim);border-radius:var(--rs);border:1px solid #7c3aed40;margin-bottom:1rem;padding:1rem 1.25rem}.upgrade-box-title{color:var(--accent);letter-spacing:.05em;text-transform:uppercase;margin-bottom:.35rem;font-size:.825rem;font-weight:700}.upgrade-box-text{color:var(--text-2);font-size:.85rem}.modal-note{color:var(--text-3);font-size:.775rem}.footer{border-top:1px solid var(--border);text-align:center;padding:1.5rem 0}.footer p{color:var(--text-3);font-size:.8rem}@media (width<=640px){.hero{padding:3.5rem 0 3rem}.hero-heading{font-size:1.875rem}.logo-sep,.logo-tagline{display:none}.result-header{flex-direction:column;gap:.5rem}.result-header .remaining-pill{align-self:flex-start}.message-bubble{max-width:88%}.modal{border-radius:16px;padding:1.75rem}.card-footer{flex-wrap:wrap}}
