/* ============================================================
   VideoToBlog Pro — Landing Page Styles
   Single file, no framework, no build step.
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d0d14;
  --surface:   #16161f;
  --border:    #2a2a3a;
  --text:     #f0f0f5;
  --muted:    #7a7a9a;
  --accent:   #6c5ce7;
  --accent-h: #7d6ef0;
  --cta-bg:   #6c5ce7;
  --cta-h:    #7d6ef0;
  --radius:   10px;
  --max-w:    1080px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout helpers ───────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }
.nav-cta {
  background: var(--cta-bg);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--cta-h); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 96px 24px 80px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(108, 92, 231, 0.15);
  border: 1px solid rgba(108, 92, 231, 0.35);
  color: var(--accent-h);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 36px;
}
.url-form {
  display: flex;
  gap: 10px;
  max-width: 540px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.url-form input {
  flex: 1;
  min-width: 240px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.url-form input::placeholder { color: var(--muted); }
.url-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}
.url-form button {
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  background: var(--cta-bg);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}
.url-form button:hover { background: var(--cta-h); }
.url-form button:active { transform: scale(0.98); }

.hero-note {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 14px;
}

/* ── Section titles ──────────────────────────────────────── */
.section-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-h);
  margin-bottom: 10px;
}
.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 56px;
  font-size: 1rem;
}

/* ── How it works ────────────────────────────────────────── */
.how-section { padding: 72px 0; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(108, 92, 231, 0.15);
  border: 1px solid rgba(108, 92, 231, 0.3);
  color: var(--accent-h);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.step p { color: var(--muted); font-size: 0.9rem; }

/* ── Features ────────────────────────────────────────────── */
.features-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature {
  padding: 24px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 14px;
  display: block;
}
.feature h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature p { color: var(--muted); font-size: 0.875rem; }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-section { padding: 80px 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s;
}
.plan:hover { border-color: var(--accent); }
.plan-popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 32px rgba(108, 92, 231, 0.2);
}
.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.plan-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}
.plan-price .amount {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.plan-price .period {
  color: var(--muted);
  font-size: 0.9rem;
}
.plan-desc {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 28px;
}
.plan-features {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
  padding: 7px 0;
  border-bottom: 1px solid rgba(42, 42, 58, 0.5);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before {
  content: '✓';
  color: var(--accent-h);
  font-weight: 700;
  flex-shrink: 0;
}
.plan-btn {
  display: block;
  text-align: center;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  cursor: pointer;
  border: none;
}
.plan-btn-primary {
  background: var(--cta-bg);
  color: #fff;
}
.plan-btn-primary:hover { background: var(--cta-h); }
.plan-btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.plan-btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-h);
}
.plan-btn:active { transform: scale(0.98); }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}
.footer-brand span { color: var(--accent); }
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }
.footer-powered {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-powered::before { content: '•'; }

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 64px 16px 56px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 12px; }
}