/* ============================
   SAVETUBE — Premium Video Downloader
   Design System & Styles
   ============================ */

/* ---- CSS Variables / Design Tokens ---- */
:root {
  /* Colors */
  --bg-primary: #0a0a12;
  --bg-secondary: #12121f;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --bg-glass-border: rgba(255, 255, 255, 0.1);

  --text-primary: #f0f0f5;
  --text-secondary: #9d9db5;
  --text-muted: #6b6b82;

  --accent-primary: #a855f7;
  --accent-secondary: #6366f1;
  --accent-tertiary: #3b82f6;
  --accent-glow: rgba(168, 85, 247, 0.3);

  --gradient-primary: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #3b82f6 100%);
  --gradient-glow: linear-gradient(135deg, rgba(168,85,247,0.15) 0%, rgba(99,102,241,0.08) 100%);
  --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(168,85,247,0.15) 0%, transparent 60%);

  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --container-max: 1200px;
  --section-padding: 100px;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.3);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(168,85,247,0.2);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(168,85,247,0.3);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(168,85,247,0.5);
}

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

/* ---- Animated Background ---- */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168,85,247,0.3), transparent 70%);
  top: -150px;
  left: -100px;
  animation-delay: 0s;
}

.bg-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,0.25), transparent 70%);
  top: 50%;
  right: -100px;
  animation-delay: -7s;
}

.bg-orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(59,130,246,0.2), transparent 70%);
  bottom: -100px;
  left: 30%;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -30px) scale(1.1); }
  50% { transform: translate(-20px, 50px) scale(0.95); }
  75% { transform: translate(30px, 20px) scale(1.05); }
}

/* ---- Glass Card ---- */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition-base);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.15);
}

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(10,10,18,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all var(--transition-base);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 15px rgba(168,85,247,0.3);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background var(--transition-base);
}

.status-dot.online {
  background: var(--success);
  box-shadow: 0 0 8px rgba(16,185,129,0.5);
  animation: pulse 2s ease-in-out infinite;
}

.status-dot.offline {
  background: var(--error);
  box-shadow: 0 0 8px rgba(239,68,68,0.5);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  z-index: 1;
  padding: 160px 0 80px;
  text-align: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: var(--gradient-hero);
  pointer-events: none;
}

.hero .container {
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: var(--radius-full);
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 32px;
  animation: fadeInDown 0.6s ease-out;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeInDown 0.6s ease-out 0.1s both;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
  animation: fadeInDown 0.6s ease-out 0.2s both;
}

/* ---- Input Section ---- */
.input-section {
  max-width: 720px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-glass);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 6px 6px 6px 20px;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.input-wrapper:focus-within {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow), var(--shadow-md);
}

.input-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.url-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 16px 12px;
  width: 100%;
}

.url-input::placeholder {
  color: var(--text-muted);
}

.platform-badge {
  background: rgba(168,85,247,0.15);
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  white-space: nowrap;
  margin-right: 8px;
  animation: fadeIn 0.3s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  padding: 14px 28px;
  box-shadow: 0 4px 20px rgba(168,85,247,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(168,85,247,0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-xl);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 12px 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.2);
}

.input-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ---- Loading Section ---- */
.loading-section {
  margin-top: 40px;
  text-align: center;
}

.loader {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.loader-ring {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gradient-primary);
  animation: loaderBounce 0.6s ease-in-out infinite alternate;
}

.loader-ring:nth-child(2) {
  animation-delay: 0.15s;
}

.loader-ring:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes loaderBounce {
  from { transform: translateY(0); opacity: 0.4; }
  to { transform: translateY(-16px); opacity: 1; }
}

.loading-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---- Error Section ---- */
.error-section {
  margin-top: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.error-card {
  padding: 32px;
  text-align: center;
  border-color: rgba(239,68,68,0.2) !important;
}

.error-icon {
  color: var(--error);
  margin-bottom: 16px;
}

.error-message {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* ---- Result Section ---- */
.result-section {
  margin-top: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.5s ease-out;
}

.result-card {
  padding: 28px;
  border-color: rgba(168,85,247,0.15) !important;
}

.result-header {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  text-align: left;
}

.thumbnail-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 180px;
  height: 110px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.duration-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

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

.result-platform {
  display: inline-block;
  background: rgba(168,85,247,0.12);
  color: var(--accent-primary);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.video-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-uploader {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.quality-section {
  margin-bottom: 24px;
}

.quality-label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.quality-option {
  position: relative;
  cursor: pointer;
}

.quality-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.quality-option-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.quality-option-label:hover {
  border-color: rgba(168,85,247,0.3);
  background: rgba(168,85,247,0.05);
}

.quality-option input:checked + .quality-option-label {
  border-color: var(--accent-primary);
  background: rgba(168,85,247,0.12);
  box-shadow: 0 0 20px rgba(168,85,247,0.15);
}

.quality-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.quality-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.download-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

/* ---- Downloading Section ---- */
.downloading-section {
  margin-top: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.downloading-card {
  padding: 40px;
  text-align: center;
}

.download-progress-icon {
  color: var(--accent-primary);
  margin-bottom: 20px;
}

.download-anim {
  animation: downloadBounce 1.5s ease-in-out infinite;
}

@keyframes downloadBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.downloading-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.downloading-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.progress-bar-wrapper {
  max-width: 300px;
  margin: 0 auto;
}

.progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  width: 30%;
  animation: progressIndeterminate 1.5s ease-in-out infinite;
}

@keyframes progressIndeterminate {
  0% { width: 0%; margin-left: 0%; }
  50% { width: 60%; margin-left: 20%; }
  100% { width: 0%; margin-left: 100%; }
}

/* ---- Section Common ---- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: var(--radius-full);
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ---- Platforms Section ---- */
.platforms-section {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.platform-card {
  padding: 28px 20px;
  text-align: center;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.platform-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent, var(--accent-primary));
  border-radius: 0 0 3px 3px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.platform-card:hover::before {
  opacity: 1;
}

.platform-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--accent, var(--text-primary));
  background: rgba(255,255,255,0.05);
  transition: all var(--transition-base);
}

.platform-card:hover .platform-icon {
  transform: scale(1.1);
  background: rgba(255,255,255,0.08);
}

.platform-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.platform-card p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.platforms-more {
  text-align: center;
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.platforms-more strong {
  color: var(--accent-primary);
}

/* ---- Features Section ---- */
.features-section {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
  background: var(--gradient-glow);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top left, var(--glow, rgba(168,85,247,0.08)), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.05);
  color: var(--glow, var(--accent-primary));
  transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---- How It Works Section ---- */
.how-section {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
}

.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 28px;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  flex: 1;
  max-width: 280px;
  transition: all var(--transition-base);
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168,85,247,0.2);
  box-shadow: var(--shadow-glow);
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(168,85,247,0.3);
}

.step-content h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

.step-connector {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ---- FAQ Section ---- */
.faq-section {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
  background: var(--gradient-glow);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--accent-primary);
}

.faq-chevron {
  transition: transform var(--transition-base);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---- Footer ---- */
.footer {
  position: relative;
  z-index: 1;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 300px;
  line-height: 1.6;
}

.footer-links-group h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-links-group a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.footer-links-group a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.disclaimer {
  margin-top: 8px;
  font-size: 0.75rem !important;
  opacity: 0.6;
}

/* ---- Animations ---- */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .platforms-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .hero-title {
    letter-spacing: -1px;
  }

  .input-wrapper {
    flex-wrap: wrap;
    padding: 12px;
    border-radius: var(--radius-lg);
  }

  .input-icon {
    display: none;
  }

  .url-input {
    padding: 12px 8px;
    font-size: 0.9rem;
  }

  .platform-badge {
    display: none;
  }

  .btn-download {
    width: 100%;
    border-radius: var(--radius-md);
    margin-top: 4px;
  }

  .btn-download span {
    display: inline;
  }

  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    flex-direction: column;
  }

  .step-connector {
    transform: rotate(90deg);
  }

  .step-card {
    max-width: 100%;
    width: 100%;
  }

  .result-header {
    flex-direction: column;
  }

  .thumbnail-wrapper {
    width: 100%;
    height: 180px;
  }

  .quality-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .download-actions {
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .platform-card {
    padding: 20px 12px;
  }

  .quality-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
