/* SaveVideo — full glassmorphism, no gradients, no emojis */
:root {
  --bg: #070b14;
  --glass: rgba(19, 28, 49, 0.55);
  --glass-strong: rgba(19, 28, 49, 0.75);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-hi: rgba(255, 255, 255, 0.16);
  --text: #eef2fa;
  --muted: #93a0bf;
  --accent: #0ea5e9;
  --radius: 16px;
  --blur: blur(22px) saturate(1.4);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
/* ambient orbs — solid color + blur, no gradients */
.orb { position: fixed; border-radius: 50%; filter: blur(110px); opacity: 0.16; pointer-events: none; z-index: 0; }
.orb-1 { width: 480px; height: 480px; background: #0ea5e9; top: -140px; left: -120px; }
.orb-2 { width: 380px; height: 380px; background: #6366f1; bottom: -120px; right: -100px; opacity: 0.12; }
.orb-3 { width: 260px; height: 260px; background: #0ea5e9; top: 40%; left: 60%; opacity: 0.08; }
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* glass utility */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Header */
.header {
  position: sticky; top: 12px; z-index: 10; margin: 12px auto 0; max-width: 960px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 0.15s; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 64px 0 48px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(14, 165, 233, 0.08); border: 1px solid rgba(14, 165, 233, 0.2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 24px; padding: 8px 18px; font-size: 13px; color: var(--accent);
  margin-bottom: 24px; font-weight: 500;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.hero h1 { font-size: 42px; font-weight: 800; margin-bottom: 14px; letter-spacing: -1px; line-height: 1.15; }
.subtitle { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto 36px; }

/* Downloader */
.downloader { padding: 28px; max-width: 680px; margin: 0 auto; text-align: left; }
.dl-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(14, 165, 233, 0.1); border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 20px; padding: 6px 14px; font-size: 13px; color: var(--accent);
  margin-bottom: 18px;
}
.input-row { display: flex; gap: 10px; margin-bottom: 18px; }
.input-wrap { position: relative; flex: 1; display: flex; align-items: center; }
.input-icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.input-wrap input {
  width: 100%; background: rgba(7, 11, 20, 0.6); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 12px; padding: 14px 44px 14px 42px; color: var(--text); font-size: 15px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-wrap input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15); }
.input-wrap input::placeholder { color: var(--muted); }
.btn-icon {
  position: absolute; right: 8px; background: transparent; border: none; cursor: pointer;
  color: var(--muted); padding: 8px; border-radius: 8px; display: flex;
  transition: color 0.15s, background 0.15s;
}
.btn-icon:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
/* segmented control */
.format-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.segmented {
  display: flex; background: rgba(7, 11, 20, 0.6); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 12px; padding: 4px; gap: 4px;
}
.seg-btn {
  display: flex; align-items: center; gap: 8px; border: none; cursor: pointer;
  background: transparent; color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 9px 18px; border-radius: 9px; transition: all 0.18s;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.active {
  background: rgba(14, 165, 233, 0.9); color: #fff; font-weight: 600;
  box-shadow: 0 2px 12px rgba(14, 165, 233, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.quality-select {
  background: rgba(7, 11, 20, 0.55); border: 1px solid var(--glass-border); border-radius: 10px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding: 11px 12px; color: var(--text); font-size: 14px; outline: none; cursor: pointer;
}
.quality-select:focus { border-color: var(--accent); }
.quality-select option { background: #131c31; }
/* custom glass dropdown */
.custom-select { position: relative; }
.custom-select-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(7, 11, 20, 0.55); border: 1px solid var(--glass-border); border-radius: 10px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding: 11px 14px; color: var(--text); font-size: 14px; cursor: pointer; outline: none;
  transition: border-color 0.15s;
}
.custom-select-btn:hover, .custom-select.open .custom-select-btn { border-color: var(--glass-border-hi); }
.custom-select-list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 6px; display: flex; flex-direction: column; gap: 2px;
}
.custom-select-list button {
  background: transparent; border: none; border-radius: 8px; text-align: left;
  padding: 10px 14px; color: var(--muted); font-size: 14px; cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.custom-select-list button:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.custom-select-list button.selected { background: rgba(14, 165, 233, 0.18); color: var(--text); font-weight: 600; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; cursor: pointer;
  border-radius: 12px; padding: 12px 22px; font-size: 15px; font-weight: 600;
  text-decoration: none; transition: transform 0.12s, box-shadow 0.2s, opacity 0.15s, filter 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); filter: brightness(0.95); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; filter: none; }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(14, 165, 233, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--text); padding: 13px 18px;
}
.btn-ghost:hover { border-color: var(--glass-border-hi); background: rgba(255, 255, 255, 0.09); }
.btn-text { font-size: 14px; }
@media (max-width: 600px) { .btn-text { display: none; } .btn-ghost { padding: 13px; } }

.status { margin-top: 16px; padding: 12px 16px; border-radius: 12px; font-size: 14px; }
.status.loading { background: rgba(255, 255, 255, 0.05); color: var(--muted); border: 1px solid var(--glass-border); }
.status.error { background: rgba(127, 29, 29, 0.35); color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.3); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

.result {
  display: flex; gap: 16px; margin-top: 16px; padding: 18px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: 12px; align-items: center;
}
.result-cover { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; flex-shrink: 0; border: 1px solid var(--glass-border); }
.result-info { flex: 1; min-width: 0; }
.result-title { font-weight: 600; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.result-meta { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.result .btn { margin-left: 0; padding: 10px 20px; font-size: 14px; }

/* Platforms */
.platforms { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 28px; }
.platform {
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 20px; padding: 7px 18px; font-size: 13px; color: var(--muted);
}

/* Sections */
.section { padding: 56px 0; }
.section h2 { text-align: center; font-size: 28px; margin-bottom: 32px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature { padding: 26px; transition: transform 0.15s, border-color 0.15s; }
.feature:hover { transform: translateY(-3px); border-color: var(--glass-border-hi); }
.feature svg { margin-bottom: 12px; }
.feature h3 { font-size: 16px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.step { display: flex; gap: 16px; padding: 20px; }
.step-num {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
  background: rgba(14, 165, 233, 0.9); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.step h3 { font-size: 16px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 14px; }

/* FAQ */
.faq-list { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-list details { padding: 18px 22px; cursor: pointer; transition: border-color 0.15s; }
.faq-list details:hover { border-color: var(--glass-border-hi); }
.faq-list summary { font-weight: 600; font-size: 15px; }
.faq-list p { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* Footer */
.footer { padding: 28px 0 40px; text-align: center; }
.footer p {
  color: var(--muted); font-size: 13px; display: inline-block;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 12px; padding: 12px 24px;
}

@media (max-width: 600px) {
  .hero h1 { font-size: 28px; }
  .nav { display: none; }
  .header { margin: 8px 12px 0; }
  .result { flex-direction: column; text-align: center; }
  .result .btn { margin: 0 auto; }
  .format-row .btn-primary { margin-left: 0; width: 100%; justify-content: center; }
}
