/* ==========================================================================
   pxdrop — Full Design System
   ========================================================================== */

:root {
    --bg:         #050507;
    --bg2:        #0a0a0f;
    --surface:    #111116;
    --surface2:   #19191f;
    --border:     #222230;
    --border2:    #2c2c3a;
    --text:       #ededf0;
    --text2:      #8e8ea0;
    --text3:      #5a5a6e;
    --accent:     #635bff;
    --accent2:    #7c75ff;
    --accent-bg:  rgba(99,91,255,0.10);
    --accent-glow:rgba(99,91,255,0.25);
    --green:      #3ecf8e;
    --green-bg:   rgba(62,207,142,0.10);
    --red:        #f75e5e;
    --red-bg:     rgba(247,94,94,0.08);
    --radius:     10px;
    --radius-lg:  14px;
    --font:       'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
    --mono:       'SF Mono','Fira Code','Cascadia Code',Consolas,monospace;
    --ease:       150ms ease;
    --max-w:      1080px;
}

@media (prefers-color-scheme:light) {
    :root {
        --bg:#f7f7f8;--bg2:#eef0f2;--surface:#fff;--surface2:#f3f3f5;
        --border:#dddde3;--border2:#ccccd4;--text:#111116;--text2:#6e6e80;
        --text3:#9e9eb0;--accent:#635bff;--accent2:#4f46e5;
        --accent-bg:rgba(99,91,255,0.07);--accent-glow:rgba(99,91,255,0.12);
        --green-bg:rgba(62,207,142,0.08);--red-bg:rgba(247,94,94,0.05);
    }
}

/* Reset */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none!important}
body{font-family:var(--font);background:var(--bg);color:var(--text);line-height:1.6;-webkit-font-smoothing:antialiased;min-height:100vh;display:flex;flex-direction:column;font-size:15px}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;border:none;background:none;cursor:pointer;color:inherit}
input{font:inherit}

.container{max-width:var(--max-w);margin:0 auto;padding:0 28px;width:100%}
.main{flex:1}

/* ==========================================================================
   Nav
   ========================================================================== */
.nav{position:sticky;top:0;z-index:100;background:rgba(5,5,7,0.72);backdrop-filter:saturate(180%) blur(16px);-webkit-backdrop-filter:saturate(180%) blur(16px);border-bottom:1px solid var(--border)}
@media(prefers-color-scheme:light){.nav{background:rgba(247,247,248,0.80)}}
.nav-inner{display:flex;align-items:center;justify-content:space-between;height:56px}
.nav-brand{display:flex;align-items:center;gap:9px;transition:opacity var(--ease)}
.nav-brand:hover{opacity:0.7}
.nav-logo{width:30px;height:30px;display:flex;align-items:center;justify-content:center;background:var(--accent);color:#fff;border-radius:8px}
.nav-name{font-weight:700;font-size:1.05rem;letter-spacing:-0.03em}
.nav-links{display:flex;align-items:center;gap:6px}
.nav-link{padding:6px 12px;font-size:0.82rem;color:var(--text2);border-radius:6px;transition:all var(--ease)}
.nav-link:hover{color:var(--text);background:var(--surface2)}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border-radius:8px;font-size:0.82rem;font-weight:550;white-space:nowrap;transition:all var(--ease);border:1px solid transparent;line-height:1.4;text-decoration:none;cursor:pointer}
.btn:active{transform:scale(0.97)}
.btn-primary{background:var(--accent);color:#fff}
.btn-primary:hover{background:var(--accent2);box-shadow:0 0 24px var(--accent-glow)}
.btn-secondary{background:var(--surface2);color:var(--text);border-color:var(--border)}
.btn-secondary:hover{background:var(--border)}
.btn-ghost{color:var(--text2)}
.btn-ghost:hover{color:var(--text);background:var(--surface2)}
.btn-sm{padding:6px 13px;font-size:0.78rem}
.btn-lg{padding:12px 28px;font-size:0.92rem;border-radius:10px}
.btn-success{background:var(--green)!important;border-color:var(--green)!important;color:#fff!important}
.btn-copy{border-radius:0 8px 8px 0;border-left:1px solid rgba(255,255,255,0.15)}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{background:var(--bg);border-bottom:1px solid var(--border);position:relative;overflow:hidden}
.hero::before{content:'';position:absolute;top:-40%;left:50%;transform:translateX(-50%);width:800px;height:500px;background:radial-gradient(ellipse,var(--accent-glow),transparent 70%);opacity:0.4;pointer-events:none}
.hero-inner{text-align:center;padding:72px 0 56px;position:relative}
.hero-badge{display:inline-block;padding:5px 14px;border-radius:999px;font-size:0.72rem;font-weight:500;letter-spacing:0.02em;color:var(--text2);border:1px solid var(--border);background:var(--surface);margin-bottom:24px}
.hero-title{font-size:3.2rem;font-weight:800;letter-spacing:-0.04em;line-height:1.08;margin-bottom:20px}
.hero-accent{background:linear-gradient(135deg,var(--accent) 0%,#a78bfa 40%,#f472b6 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.hero-desc{font-size:1.02rem;color:var(--text2);line-height:1.7;max-width:500px;margin:0 auto 32px}
.hero-cta{margin:0 auto}

/* ==========================================================================
   Stats Bar
   ========================================================================== */
.stats-bar{border-bottom:1px solid var(--border);background:var(--surface)}
.stats-inner{display:flex;align-items:center;justify-content:center;gap:0;padding:18px 0}
.stat{flex:1;text-align:center;padding:4px 0}
.stat-value{display:block;font-size:1.15rem;font-weight:700;letter-spacing:-0.02em}
.stat-label{display:block;font-size:0.7rem;color:var(--text3);margin-top:2px;text-transform:uppercase;letter-spacing:0.04em}
.stat-sep{width:1px;height:36px;background:var(--border);flex-shrink:0}

/* ==========================================================================
   Upload Section
   ========================================================================== */
.upload-section{padding:48px 0 40px}
.upload-container{max-width:580px}

/* Dropzone */
.dropzone{position:relative;border-radius:var(--radius-lg);cursor:pointer;overflow:hidden;border:1px solid var(--border);background:var(--surface);transition:border-color 0.3s,box-shadow 0.3s}
.dropzone:hover,.dropzone.drag-over{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent),0 0 40px -10px var(--accent-glow)}
.dropzone-glow{position:absolute;inset:0;background:radial-gradient(600px circle at var(--mx,50%) var(--my,50%),var(--accent-bg),transparent 60%);opacity:0;transition:opacity 0.4s;pointer-events:none}
.dropzone:hover .dropzone-glow,.dropzone.drag-over .dropzone-glow{opacity:1}
.dropzone-inner{position:relative;padding:48px 40px 40px;display:flex;flex-direction:column;align-items:center;gap:4px}
.dropzone-icon{width:52px;height:52px;display:flex;align-items:center;justify-content:center;border-radius:14px;background:var(--accent-bg);color:var(--accent);margin-bottom:16px;transition:transform 0.2s}
.dropzone:hover .dropzone-icon,.dropzone.drag-over .dropzone-icon{transform:translateY(-2px)}
.dropzone-title{font-size:1.02rem;font-weight:600;display:block}
.dropzone-or{color:var(--text2);font-size:0.86rem}
.dropzone-or u{color:var(--accent);text-decoration-color:var(--accent);text-underline-offset:3px;cursor:pointer}
.dropzone-formats{margin-top:16px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:center}
.dropzone-formats span{font-size:0.68rem;font-weight:500;color:var(--text3);padding:2px 8px;background:var(--surface2);border-radius:4px}
.dropzone-formats .dropzone-limit{background:none;padding:0}
.dropzone-kbd{margin-top:10px;font-size:0.72rem;color:var(--text3)}
.dropzone-kbd kbd{display:inline-block;padding:1px 5px;font-family:var(--font);font-size:0.68rem;font-weight:500;background:var(--bg2);border:1px solid var(--border);border-radius:4px;color:var(--text2);line-height:1.5}

/* Upload Progress */
.upload-progress{display:flex;gap:14px;align-items:center;padding:14px 16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}
.upload-progress:not([hidden]){animation:fadeUp .2s ease}
.upload-progress-thumb{width:44px;height:44px;border-radius:8px;overflow:hidden;flex-shrink:0;background:var(--surface2)}
.upload-progress-thumb img{width:100%;height:100%;object-fit:cover}
.upload-progress-body{flex:1;min-width:0}
.upload-progress-name{font-size:0.82rem;font-weight:500;margin-bottom:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.upload-progress-bar{height:3px;background:var(--border);border-radius:2px;overflow:hidden}
.upload-progress-fill{height:100%;width:0%;background:var(--accent);border-radius:2px;transition:width .12s ease}
.upload-progress-pct{font-size:0.7rem;color:var(--text3);text-align:right;margin-top:4px}

/* Upload Done */
.upload-done{display:flex;gap:16px;padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}
.upload-done:not([hidden]){animation:fadeUp .25s ease}
.upload-done-thumb{width:72px;height:72px;border-radius:8px;overflow:hidden;flex-shrink:0;background:var(--surface2)}
.upload-done-thumb img{width:100%;height:100%;object-fit:cover}
.upload-done-body{flex:1;min-width:0}
.upload-done-check{display:flex;align-items:center;gap:6px;font-size:0.82rem;font-weight:600;color:var(--green);margin-bottom:10px}
.upload-done-url{display:flex;margin-bottom:10px}
.upload-done-url input{flex:1;min-width:0;padding:7px 10px;background:var(--bg);color:var(--text);border:1px solid var(--border);border-right:none;border-radius:8px 0 0 8px;font-family:var(--mono);font-size:0.76rem;outline:none}
.upload-done-url input:focus{border-color:var(--accent)}
.upload-done-actions{display:flex;gap:16px}
.link-action{font-size:0.78rem;color:var(--text2);cursor:pointer;background:none;border:none;padding:0;transition:color var(--ease)}
.link-action:hover{color:var(--accent)}
.upload-error{padding:11px 14px;background:var(--red-bg);color:var(--red);border:1px solid rgba(247,94,94,0.18);border-radius:var(--radius);font-size:0.82rem;margin-top:12px}
.upload-error:not([hidden]){animation:fadeUp .2s ease}

/* ==========================================================================
   Sections (shared)
   ========================================================================== */
.section{padding:72px 0}
.section-alt{background:var(--surface)}
.section-header{text-align:center;margin-bottom:48px}
.section-title{font-size:1.8rem;font-weight:700;letter-spacing:-0.03em;margin-bottom:10px}
.section-subtitle{color:var(--text2);font-size:0.95rem}

/* ==========================================================================
   How It Works (Steps)
   ========================================================================== */
.steps{display:flex;align-items:flex-start;justify-content:center;gap:0}
.step{flex:1;max-width:260px;text-align:center;padding:0 16px;position:relative}
.step-num{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;font-size:0.72rem;font-weight:700;background:var(--accent-bg);color:var(--accent);border:1px solid var(--accent);margin-bottom:16px}
.step-icon{width:48px;height:48px;display:flex;align-items:center;justify-content:center;margin:0 auto 14px;border-radius:12px;background:var(--surface2);color:var(--text2)}
.step h3{font-size:0.95rem;font-weight:600;margin-bottom:8px}
.step p{font-size:0.82rem;color:var(--text2);line-height:1.6}
.step-arrow{display:flex;align-items:center;padding-top:60px;color:var(--text3)}

/* ==========================================================================
   Features Grid
   ========================================================================== */
.features-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.feature-card{padding:28px 24px;border-radius:var(--radius);border:1px solid var(--border);background:var(--bg);transition:border-color 0.2s,box-shadow 0.2s}
.feature-card:hover{border-color:var(--accent);box-shadow:0 0 24px var(--accent-glow)}
.feature-icon{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:var(--accent-bg);color:var(--accent);margin-bottom:16px}
.feature-card h3{font-size:0.9rem;font-weight:600;margin-bottom:6px}
.feature-card p{font-size:0.8rem;color:var(--text2);line-height:1.6}

/* ==========================================================================
   Use Cases
   ========================================================================== */
.usecases{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
.usecase{display:flex;align-items:center;gap:8px;padding:10px 18px;border-radius:999px;border:1px solid var(--border);background:var(--surface);font-size:0.82rem;font-weight:500;transition:border-color var(--ease),background var(--ease)}
.usecase:hover{border-color:var(--accent);background:var(--accent-bg)}
.usecase-emoji{font-size:1rem}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list{max-width:640px;margin:0 auto}
.faq-item{border:1px solid var(--border);border-radius:var(--radius);margin-bottom:8px;background:var(--bg);overflow:hidden;transition:border-color var(--ease)}
.faq-item[open]{border-color:var(--border2)}
.faq-item summary{padding:16px 20px;font-size:0.9rem;font-weight:550;cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;transition:background var(--ease)}
.faq-item summary:hover{background:var(--surface2)}
.faq-item summary::after{content:'+';font-size:1.1rem;color:var(--text3);font-weight:400;transition:transform 0.2s}
.faq-item[open] summary::after{content:'\2212'}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item p{padding:0 20px 16px;font-size:0.85rem;color:var(--text2);line-height:1.7}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section{padding:72px 0;border-top:1px solid var(--border);background:var(--surface)}
.cta-inner{text-align:center}
.cta-inner h2{font-size:1.6rem;font-weight:700;letter-spacing:-0.02em;margin-bottom:10px}
.cta-inner p{color:var(--text2);font-size:0.92rem;margin-bottom:24px}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{background:var(--bg2);border-top:1px solid var(--border)}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;padding:56px 28px 40px}
.footer-about{max-width:280px}
.footer-brand{display:flex;align-items:center;gap:9px;margin-bottom:14px;font-weight:700;font-size:1rem;letter-spacing:-0.02em}
.footer-desc{font-size:0.78rem;color:var(--text3);line-height:1.7}
.footer-col h4{font-size:0.72rem;font-weight:600;text-transform:uppercase;letter-spacing:0.06em;color:var(--text3);margin-bottom:14px}
.footer-col a{display:block;font-size:0.82rem;color:var(--text2);padding:4px 0;transition:color var(--ease)}
.footer-col a:hover{color:var(--text)}
.footer-bottom{display:flex;align-items:center;justify-content:space-between;padding:20px 28px;border-top:1px solid var(--border);font-size:0.72rem;color:var(--text3)}

/* ==========================================================================
   Viewer (view page)
   ========================================================================== */
.viewer-container{padding-top:28px;padding-bottom:48px;max-width:960px}
.viewer{margin-bottom:28px}
.viewer-canvas{border-radius:var(--radius-lg);overflow:hidden;border:1px solid var(--border);margin-bottom:14px;
    background-color:#141418;
    background-image:linear-gradient(45deg,#1a1a1f 25%,transparent 25%),linear-gradient(-45deg,#1a1a1f 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#1a1a1f 75%),linear-gradient(-45deg,transparent 75%,#1a1a1f 75%);
    background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0;
    display:flex;align-items:center;justify-content:center;min-height:160px}
@media(prefers-color-scheme:light){.viewer-canvas{background-color:#eaeaee;background-image:linear-gradient(45deg,#dddde0 25%,transparent 25%),linear-gradient(-45deg,#dddde0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#dddde0 75%),linear-gradient(-45deg,transparent 75%,#dddde0 75%)}}
.viewer-img{max-width:100%;max-height:78vh;width:auto;height:auto}
.viewer-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-wrap:wrap}
.viewer-meta{display:flex;align-items:center;gap:8px;font-size:0.8rem;color:var(--text2);flex-wrap:wrap;min-width:0}
.viewer-filename{font-weight:600;color:var(--text);max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.viewer-dot{width:3px;height:3px;border-radius:50%;background:var(--text3);flex-shrink:0}
.viewer-btns{display:flex;gap:6px;flex-shrink:0}

/* Share section */
.share-section{padding:24px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}
.share-title{font-size:0.95rem;font-weight:600;margin-bottom:16px}
.share-grid{display:flex;flex-direction:column;gap:10px}
.share-item label{display:block;font-size:0.72rem;font-weight:500;color:var(--text3);margin-bottom:4px;text-transform:uppercase;letter-spacing:0.04em}
.share-input-wrap{display:flex}
.share-input{flex:1;min-width:0;padding:7px 10px;background:var(--bg);color:var(--text);border:1px solid var(--border);border-right:none;border-radius:8px 0 0 8px;font-family:var(--mono);font-size:0.74rem;outline:none}
.share-input:focus{border-color:var(--accent)}
.share-copy{padding:7px 14px;background:var(--surface2);color:var(--text2);border:1px solid var(--border);border-radius:0 8px 8px 0;font-size:0.74rem;font-weight:500;cursor:pointer;transition:all var(--ease);white-space:nowrap}
.share-copy:hover{background:var(--border);color:var(--text)}
.share-copy.copied{background:var(--green);color:#fff;border-color:var(--green)}

/* Upload share section (index page) */
.upload-share{margin-top:16px;padding:24px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}
.upload-share:not([hidden]){animation:fadeUp .3s ease}

/* ==========================================================================
   Static Pages (terms, privacy, contact)
   ========================================================================== */
.static-page{max-width:700px;padding-top:56px;padding-bottom:72px}
.static-page h1{font-size:2rem;font-weight:700;letter-spacing:-0.03em;margin-bottom:8px}
.static-updated{font-size:0.82rem;color:var(--text3);margin-bottom:36px}
.static-page h2{font-size:1.1rem;font-weight:600;margin-top:32px;margin-bottom:10px}
.static-page p{font-size:0.88rem;color:var(--text2);line-height:1.75;margin-bottom:12px}
.static-page ul{margin:0 0 16px 20px;font-size:0.88rem;color:var(--text2);line-height:1.8}
.static-page a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}
.static-page a:hover{color:var(--accent2)}

/* Contact cards */
.contact-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:32px 0 40px}
.contact-card{padding:24px 20px;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);text-align:center}
.contact-icon{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:var(--accent-bg);color:var(--accent);margin:0 auto 14px}
.contact-card h3{font-size:0.9rem;font-weight:600;margin-bottom:6px}
.contact-card p{font-size:0.78rem;color:var(--text2);line-height:1.5;margin-bottom:12px}
.contact-link{display:inline-block;font-size:0.82rem;color:var(--accent);font-weight:500;text-decoration:underline;text-underline-offset:3px}
.contact-link:hover{color:var(--accent2)}

.contact-note{margin-top:40px;padding:24px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}
.contact-note h2{font-size:1rem;font-weight:600;margin-bottom:10px;margin-top:0}
.contact-note p{font-size:0.85rem;color:var(--text2);line-height:1.7;margin-bottom:10px}
.contact-note ul{margin:0 0 10px 20px;font-size:0.85rem;color:var(--text2);line-height:1.8}
.contact-note a{color:var(--accent)}

/* ==========================================================================
   Error Page
   ========================================================================== */
.error-page{text-align:center;padding:100px 24px}
.error-code{font-size:7rem;font-weight:800;letter-spacing:-0.05em;line-height:1;color:var(--border);margin-bottom:12px}
.error-title{font-size:1.3rem;font-weight:600;margin-bottom:8px}
.error-desc{color:var(--text2);margin-bottom:28px;font-size:0.92rem}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeUp{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media(max-width:768px){
    .hero-title{font-size:2.2rem}
    .hero-inner{padding:48px 0 40px}
    .features-grid{grid-template-columns:1fr}
    .steps{flex-direction:column;align-items:center;gap:24px}
    .step-arrow{display:none}
    .step{max-width:100%}
    .footer-grid{grid-template-columns:1fr 1fr;gap:28px}
    .footer-about{max-width:100%;grid-column:1/-1}
    .stats-inner{flex-wrap:wrap;gap:0}
    .stat{min-width:50%}
    .stat-sep{display:none}
}

@media(max-width:768px){
    .contact-cards{grid-template-columns:1fr}
}

@media(max-width:520px){
    .hero-title{font-size:1.85rem}
    .hero-desc br{display:none}
    .dropzone-inner{padding:36px 20px 32px}
    .upload-done{flex-direction:column}
    .upload-done-thumb{width:100%;height:140px}
    .upload-done-url{flex-direction:column}
    .upload-done-url input{border-radius:8px;border-right:1px solid var(--border)}
    .btn-copy{border-radius:8px;border-left:none}
    .viewer-bar{flex-direction:column;align-items:flex-start;gap:12px}
    .viewer-btns{width:100%}
    .viewer-btns .btn{flex:1;justify-content:center}
    .footer-grid{grid-template-columns:1fr}
    .footer-bottom{flex-direction:column;gap:4px;text-align:center}
    .nav-link{display:none}
}
