/* MultiEmbed Clean — landing profesional */

:root {
  --lp-bg: #f8fafc;
  --lp-surface: #ffffff;
  --lp-ink: #0f172a;
  --lp-muted: #64748b;
  --lp-line: #e2e8f0;
  --lp-accent: #0d9488;
  --lp-accent-2: #0f766e;
  --lp-accent-soft: color-mix(in srgb, #0d9488 12%, transparent);
  --lp-deep: #020617;
  --lp-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --lp-sans: 'Outfit', system-ui, sans-serif;
  --lp-radius: 16px;
  --lp-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.06);
  --lp-shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.12);
  --lp-ease: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.lp {
  margin: 0;
  min-height: 100vh;
  font-family: var(--lp-sans);
  color: var(--lp-ink);
  background: var(--lp-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--lp-mono);
  font-size: 0.86em;
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: color-mix(in srgb, var(--lp-accent) 10%, transparent);
  color: var(--lp-accent-2);
}

/* ── Nav ── */

.lp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 20px;
  animation: lp-rise 0.55s var(--lp-ease) both;
}

.lp-nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, #fff 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--lp-line) 90%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}

.lp-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lp-nav-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2dd4bf, var(--lp-accent));
  box-shadow: 0 4px 12px color-mix(in srgb, var(--lp-accent) 35%, transparent);
  position: relative;
  flex-shrink: 0;
}

.lp-nav-mark::after {
  content: '';
  position: absolute;
  inset: 8px 8px 8px 10px;
  clip-path: polygon(0 0, 0 100%, 100% 50%);
  background: #fff;
}

.lp-nav-name {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-nav-links {
  display: flex;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--lp-muted);
}

.lp-nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  transition: color var(--lp-ease), background var(--lp-ease);
}

.lp-nav-links a:hover {
  color: var(--lp-ink);
  background: color-mix(in srgb, var(--lp-line) 60%, transparent);
}

.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-nav-ghost {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--lp-muted);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color var(--lp-ease);
}

.lp-nav-ghost:hover {
  color: var(--lp-ink);
}

.lp-nav-auth-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--lp-line);
  border-radius: 10px;
  background: var(--lp-surface);
  color: var(--lp-ink);
  transition: color var(--lp-ease), border-color var(--lp-ease), background var(--lp-ease);
}

.lp-nav-auth-icon:hover {
  color: var(--lp-accent);
  border-color: color-mix(in srgb, var(--lp-accent) 35%, var(--lp-line));
  background: color-mix(in srgb, var(--lp-accent) 8%, var(--lp-surface));
}

.lp-nav-cta {
  flex-shrink: 0;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(180deg, #14b8a6, var(--lp-accent));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--lp-accent) 35%, transparent);
  transition: transform var(--lp-ease), box-shadow var(--lp-ease);
}

.lp-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--lp-accent) 40%, transparent);
}

.lp-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--lp-line);
  border-radius: 10px;
  background: var(--lp-surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.lp-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--lp-ink);
  border-radius: 1px;
  transition: transform var(--lp-ease), opacity var(--lp-ease);
}

/* ── Hero ── */

.lp-hero {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  padding: 32px 22px 64px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  min-height: min(82vh, 680px);
  overflow: hidden;
}

.lp-hero-bg {
  position: absolute;
  inset: -20% -15% auto auto;
  width: min(600px, 75vw);
  height: min(500px, 60vw);
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, #2dd4bf 28%, transparent), transparent 50%),
    radial-gradient(circle at 70% 60%, color-mix(in srgb, #6366f1 18%, transparent), transparent 45%);
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.7;
}

.lp-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--lp-line) 50%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--lp-line) 50%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
  opacity: 0.5;
}

.lp-hero-inner {
  position: relative;
  z-index: 1;
  animation: lp-rise 0.65s var(--lp-ease) 0.06s both;
}

.lp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lp-accent-2);
  background: var(--lp-accent-soft);
  border: 1px solid color-mix(in srgb, var(--lp-accent) 22%, transparent);
}

.lp-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: lp-pulse 2s ease-in-out infinite;
}

.lp-brand {
  margin: 0 0 20px;
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: var(--lp-ink);
}

.lp-gradient-text {
  display: block;
  background: linear-gradient(135deg, #0d9488 0%, #0891b2 45%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-lead {
  margin: 0 0 28px;
  max-width: 38ch;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--lp-muted);
}

.lp-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--lp-ease), box-shadow var(--lp-ease), background var(--lp-ease);
}

.lp-btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #14b8a6, var(--lp-accent));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--lp-accent) 32%, transparent);
}

.lp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--lp-accent) 38%, transparent);
}

.lp-btn-ghost {
  background: var(--lp-surface);
  border-color: var(--lp-line);
  color: var(--lp-ink);
  box-shadow: var(--lp-shadow);
}

.lp-btn-ghost:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--lp-accent) 35%, var(--lp-line));
}

.lp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--lp-muted);
}

.lp-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lp-trust svg {
  color: var(--lp-accent);
  flex-shrink: 0;
}

/* Hero stage */

.lp-hero-stage {
  position: relative;
  z-index: 1;
  animation: lp-rise 0.75s var(--lp-ease) 0.14s both;
}

.lp-stage-glow {
  position: absolute;
  inset: 10% -10%;
  background: radial-gradient(circle, color-mix(in srgb, var(--lp-accent) 25%, transparent), transparent 65%);
  filter: blur(24px);
  pointer-events: none;
}

.lp-stage-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--lp-deep);
  border: 1px solid #1e293b;
  box-shadow: var(--lp-shadow-lg);
  padding: 18px;
}

.lp-stage-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.lp-stage-url {
  font-family: var(--lp-mono);
  font-size: 0.68rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
}

.lp-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: lp-pulse 1.8s ease-in-out infinite;
}

.lp-stage-screen {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background:
    radial-gradient(circle at 35% 40%, rgba(45, 212, 191, 0.3), transparent 45%),
    linear-gradient(160deg, #0f172a, #020617 70%, #134e4a);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.lp-stage-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

.lp-stage-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2dd4bf, var(--lp-accent));
  box-shadow: 0 12px 32px rgba(13, 148, 136, 0.45);
  position: relative;
  z-index: 1;
}

.lp-stage-play::after {
  content: '';
  position: absolute;
  inset: 20px 18px 20px 24px;
  clip-path: polygon(0 0, 0 100%, 100% 50%);
  background: #fff;
}

.lp-stage-langs {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 1;
}

.lp-stage-langs span {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.85);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.lp-stage-langs .is-on {
  color: #fff;
  border-color: color-mix(in srgb, var(--lp-accent) 50%, transparent);
  background: color-mix(in srgb, var(--lp-accent) 35%, rgba(15, 23, 42, 0.9));
}

.lp-stage-servers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.lp-stage-servers span {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
  padding: 10px 6px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.lp-stage-servers .is-on {
  color: #fff;
  border-color: color-mix(in srgb, var(--lp-accent) 50%, transparent);
  background: color-mix(in srgb, var(--lp-accent) 28%, rgba(15, 23, 42, 0.85));
}

/* ── Stats ── */

.lp-stats {
  border-block: 1px solid var(--lp-line);
  background: var(--lp-surface);
  padding: 0 22px;
}

.lp-stats-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--lp-line);
}

.lp-stat {
  padding: 28px 24px;
  background: var(--lp-surface);
  text-align: center;
}

.lp-stat strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lp-ink);
  margin-bottom: 4px;
}

.lp-stat span {
  font-size: 0.82rem;
  color: var(--lp-muted);
  line-height: 1.4;
}

/* ── Sections ── */

.lp-section,
.lp-trending,
.lp-disclaimer {
  max-width: 1140px;
  margin: 0 auto;
  padding: 72px 22px;
  scroll-margin-top: 88px;
}

.lp-section-alt {
  background: color-mix(in srgb, var(--lp-surface) 95%, var(--lp-bg));
  border-block: 1px solid var(--lp-line);
  max-width: none;
  padding-inline: max(22px, calc((100% - 1140px) / 2 + 22px));
}

.lp-section-head {
  max-width: 36rem;
  margin-bottom: 36px;
}

.lp-kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lp-accent);
}

.lp-section-head h2,
.lp-disclaimer h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  font-weight: 750;
}

.lp-section-head p {
  margin: 0;
  color: var(--lp-muted);
  line-height: 1.6;
  font-size: 1.02rem;
}

/* Trending */

.lp-trending {
  padding-top: 56px;
  padding-bottom: 56px;
  scroll-margin-top: 88px;
}

.lp-rail-wrap {
  overflow: hidden;
  margin: 0 -4px;
}

.lp-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.lp-rail::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.lp-trending-empty {
  margin: 0;
  padding: 20px 22px;
  border-radius: var(--lp-radius);
  background: var(--lp-surface);
  border: 1px dashed var(--lp-line);
  color: var(--lp-muted);
  font-size: 0.95rem;
}

.lp-poster {
  flex: 0 0 156px;
  scroll-snap-align: start;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: var(--lp-deep);
  border: 1px solid transparent;
  box-shadow: var(--lp-shadow);
  transition: transform var(--lp-ease), border-color var(--lp-ease), box-shadow var(--lp-ease);
}

.lp-poster:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--lp-accent) 40%, transparent);
  box-shadow: var(--lp-shadow-lg);
}

.lp-poster img {
  display: block;
  width: 100%;
  height: 234px;
  object-fit: cover;
}

.lp-poster-meta {
  display: block;
  padding: 12px;
  color: #e2e8f0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.95));
  margin-top: -48px;
  position: relative;
}

.lp-poster-meta strong {
  display: block;
  font-size: 0.8rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-poster-meta em {
  font-style: normal;
  font-size: 0.68rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Steps */

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

.lp-step {
  padding: 28px 24px;
  border-radius: var(--lp-radius);
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  box-shadow: var(--lp-shadow);
  transition: border-color var(--lp-ease), box-shadow var(--lp-ease);
}

.lp-step:hover {
  border-color: color-mix(in srgb, var(--lp-accent) 30%, var(--lp-line));
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.lp-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--lp-accent-soft);
  color: var(--lp-accent);
}

.lp-step-icon svg {
  width: 22px;
  height: 22px;
}

.lp-step-num {
  display: block;
  font-family: var(--lp-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--lp-accent);
  margin-bottom: 8px;
  opacity: 0.8;
}

.lp-step h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.lp-step p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Tabs / endpoints */

.lp-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  margin-bottom: 20px;
  box-shadow: var(--lp-shadow);
}

.lp-tab {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  border: 0;
  background: transparent;
  color: var(--lp-muted);
  padding: 10px 16px;
  border-radius: 9px;
  cursor: pointer;
  transition: background var(--lp-ease), color var(--lp-ease);
}

.lp-tab.is-active {
  background: var(--lp-accent-soft);
  color: var(--lp-accent-2);
}

.lp-method {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--lp-mono);
  font-size: 0.82rem;
  word-break: break-all;
  color: var(--lp-ink);
}

.lp-method span {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 6px;
  background: #064e3b;
  color: #6ee7b7;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lp-panel-desc {
  margin: 0 0 16px;
  color: var(--lp-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.lp-code {
  margin: 0;
  padding: 22px;
  border-radius: var(--lp-radius);
  background: var(--lp-deep);
  color: #cbd5e1;
  overflow-x: auto;
  border: 1px solid #1e293b;
  box-shadow: var(--lp-shadow);
}

.lp-code code {
  font-size: 0.78rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  background: transparent;
  color: inherit;
  padding: 0;
}

/* CTA band — ancho completo alineado con el resto de secciones */

.lp-cta-band {
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 45%, #0f172a 100%);
  border-block: 1px solid #1e293b;
  padding: 56px max(22px, calc((100% - 1140px) / 2 + 22px));
  scroll-margin-top: 88px;
}

.lp-cta-band-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #e2e8f0;
}

.lp-gen-copy .lp-kicker {
  color: #5eead4;
}

.lp-cta-band-inner h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  letter-spacing: -0.03em;
  color: #fff;
  font-weight: 750;
}

.lp-gen-copy p {
  margin: 0;
  max-width: 42ch;
  color: #94a3b8;
  line-height: 1.55;
  font-size: 0.98rem;
}

.lp-gen-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.lp-btn-on-dark {
  background: transparent;
  border-color: #475569;
  color: #e2e8f0;
  box-shadow: none;
}

.lp-btn-on-dark:hover {
  border-color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
}

.lp-btn-glow {
  box-shadow: 0 8px 28px color-mix(in srgb, var(--lp-accent) 45%, transparent);
}

/* Clean Player */

.lp-clean {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
}

.lp-clean h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.035em;
}

.lp-clean > div > p {
  margin: 0 0 24px;
  color: var(--lp-muted);
  line-height: 1.6;
  max-width: 42ch;
}

.lp-clean-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.lp-clean-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: var(--lp-shadow);
}

.lp-clean-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lp-accent);
  flex-shrink: 0;
}

/* Disclaimer */

.lp-disclaimer {
  padding-top: 32px;
  padding-bottom: 32px;
}

.lp-disclaimer h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--lp-muted);
}

.lp-disclaimer p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 65ch;
}

/* Footer */

.lp-footer {
  max-width: 1140px;
  margin: 0 auto;
  padding: 48px 22px 32px;
  border-top: 1px solid var(--lp-line);
}

.lp-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.lp-footer-brand p {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--lp-muted);
  line-height: 1.55;
  max-width: 28ch;
}

.lp-footer-col h3 {
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-muted);
}

.lp-footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--lp-ink);
  padding: 6px 0;
  transition: color var(--lp-ease);
}

.lp-footer-col a:hover {
  color: var(--lp-accent);
}

.lp-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--lp-line);
  font-size: 0.84rem;
  color: var(--lp-muted);
}

.lp-footer-bottom a {
  color: var(--lp-accent-2);
  font-weight: 600;
}

.lp-footer-bottom a:hover {
  text-decoration: underline;
}

/* ── Embed generator modal ── */

body.eg-open {
  overflow: hidden;
}

.eg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(10px);
}

.eg-overlay[hidden] {
  display: none !important;
}

.eg-modal {
  position: relative;
  width: min(560px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  border: 1px solid #334155;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
  color: #e2e8f0;
  animation: lp-rise 0.35s var(--lp-ease) both;
}

.eg-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #94a3b8;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.eg-close:hover {
  color: #fff;
  border-color: #64748b;
}

.eg-head {
  padding-right: 40px;
  margin-bottom: 18px;
}

.eg-head h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.eg-head p {
  margin: 0;
  font-size: 0.86rem;
  color: #94a3b8;
}

.eg-source {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.eg-source-btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.eg-source-btn.is-active {
  color: #fff;
  border-color: #2dd4bf;
  background: color-mix(in srgb, var(--lp-accent) 30%, #0f172a);
}

.eg-source-btn[data-source="imdb"].is-active {
  border-color: #a78bfa;
  background: color-mix(in srgb, #7c3aed 35%, #0f172a);
}

.eg-search-wrap {
  margin-bottom: 14px;
}

.eg-results {
  margin-top: 8px;
  max-height: 280px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #020617;
}

.eg-label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.eg-input,
.eg-textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #f1f5f9;
  font-family: inherit;
  font-size: 0.92rem;
  padding: 12px 14px;
}

.eg-input:focus,
.eg-textarea:focus {
  outline: none;
  border-color: #2dd4bf;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lp-accent) 20%, transparent);
}

.eg-textarea {
  font-family: var(--lp-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 72px;
  margin-bottom: 14px;
}

.eg-results[hidden] {
  display: none !important;
}

.eg-result {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #1e293b;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.eg-result:last-child {
  border-bottom: 0;
}

.eg-result:hover {
  background: color-mix(in srgb, var(--lp-accent) 14%, transparent);
}

.eg-result img,
.eg-poster-ph {
  width: 40px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  background: #1e293b;
}

.eg-result-meta strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.25;
}

.eg-result-sub {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.75rem;
  color: #94a3b8;
}

.eg-type {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
}

.eg-type.is-movie {
  background: color-mix(in srgb, var(--lp-accent) 30%, transparent);
  color: #5eead4;
}

.eg-type.is-tv {
  background: color-mix(in srgb, #7c3aed 35%, transparent);
  color: #c4b5fd;
}

.eg-result-id {
  font-family: var(--lp-mono);
  font-size: 0.75rem;
  color: #64748b;
}

.eg-ep {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 4px;
}

.eg-field span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.eg-out {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #1e293b;
}

.eg-out[hidden] {
  display: none !important;
}

.eg-out-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.eg-badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lp-accent) 30%, transparent);
  color: #5eead4;
  font-size: 0.65rem;
}

.eg-badge.is-imdb {
  background: color-mix(in srgb, #7c3aed 35%, transparent);
  color: #c4b5fd;
}

.eg-url-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 14px;
}

.eg-copy {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: color-mix(in srgb, var(--lp-accent) 22%, #0f172a);
  color: #5eead4;
  cursor: pointer;
  white-space: nowrap;
}

.eg-copy-inline {
  padding: 4px 10px;
  font-size: 0.72rem;
}

.eg-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
}

.eg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
}

.eg-btn-primary {
  color: #fff;
  border: 0;
  background: linear-gradient(90deg, var(--lp-accent), #6366f1);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--lp-accent) 35%, transparent);
}

.eg-btn-ghost {
  color: #e2e8f0;
  background: transparent;
  border-color: #475569;
}

.eg-btn-ghost:hover {
  border-color: #94a3b8;
}

.eg-preview {
  margin-top: 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #334155;
  background: #000;
}

.eg-preview[hidden] {
  display: none !important;
}

.eg-preview-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #0f172a;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}

.eg-preview-bar button {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5eead4;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.eg-preview iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  background: #000;
  position: relative;
  z-index: 1;
}

.eg-preview-stage {
  position: relative;
  background: #000;
}

.eg-preview-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.eg-preview-loading[hidden] {
  display: none !important;
}

.eg-preview-loading-bg {
  position: absolute;
  inset: 0;
  background: #0a0a0a center/cover no-repeat;
  filter: brightness(0.42) saturate(1.05);
  transform: scale(1.04);
}

.eg-preview-loading-card {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 18px 22px;
  border-radius: 14px;
  background: rgba(12, 14, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: #f8fafc;
}

.eg-preview-loading-card p {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
}

.eg-preview-loading-card span {
  font-size: 0.75rem;
  color: #94a3b8;
}

.eg-preview-spin {
  width: 28px;
  height: 28px;
  margin: 0 auto 12px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: #5eead4;
  border-radius: 50%;
  animation: eg-spin 0.8s linear infinite;
}

@keyframes eg-spin {
  to { transform: rotate(360deg); }
}

/* Motion */

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

@keyframes lp-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.08); }
}

/* Responsive */

@media (max-width: 960px) {
  .lp-nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 20px;
    right: 20px;
    flex-direction: column;
    padding: 12px;
    border-radius: 14px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    box-shadow: var(--lp-shadow-lg);
  }

  .lp-nav-links.is-open {
    display: flex;
  }

  .lp-nav-toggle {
    display: flex;
  }

  .lp-nav {
    position: relative;
  }

  .lp-nav-inner {
    position: relative;
  }

  .lp-nav-ghost {
    display: none;
  }

  .lp-nav-auth-icon {
    display: inline-flex;
  }

  .lp-hero,
  .lp-steps,
  .lp-clean,
  .lp-footer-grid {
    grid-template-columns: 1fr;
  }

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

  .lp-hero {
    min-height: 0;
    padding-top: 16px;
    padding-bottom: 48px;
  }

  .lp-stage-frame {
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .lp-nav,
  .lp-hero,
  .lp-section,
  .lp-trending,
  .lp-disclaimer,
  .lp-footer,
  .lp-stats {
    padding-inline: 16px;
  }

  .lp-section-alt {
    padding-inline: 16px;
  }

  .lp-cta {
    flex-direction: column;
  }

  .lp-btn {
    width: 100%;
  }

  .lp-gen-actions,
  .lp-cta-band-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .lp-cta-band {
    padding-inline: 16px;
  }

  .lp-stats-inner {
    grid-template-columns: 1fr;
  }

  .eg-actions,
  .eg-url-row {
    grid-template-columns: 1fr;
  }

  .eg-copy {
    min-height: 42px;
  }

  .lp-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .lp-trust {
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
