/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #0f172a; background: #f8fafc; }

.container { max-width: 1100px; margin: 0 auto; padding: 20px; }

/* Header */
.header-minimal { background: #ffffff; border-bottom: 1px solid #e2e8f0; padding: 28px 0; }
.logo { font-size: 2.2rem; font-weight: 700; color: #0f172a; margin-bottom: 8px; text-align: center; }
.tagline { font-size: 1rem; color: #64748b; font-weight: 400; text-align: center; }

/* Main */
main { padding: 40px 0; }
.download-section { text-align: center; max-width: 700px; margin: 0 auto; }
.download-section h2 { font-size: 2rem; font-weight: 700; color: #0f172a; margin-bottom: 12px; }
.description { font-size: 1rem; color: #64748b; margin-bottom: 28px; }

.input-container { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; justify-content: center; }
#videoUrl { flex: 1 1 420px; min-width: 280px; padding: 14px 16px; border: 1px solid #cbd5e1; border-radius: 12px; background: #ffffff; color: #0f172a; font-size: 16px; }

.primary-btn { background: #22c55e; color: #ffffff; border: none; border-radius: 12px; padding: 14px 20px; font-size: 16px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; transition: transform 0.06s ease, box-shadow 0.2s ease; }
.primary-btn:hover { box-shadow: 0 8px 20px rgba(34, 197, 94, 0.25); }
.primary-btn:active { transform: translateY(1px); }
.btn-text { display: inline-block; }
.btn-loading { display: inline-flex; align-items: center; gap: 8px; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Messages */
.message { border-radius: 12px; padding: 14px 16px; margin: 14px auto; max-width: 700px; font-size: 15px; display: none; }
.error-message { background: #fee2e2; color: #7f1d1d; border: 1px solid #fecaca; }
.success-message { background: #dcfce7; color: #14532d; border: 1px solid #bbf7d0; }

/* Preview */
.video-preview { border-radius: 12px; padding: 20px; margin: 24px auto; border: 1px solid #e2e8f0; background: #ffffff; max-width: 900px; }
.preview-content { display: flex; gap: 20px; align-items: center; }
#videoThumbnail { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid #e2e8f0; }
.video-info h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; color: #0f172a; }
.video-info p { color: #64748b; margin-bottom: 8px; }
.video-music { font-style: italic; color: #8b5cf6 !important; font-size: 0.9rem; }

.video-stats { display: flex; gap: 12px; font-size: 0.9rem; color: #64748b; flex-wrap: wrap; }
.stat-item { display: flex; align-items: center; gap: 6px; background: #ffffff; padding: 6px 12px; border-radius: 20px; border: 1px solid #e2e8f0; font-size: 0.85rem; }
.icon-clock::before { content: ""; }
.icon-eye::before { content: ""; }
.icon-heart::before { content: ""; }
.icon-message::before { content: ""; }
.icon-share::before { content: ""; }

/* How it works */
.how-it-works { margin-top: 40px; }
.how-it-works h2 { text-align: center; font-size: 1.8rem; margin-bottom: 16px; }
.steps-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 26px; text-align: center; }
.step-number { display: inline-block; width: 40px; height: 40px; line-height: 40px; border-radius: 50%; background: #22c55e; color: #fff; font-weight: 700; margin-bottom: 10px; }

/* Features */
.features { margin-top: 28px; }
.features h2 { text-align: center; font-size: 1.8rem; margin-bottom: 16px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 26px; }

/* FAQ */
.faq { margin-top: 28px; }
.faq h2 { text-align: center; font-size: 1.8rem; margin-bottom: 16px; }
.faq-item { border: 1px solid #e2e8f0; border-radius: 12px; background: #ffffff; margin-bottom: 10px; overflow: hidden; }
.faq-question { 
  width: 100%; 
  text-align: left; 
  background: #ffffff; 
  border: none; 
  padding: 16px; 
  font-size: 1rem; 
  font-weight: 600; 
  color: #0f172a; 
  cursor: pointer; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}
.faq-question:hover {
  background-color: #f8fafc;
}
.faq-arrow {
  font-size: 0.8rem;
  color: #64748b;
  transition: transform 0.3s ease;
  margin-left: 10px;
}
.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}
.faq-answer { 
  padding: 0; 
  color: #64748b; 
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  opacity: 0;
}
.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 16px 16px;
  opacity: 1;
}

/* Footer */
footer { background: #ffffff; color: #64748b; text-align: center; padding: 30px 0; border-top: 1px solid #e2e8f0; }
footer p { opacity: 0.9; }

/* Responsive */
@media (max-width: 900px) { .steps-container, .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .steps-container, .features-grid { grid-template-columns: 1fr; } .logo { font-size: 2rem; } .download-section h2 { font-size: 1.6rem; } }
/* --- Overrides to match reference site visuals more closely --- */
:root {
  --bg: #f7f8fa;
  --card-bg: #ffffff;
  --text: #0f1222;
  --muted: #5f667a;
  --border: #e9edf3;
  --primary: #ff2d55; /* pinkish red */
  --accent: #00f2ea;  /* tiktok cyan */
  --shadow: 0 10px 30px rgba(17, 20, 39, 0.08);
}

body { font-family: 'Inter','Segoe UI',system-ui,-apple-system,Roboto,sans-serif; color: var(--text); background: var(--bg); line-height: 1.75; }
.container { max-width: 1100px; padding: 0 20px; }

/* Header refinement */
.header-minimal { background: var(--card-bg); border-bottom: 1px solid var(--border); padding: 22px 0; }
.logo { font-size: 2rem; font-weight: 800; letter-spacing: -0.2px; margin-bottom: 6px; }
.tagline { font-size: 1rem; color: var(--muted); }

.tagline-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tagline-new {
    margin-top: 4px;
    font-size: 2rem; /* 32px */
    color: var(--primary);
    font-weight: 800;
}

/* Section headings and description */
.download-section h2 { font-size: 1.9rem; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.description { font-size: 1rem; color: var(--muted); margin-bottom: 24px; }

/* Input & button row */
.input-container { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; justify-content: center; }
.input-wrapper { position: relative; flex: 1 1 420px; min-width: 280px; }
#videoUrl { width: 100%; height: 48px; padding: 0 50px 0 14px; border: 1px solid var(--border); border-radius: 12px; background: #fbfcff; color: var(--text); font-size: 16px; }
.paste-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: #f1f5f9; border: 1px solid var(--border); border-radius: 6px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); transition: all 0.2s ease; }
.paste-btn:hover { background: #e2e8f0; color: var(--text); }
.primary-btn { height: 48px; border-radius: 12px; padding: 0 18px; font-size: 16px; font-weight: 700; background: linear-gradient(135deg, var(--primary), #ff4a7a); box-shadow: 0 8px 16px rgba(255,45,85,.25); }
.primary-btn:hover { box-shadow: 0 10px 22px rgba(255,45,85,.28); }

.permission-text {
    font-size: 0.75rem;
    color: var(--muted);
    text-align: center;
    margin-top: 10px;
}

/* Messages */
.message { border-radius: 14px; padding: 14px 16px; margin: 14px auto; max-width: 760px; font-size: 15px; }
.error-message { background: #ffe7ea; color: #72162a; border: 1px solid #ffd2d8; }
.success-message { background: #e8fff9; color: #0f4a44; border: 1px solid #c8fff2; }

/* Preview card */
.video-preview { border-radius: 16px; padding: 22px; margin: 22px auto; border: 1px solid var(--border); background: var(--card-bg); max-width: 900px; box-shadow: var(--shadow); }
.preview-content { display: flex; gap: 16px; align-items: flex-start; }
#videoThumbnail { width: 200px; height: 112px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); background: #eaeef5; }
.video-info h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.video-info p { color: var(--muted); margin-bottom: 6px; }
.video-music { font-style: normal; color: #0f1222 !important; font-weight: 600; }
.video-stats { gap: 10px; font-size: .95rem; color: var(--muted); }

/* Responsive tweaks */
@media (max-width: 700px) {
  .preview-content { flex-direction: column; }
  #videoThumbnail { width: 100%; height: auto; }
}
