:root { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #0f172a; }
body { margin: 0; background: #f5f7fb; line-height: 1.7; }
.vg-hero .container, .vg-main .container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.vg-hero { background: linear-gradient(120deg, #0f6efc, #5b1bff); color: #fff; padding: 56px 0 48px; }
.vg-hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 26px; align-items: center; }
.vg-eyebrow { letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.78rem; margin: 0 0 8px; }
.vg-hero h1 { margin: 0 0 12px; font-size: clamp(2.1rem, 4vw, 3rem); }
.vg-subtitle { margin: 0 0 12px; opacity: 0.95; }
.vg-bullets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.vg-bullets span { padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-weight: 700; }
.vg-hero-card { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 20px; padding: 22px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18); }
.vg-hero-badge { display: inline-block; background: rgba(255, 255, 255, 0.2); padding: 6px 12px; border-radius: 12px; font-weight: 700; }
.vg-main { padding: 40px 0 60px; }
.vg-grid { display: grid; gap: 18px; }
.card { background: #fff; border-radius: 18px; padding: 20px; box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08); border: 1px solid #e2e8f0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 10px; border-radius: 999px; background: #eef2ff; color: #1d4ed8; font-weight: 700; font-size: 0.9rem; }
.vg-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 16px; margin-top: 14px; }
.drop-zone { border: 2px dashed #cbd5e1; border-radius: 14px; background: #f8fafc; padding: 18px; transition: all 0.15s ease; }
.drop-zone.dragover { border-color: #0f6efc; box-shadow: 0 0 0 3px rgba(15, 110, 252, 0.15); }
.drop-inner { text-align: center; color: #475569; }
.upload-icon { font-size: 2rem; }
.upload-btn { display: inline-block; margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: linear-gradient(135deg, #0f6efc, #5b1bff); color: #fff; font-weight: 700; cursor: pointer; }
.upload-btn input { display: none; }
.preview-col video { width: 100%; max-height: 320px; border-radius: 12px; margin-top: 10px; display: block; object-fit: contain; background: #000; }
.timeline { margin-top: 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px; display: grid; gap: 8px; }
.timeline-labels { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.95rem; color: #475569; }
.timeline input[type='range'] { width: 100%; accent-color: #0f6efc; }
.trim-control { display: grid; gap: 4px; }
.trim-control input { width: 100%; border: 1px solid #d6d9e8; border-radius: 10px; padding: 8px; }
.frame-preview { border: 1px dashed #cbd5e1; border-radius: 10px; padding: 8px; text-align: center; color: #475569; font-size: 0.95rem; min-height: 48px; background: #fff; max-width: 220px; }
.controls-col { display: grid; gap: 12px; }
.control-group { display: grid; gap: 6px; }
.control-group input[type='range'], .control-group input[type='number'], .control-group select { width: 100%; border: 1px solid #d6d9e8; border-radius: 10px; padding: 10px; background: #fff; }
.dual { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.primary-btn, .ghost-btn { border: none; border-radius: 12px; padding: 10px 14px; font-weight: 800; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.primary-btn { background: linear-gradient(135deg, #1d4ed8, #2563eb); color: #fff; box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35); }
.ghost-btn { background: #fff; border: 1px solid #dbeafe; color: #0f6efc; }
.gif-preview { border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; min-height: 220px; max-width: 520px; margin: 0 auto; display: grid; place-items: center; padding: 12px; }
.gif-preview img { max-width: 100%; border-radius: 10px; }
.info-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.progress-wrap { position: relative; height: 10px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin: 8px 0 6px; }
.progress-bar { position: absolute; left: 0; top: 0; height: 100%; width: 0%; background: linear-gradient(135deg, #0f6efc, #5b1bff); transition: width 0.25s ease; }
.hint { color: #94a3b8; font-size: 0.85rem; }
.muted { color: #64748b; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.info-card { background: #fff; border-radius: 16px; padding: 16px; border: 1px solid #e2e8f0; box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06); }
.accordion details { border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: #fff; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.accordion summary { cursor: pointer; font-weight: 700; }
.accordion details:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08); }
.tabs { display: flex; gap: 8px; margin: 12px 0; }
.tab { border: 1px solid #dbeafe; background: #fff; color: #0f172a; padding: 8px 12px; border-radius: 10px; cursor: pointer; }
.tab.active { background: #0f6efc; color: #fff; }
.hidden { display: none; }
@media (max-width: 900px) {
  body { overflow-x: hidden; }
  .vg-hero-grid { grid-template-columns: 1fr; }
  .vg-hero { padding: 32px 0; }
  .vg-layout { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: stretch; }
  #generate-btn, #download-gif { width: 100%; }
}
.settings-panel { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; }
