@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Inter',sans-serif;font-size:15px;color:#0f172a;background:#fff;line-height:1.6;-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
button{cursor:pointer;font-family:inherit;border:none;background:none}
input,select{font-family:inherit}

/* NAV */
.nav{background:rgba(255,255,255,.97);backdrop-filter:blur(8px);border-bottom:1px solid #e2e8f0;position:sticky;top:0;z-index:200;height:60px}
.nw{max-width:1160px;margin:0 auto;padding:0 20px;height:100%;display:flex;align-items:center;gap:20px}
.logo{display:flex;align-items:center;gap:8px;font-weight:800;font-size:17px;color:#0f172a}
.logo-dot{width:30px;height:30px;background:linear-gradient(135deg,#2563eb,#7c3aed);border-radius:8px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:14px;font-weight:800;flex-shrink:0}
.nav-links{display:flex;list-style:none;gap:2px;margin-left:auto}
.nav-links a{padding:7px 13px;border-radius:8px;font-size:13px;font-weight:500;color:#64748b;transition:.15s}
.nav-links a:hover{background:#f1f5f9;color:#0f172a}
.nav-links a.active{background:#eff6ff;color:#2563eb;font-weight:600}
.burger{display:none;font-size:22px;padding:4px 8px;margin-left:auto;color:#374151}
.mnav{display:none;position:fixed;top:60px;left:0;right:0;background:#fff;border-bottom:1px solid #e2e8f0;padding:8px 20px 16px;z-index:199;box-shadow:0 8px 24px rgba(0,0,0,.08)}
.mnav.open{display:block}
.mnav a{display:block;padding:11px 0;font-size:14px;font-weight:500;color:#374151;border-bottom:1px solid #f1f5f9}
.mnav a:last-child{border-bottom:none}
.mnav a.active{color:#2563eb}

/* PAGE LAYOUT */
.wrap{max-width:1160px;margin:0 auto;padding:0 20px}
.pg{max-width:1160px;margin:0 auto;padding:28px 20px;display:grid;grid-template-columns:1fr 308px;gap:24px;align-items:start}
.pg-main{min-width:0}
.pg-side{position:sticky;top:76px}

/* ADS - CLEAN & NON-INTRUSIVE */
.ad-w{text-align:center;margin:14px auto}
.ad-lbl{font-size:9px;color:#cbd5e1;text-transform:uppercase;letter-spacing:.08em;margin-bottom:3px}
.ad-s{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;width:100%;color:#94a3b8;font-size:11px}
.ad-728{max-width:728px;min-height:88px}
.ad-300{width:300px;min-height:250px}
.mob-only{display:none}

/* HOME HERO */
.h-hero{padding:68px 20px 60px;text-align:center;background:linear-gradient(160deg,#f0f6ff 0%,#fafbff 50%,#fdf4ff 100%)}
.h-hero h1{font-size:46px;font-weight:800;line-height:1.15;letter-spacing:-.02em;margin-bottom:14px;background:linear-gradient(135deg,#0f172a 0%,#2563eb 50%,#7c3aed 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.h-hero p{font-size:17px;color:#64748b;max-width:500px;margin:0 auto 28px}
.h-badges{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.badge{display:flex;align-items:center;gap:6px;background:#fff;border:1px solid #e2e8f0;padding:7px 14px;border-radius:99px;font-size:12px;font-weight:600;color:#475569;box-shadow:0 1px 4px rgba(0,0,0,.06)}

/* TOOL CARDS */
.tools-sec{padding:52px 20px}
.sec-h{font-size:28px;font-weight:800;text-align:center;letter-spacing:-.01em;margin-bottom:8px}
.sec-sub{font-size:15px;color:#64748b;text-align:center;margin-bottom:32px}
.t-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.tc{display:flex;align-items:flex-start;gap:13px;background:#fff;border:1.5px solid #e2e8f0;border-radius:14px;padding:18px;transition:.2s;cursor:pointer}
.tc:hover{border-color:#2563eb;box-shadow:0 6px 24px rgba(37,99,235,.1);transform:translateY(-2px)}
.tc-ico{width:50px;height:50px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0}
.tc-b{flex:1;min-width:0}
.tc-b h3{font-size:14px;font-weight:700;margin-bottom:4px;color:#0f172a}
.tc-b p{font-size:12px;color:#64748b;line-height:1.5;margin-bottom:7px}
.tc-b .tags{display:flex;flex-wrap:wrap;gap:4px}
.tag{font-size:10px;font-weight:600;background:#f1f5f9;border:1px solid #e2e8f0;padding:2px 7px;border-radius:99px;color:#64748b}
.tc-arr{color:#cbd5e1;font-size:16px;align-self:center;transition:.15s;flex-shrink:0}
.tc:hover .tc-arr{color:#2563eb;transform:translateX(2px)}

/* WHY */
.why{background:#f8fafc;border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;padding:52px 20px}
.why h2{font-size:26px;font-weight:800;text-align:center;margin-bottom:28px}
.why-g{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.wi{text-align:center;padding:14px}
.wi .ico{font-size:28px;margin-bottom:8px}
.wi h4{font-size:14px;font-weight:700;margin-bottom:5px}
.wi p{font-size:12px;color:#64748b;line-height:1.5}

/* TOOL HERO */
.th{text-align:center;margin-bottom:22px}
.th h1{font-size:23px;font-weight:800;letter-spacing:-.01em;line-height:1.25;margin-bottom:7px}
.th p{font-size:14px;color:#64748b;max-width:500px;margin:0 auto}

/* UPLOAD */
.up-box{border:2px dashed #cbd5e1;border-radius:18px;background:linear-gradient(135deg,#f8fafc,#f0f6ff);padding:48px 24px;text-align:center;cursor:pointer;transition:.2s;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px}
.up-box:hover,.up-box.dv{border-color:#2563eb;background:linear-gradient(135deg,#eff6ff,#f5f3ff)}
.up-box input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.up-ico{width:64px;height:64px;background:linear-gradient(135deg,#2563eb,#7c3aed);border-radius:16px;display:flex;align-items:center;justify-content:center;font-size:26px;margin-bottom:4px;box-shadow:0 8px 20px rgba(37,99,235,.25)}
.up-box h2{font-size:17px;font-weight:700;color:#0f172a}
.up-box p{font-size:13px;color:#64748b}
.up-cta{display:inline-block;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;padding:10px 26px;border-radius:10px;font-size:14px;font-weight:600;pointer-events:none;margin-top:4px;box-shadow:0 4px 14px rgba(37,99,235,.3)}
.up-fmt{font-size:11px;color:#94a3b8;margin-top:2px}

/* PROCESSING */
.proc-box{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:44px 24px;text-align:center;margin:16px 0;box-shadow:0 4px 20px rgba(0,0,0,.05)}
.spin-wrap{width:64px;height:64px;background:linear-gradient(135deg,#eff6ff,#f5f3ff);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 16px}
.spinner{width:36px;height:36px;border:3px solid #dbeafe;border-top-color:#2563eb;border-radius:50%;animation:spin .75s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.proc-box h3{font-size:16px;font-weight:700;color:#0f172a;margin-bottom:6px}
.proc-box p{font-size:13px;color:#64748b;margin-bottom:14px}
.pbar-w{background:#e2e8f0;border-radius:99px;height:6px;overflow:hidden;max-width:300px;margin:0 auto 10px}
.pbar{height:100%;background:linear-gradient(90deg,#2563eb,#7c3aed);border-radius:99px;width:0%;transition:width .5s ease}
.proc-steps{display:flex;justify-content:center;gap:20px;flex-wrap:wrap;margin-top:8px}
.proc-step{font-size:11px;color:#94a3b8;display:flex;align-items:center;gap:4px}
.proc-step.done{color:#10b981}
.proc-step.active{color:#2563eb;font-weight:600}
.proc-step .dot{width:6px;height:6px;border-radius:50%;background:currentColor}

/* RESULT */
.res-box{margin:20px 0}
.res-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;flex-wrap:wrap;gap:10px}
.res-bar strong{font-size:16px;font-weight:700}
.res-btns{display:flex;gap:8px}

/* SLIDER */
.sl-w{position:relative;border-radius:14px;overflow:hidden;background:repeating-conic-gradient(#e2e8f0 0% 25%,#fff 0% 50%) 0 0/18px 18px;box-shadow:0 4px 20px rgba(0,0,0,.1);user-select:none;touch-action:pan-y;cursor:ew-resize}
.sl-w img{display:block;width:100%;max-height:480px;object-fit:contain;min-height:200px}
.sl-after{position:absolute;inset:0;clip-path:inset(0 50% 0 0);overflow:hidden;pointer-events:none}
.sl-after img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:contain}
.sl-line{position:absolute;top:0;bottom:0;left:50%;width:2px;background:#fff;transform:translateX(-50%);z-index:10;box-shadow:0 0 6px rgba(0,0,0,.3)}
.sl-btn{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:36px;height:36px;background:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(0,0,0,.2);font-size:13px;color:#2563eb;font-weight:800;letter-spacing:-1px}
.sl-lbl{position:absolute;top:10px;background:rgba(15,23,42,.65);color:#fff;font-size:11px;font-weight:600;padding:3px 9px;border-radius:99px;pointer-events:none;backdrop-filter:blur(3px)}
.sl-lbl-l{left:10px}.sl-lbl-r{right:10px}

/* RESULT IMAGE (non-slider) */
.res-img{width:100%;border-radius:14px;box-shadow:0 4px 20px rgba(0,0,0,.1)}

/* BUTTONS */
.btn{display:inline-flex;align-items:center;gap:6px;padding:10px 20px;border-radius:10px;font-size:13px;font-weight:600;transition:.15s;white-space:nowrap;cursor:pointer;border:none}
.btn-pri{background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;box-shadow:0 4px 14px rgba(37,99,235,.3)}
.btn-pri:hover{transform:translateY(-1px);box-shadow:0 6px 20px rgba(37,99,235,.4)}
.btn-grn{background:linear-gradient(135deg,#10b981,#059669);color:#fff;box-shadow:0 4px 14px rgba(16,185,129,.25)}
.btn-grn:hover{transform:translateY(-1px)}
.btn-ghost{background:#fff;color:#374151;border:1.5px solid #e2e8f0}
.btn-ghost:hover{background:#f8fafc}
.btn-full{width:100%;justify-content:center;padding:12px;margin-top:14px}

/* OPTIONS */
.opt-bar{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:14px 16px;margin:14px 0;display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.og{display:flex;flex-direction:column;gap:5px}
.og label{font-size:11px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.06em}
.obt{display:flex;gap:5px;flex-wrap:wrap}
.ob{padding:7px 15px;border-radius:8px;font-size:12px;font-weight:600;background:#fff;color:#64748b;border:1.5px solid #e2e8f0;cursor:pointer;transition:.15s}
.ob.active{background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;border-color:transparent}
.ob:hover:not(.active){border-color:#94a3b8}

/* TABS */
.tabs{display:flex;border-bottom:2px solid #e2e8f0;margin-bottom:18px;overflow-x:auto}
.tab{padding:10px 18px;font-size:13px;font-weight:600;color:#64748b;border:none;border-bottom:2px solid transparent;margin-bottom:-2px;cursor:pointer;white-space:nowrap;background:none;transition:.15s}
.tab:hover{color:#374151}
.tab.active{color:#2563eb;border-bottom-color:#2563eb}
.tp{display:none;padding:2px 0}.tp.active{display:block}

/* RESIZE */
.rs-mode{display:flex;gap:0;margin-bottom:14px;border:1.5px solid #e2e8f0;border-radius:10px;overflow:hidden;width:fit-content;flex-wrap:wrap}
.rs-mode button{padding:8px 15px;font-size:12px;font-weight:600;color:#64748b;border:none;background:#fff;cursor:pointer;transition:.15s;border-right:1px solid #e2e8f0}
.rs-mode button:last-child{border-right:none}
.rs-mode button.active{background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff}
.dim-row{display:flex;align-items:center;gap:10px;margin-bottom:12px;flex-wrap:wrap}
.dg{display:flex;flex-direction:column;gap:5px}
.dg label{font-size:12px;font-weight:600;color:#374151}
.di{width:120px;padding:9px 12px;border:1.5px solid #e2e8f0;border-radius:9px;font-size:13px;color:#0f172a;background:#fff;transition:.15s}
.di:focus{border-color:#2563eb;outline:none;box-shadow:0 0 0 3px rgba(37,99,235,.1)}
.lock-l{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:500;color:#64748b;cursor:pointer;padding-top:18px;user-select:none}
.lock-l input{accent-color:#2563eb}
.presets-lbl{font-size:12px;font-weight:600;color:#374151;margin-bottom:7px}
.presets{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:4px}
.preset{padding:5px 12px;border-radius:99px;font-size:12px;font-weight:500;background:#fff;border:1.5px solid #e2e8f0;color:#64748b;cursor:pointer;transition:.15s}
.preset:hover,.preset.active{background:#eff6ff;border-color:#2563eb;color:#2563eb}
.dpi-row{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.dpi-note{font-size:11px;color:#94a3b8}
.kb-sec label{font-size:12px;font-weight:600;color:#374151;display:block;margin-bottom:6px}
.kb-row{display:flex;align-items:center;gap:8px;margin-bottom:4px}
.kb-row input{width:120px;padding:9px 12px;border:1.5px solid #e2e8f0;border-radius:9px;font-size:13px;background:#fff}
.kb-row input:focus{border-color:#2563eb;outline:none}
.kb-row select{padding:9px 10px;border:1.5px solid #e2e8f0;border-radius:9px;font-size:13px;background:#fff;cursor:pointer}
.kb-note{font-size:11px;color:#94a3b8}

/* CROP */
.ratio-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.ratio-row span{font-size:12px;font-weight:600;color:#374151}
.rb{padding:6px 13px;border-radius:8px;font-size:12px;font-weight:600;background:#fff;border:1.5px solid #e2e8f0;color:#64748b;cursor:pointer;transition:.15s}
.rb.active{background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;border-color:transparent}
.crop-hint{font-size:12px;color:#64748b;margin-bottom:8px}
.crop-cw{overflow:auto;max-width:100%;border-radius:10px}
#cropCanvas{display:block;max-width:100%;cursor:crosshair;border-radius:8px}

/* COMPRESS */
.qual-row{display:flex;align-items:center;gap:10px;margin:7px 0 12px}
input[type=range]{flex:1;accent-color:#2563eb;cursor:pointer}
.sz-info{display:flex;gap:20px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:12px 16px}
.sz-i{display:flex;flex-direction:column;gap:2px}
.sz-l{font-size:10px;color:#94a3b8;text-transform:uppercase;letter-spacing:.06em;font-weight:700}
.sz-v{font-size:14px;font-weight:700;color:#0f172a}
.fmt-info{margin-top:12px;padding:12px 14px;background:#f8fafc;border-radius:10px;font-size:12px;color:#64748b;line-height:2}

/* BATCH */
.batch{margin-top:28px;border-top:1px solid #e2e8f0;padding-top:22px}
.batch h3{font-size:15px;font-weight:700;margin-bottom:3px}
.batch>p{font-size:12px;color:#64748b}
.b-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:8px;margin-top:12px}
.bi{aspect-ratio:1;border-radius:10px;overflow:hidden;border:1px solid #e2e8f0;position:relative;background:#f8fafc}
.bi img{width:100%;height:100%;object-fit:cover}
.b-st{position:absolute;inset:0;background:rgba(15,23,42,.45);display:flex;align-items:center;justify-content:center;font-size:16px}
.b-rm{position:absolute;top:3px;right:3px;width:18px;height:18px;background:rgba(15,23,42,.65);border-radius:50%;color:#fff;font-size:11px;display:flex;align-items:center;justify-content:center;cursor:pointer;border:none}

/* INFO */
.info{margin-top:36px;padding-top:28px;border-top:1px solid #e2e8f0}
.info h2{font-size:18px;font-weight:800;letter-spacing:-.01em;margin-bottom:16px}
.how-g{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.how-s{text-align:center;padding:16px;background:#f8fafc;border-radius:12px}
.sn{width:32px;height:32px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;margin:0 auto 8px}
.how-s h4{font-size:13px;font-weight:700;margin-bottom:3px}
.how-s p{font-size:12px;color:#64748b}
.feat-g{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.feat{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:14px}
.feat h4{font-size:13px;font-weight:700;margin-bottom:4px}
.feat p{font-size:12px;color:#64748b;line-height:1.5}
.faq-l{display:flex;flex-direction:column;gap:3px}
.faq-i{border:1px solid #e2e8f0;border-radius:10px;overflow:hidden}
.faq-q{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;font-size:13px;font-weight:600;cursor:pointer;background:#fff;gap:8px;transition:.15s}
.faq-q:hover{background:#f8fafc}
.faq-q span{font-size:16px;color:#94a3b8;transition:.2s;flex-shrink:0}
.faq-i.open .faq-q span{transform:rotate(45deg)}
.faq-a{display:none;padding:0 16px 12px;font-size:13px;color:#64748b;line-height:1.6}
.faq-i.open .faq-a{display:block}

/* FOOTER */
.footer{background:#f8fafc;border-top:1px solid #e2e8f0;padding:36px 20px 20px;margin-top:52px}
.ft-w{max-width:1160px;margin:0 auto;display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:32px;margin-bottom:20px}
.ft-w p{font-size:12px;color:#64748b;margin-top:8px}
.ft-w h4{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#94a3b8;margin-bottom:9px}
.ft-w a{display:block;font-size:13px;color:#64748b;margin-bottom:6px;transition:.15s}
.ft-w a:hover{color:#2563eb}
.ft-bot{border-top:1px solid #e2e8f0;padding-top:14px;text-align:center;font-size:12px;color:#94a3b8;max-width:1160px;margin:0 auto}

/* TOAST */
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(80px);background:#0f172a;color:#fff;padding:11px 22px;border-radius:12px;font-size:13px;font-weight:500;z-index:9999;box-shadow:0 8px 24px rgba(0,0,0,.2);transition:transform .3s cubic-bezier(.34,1.56,.64,1);white-space:nowrap;pointer-events:none}
.toast.show{transform:translateX(-50%) translateY(0)}
.toast.err{background:#ef4444}
.toast.ok{background:#10b981}

/* RESPONSIVE */
@media(max-width:1024px){
  .pg{grid-template-columns:1fr}
  .pg-side{position:static;display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
  .t-grid{grid-template-columns:repeat(2,1fr)}
  .why-g{grid-template-columns:repeat(2,1fr)}
  .ft-w{grid-template-columns:1fr 1fr}
  .mob-only{display:block}
}
@media(max-width:680px){
  .nav-links{display:none}
  .burger{display:block}
  .h-hero h1{font-size:28px}
  .t-grid{grid-template-columns:1fr}
  .why-g{grid-template-columns:1fr 1fr}
  .how-g{grid-template-columns:1fr}
  .feat-g{grid-template-columns:1fr}
  .ft-w{grid-template-columns:1fr;gap:16px}
  .th h1{font-size:20px}
  .dim-row{flex-direction:column;align-items:flex-start}
  .di{width:100%}
  .lock-l{padding-top:0}
  .res-bar{flex-direction:column;align-items:flex-start}
  .opt-bar{flex-direction:column;align-items:flex-start}
  .rs-mode{width:100%}
  .rs-mode button{flex:1;text-align:center}
}
