:root{--bg-dark: #0a0a0f;--bg-panel: #13131f;--primary: #6d28d9;--primary-hover: #7c3aed;--accent: #d8b4fe;--text-main: #ffffff;--text-muted: #94a3b8;--border: rgba(255, 255, 255, .08);--glass: rgba(20, 20, 30, .6);--glass-border: rgba(255, 255, 255, .1);--radius: 12px;--shadow: 0 8px 32px rgba(0, 0, 0, .4);--font-family: "Plus Jakarta Sans", sans-serif}*{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font-family);background-color:var(--bg-dark);background-image:radial-gradient(circle at 15% 50%,rgba(109,40,217,.15) 0%,transparent 25%),radial-gradient(circle at 85% 30%,rgba(59,130,246,.1) 0%,transparent 25%);color:var(--text-main);min-height:100vh;overflow-x:hidden;display:flex;flex-direction:column}.btn{cursor:pointer;border:none;padding:12px 24px;border-radius:var(--radius);font-weight:600;font-size:.95rem;transition:all .2s ease;display:inline-flex;align-items:center;gap:8px;justify-content:center}.btn-primary{background:linear-gradient(135deg,var(--primary),#4f46e5);color:#fff;box-shadow:0 4px 15px #6d28d966}.btn-primary:hover{transform:translateY(-1px);box-shadow:0 6px 20px #6d28d999}.btn-secondary{background:#ffffff0d;color:var(--text-main);border:1px solid var(--border)}.btn-secondary:hover{background:#ffffff1a}.glass-panel{background:var(--glass);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--glass-border);border-radius:var(--radius)}header{padding:1rem 2rem;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border);background:#0a0a0fcc;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);position:sticky;top:0;z-index:100}.logo{font-size:1.5rem;font-weight:700;color:#fff;display:flex;align-items:center;gap:10px;cursor:pointer}.logo span{color:var(--accent)}#landing-view{flex:1;display:block;overflow-y:auto;position:relative}.hero-section{min-height:85vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:2rem;background-image:url(/assets/bg-DwgVQ34I.webp);background-size:cover;background-position:center center;background-repeat:no-repeat;background-attachment:fixed;position:relative}.hero-section:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:radial-gradient(ellipse 80% 60% at center 40%,#0a0a0f4d,#0a0a0fbf 70%,#0a0a0ff2),linear-gradient(to bottom,#0a0a0f66,#0a0a0f80);z-index:0}.hero-section:after{content:"";position:absolute;bottom:0;left:0;right:0;height:150px;background:linear-gradient(to bottom,transparent,rgba(0,0,0,.4));z-index:0}.hero-section>*{position:relative;z-index:1}.hero-title{font-size:3.5rem;line-height:1.1;margin-bottom:1.5rem;background:linear-gradient(to right,#fff,#d8b4fe);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.hero-subtitle{font-size:1.2rem;color:var(--text-muted);max-width:600px;margin-bottom:2.5rem}.features-section{padding:4rem 2rem 6rem;background:#0003;border-top:1px solid var(--border)}.features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem;max-width:1100px;margin:0 auto}.feature-card{padding:2rem;height:100%;display:flex;flex-direction:column;align-items:flex-start;text-align:left;transition:transform .2s}.feature-card:hover{transform:translateY(-5px)}.feature-icon{font-size:2rem;margin-bottom:1.5rem;padding:12px;background:#ffffff0d;border-radius:12px}.modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#000c;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);z-index:1000;display:flex;align-items:center;justify-content:center;padding:1rem}.modal-content{width:100%;max-width:450px;padding:2rem;box-shadow:var(--shadow)}.input-group{margin-bottom:1.5rem;text-align:left}.input-group label{display:block;margin-bottom:.5rem;font-size:.9rem;color:var(--text-muted)}.input-field{width:100%;padding:12px;background:#0000004d;border:1px solid var(--border);border-radius:8px;color:#fff;font-family:inherit;font-size:1rem}.input-field:focus{outline:none;border-color:var(--primary)}#app-view{display:flex;flex:1;overflow:hidden;height:calc(100vh - 73px)}.sidebar{width:380px;border-right:1px solid var(--border);padding:1.5rem;overflow-y:auto;background:#13131f80;display:flex;flex-direction:column;gap:1.5rem}.sidebar-title{font-size:.85rem;text-transform:uppercase;letter-spacing:1px;color:var(--text-muted);margin-bottom:1rem;font-weight:700}.main-area{flex:1;padding:2rem;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow-y:auto;position:relative}.drop-zone{border:2px dashed var(--border);border-radius:var(--radius);padding:2rem;text-align:center;cursor:pointer;transition:all .3s ease;background:#ffffff05;display:flex;flex-direction:column;align-items:center;justify-content:center}.drop-zone:hover{border-color:var(--primary);background:#6d28d90d}.drop-zone.compact{padding:1rem;margin-top:0}.drop-zone.compact p{font-size:.75rem;margin:0}.drop-zone.compact i{font-size:1.2rem!important;margin-bottom:.3rem!important}.drop-zone.compact .drop-zone-max-text{display:none}.drop-zone.disabled{cursor:not-allowed;border-color:#ffffff0d}.drop-zone.disabled:hover{border-color:#ffffff0d;background:#ffffff05}.preview-img-grid{display:none;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:.5rem;margin-bottom:.5rem}.preview-img-wrapper{position:relative;border-radius:8px;overflow:hidden;background:#0000004d;aspect-ratio:1}.preview-img{width:100%;height:100%;object-fit:cover;display:block}.remove-img{position:absolute;top:4px;right:4px;background:#000c;color:#fff;border:none;border-radius:50%;width:22px;height:22px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:.7rem;transition:background .2s}.remove-img:hover{background:#dc2626e6}.select-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}select.input-field{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right 1rem center;background-size:1em}.result-container{width:100%;max-width:1024px;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column}.result-placeholder{color:var(--text-muted);font-size:1.2rem;display:flex;flex-direction:column;align-items:center;gap:1rem}.generated-image{max-width:100%;max-height:70vh;border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid var(--glass-border);min-height:300px;background:#000}.history-panel{position:fixed;right:0;top:73px;bottom:0;width:320px;background:var(--bg-panel);border-left:1px solid var(--border);transform:translate(100%);transition:transform .3s ease;z-index:50;padding:1.5rem;overflow-y:auto}.history-panel.open{transform:translate(0)}.history-item{margin-bottom:1.5rem;border-bottom:1px solid var(--border);padding-bottom:1rem}.history-img{width:100%;border-radius:8px;margin-bottom:.5rem;background:#000;aspect-ratio:16/9;object-fit:cover}.history-prompt{font-size:.8rem;color:var(--text-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.loader{width:48px;height:48px;border:5px solid #FFF;border-bottom-color:var(--primary);border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (max-width: 900px){#app-view{flex-direction:column;height:auto;overflow:visible}.sidebar{width:100%;height:auto;border-right:none;border-bottom:1px solid var(--border)}.main-area{min-height:500px}.hero-title{font-size:2.5rem}}.marketing-section{padding:5rem 2rem;border-top:1px solid var(--border)}.marketing-section.alt{background:#ffffff05}.section-header{text-align:center;max-width:800px;margin:0 auto 4rem}.section-header h2{font-size:2.5rem;margin-bottom:1rem;background:linear-gradient(to right,#fff,var(--accent));-webkit-background-clip:text;-webkit-text-fill-color:transparent}.section-header p{color:var(--text-muted);font-size:1.1rem;line-height:1.6}.steps-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:3rem;max-width:1100px;margin:0 auto;counter-reset:step}.step-card{position:relative;padding:2rem;text-align:center}.step-number{font-size:4rem;font-weight:800;color:#ffffff0d;position:absolute;top:0;left:50%;transform:translate(-50%);z-index:0}.step-content{position:relative;z-index:1}.split-layout{display:flex;align-items:center;gap:4rem;max-width:1100px;margin:0 auto}.split-content{flex:1;text-align:left}.split-visual{flex:1;background:linear-gradient(135deg,#13131fcc,#6d28d91a);border:1px solid var(--border);border-radius:20px;aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.chart-container{width:80%;height:60%;position:relative;border-left:1px solid rgba(255,255,255,.1);border-bottom:1px solid rgba(255,255,255,.1)}.chart-line{position:absolute;top:0;left:0;width:100%;height:100%;stroke:#f87171;stroke-width:2;fill:none;stroke-dasharray:300;stroke-dashoffset:300;animation:drawChart 5s ease-in-out infinite;opacity:.8}@keyframes drawChart{0%{stroke-dashoffset:300;opacity:0}15%{opacity:1}85%{stroke-dashoffset:0;opacity:1}to{stroke-dashoffset:0;opacity:0}}.chart-dot{display:none}.faq-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem;max-width:1000px;margin:0 auto}.faq-item h3{margin-bottom:.5rem;color:var(--text-main)}.faq-item p{color:var(--text-muted);font-size:.95rem;line-height:1.5}@media (max-width: 768px){.split-layout{flex-direction:column}.faq-grid{grid-template-columns:1fr}}.error-modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#000000bf;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:9999;display:flex;align-items:center;justify-content:center;padding:1rem;opacity:0;transition:opacity .3s ease}.error-modal-overlay.show{opacity:1}.error-modal-content{width:100%;max-width:500px;background:#1a1a1a;background:var(--bg-card, #1e1e1e);border:1px solid rgba(239,68,68,.2);border-radius:16px;box-shadow:0 25px 50px -12px #000000b3;overflow:hidden;transform:scale(.95);transition:transform .3s cubic-bezier(.34,1.56,.64,1)}.error-modal-overlay.show .error-modal-content{transform:scale(1)}.error-modal-header{padding:1.5rem;display:flex;align-items:center;gap:1rem;border-bottom:1px solid rgba(255,255,255,.05);background:linear-gradient(to bottom,rgba(220,38,38,.05),transparent)}.error-icon-wrapper{flex-shrink:0;width:40px;height:40px;border-radius:10px;background:#dc26261a;color:#ef4444;display:flex;align-items:center;justify-content:center}.error-icon-wrapper svg{width:24px;height:24px}.error-header-text{flex:1;padding-top:2px}.error-modal-title{font-size:1.125rem;font-weight:600;color:#fff;margin:0;line-height:1.4}.error-close-btn{background:transparent;border:none;color:#6b7280;cursor:pointer;padding:4px;border-radius:6px;transition:all .2s;display:flex;align-items:center;justify-content:center}.error-close-btn:hover{background:#ffffff1a;color:#fff}.error-close-btn svg{width:20px;height:20px}.error-modal-body{padding:1.5rem}.error-status-wrapper{margin-bottom:1rem}.error-status-badge{display:inline-block;padding:4px 10px;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#fca5a5;background:#7f1d1d80;border:1px solid rgba(239,68,68,.3);border-radius:99px}.error-modal-message{font-size:.95rem;line-height:1.6;color:#d1d5db;margin:0}.error-action-btn{display:inline-flex;align-items:center;justify-content:center;width:100%;padding:.75rem 1rem;background:#dc2626;color:#fff;font-weight:600;font-size:.95rem;border:none;border-radius:8px;cursor:pointer;transition:background .2s,transform .1s;box-shadow:0 4px 6px #dc262633}.error-action-btn:hover{background:#b91c1c;transform:translateY(-1px)}.error-action-btn:active{transform:translateY(0)}.error-details-wrapper{padding:0 1.5rem 1.5rem;border-top:1px solid rgba(255,255,255,.05);margin-top:0}.error-details-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;padding:1rem 0;background:transparent;border:none;color:#9ca3af;font-size:.875rem;cursor:pointer;transition:color .2s}.error-details-toggle:hover{color:#fff}.error-details-container{background:#111;border:1px solid #333;border-radius:8px;margin-top:.5rem;overflow:hidden}.error-details-scroll{max-height:200px;overflow-y:auto;padding:1rem;scrollbar-width:thin;scrollbar-color:#4b5563 #1f2937}.error-details-content{font-family:Menlo,Monaco,Courier New,monospace;font-size:.75rem;color:#ef4444;margin:0;white-space:pre-wrap;word-break:break-all;line-height:1.4}.error-copy-wrapper{background:#1a1a1a;border-top:1px solid #333;padding:.5rem;display:flex;justify-content:flex-end}.error-copy-btn{background:transparent;border:1px solid #4b5563;color:#9ca3af;font-size:.75rem;padding:4px 8px;border-radius:4px;cursor:pointer;transition:all .2s}.error-copy-btn:hover{background:#374151;color:#fff;border-color:#6b7280}.error-modal-footer{background:#0003;padding:1rem 1.5rem;display:flex;justify-content:flex-end;border-top:1px solid rgba(255,255,255,.05)}.hidden{display:none!important}@media (max-width: 640px){.error-modal-content{width:95%;margin:0 auto}.error-modal-header,.error-modal-body,.error-details-wrapper,.error-modal-actions{padding:1rem}}code[class*=language-],pre[class*=language-]{color:#ccc;background:none;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#2d2d2d}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.comment,.token.block-comment,.token.prolog,.token.doctype,.token.cdata{color:#999}.token.punctuation{color:#ccc}.token.tag,.token.attr-name,.token.namespace,.token.deleted{color:#e2777a}.token.function-name{color:#6196cc}.token.boolean,.token.number,.token.function{color:#f08d49}.token.property,.token.class-name,.token.constant,.token.symbol{color:#f8c555}.token.selector,.token.important,.token.atrule,.token.keyword,.token.builtin{color:#cc99cd}.token.string,.token.char,.token.attr-value,.token.regex,.token.variable{color:#7ec699}.token.operator,.token.entity,.token.url{color:#67cdcc}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.inserted{color:green}
