@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-card: #ffffff;
  --bg-input: #f0f2f8;

  --text-primary: #1a1a2e;
  --text-secondary: #5a5f7a;
  --text-muted: #9498b3;

  --accent-coral: #ff6b6b;
  --accent-violet: #845ef7;
  --accent-sky: #339af0;
  --accent-emerald: #20c997;
  --accent-amber: #fcc419;
  --accent-pink: #f06595;

  --gradient-hero: linear-gradient(135deg, #845ef7 0%, #339af0 50%, #20c997 100%);
  --gradient-btn: linear-gradient(135deg, #845ef7 0%, #f06595 100%);
  --gradient-card: linear-gradient(145deg, rgba(132,94,247,0.06) 0%, rgba(51,154,240,0.06) 100%);

  --border-light: rgba(0,0,0,0.06);
  --border-medium: rgba(0,0,0,0.1);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
  --shadow-color: 0 8px 30px rgba(132,94,247,0.15);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: all 0.3s var(--ease-out);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

p { color: var(--text-secondary); line-height: 1.65; }

/* ─── Animated background blobs ─── */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
  animation: blob-float 18s ease-in-out infinite alternate;
}
body::before {
  width: 500px; height: 500px;
  background: var(--accent-violet);
  top: -120px; right: -100px;
}
body::after {
  width: 450px; height: 450px;
  background: var(--accent-sky);
  bottom: -100px; left: -80px;
  animation-delay: -8s;
}

@keyframes blob-float {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
  100% { transform: translate(10px, -10px) scale(1.03); }
}

/* ═══════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════ */
body.minimal-landing-body { overflow-x: hidden; overflow-y: auto; }

.minimal-landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: clamp(24px, 5vw, 64px) 24px;
  text-align: center;
  gap: 20px;
  position: relative;
}

/* Supported platforms pills */
.platform-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
  animation: fade-in-up 0.8s var(--ease-out) 0.2s both;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}
.platform-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.platform-pill .pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pill-yt .pill-dot { background: #ff0000; }
.pill-ig .pill-dot { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.pill-pin .pill-dot { background: #e60023; }
.pill-vim .pill-dot { background: #1ab7ea; }
.pill-fb .pill-dot { background: #1877f2; }
.pill-more .pill-dot { background: var(--accent-emerald); }

.minimal-landing h1 {
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.92;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fade-in-up 0.8s var(--ease-out) 0.3s both;
}

.minimal-landing .hero-subtitle {
  max-width: 520px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  animation: fade-in-up 0.8s var(--ease-out) 0.45s both;
}

/* Landing form */
.landing-download-form {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 680px;
  margin-top: 12px;
  animation: fade-in-up 0.8s var(--ease-out) 0.6s both;
}

.landing-download-form .simple-paste-bar input {
  border-color: var(--border-medium);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
}
.landing-download-form .simple-paste-bar input::placeholder {
  color: var(--text-muted);
}
.landing-download-form .simple-paste-bar input:focus {
  border-color: var(--accent-violet);
  box-shadow: var(--shadow-md), 0 0 0 4px rgba(132,94,247,0.12);
}

.landing-download-form .enter-button {
  flex: 0 0 90px;
  width: 90px;
  border-radius: var(--radius-pill);
  background: var(--gradient-btn);
  border: none;
  color: #fff;
  box-shadow: var(--shadow-color);
}
.landing-download-form .enter-button:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(132,94,247,0.3);
}
.landing-download-form .enter-button::before { display: none; }
.landing-download-form .enter-button .button-label {
  position: static;
  width: auto; height: auto;
  overflow: visible;
  clip-path: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

/* Feature chips under form */
.feature-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 4px;
  animation: fade-in-up 0.8s var(--ease-out) 0.75s both;
}
.feature-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}
.feature-chip svg {
  width: 16px; height: 16px;
  color: var(--accent-emerald);
}

/* ═══════════════════════════════════════
   DOWNLOAD PAGE
   ═══════════════════════════════════════ */
body.simple-body { overflow-y: auto; }

.simple-download-page.download-page { padding: 0; }

.simple-console {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  padding: clamp(36px, 6vh, 80px) 24px 60px;
  gap: 40px;
}

/* Back / Brand header */
.page-header {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: fade-in-up 0.5s var(--ease-out) both;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  transition: var(--transition);
}
.back-btn:hover {
  color: var(--accent-violet);
  border-color: var(--accent-violet);
  transform: translateX(-3px);
}
.page-brand {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.simple-paste-shell {
  width: 100%;
  max-width: 858px;
  animation: fade-in-up 0.5s var(--ease-out) 0.1s both;
}

/* ─── Shared Form Elements ─── */
.simple-download-form {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.simple-paste-bar {
  flex: 1;
  min-width: 0;
  position: relative;
}

.simple-paste-bar input {
  width: 100%;
  height: 50px;
  padding: 0 22px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}
.simple-paste-bar input::placeholder { color: var(--text-muted); }
.simple-paste-bar input:focus {
  border-color: var(--accent-violet);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(132,94,247,0.1);
}

/* Submit button */
.enter-button {
  flex: 0 0 50px;
  width: 50px; height: 50px;
  border: none;
  border-radius: 50%;
  background: var(--gradient-btn);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-color);
}
.enter-button::before {
  content: "";
  width: 10px; height: 10px;
  border-top: 2.5px solid #fff;
  border-right: 2.5px solid #fff;
  transform: rotate(45deg) translate(-2px, 2px);
  transition: var(--transition);
}
.enter-button:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(132,94,247,0.35);
}
.enter-button:hover::before {
  transform: rotate(45deg) translate(0, 0) scale(1.15);
}
.enter-button:active { transform: scale(0.95); }
.enter-button .button-label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* Loader */
.button-loader {
  display: none;
  width: 22px; height: 22px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  position: absolute;
  left: calc(50% - 11px);
  top: calc(50% - 11px);
}
.enter-button.is-loading::before { opacity: 0; }
.enter-button.is-loading .button-loader { display: block; }

/* ═══════════════════════════════════════
   RESULTS PANEL
   ═══════════════════════════════════════ */
.results.download-results {
  width: 100%;
  max-width: 1200px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 36px;
  animation: results-enter 0.6s var(--ease-out) both;
}
.results[hidden] { display: none !important; }

@keyframes results-enter {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Media Summary */
.media-summary {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  width: 100%;
}

/* Featured card styles removed in favor of integrated media-meta download actions */

/* Thumbnail */
.thumbnail-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-soft);
  box-shadow: var(--shadow-md);
  width: 100%;
}
.thumbnail-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.thumbnail-shell:hover img { transform: scale(1.03); }

.download-options-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* Play pulse */
.play-pulse {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  pointer-events: none;
  animation: pulse-ring 2.5s var(--ease-out) infinite;
}
.play-pulse::after {
  content: "";
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid var(--accent-violet);
  margin-left: 3px;
}

/* Duration badge */
.thumbnail-shell[data-duration]::after {
  content: attr(data-duration);
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

/* Media Info */
.media-meta .download-tabs {
  margin-top: 6px;
}

.media-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Featured download action within the media-meta container */
.featured-action {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  animation: fade-in-up 0.5s var(--ease-out) both;
}

.featured-action-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.featured-action-badge {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--accent-violet);
  background: rgba(132, 94, 247, 0.1);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.featured-action-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.featured-action-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.featured-action-details span {
  display: inline-flex;
  align-items: center;
}

.featured-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 340px;
  height: 44px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--gradient-btn);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-color);
}

.featured-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(132, 94, 247, 0.3);
}

.featured-action-btn:active {
  transform: scale(0.97);
}

.source-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #fff;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--gradient-btn);
}

.media-meta h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  line-height: 1.3;
  color: var(--text-primary);
}

#mediaDetails {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ─── Tab Switcher ─── */
.download-tabs {
  display: flex;
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 4px;
  width: max-content;
}
.tab {
  padding: 10px 28px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Sora', sans-serif;
}
.tab:hover { color: var(--text-primary); }
.tab.is-active {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: var(--shadow-color);
}

/* Format panel */
.format-area { width: 100%; }
.format-list {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.format-list.is-active { display: grid; }

/* ─── Format Cards ─── */
.yt-style-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease-spring);
}
.yt-style-card:hover { transform: translateY(-6px); }

.yt-card-thumbnail-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.yt-card-thumbnail {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.yt-style-card:hover .yt-card-thumbnail { transform: scale(1.04); }

.yt-card-badge {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.yt-card-content {
  display: flex;
  gap: 10px;
  padding: 0 2px;
}

.yt-card-avatar {
  flex: 0 0 34px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-violet);
  transition: var(--transition);
}
.yt-style-card:hover .yt-card-avatar {
  background: var(--gradient-btn);
  color: #fff;
  border-color: transparent;
}
.yt-card-avatar svg { width: 15px; height: 15px; }

.yt-card-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.yt-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0;
  font-family: 'Sora', sans-serif;
}
.yt-card-channel {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0;
}
.yt-card-views {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

.yt-card-actions {
  display: flex;
  padding: 0 2px 4px;
}
.yt-card-btn {
  width: 100%;
  height: 36px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-medium);
  background: var(--bg-soft);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
}
.yt-card-btn:hover {
  background: var(--gradient-btn);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-color);
  transform: scale(1.02);
} /* ─── Download Progress Bar ─── */
.download-progress {
  position: relative;
  width: 100%;
  height: 36px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #5c33f0 0%, #a855f7 60%, #f06595 100%);
  border: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(132,94,247,0.45);
  transition: var(--transition);
  cursor: default;
}
.download-progress.success {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  box-shadow: 0 4px 18px rgba(16,185,129,0.4);
}
/* Track sits behind the fill, full-width, semi-transparent dark overlay */
.dp-track {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: rgba(0,0,0,0.18);
}
/* Fill grows left-to-right, shows how much is done */
.dp-fill {
  height: 100%;
  border-radius: inherit;
  background: rgba(255,255,255,0.28);
  transition: width 0.3s ease-out;
  width: 0%;
}
.dp-fill.success-fill {
  width: 100% !important;
  background: rgba(255,255,255,0.3);
}
/* Indeterminate shimmer — slides across when size unknown */
.dp-fill.indeterminate {
  width: 38% !important;
  animation: dp-slide 1.5s cubic-bezier(0.4,0,0.6,1) infinite;
}
@keyframes dp-slide {
  0%   { transform: translateX(-110%); opacity: 0.6; }
  50%  { opacity: 1; }
  100% { transform: translateX(290%); opacity: 0.6; }
}
/* Text overlay — sits above track and fill */
.dp-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}
.dp-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.dp-pct {
  font-size: 0.8rem;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  font-family: 'Sora', sans-serif;
  min-width: 38px;
  text-align: left;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.download-button:active { transform: scale(0.97); }

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════
   TOAST
   ═══════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--text-primary);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.96);
  transition: all 0.35s var(--ease-out);
  z-index: 9999;
  max-width: 380px;
}
.toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  .minimal-landing { padding: 32px 18px; }
  .landing-download-form,
  .simple-download-form { gap: 10px; }
  .simple-paste-bar input { height: 46px; padding: 0 16px; font-size: 0.95rem; }
  .enter-button { flex-basis: 46px; width: 46px; height: 46px; }
  .landing-download-form .enter-button { flex-basis: 76px; width: 76px; }
  .media-summary { grid-template-columns: 1fr; gap: 20px; }
  .featured-card { grid-template-columns: 1fr; gap: 16px; }
  .thumbnail-shell { max-width: 100%; }
  .results.download-results { padding: 18px; gap: 28px; }
  .format-list { grid-template-columns: 1fr; }
  .platform-pills { gap: 6px; }
  .platform-pill { padding: 5px 10px; font-size: 0.72rem; }
  .feature-chips { gap: 10px; }
  .page-header { flex-wrap: wrap; }
}

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(132,94,247,0.35); }
  70% { box-shadow: 0 0 0 14px rgba(132,94,247,0); }
  100% { box-shadow: 0 0 0 0 rgba(132,94,247,0); }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Staggered card entrance */
.format-list.is-active .yt-style-card {
  animation: card-pop 0.4s var(--ease-spring) both;
}
.format-list.is-active .yt-style-card:nth-child(1) { animation-delay: 0s; }
.format-list.is-active .yt-style-card:nth-child(2) { animation-delay: 0.05s; }
.format-list.is-active .yt-style-card:nth-child(3) { animation-delay: 0.1s; }
.format-list.is-active .yt-style-card:nth-child(4) { animation-delay: 0.15s; }
.format-list.is-active .yt-style-card:nth-child(5) { animation-delay: 0.2s; }
.format-list.is-active .yt-style-card:nth-child(6) { animation-delay: 0.25s; }
.format-list.is-active .yt-style-card:nth-child(n+7) { animation-delay: 0.3s; }

@keyframes card-pop {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.site-footer {
  width: 100%;
  padding: 32px 24px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fade-in-up 0.8s var(--ease-out) 0.5s both;
  position: relative;
  z-index: 10;
}

.footer-content {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-content a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.footer-content a:hover {
  color: var(--accent-violet);
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

/* ═══════════════════════════════════════
   STATIC PAGES
   ═══════════════════════════════════════ */
.static-page-main {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(36px, 6vh, 80px) 24px;
  min-height: calc(100vh - 120px);
  animation: fade-in-up 0.5s var(--ease-out) 0.1s both;
}

.static-page-main .page-header {
  margin-bottom: 40px;
}

.static-content {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
}

.static-content h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 24px;
  color: var(--text-primary);
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.static-content h2 {
  font-size: 1.2rem;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text-primary);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
}

.static-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.static-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.static-content li {
  margin-bottom: 8px;
}

.static-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ═══════════════════════════════════════
   SEO CONTENT SECTIONS (Landing Page)
   ═══════════════════════════════════════ */

.seo-how-it-works,
.seo-platforms,
.seo-faq {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
  padding: 0 20px;
}

.seo-how-it-works {
  margin-top: 56px;
}

.seo-how-it-works h2,
.seo-platforms h2,
.seo-faq h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.seo-steps {
  list-style: none;
  padding: 0;
  counter-reset: none;
}

.seo-steps li {
  margin-bottom: 20px;
  padding: 16px 20px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.seo-steps li h3 {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-violet);
  margin-bottom: 6px;
}

.seo-steps li p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.seo-platforms {
  margin-top: 40px;
}

.seo-platforms p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.seo-platforms p strong {
  color: var(--text-primary);
}

/* ── FAQ Accordion ── */
.seo-faq {
  margin-top: 40px;
  margin-bottom: 60px;
}

.seo-faq details {
  margin-bottom: 8px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  overflow: hidden;
  transition: var(--transition);
}

.seo-faq details[open] {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  border-color: rgba(132,94,247,0.15);
}

.seo-faq details summary {
  padding: 14px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.seo-faq details summary::-webkit-details-marker {
  display: none;
}

.seo-faq details summary::before {
  content: "＋";
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-violet);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.seo-faq details[open] summary::before {
  content: "－";
}

.seo-faq details summary h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
}

.seo-faq details p {
  padding: 0 20px 16px 40px;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}