:root{
  --bg:#f7f8fb;
  --surface:#ffffff;
  --surface-soft:#f2f4f8;
  --text:#101216;
  --muted:#6f7682;
  --line:#e7e9ee;
  --accent:#6658f5;
  --accent-2:#8c83ff;
  --shadow:0 22px 70px rgba(24,30,50,.08);
  --radius:22px;
  --max:1160px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
.wrap{width:min(calc(100% - 40px),var(--max));margin:auto}

header{position:sticky;top:0;z-index:20;background:rgba(247,248,251,.82);backdrop-filter:blur(16px);border-bottom:1px solid rgba(231,233,238,.8)}
.nav{height:72px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center}
/* The wordmark sits in a 21:9 frame, so it is letterboxed: the visible art is
   about 46% of the image height. Size accordingly. */
.brand-logo{display:block;height:52px;width:auto}
nav{display:flex;align-items:center;gap:28px;font-size:14px;color:#4e5560}
nav a:hover{color:#17191d}
.nav-cta{padding:10px 15px;border-radius:11px;background:#111318;color:white;font-weight:650;font-size:13px}

.hero{padding:84px 0 34px;position:relative;overflow:hidden}
.glow{position:absolute;width:680px;height:300px;left:50%;top:25px;transform:translateX(-50%);background:radial-gradient(circle,rgba(116,102,255,.16),rgba(116,102,255,0) 68%);pointer-events:none}
.eyebrow{display:flex;justify-content:center;margin-bottom:18px}
.eyebrow span{display:inline-flex;align-items:center;gap:8px;padding:7px 11px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:12px;color:#606773;box-shadow:0 5px 16px rgba(20,25,40,.03)}
.dot{width:6px;height:6px;border-radius:50%;background:#65c78d}
h1{font-size:clamp(44px,6.3vw,76px);line-height:.98;letter-spacing:-.065em;text-align:center;max-width:900px;margin:0 auto;font-weight:760}
.hero p{max-width:670px;margin:24px auto 34px;text-align:center;color:var(--muted);font-size:18px;line-height:1.7}

.converter{max-width:900px;margin:0 auto;background:var(--surface);border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow);padding:15px}
.dropzone{min-height:285px;border:1px dashed #d8dce5;background:linear-gradient(180deg,#fcfcfd,#fafbfc);border-radius:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px;transition:.2s}
.dropzone.drag{border-color:var(--accent);background:#f8f7ff}
.upload-icon{width:58px;height:58px;border-radius:18px;background:#f0efff;display:grid;place-items:center;margin-bottom:18px;color:var(--accent)}
.upload-icon svg{width:26px;height:26px}
.dropzone h2{font-size:20px;letter-spacing:-.025em;margin:0 0 8px}
.dropzone p{margin:0 0 21px;color:var(--muted);font-size:14px}
.choose{border:0;background:#121419;color:white;border-radius:12px;padding:12px 18px;font-weight:650;cursor:pointer;box-shadow:0 8px 18px rgba(17,19,24,.12)}
.file-note{margin-top:15px;color:#969ca7;font-size:12px}
.convert-bar{display:grid;grid-template-columns:1fr 44px 1fr auto;gap:10px;align-items:center;padding:13px 7px 2px}
.selectbox{height:50px;border:1px solid var(--line);border-radius:13px;background:#fff;padding:0 14px;display:flex;align-items:center;gap:12px}
.selectbox label{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:#969ca7;white-space:nowrap}
.selectbox select{width:100%;border:0;outline:0;background:transparent;font-weight:650;color:#26292f}
.arrow{width:40px;height:40px;border-radius:11px;background:var(--surface-soft);display:grid;place-items:center;color:#808692}
.convert-btn{height:50px;padding:0 23px;border:0;border-radius:13px;background:linear-gradient(135deg,var(--accent),#7569f8);color:white;font-weight:700;cursor:pointer;white-space:nowrap;box-shadow:0 10px 25px rgba(102,88,245,.24)}

.trust{display:flex;justify-content:center;gap:28px;flex-wrap:wrap;margin:22px auto 0;font-size:12px;color:#858c97}
.trust span{display:flex;align-items:center;gap:7px}
.trust svg{width:15px;height:15px}

section{padding:86px 0}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:28px}
.section-head h2{font-size:36px;line-height:1.1;letter-spacing:-.045em;margin:0;max-width:600px}
.section-head p{max-width:520px;color:var(--muted);line-height:1.7;margin:0;font-size:15px}

.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.tool-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:21px;transition:.2s;min-height:145px;position:relative;overflow:hidden}
.tool-card:hover{transform:translateY(-3px);box-shadow:0 16px 35px rgba(25,30,45,.07);border-color:#dadde6}
.formats{display:flex;align-items:center;gap:8px;margin-bottom:28px}
.format{width:37px;height:37px;border-radius:10px;display:grid;place-items:center;background:#f3f4f7;font-size:10px;font-weight:800;color:#4f5661}
.format.out{background:#efedff;color:#6558ec}
.mini-arrow{font-size:15px;color:#b1b6bf}
.tool-card h3{font-size:16px;margin:0 0 6px;letter-spacing:-.02em}
.tool-card p{font-size:13px;color:var(--muted);line-height:1.55;margin:0;padding-right:24px}
.card-go{position:absolute;right:18px;bottom:20px;color:#a0a5ae;font-size:18px}

.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.step{padding:26px;background:#fff;border:1px solid var(--line);border-radius:18px}
.num{width:30px;height:30px;border-radius:9px;background:#f0efff;color:var(--accent);display:grid;place-items:center;font-size:12px;font-weight:800;margin-bottom:45px}
.step h3{font-size:17px;margin:0 0 8px;letter-spacing:-.025em}
.step p{font-size:14px;color:var(--muted);line-height:1.65;margin:0}

.format-section{background:#121419;color:#fff;border-radius:32px;padding:48px;margin:40px auto}
.format-section .section-head p{color:#a9aeb7}
.chips{display:flex;gap:9px;flex-wrap:wrap}
.chip{padding:11px 14px;border-radius:11px;background:#1b1e24;border:1px solid #2c3038;color:#d9dce2;font-size:13px}
.chip:hover{background:#232730}

.content-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:14px}
.content-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:28px}
.content-card h2,.content-card h3{letter-spacing:-.035em;margin-top:0}
.content-card h2{font-size:28px}
.content-card h3{font-size:20px}
.content-card p{color:var(--muted);line-height:1.78;font-size:14px}
.bullet{display:flex;gap:12px;margin-top:16px;align-items:flex-start}
.check{width:22px;height:22px;flex:0 0 22px;border-radius:7px;background:#f0efff;color:var(--accent);display:grid;place-items:center;font-size:12px;font-weight:900}
.bullet b{display:block;font-size:14px;margin-bottom:4px}
.bullet span{font-size:13px;color:var(--muted);line-height:1.5}

.crumbs{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin:0 0 18px;font-size:13px;color:#858c97}
.crumbs a{color:#606773}
.crumbs a:hover{color:#17191d}
.crumbs [aria-current="page"]{color:#4e5560;font-weight:600}
.legal .crumbs{justify-content:flex-start;margin:0 0 16px}

.facts{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:0 0 8px}
.facts div{background:#f7f8fb;border:1px solid var(--line);border-radius:14px;padding:13px 14px}
.facts dt{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:#969ca7;margin:0 0 6px}
.facts dd{margin:0;font-size:14px;font-weight:650;color:#26292f;line-height:1.4}
.related-grid{grid-template-columns:repeat(3,1fr)}

.faq{max-width:860px;margin:auto}
.faq h2{text-align:center;font-size:36px;letter-spacing:-.045em;margin:0 0 28px}
details{background:#fff;border:1px solid var(--line);border-radius:15px;padding:0 19px;margin-bottom:10px}
summary{list-style:none;cursor:pointer;padding:19px 0;font-size:15px;font-weight:650;display:flex;justify-content:space-between;gap:20px}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";color:#8f95a0;font-size:19px;font-weight:400}
details[open] summary::after{content:"–"}
details p{margin:0 0 19px;color:var(--muted);font-size:14px;line-height:1.7;max-width:760px}

footer{border-top:1px solid var(--line);padding:42px 0 52px;background:#fff}
.footer-top{display:flex;justify-content:space-between;gap:40px}
.footer-brand{max-width:310px}
.footer-brand .brand-logo{height:48px;margin-bottom:6px}
.footer-brand p{color:var(--muted);font-size:13px;line-height:1.7}
.footer-links{display:grid;grid-template-columns:repeat(3,1fr);gap:55px}
.footer-links h4{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#a0a5af;margin:0 0 14px}
.footer-links a{display:block;font-size:13px;color:#505761;margin:10px 0}
.copyright{margin-top:40px;padding-top:20px;border-top:1px solid var(--line);font-size:12px;color:#9aa0aa}

[hidden]{display:none!important}
.res-row{display:none}
.res-row.show{display:grid;grid-template-columns:1fr;gap:10px;padding:10px 7px 0}

.dropzone.has-file{min-height:auto;padding:26px 20px 24px}
.dropzone.has-file .upload-icon,
.dropzone.has-file > h2,
.dropzone.has-file > p,
.dropzone.has-file .file-note{display:none}
.file-preview{display:flex;flex-direction:column;align-items:center;gap:11px;width:100%}
.file-thumb,
.file-thumb-fallback{width:min(100%,300px);aspect-ratio:16/9;border-radius:14px;background:#0e1015;object-fit:cover;border:1px solid rgba(16,18,22,.06)}
.file-thumb-fallback{display:grid;place-items:center;color:#fff;font-size:20px;font-weight:800;letter-spacing:.08em}
.file-preview-name{max-width:min(100%,320px);font-size:14px;font-weight:600;color:#26292f;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dropzone.has-file .choose{margin-top:14px;padding:9px 15px;font-size:13px;background:#fff;color:#3c424c;border:1px solid var(--line);box-shadow:none}
.dropzone.has-file .choose:hover{border-color:#cfd4de;color:#17191d}

.progress{padding:16px 7px 2px}
.progress-top{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:9px}
.progress-text{font-size:13px;font-weight:600;color:#3c424c}
.progress-pct{font-size:13px;font-weight:700;color:var(--accent);font-variant-numeric:tabular-nums}
.bar{height:6px;background:#ecedf2;border-radius:99px;overflow:hidden}
.bar>span{display:block;height:100%;width:0;background:linear-gradient(135deg,var(--accent),#8a7dff);border-radius:99px;transition:width .25s ease}

.result{display:flex;align-items:center;gap:14px;margin:13px 0 2px;padding:14px;border:1px solid var(--line);border-radius:16px;background:#fff}
.result-icon{width:38px;height:38px;flex:0 0 38px;border-radius:12px;display:grid;place-items:center;background:#e9f6ef;color:#2f9e6a}
.result-icon svg{width:19px;height:19px}
.result-meta{flex:1;min-width:0}
.result-title{font-size:14px;font-weight:650;letter-spacing:-.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.result-stats{margin-top:3px;font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.result.is-error{border-color:#f2d7d5;background:#fffafa}
.result.is-error .result-icon{background:#fdeceb;color:#c9463f}
.result.is-error .result-stats{white-space:normal}
.download-btn{height:44px;padding:0 21px;border:0;border-radius:12px;background:linear-gradient(135deg,var(--accent),#7569f8);color:#fff;font-weight:700;font-size:14px;cursor:pointer;white-space:nowrap;box-shadow:0 8px 20px rgba(102,88,245,.22)}
.download-btn:hover{filter:brightness(1.05)}
.convert-btn:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}
.choose:disabled{opacity:.55;cursor:not-allowed}
.page-hero h1{font-size:clamp(40px,5.4vw,64px)}
.legal{max-width:760px;margin:0 auto;padding:40px 0 10px}
.legal h1{font-size:48px;text-align:left;margin:0 0 18px}
.legal p,.legal li{color:var(--muted);line-height:1.75;font-size:15px}
.legal h2{font-size:22px;letter-spacing:-.03em;margin:32px 0 10px}

@media(max-width:820px){
  nav a:not(.nav-cta){display:none}
  .hero{padding-top:60px}
  h1{font-size:48px}
  .hero p{font-size:16px}
  .convert-bar{grid-template-columns:1fr 38px 1fr}.convert-btn{grid-column:1/-1}
  .grid,.steps,.related-grid,.facts{grid-template-columns:1fr 1fr}
  .content-grid{grid-template-columns:1fr}
  .section-head{align-items:start;flex-direction:column}
  .footer-top{flex-direction:column}.footer-links{gap:25px}
}
@media(max-width:560px){
  .wrap{width:min(calc(100% - 24px),var(--max))}
  .nav{height:64px}
  .brand-logo{height:44px}
  .hero{padding-top:48px}
  h1{font-size:41px}
  .converter{padding:10px;border-radius:22px}
  .dropzone{min-height:245px;padding:25px 16px}
  .convert-bar{grid-template-columns:1fr;gap:8px;padding:10px 0 0}.arrow{transform:rotate(90deg);margin:auto}.convert-btn{grid-column:auto}
  section{padding:64px 0}
  .grid,.steps,.related-grid,.facts{grid-template-columns:1fr}
  .section-head h2,.faq h2{font-size:30px}
  .format-section{border-radius:22px;padding:30px 22px}
  .footer-links{grid-template-columns:1fr 1fr}
}
