*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:      #0f0f0f;
  --surface: #1a1a1a;
  --border:  #2a2a2a;
  --text:    #e8e8e8;
  --muted:   #555;
  --accent:  #7c6af5;
  --green:   #3ecf8e;
  --orange:  #f59e0b;
  --red:     #ef4444;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 80px;
}


/* ── Header ───────────────────────────────────────────── */

.site-header {
  width: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 18px 20px;
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.header-inner {
  width: 100%;
  max-width: 680px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.logo em {
  color: var(--accent);
  font-style: normal;
}

.tagline {
  font-size: 13px;
  color: var(--muted);
}


/* ── Page ─────────────────────────────────────────────── */

.page {
  width: 100%;
  max-width: 1020px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 780px) {
  .page { grid-template-columns: 1fr; }
}

.tool {
  min-width: 0;
}

/* ── Sidebar ──────────────────────────────────────────── */

.sidebar {
  display: flex;
  flex-direction: column;
}

.adsbygoogle {
  display: block;
}

.ad-banner {
  margin-top: 20px;
}

.ad-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.ad-wrap--rect {
  width: 300px;
  height: 250px;
}

.ad-wrap--banner {
  width: 100%;
  min-height: 90px;
}


/* ── Drop zone ────────────────────────────────────────── */

#drop {
  border: 1.5px dashed var(--border);
  border-radius: 16px;
  padding: 52px 32px;
  text-align: center;
  cursor: pointer;
  background: var(--surface);
  transition: border-color .2s, background .2s, transform .1s;
}

#drop:hover,
#drop.over {
  border-color: var(--accent);
  background: rgba(124, 106, 245, .06);
}

#drop.over {
  transform: scale(1.01);
}

#drop svg {
  display: block;
  margin: 0 auto 14px;
  opacity: .3;
}

#drop p {
  font-size: 15px;
  font-weight: 500;
  color: #888;
  margin-bottom: 4px;
}

#drop span {
  font-size: 13px;
  color: var(--muted);
}

#fi {
  display: none;
}


/* ── File list ────────────────────────────────────────── */

#list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slide-in .2s ease;
}

@keyframes slide-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

.item .thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--border);
  flex-shrink: 0;
}

.item-body {
  flex: 1;
  min-width: 0;
}

.item-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.item-track {
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 5px;
}

.item-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width .6s;
  width: 0;
}

.item-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-meta b {
  color: var(--text);
}

.pct {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
}

.pct.hi   { background: #0d2b1e; color: var(--green); }
.pct.md   { background: #1c1c0a; color: var(--orange); }
.pct.none { border: 1px solid var(--border); color: var(--muted); }

.item-remove {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
  transition: color .15s;
}

.item-remove:hover {
  color: var(--red);
}

.item-dl {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s;
}

.item-dl:hover {
  opacity: .8;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1s infinite;
  vertical-align: middle;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .2; }
}


/* ── Actions ──────────────────────────────────────────── */

#actions {
  display: none;
  margin-top: 20px;
}

.modes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

@media (max-width: 480px) {
  .modes { grid-template-columns: repeat(2, 1fr); }
}

.mode-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  color: var(--muted);
  transition: border-color .15s, background .15s, color .15s;
}

.mode-btn:hover {
  border-color: #444;
  color: var(--text);
}

.mode-btn.active {
  border-color: var(--accent);
  background: rgba(124, 106, 245, .1);
  color: var(--accent);
}

.mode-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.mode-desc {
  display: block;
  font-size: 10px;
  opacity: .65;
}

#go-btn {
  width: 100%;
  padding: 15px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
}

#go-btn:hover {
  opacity: .88;
  transform: translateY(-1px);
}

#go-btn:active {
  transform: translateY(0);
}

#go-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
}


/* ── Summary ──────────────────────────────────────────── */

#summary {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 4px;
}

#summary span {
  font-size: 13px;
  color: var(--muted);
}

#summary b {
  color: var(--green);
}

.clear-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 7px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.clear-btn:hover {
  border-color: #555;
  color: var(--text);
}


/* ── Features ─────────────────────────────────────────── */

.features {
  width: 100%;
  max-width: 1020px;
  padding: 56px 20px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 540px) {
  .features { grid-template-columns: 1fr; }
}

.feat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

.feat-icon {
  font-size: 26px;
  margin-bottom: 10px;
}

.feat h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feat p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}


/* ── Footer ───────────────────────────────────────────── */

.site-footer {
  width: 100%;
  max-width: 1020px;
  padding: 40px 20px 24px;
  margin-top: 56px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-cols {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-col p,
.footer-col li {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-col ul {
  padding-left: 16px;
}

.footer-col a {
  color: var(--accent);
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 11px;
  color: #2e2e2e;
}


/* ── Hero ─────────────────────────────────────────────── */

.hero {
  width: 100%;
  max-width: 1020px;
  padding: 0 20px 40px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.2;
}

.hero-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}


/* ── Section shared ───────────────────────────────────── */

.section-sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
  margin-bottom: 32px;
}

section h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
}


/* ── How It Works ─────────────────────────────────────── */

.how-it-works {
  width: 100%;
  max-width: 1020px;
  padding: 56px 20px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.step-num {
  width: 36px;
  height: 36px;
  background: rgba(124, 106, 245, .15);
  color: var(--accent);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.step p strong, .step p em {
  color: var(--text);
  font-style: normal;
}


/* ── Use Cases ────────────────────────────────────────── */

.use-cases {
  width: 100%;
  max-width: 1020px;
  padding: 56px 20px 0;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

@media (max-width: 600px) {
  .use-cases-grid { grid-template-columns: 1fr; }
}

.uc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.uc-icon {
  font-size: 24px;
}

.uc h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.uc p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}


/* ── FAQ ──────────────────────────────────────────────── */

.faq {
  width: 100%;
  max-width: 1020px;
  padding: 56px 20px 0;
}

.faq-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .15s;
}

.faq-item[open] {
  border-color: var(--accent);
}

.faq-item summary {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--muted);
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform .2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  padding: 0 20px 18px;
}


/* ── Site Nav ─────────────────────────────────────────── */

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(255,255,255,.05);
}

.site-nav a.active {
  color: var(--accent);
}


/* ── Content page layout ──────────────────────────────── */

.content-wrap {
  width: 100%;
  max-width: 760px;
  padding: 0 20px 80px;
}

.content-hero {
  padding: 0 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.content-hero .label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(124,106,245,.12);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.content-hero h1 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 14px;
}

.content-hero .meta {
  font-size: 13px;
  color: var(--muted);
}

.content-hero .meta span {
  margin: 0 6px;
  opacity: .4;
}


/* ── Article body ─────────────────────────────────────── */

.article-body h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
  margin: 40px 0 12px;
}

.article-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 10px;
}

.article-body p {
  font-size: 15px;
  color: #aaa;
  line-height: 1.8;
  margin-bottom: 18px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 18px 20px;
}

.article-body li {
  font-size: 15px;
  color: #aaa;
  line-height: 1.8;
  margin-bottom: 6px;
}

.article-body strong {
  color: var(--text);
  font-weight: 600;
}

.article-body a {
  color: var(--accent);
  text-decoration: none;
}

.article-body a:hover {
  text-decoration: underline;
}

.article-body .callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 24px 0;
}

.article-body .callout p {
  margin: 0;
  font-size: 14px;
}

.article-body .cta-box {
  background: rgba(124,106,245,.08);
  border: 1px solid rgba(124,106,245,.25);
  border-radius: 14px;
  padding: 24px;
  margin: 32px 0;
  text-align: center;
}

.article-body .cta-box p {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

.article-body .cta-box a {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 11px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity .15s;
}

.article-body .cta-box a:hover {
  opacity: .85;
  text-decoration: none;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 13px;
}

.comparison-table th {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text);
}

.comparison-table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  color: #aaa;
  line-height: 1.5;
}

.comparison-table tr:hover td {
  background: rgba(255,255,255,.02);
}

.tag-good  { color: var(--green); font-weight: 600; }
.tag-mid   { color: var(--orange); font-weight: 600; }
.tag-bad   { color: var(--red); font-weight: 600; }


/* ── Blog grid ────────────────────────────────────────── */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  transition: border-color .2s, transform .15s;
}

.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}

.blog-card .card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
}

.blog-card h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -0.2px;
}

.blog-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.blog-card .card-meta {
  font-size: 11px;
  color: #444;
  margin-top: 4px;
}

.read-more {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}


/* ── About page ───────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0;
}

@media (max-width: 540px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

.about-card .icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.about-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.about-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* article ad mid */
.article-ad {
  margin: 32px 0;
  text-align: center;
}


/* ── Download All button ──────────────────────────────── */

.dl-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: #0a1f14;
  border: none;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  white-space: nowrap;
  margin-left: auto;
}

.dl-all-btn:hover {
  opacity: .85;
  transform: translateY(-1px);
}

.dl-all-btn:active {
  transform: translateY(0);
}
