/* ── HERO ── */
.hero {
  padding: 72px 20px 0;
  text-align: center;
  animation: fadeUp 0.55s 0.05s ease both;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(230, 48, 48, 0.3);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.pill-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 18px;
}

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

.hero p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 420px;
  margin: 0 auto 52px;
  line-height: 1.65;
}

/* ── INPUT CARD ── */
.card-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
  animation: fadeUp 0.55s 0.15s ease both;
}

.input-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.input-card:focus-within {
  border-color: rgba(230, 48, 48, 0.35);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.input-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.url-input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.88rem;
  padding: 13px 16px;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}
.url-input::placeholder { color: #444; }
.url-input:focus { border-color: rgba(230, 48, 48, 0.4); }

/* ── FORMAT DROPDOWN ── */
.format-wrap { position: relative; }

.format-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 13px 16px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.format-btn:hover { border-color: rgba(230, 48, 48, 0.3); color: var(--text); }

.format-chevron {
  display: inline-block;
  transition: transform 0.2s;
  font-size: 0.65rem;
}
.format-wrap.open .format-chevron { transform: rotate(180deg); }

.format-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  min-width: 160px;
  z-index: 20;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.format-wrap.open .format-dropdown { display: block; }

.fmt-option {
  padding: 11px 16px;
  font-size: 0.84rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s;
  color: var(--muted);
}
.fmt-option:hover    { background: var(--surface2); color: var(--text); }
.fmt-option.selected { color: var(--accent); }

.fmt-icon { font-size: 1rem; line-height: 1; }

/* ── CONVERT BUTTON ── */
.btn-convert {
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-convert:hover     { background: #c42020; transform: translateY(-1px); }
.btn-convert:active    { transform: translateY(0); }
.btn-convert:disabled  { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ── VIDEO PREVIEW ── */
.video-preview {
  max-width: 700px;
  margin: 14px auto 0;
  padding: 0 20px;
  display: none;
}
.video-preview.show { display: block; animation: fadeUp 0.4s ease forwards; }

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.v-thumb-wrap {
  flex-shrink: 0;
  width: 120px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface2);
}

.v-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v-info { flex: 1; min-width: 0; }

.v-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.35;
  word-break: break-word;
}

.v-chips { display: flex; gap: 6px; flex-wrap: wrap; }

.btn-dl {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}
.btn-dl:hover    { background: var(--accent); color: #fff; }
.btn-dl:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── PROGRESS ── */
.progress-wrap {
  max-width: 700px;
  margin: 12px auto 0;
  padding: 0 20px;
  display: none;
}
.progress-wrap.show { display: block; animation: fadeUp 0.3s ease forwards; }

.progress-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}

.progress-track {
  height: 3px;
  background: var(--surface2);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
  width: 35%;
  animation: slide 1.4s ease-in-out infinite;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.waveform { display: flex; align-items: center; gap: 3px; }

.wv {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  animation: wv 0.7s ease-in-out infinite alternate;
}
.wv:nth-child(1) { height: 5px;  animation-delay: 0s; }
.wv:nth-child(2) { height: 12px; animation-delay: 0.1s; }
.wv:nth-child(3) { height: 18px; animation-delay: 0.05s; }
.wv:nth-child(4) { height: 10px; animation-delay: 0.15s; }
.wv:nth-child(5) { height: 6px;  animation-delay: 0.08s; }

.status-text {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--mono);
}

/* ── ERROR ── */
.error-wrap {
  max-width: 700px;
  margin: 12px auto 0;
  padding: 0 20px;
  display: none;
}
.error-wrap.show { display: block; animation: fadeUp 0.3s ease forwards; }

.error-box {
  background: rgba(230, 48, 48, 0.08);
  border: 1px solid rgba(230, 48, 48, 0.25);
  color: #ff7070;
  font-size: 0.83rem;
  padding: 12px 16px;
  border-radius: 10px;
  font-family: var(--mono);
}

/* ── INFO / STEPS ── */
.info {
  max-width: 700px;
  margin: 80px auto 0;
  padding: 0 20px 80px;
  animation: fadeUp 0.55s 0.3s ease both;
}

.info h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.info p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s;
}
.step:hover { border-color: rgba(230, 48, 48, 0.2); }

.step-n {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--accent);
  opacity: 0.35;
  margin-bottom: 14px;
  line-height: 1;
}

.step-title { font-size: 0.88rem; font-weight: 700; margin-bottom: 6px; }
.step-desc  { font-size: 0.78rem; color: var(--muted); line-height: 1.55; }

/* ── AD SLOTS ── */
.ad-slot {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px 28px;
}

.ad-slot.secondary { margin-top: 36px; padding-bottom: 0; }

.ad-native {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  min-height: 100px;
  overflow: hidden;
  transition: border-color 0.2s;
  text-decoration: none;
  color: inherit;
}
.ad-native:hover { border-color: rgba(255, 255, 255, 0.13); }

.ad-label {
  position: absolute;
  top: 7px;
  right: 11px;
  font-family: var(--mono);
  font-size: 0.58rem;
  color: #3a3a3a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.ad-icon {
  width: 84px;
  height: 84px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  overflow: hidden;
}

.ad-icon img { width: 100%; height: 100%; object-fit: cover; display: flex; }

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

.ad-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-desc {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ad-cta {
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}
.ad-cta:hover  { background: #c42020; transform: translateY(-1px); }
.ad-cta:active { transform: translateY(0); }

/* ── SEO SECTION ── */
.seo-section {
  max-width: 700px;
  margin: 64px auto 0;
  padding: 0 20px;
  animation: fadeUp 0.55s 0.4s ease both;
}

.seo-section h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.seo-section p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: rgba(230, 48, 48, 0.2); }

.feature-icon  { font-size: 1.3rem; margin-bottom: 10px; display: block; }
.feature-title { font-size: 0.82rem; font-weight: 700; margin-bottom: 5px; }
.feature-desc  { font-size: 0.72rem; color: var(--muted); line-height: 1.5; }

/* ── FAQ ── */
.faq-section {
  max-width: 700px;
  margin: 56px auto 0;
  padding: 0 20px 80px;
  animation: fadeUp 0.55s 0.45s ease both;
}

.faq-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-of-type { border-top: 1px solid var(--border); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  padding: 16px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color 0.15s;
}
.faq-q:hover { color: var(--accent); }

.faq-chevron {
  font-size: 0.65rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-a {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
  padding-bottom: 16px;
  display: none;
}
.faq-item.open .faq-a { display: block; animation: fadeUp 0.2s ease both; }
