:root{
  --blue:#2563eb;
  --blue-dark:#1d4ed8;
  --blue-light:#eff6ff;
  --ink:#0f172a;
  --gray:#475569;
  --gray-light:#94a3b8;
  --border:#e2e8f0;
  --bg:#f8fafc;
  --white:#ffffff;
  --green:#16a34a;
  --radius:14px;
  --shadow:0 4px 24px rgba(15,23,42,.06);
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;color:var(--ink);background:var(--white);line-height:1.7;font-size:16px}
.container{max-width:1100px;margin:0 auto;padding:0 20px}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}

/* Header */
header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--border)}
.nav{display:flex;align-items:center;justify-content:space-between;height:64px}
.logo{display:flex;align-items:center;gap:9px;font-weight:800;font-size:1.25rem;color:var(--ink);text-decoration:none}
.logo:hover{text-decoration:none}
.logo svg{width:30px;height:30px}
.logo span{color:var(--blue)}
.nav-links{display:flex;gap:26px;list-style:none;align-items:center}
.nav-links a{color:var(--gray);font-weight:500;font-size:.95rem}
.nav-links a:hover{color:var(--blue);text-decoration:none}
.menu-btn{display:none;background:none;border:none;cursor:pointer;padding:6px}
.menu-btn svg{width:26px;height:26px;stroke:var(--ink)}
@media(max-width:768px){
  .menu-btn{display:block}
  .nav-links{display:none;position:absolute;top:64px;left:0;right:0;background:var(--white);flex-direction:column;padding:18px 20px;gap:16px;border-bottom:1px solid var(--border);box-shadow:var(--shadow);align-items:flex-start}
  .nav-links.open{display:flex}
}

/* Hero */
.hero{background:linear-gradient(180deg,var(--blue-light) 0%,#ffffff 100%);padding:48px 0 30px;text-align:center}
.hero h1{font-size:2.3rem;font-weight:800;letter-spacing:-.5px;margin-bottom:14px}
.hero h1 em{font-style:normal;color:var(--blue)}
.hero p.sub{max-width:720px;margin:0 auto;color:var(--gray);font-size:1.08rem}
@media(max-width:600px){.hero h1{font-size:1.65rem}}

/* Tool */
.tool-wrap{padding:28px 0 10px}
.dropzone{border:2px dashed var(--blue);border-radius:var(--radius);background:var(--blue-light);padding:46px 24px;text-align:center;cursor:pointer;transition:.2s;max-width:820px;margin:0 auto}
.dropzone:hover,.dropzone.drag{background:#dbeafe;border-color:var(--blue-dark)}
.dropzone svg{width:52px;height:52px;margin-bottom:10px}
.dropzone .dz-title{font-size:1.15rem;font-weight:700}
.dropzone .dz-hint{color:var(--gray);font-size:.92rem;margin-top:6px}
.dropzone .btn{margin-top:16px}
.btn{display:inline-block;background:var(--blue);color:#fff;font-weight:600;border:none;border-radius:10px;padding:12px 26px;font-size:1rem;cursor:pointer;transition:.2s}
.btn:hover{background:var(--blue-dark);text-decoration:none}
.btn.secondary{background:var(--white);color:var(--blue);border:1.5px solid var(--blue)}
.btn.secondary:hover{background:var(--blue-light)}
.btn:disabled{opacity:.55;cursor:not-allowed}
.tool-options{display:flex;gap:14px;justify-content:center;align-items:center;flex-wrap:wrap;margin:18px auto 0;max-width:820px}
.tool-options label{font-weight:600;font-size:.95rem}
.tool-options select{padding:9px 12px;border:1.5px solid var(--border);border-radius:9px;font-size:.95rem;background:#fff;color:var(--ink)}
.progress-wrap{max-width:820px;margin:20px auto 0;display:none}
.progress-bar{height:10px;background:var(--border);border-radius:6px;overflow:hidden}
.progress-fill{height:100%;width:0;background:var(--blue);transition:width .25s}
.progress-label{text-align:center;color:var(--gray);font-size:.9rem;margin-top:8px}
.preview-list{max-width:820px;margin:16px auto 0;display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.preview-list img{height:70px;border-radius:8px;border:1px solid var(--border)}
.result-wrap{max-width:820px;margin:22px auto 0;display:none}
.result-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:10px}
.result-head h2{font-size:1.15rem}
.result-actions{display:flex;gap:8px;flex-wrap:wrap}
.result-actions .btn{padding:8px 16px;font-size:.9rem}
#resultText{width:100%;min-height:220px;padding:16px;border:1.5px solid var(--border);border-radius:var(--radius);font-size:1rem;font-family:inherit;line-height:1.6;resize:vertical;background:var(--bg)}
.word-count{color:var(--gray-light);font-size:.85rem;margin-top:6px}
.copied{color:var(--green)!important}

/* Sections */
section{padding:52px 0}
section.alt{background:var(--bg)}
.sec-title{font-size:1.8rem;font-weight:800;text-align:center;margin-bottom:10px;letter-spacing:-.4px}
.sec-sub{text-align:center;color:var(--gray);max-width:680px;margin:0 auto 36px}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.step{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);padding:26px;box-shadow:var(--shadow)}
.step .num{width:38px;height:38px;border-radius:50%;background:var(--blue);color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.step h3{font-size:1.08rem;margin-bottom:8px}
.step p{color:var(--gray);font-size:.95rem}
.features{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.feature{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);padding:24px}
.feature .ico{width:44px;height:44px;border-radius:10px;background:var(--blue-light);display:flex;align-items:center;justify-content:center;margin-bottom:12px}
.feature .ico svg{width:24px;height:24px}
.feature h3{font-size:1.05rem;margin-bottom:6px}
.feature p{color:var(--gray);font-size:.93rem}
@media(max-width:820px){.steps,.features{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.steps,.features{grid-template-columns:1fr}}

/* Prose / article */
.prose{max-width:780px;margin:0 auto}
.prose h2{font-size:1.5rem;margin:34px 0 12px;letter-spacing:-.3px}
.prose h3{font-size:1.15rem;margin:24px 0 8px}
.prose p{margin-bottom:14px;color:#334155}
.prose ul,.prose ol{margin:0 0 14px 22px;color:#334155}
.prose li{margin-bottom:6px}
.prose strong{color:var(--ink)}
.article-meta{color:var(--gray-light);font-size:.9rem;margin-bottom:20px}
.page-head{background:var(--blue-light);padding:44px 0;text-align:center}
.page-head h1{font-size:2rem;letter-spacing:-.4px}
.page-head p{color:var(--gray);margin-top:8px}

/* FAQ */
.faq{max-width:780px;margin:0 auto}
.faq details{background:var(--white);border:1px solid var(--border);border-radius:12px;margin-bottom:12px;padding:0 20px}
.faq summary{font-weight:600;padding:16px 0;cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center}
.faq summary::after{content:"+";font-size:1.3rem;color:var(--blue);font-weight:400}
.faq details[open] summary::after{content:"–"}
.faq details p{padding-bottom:16px;color:var(--gray)}

/* Blog cards */
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.blog-card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow);display:flex;flex-direction:column}
.blog-card h3{font-size:1.08rem;margin-bottom:8px;line-height:1.4}
.blog-card h3 a{color:var(--ink)}
.blog-card p{color:var(--gray);font-size:.92rem;flex:1}
.blog-card .read{margin-top:12px;font-weight:600;font-size:.92rem}
@media(max-width:820px){.blog-grid{grid-template-columns:1fr}}

/* CTA */
.cta{background:linear-gradient(135deg,var(--blue) 0%,var(--blue-dark) 100%);border-radius:var(--radius);padding:44px 30px;text-align:center;color:#fff}
.cta h2{font-size:1.6rem;margin-bottom:10px}
.cta p{opacity:.92;margin-bottom:20px}
.cta .btn{background:#fff;color:var(--blue)}
.cta .btn:hover{background:var(--blue-light)}

/* Footer */
footer{background:var(--ink);color:#cbd5e1;padding:44px 0 26px;margin-top:40px}
.foot-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px;margin-bottom:28px}
.foot-grid h4{color:#fff;font-size:1rem;margin-bottom:12px}
.foot-grid p{font-size:.92rem;color:#94a3b8}
.foot-grid ul{list-style:none}
.foot-grid li{margin-bottom:8px}
.foot-grid a{color:#cbd5e1;font-size:.92rem}
.foot-grid a:hover{color:#fff}
.foot-bottom{border-top:1px solid #1e293b;padding-top:20px;text-align:center;font-size:.85rem;color:#64748b}
@media(max-width:700px){.foot-grid{grid-template-columns:1fr}}

/* Misc */
.notice{background:#fef9c3;border:1px solid #fde047;border-radius:10px;padding:12px 16px;font-size:.92rem;max-width:820px;margin:14px auto 0;display:none}
.center{text-align:center}

/* Comparison table */
.cmp-table{width:100%;border-collapse:collapse;margin:14px 0 20px;font-size:.95rem}
.cmp-table th,.cmp-table td{border:1px solid var(--border);padding:10px 14px;text-align:left}
.cmp-table thead th{background:var(--blue-light);color:var(--ink);font-weight:700}
.cmp-table tbody tr:nth-child(even){background:var(--bg)}
