:root {
  --bg: #0b1120;
  --bg-alt: #10192e;
  --card: #131f38;
  --border: #23324f;
  --text: #e8edf7;
  --text-dim: #9fb0cc;
  --accent: #4d8dff;
  --accent-2: #35d0a3;
  --danger: #ff6b6b;
  --radius: 14px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fc;
    --bg-alt: #ffffff;
    --card: #ffffff;
    --border: #e1e7f2;
    --text: #131c2e;
    --text-dim: #5b6b88;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-mark {
  color: var(--accent);
  font-size: 1.3rem;
}
.accent { color: var(--accent); }
nav a {
  margin-left: 28px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
}
nav a:hover { color: var(--text); }

/* Hero */
.hero {
  padding: 72px 0 48px;
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% -80px, rgba(77,141,255,0.18), transparent 70%),
    var(--bg);
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.hero-sub {
  max-width: 620px;
  margin: 0 auto 24px;
  color: var(--text-dim);
  font-size: 1.08rem;
}
.hero-badge {
  display: inline-block;
  margin: 0 auto 40px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(53,208,163,0.12);
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Dropzone */
.dropzone {
  max-width: 560px;
  margin: 0 auto;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 48px 32px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone.drag-over {
  border-color: var(--accent);
  background: rgba(77,141,255,0.08);
}
.dz-state p { margin: 8px 0; }
.dz-icon { font-size: 2.6rem; margin-bottom: 8px; }
.dz-hint { color: var(--text-dim); font-size: 0.88rem; }
.file-name {
  font-weight: 600;
  word-break: break-all;
}
.error-text { color: var(--danger); font-weight: 500; }

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 4px;
  text-decoration: underline;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  margin: 12px 8px 4px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04101f;
}
.btn-primary:hover { filter: brightness(1.08); }

.spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Steps */
.steps, .features, .faq {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.steps h2, .features h2, .faq h2 {
  text-align: center;
  font-size: 1.8rem;
  margin: 0 0 40px;
  letter-spacing: -0.01em;
}
.steps-grid, .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.step, .feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #04101f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3, .feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.step p, .feature-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* FAQ */
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
}
.faq-item p {
  color: var(--text-dim);
  margin: 12px 0 0;
  font-size: 0.95rem;
}
.faq-item code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}
