/* ===== SAVTIK — Premium SaaS Design ===== */

/* --- Variables --- */
:root {
  --primary: #1f2b46;
  --primary-dark: #162033;
  --primary-light: #4f7cff;
  --primary-bg: #e9eef7;
  --accent: #0ea5e9;
  --bg: #f5f7fb;
  --bg-white: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e5e7ef;
  --border-light: #f3f5fa;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 38px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 26px 48px rgba(15, 23, 42, 0.14);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1120px;
  --transition: 0.2s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.25rem;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 68px;
  position: relative;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.4px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.navbar-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.navbar-links a:hover { color: var(--text); }
.lang-switcher {
  display: flex;
  gap: 0.35rem;
  background: var(--border-light);
  border-radius: 999px;
  padding: 4px;
}
.lang-btn {
  padding: 0.35rem 0.85rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: pointer;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}
.nav-toggle:hover { box-shadow: var(--shadow); }
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: all var(--transition);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.active span { background: transparent; }
.nav-toggle.active span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active span::after { transform: translateY(-6px) rotate(-45deg); }

/* --- Hero Section --- */
.hero {
  background: radial-gradient(circle at 18% 20%, #e8f0ff 0%, #f7f9fd 38%, #fdfefe 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(79, 124, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.14) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin-bottom: 1.1rem;
}
.hero p {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.4rem;
  line-height: 1.7;
}

/* --- Downloader Form --- */
.downloader-form {
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-md);
}
.input-wrapper {
  position: relative;
  width: 100%;
}
.downloader-form input[type="text"] {
  width: 100%;
  padding: 1rem 3.1rem 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-size: 1rem;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: all var(--transition);
}
.downloader-form input[type="text"]::placeholder {
  color: var(--text-muted);
}
.downloader-form input[type="text"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 124, 255, 0.15);
  background: #fff;
}
.btn-paste {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.45rem;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.btn-paste:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-download {
  width: 100%;
  padding: 1rem;
  font-size: 1.02rem;
  font-weight: 700;
  font-family: var(--font);
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
}
.btn-download:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-download:active { transform: translateY(0); }
.download-disclaimer {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}
.hero-tagline {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
  flex-wrap: wrap;
}
.hero-tagline span {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.hero-tagline span::before {
  content: '✓ ';
  color: var(--primary);
}

/* --- Video Preview --- */
.video-preview {
  max-width: 560px;
  margin: 1.5rem auto 0;
  display: none;
}

/* --- Section Base --- */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}
.section-tight { padding-bottom: 3.5rem; }
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.7px;
  margin-bottom: 0.65rem;
  line-height: 1.2;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-bg);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.35rem;
  background: var(--primary-bg);
  color: var(--primary);
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- How It Works --- */
.howto-bg {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.2rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  isolation: isolate;
}
.step::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(79, 124, 255, 0.08), rgba(14, 165, 233, 0.08));
  opacity: 0;
  transition: opacity var(--transition);
}
.step:hover::after { opacity: 1; }
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(31, 43, 70, 0.25);
  position: relative;
  z-index: 1;
}
.step h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.3rem;
  position: relative;
  z-index: 1;
}
.step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* --- Why Choose Section --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}
.why-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.why-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.why-check {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}
.why-item span {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

/* --- FAQ Section --- */
.faq-bg { background: var(--bg-white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.faq-item:hover { border-color: var(--primary); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.2rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
  user-select: none;
  gap: 1rem;
}
.faq-q::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a-inner {
  padding: 0 1.2rem 1.15rem;
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-item.open .faq-a {
  max-height: 220px;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(120deg, #eef2ff 0%, #f5f7fb 100%);
  padding: 4.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(79,124,255,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.6px;
}
.cta-section p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.6rem;
}
.btn-cta {
  display: inline-block;
  padding: 0.95rem 2.3rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* --- Footer --- */
.footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 2.6rem 1.5rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-brand {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-links {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Video Result Card --- */
.video-result-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.4rem;
  max-width: 440px;
  margin: 1.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--border);
}
.video-result-card video {
  width: 100%;
  border-radius: var(--radius);
  background: #000;
}
.video-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.video-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.video-username {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.98rem;
}
.video-size {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  background: var(--border-light);
  padding: 0.15em 0.6em;
  border-radius: 6px;
}
.video-caption {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}
.video-meta-row {
  margin-top: 0.2rem;
}
.quality-selector {
  display: flex;
  gap: 0.4rem;
}
.quality-pill {
  background: var(--border-light);
  color: var(--text-secondary);
  border: none;
  border-radius: 20px;
  padding: 0.3em 1em;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}
.quality-pill.selected {
  background: var(--primary);
  color: #fff;
}
.quality-pill:hover:not(.selected) {
  background: var(--border);
}
.download-actions.integrated {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.btn-main-download {
  display: block;
  width: 100%;
  padding: 0.85rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 4px 12px rgba(31, 43, 70, 0.25);
  transition: all var(--transition);
  font-family: var(--font);
}
.btn-main-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(31, 43, 70, 0.28);
}
.btn-alt-download {
  display: block;
  width: 100%;
  padding: 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--transition);
  font-family: var(--font);
}
.btn-alt-download:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff;
}
.btn-mp3-download {
  display: block;
  width: 100%;
  padding: 0.7rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--transition);
  font-family: var(--font);
}
.btn-mp3-download:hover {
  background: var(--primary);
  color: #fff;
}

/* --- Spinner --- */
.spinner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 2rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  pointer-events: auto;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.3s ease;
  background: var(--bg-white);
  border: 1px solid var(--border);
  color: var(--text);
}
.toast.show {
  transform: translateX(0);
  opacity: 1;
}
.toast-error { border-left: 4px solid #ef4444; }
.toast-success { border-left: 4px solid #22c55e; }
.toast-info { border-left: 4px solid var(--primary); }
.toast-icon { font-size: 1rem; flex-shrink: 0; }
.toast-success .toast-icon { color: #22c55e; }
.toast-error .toast-icon { color: #ef4444; }
.toast-info .toast-icon { color: var(--primary); }

/* --- Error Message --- */
.error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-weight: 700;
  font-size: 0.93rem;
  margin: 1rem 0;
}
.error-icon {
  font-size: 1rem;
  background: #fee2e2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(31, 43, 70, 0.35);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition);
  z-index: 99;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

/* --- Ad Space (hidden) --- */
.ad-space { display: none; }

/* ===== Secondary Pages ===== */
.page-header {
  background: linear-gradient(135deg, #eef2ff 0%, #f5f7fb 100%);
  padding: 3.2rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.page-header p {
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-size: 1rem;
}
.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.6rem 1.5rem 3.2rem;
}
.content-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 2.4rem 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.content-card h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 1rem;
}
.content-card h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin: 1.4rem 0 0.35rem;
}
.content-card p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
}
.content-card a:not(.back-link):not(.btn-primary) {
  color: var(--primary);
  text-decoration: underline;
}
.content-card a:not(.back-link):not(.btn-primary):hover {
  color: var(--primary-dark);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.2rem;
}
.contact-form input,
.contact-form textarea {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1.4px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition);
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.15);
  background: #fff;
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form .btn-primary {
  width: auto;
  align-self: flex-start;
  padding: 0.85rem 2.1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}
.contact-form .btn-primary:hover {
  box-shadow: var(--shadow-md);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.back-link:hover { color: var(--primary); }

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.3rem; }
  .navbar-links a { font-size: 0.92rem; }
}
@media (max-width: 768px) {
  .navbar-inner { height: 64px; }
  .nav-toggle { display: inline-flex; }
  .navbar-links {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    padding: 0.9rem 1rem 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0 1rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: all var(--transition);
  }
  .navbar-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .navbar-links a { display: inline-flex; color: var(--text); }
  .lang-switcher { width: 100%; justify-content: space-between; }
  .hero { padding: 2.9rem 1rem 2.7rem; text-align: left; }
  .hero-content { text-align: left; }
  .hero h1 { font-size: 1.82rem; line-height: 1.12; margin-bottom: 0.85rem; }
  .hero p { font-size: 0.96rem; }
  .hero-tagline { justify-content: flex-start; gap: 0.5rem; }
  .downloader-form { padding: 1.1rem 1.1rem 1.15rem; gap: 0.6rem; }
  .downloader-form input[type="text"] { padding-right: 2.7rem; }
  .btn-paste { padding: 0.4rem; right: 6px; }
  .btn-download { padding: 0.9rem; font-size: 0.98rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 1rem; }
  .section-header h2 { font-size: 1.65rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 540px) {
  .features-grid { grid-template-columns: 1fr; }
  .downloader-form { padding: 1.05rem; }
  .section { padding: 3rem 1rem; }
  .content-card { padding: 1.6rem 1.2rem; }
  .navbar-links { margin: 0 0.75rem; }

  .hero { padding: 2.5rem 0.9rem 2.4rem; }
  .hero h1 { font-size: 1.6rem; line-height: 1.12; }
  .hero p { font-size: 0.92rem; }
  .hero-tagline { gap: 0.42rem; }
  .downloader-form { padding: 1rem 1rem 1.05rem; border-radius: 14px; }
  .downloader-form input[type="text"] { padding-right: 2.5rem; font-size: 0.94rem; }
  .btn-paste { padding: 0.35rem; }
  .btn-download { padding: 0.82rem; font-size: 0.94rem; }
  .section-header h2 { font-size: 1.5rem; }
  .page-header { padding: 2.6rem 1rem; }
  .page-content { padding: 2.2rem 1rem 2.8rem; }
}

@media (max-width: 420px) {
  .hero { padding: 2.3rem 0.85rem 2.2rem; }
  .hero h1 { font-size: 1.48rem; line-height: 1.12; }
  .hero p { font-size: 0.88rem; }
  .downloader-form { padding: 0.9rem 0.9rem 0.95rem; border-radius: 12px; }
  .downloader-form input[type="text"] { padding-right: 2.2rem; font-size: 0.9rem; }
  .btn-paste { padding: 0.28rem; right: 5px; }
  .btn-download { padding: 0.78rem; font-size: 0.92rem; }
  .hero-tagline span { font-size: 0.82rem; }
  .section { padding: 2.45rem 0.85rem; }
}
