:root {
  color-scheme: dark;
  --bg: #090b11;
  --panel: rgba(19, 22, 31, .82);
  --panel-strong: #151923;
  --line: rgba(255,255,255,.09);
  --text: #f7f8fb;
  --muted: #99a0ae;
  --accent: #a8ff60;
  --accent-deep: #79d82f;
  --danger: #ff7b7b;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; }

.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(110px); opacity: .14; pointer-events: none; }
.ambient-one { width: 520px; height: 520px; top: -240px; right: -120px; background: #84ff4b; }
.ambient-two { width: 440px; height: 440px; bottom: -240px; left: -180px; background: #4ba7ff; }
.page-shell { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }

.nav { height: 86px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #0b0d10; background: var(--accent); font-size: 19px; }
.privacy-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; }
.privacy-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

.hero { padding: 82px 0 50px; text-align: center; }
.eyebrow { display: inline-block; margin-bottom: 22px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.hero h1 { margin: 0; font-size: clamp(46px, 7vw, 82px); line-height: .98; letter-spacing: -.065em; }
.hero h1 span { color: var(--accent); }
.hero p { width: min(650px, 100%); margin: 28px auto 0; color: var(--muted); font-size: 17px; line-height: 1.8; }

.converter-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 28px 80px rgba(0,0,0,.32); backdrop-filter: blur(18px); }
.drop-zone { margin: 16px; padding: 65px 24px; text-align: center; border: 1px dashed rgba(168,255,96,.28); border-radius: 18px; background: rgba(168,255,96,.025); transition: .2s ease; outline: none; }
.drop-zone:hover, .drop-zone:focus-visible, .drop-zone.dragging { border-color: var(--accent); background: rgba(168,255,96,.07); transform: translateY(-1px); }
.upload-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 21px; border: 1px solid rgba(168,255,96,.25); border-radius: 20px; color: var(--accent); background: rgba(168,255,96,.08); }
.upload-icon svg { width: 30px; height: 30px; }
.drop-zone h2 { margin: 0; font-size: 23px; letter-spacing: -.03em; }
.drop-zone p { margin: 10px 0 27px; color: var(--muted); font-size: 14px; }
.primary-button { padding: 13px 22px; border: 0; border-radius: 12px; color: #0b0d10; background: var(--accent); font-weight: 800; box-shadow: 0 8px 30px rgba(168,255,96,.18); transition: .2s ease; }
.primary-button:hover { background: #bcff85; transform: translateY(-1px); }

.queue-panel { padding: 26px; }
.queue-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.queue-heading h2 { margin: 0 0 6px; font-size: 22px; }
.queue-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.queue-actions { display: flex; align-items: center; gap: 8px; }
.text-button { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: transparent; font-size: 13px; }
.text-button:hover { border-color: rgba(168,255,96,.45); }
.text-button.muted { color: var(--muted); }
.file-list { display: grid; gap: 10px; }
.file-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.file-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--accent); background: rgba(168,255,96,.08); font-weight: 800; font-size: 11px; }
.file-info { min-width: 0; }
.file-name { overflow: hidden; margin: 0 0 5px; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 650; }
.file-meta { color: var(--muted); font-size: 12px; }
.file-meta.error { color: var(--danger); }
.download-button { padding: 9px 13px; border: 0; border-radius: 10px; color: #0b0d10; background: var(--accent); font-size: 12px; font-weight: 800; text-decoration: none; }
.status-dot { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.16); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.status-check { color: var(--accent); font-size: 20px; }
.status-error { color: var(--danger); font-size: 18px; }
@keyframes spin { to { transform: rotate(360deg); } }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 22px 0 74px; }
.feature-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.018); }
.feature-grid span { color: var(--accent); font-family: ui-monospace, monospace; font-size: 11px; }
.feature-grid h3 { margin: 17px 0 8px; font-size: 16px; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
footer { padding: 26px 0 36px; border-top: 1px solid var(--line); color: #6e7480; text-align: center; font-size: 12px; }

@media (max-width: 700px) {
  .page-shell { width: min(100% - 24px, 1100px); }
  .nav { height: 72px; }
  .privacy-pill { padding: 8px 10px; font-size: 11px; }
  .hero { padding: 58px 0 38px; }
  .hero p { font-size: 15px; }
  .drop-zone { padding: 46px 18px; }
  .queue-panel { padding: 17px; }
  .queue-heading { align-items: flex-start; flex-direction: column; }
  .file-row { grid-template-columns: 40px minmax(0, 1fr); }
  .file-row > :last-child { grid-column: 2; justify-self: start; }
  .feature-grid { grid-template-columns: 1fr; }
}
